This emulator is capable of running tetris, and other MBC1 games with multiple ROM banks and RAM banks, like prince of persia.
The emulator passes all cpu_instr blarggs tests, and passes all MBC1 mooneye-gb rom ram and bit tests
It's made completely in C. Most parts are fine except for the memory.c which due to lack of understanding when starting out has duplicate address spaces for some parts and mimics the Nintendo console in a way that could be much simpler and much more intuitive.
- Clone the repository
- Install
glfwwithbrew install glfwandglewwithbrew install glew mkdir obj- Compile with
make
To specify a ROM, run i.e. ./emulator -r prince-of-persia.gb. By default ./emulator will search for a file named tetris-jp.gb
The gameboy has 8 buttons:
| Control | Key |
|---|---|
| Left | A |
| Up | W |
| Down | S |
| Right | D |
| Button A | J |
| Button B | K |
| Start | N |
| Select | M |




