I wrote a Gameboy emulator with FreeBasic and GTK. It should support most games. I successfully tested:
Games are saved and loaded automatically when you start/stop the emulator. The savegames are stored in the "saves"-folder.
Download link: https://github.com/IchMagBier/FB-Gameboy
Sourcecode and a Linux binary are included.
Simply run "fbgb" from command-line and pass the rom-file as the parameter, like this:
Code: Select all
- [WASD] Moving
- [Q / E] A / B
- [SPACE] Start
- [CTRL] Select
- [F1] Changes the color palette
- [F2] Changes the speed
- [F3] Displays the memory
- [F4] Displays a disassembly of the code, aswell as the current state of the CPU-registers
- [F5] Displays a log of the last "interesting" actions, aswell as some misc infos
- [F6] Reset
Please look at the output of [F3]. It will show the whole 64kB address space of the Gameboy. I think it's really amazing that they were able to write great games with this tiny amount of memory, even with memory banking.
I don't have Windows to test it and I don't trust WINE, would be awesome if someone could tell me, if it works.
- Added support for savegames.
- Added support for MBC3
- Added [F6]-reset
- Fixed the "flickering" when starting certain games
- Added a GTK-dialog for opening the rom-file, when it wasn't passed as the parameter
- Fixed segfault on exit
- Fixed sprite not displaying when SpriteX < 8
- Fixed weird joypad behavior
- Initial upload