gb-starter-kit
gb-starter-kit copied to clipboard
A customizable and ready-to-compile bundle for Game Boy RGBDS projects. Contains your bread and butter, guaranteed 100% kitchen sink-free.
This would be a PR if not for the fact that I don't trust myself to get the values right. I think the exact numbers depend on whether you're reading...
This could potentially reuse code from Sameboy's [pb12.c](https://github.com/LIJI32/SameBoy/blob/master/BootROMs/pb12.c) and former [pb8.c](https://github.com/LIJI32/SameBoy/blob/4504de828a188b520a324687a1181af6c45a7e3a/BootROMs/pb8.c) (MIT licensed). I think C++ would have advantages for making use of ``, iterators, for-each loops, C++17 ``, etc....
[Pino's *Libbet*](https://github.com/pinobatch/libbet/blob/cabe48bc4042338b9975cb32c2dbd0ee6640f31e/src/pads.z80#L61-L95) has a good example of the timings involved. Since we're doing more than just polling, it should be possible to combine the delays with the other operations being...
- [ ] Use `DEF` syntax - [ ] Use new macro syntax - [ ] Apply same changes to gb-boilerplate - [ ] Use anonymous labels instead of `wait_vram`
There's no reason to hardcode it, actually; it's data like any other, and it can go anywhere as long as it's large enough. It would additionally lift the requirement of...
- [x] Ensure each "stub" is in its own section, without padding - [ ] Put the STAT handler "inline", since the other handlers are not used - [x] Put...
``` ... rgbasm -p 0xFE -isrc/ -isrc/include/ -Wall -Wextra -h -M dep/vectors.mk -MG -MP -MQ obj/vectors.o -MQ dep/vectors.mk -o obj/vectors.o src/vectors.asm rgbasm -p 0xFE -isrc/ -isrc/include/ -Wall -Wextra -h -M...
For example, document why "shadow" registers are used instead of direct writes to the hardware regs. Avoid big chunks of documentation in the middle of a function, though, because those...
- [ ] Split off `header.asm` into `main.asm` where appropriate - [ ] Evaluate if some files shouldn't be split into more sub-files - [ ] Break the hierarchy into...
I've seen two people on the Discord confused about the use of shadow registers just in the last week. The first person had the problem that the LCD was immediately...