Draaal's GameBoy Emulator
- 4 Devlogs
- 14 Total hours
Kinda self-explanatory, no?
Kinda self-explanatory, no?
After finding that it works last devlog, it didn’t actually work, because all my other roms kept crashing with stack overflow error. I, of course, started searching for an infinite loop (as one does when confronted with a stack overflow), but this was my first EVER stack overflow without an infite loop. Just shouldn’t have put 32 KiB of ROM on the stack. For anyone wondering, the rom I showed used a variable length cartridge and was because of that already on the heap.
I also did some minor refactoring:
It’s been a while since my last devlog, I lost interest in this project and was off playing XCOM 2 again (such a good game!). The main reason why I lost motivation is that I spent forever trying to get it to display anything but a blank white screen. Now I wanted to write that I will keep trying, but when generating a image for the devlog it actually worked. I have honestly no idea what changed, but neither do I care. We are so back! Oh, also there is memory inspection for debugging now.
I finished support for MBC1 and added automatic recognition of the MBC version when loading a ROM. Then I added GitHub Releases (in theory - there aren’t any actual releases yet), as always it was a chore and took way too long. I also added the little label you see in the screenshot to have something to show here.
Since I have started this project before Stardance there is quite a lot to tell: I implemented (almost) all of the cpu instructions, then I added memory, so it can actually run something. Then I added this wonderful UI you can see in the screenshot (my first UI that doesn’t completely suck, Yay!) and added some MBCs - needed to support different cartridges. The next goal is of course to get it to draw some things to the screen. Might have to screw around with GitHub Releases first though, setting that up is always such a pain.
Anyways, that’s it for now, next one will be a bit more detailed. Cheers!