gb_emulator

DMG Gameboy emulator written using C++ and SDL3.

Implementation passes Blargg's CPU tests and instruction timings test. Tested games: Tetris and Super Mario Land.

Building:

Firstly, clone the repo and download all submodules, then from the root directory run:

git submodule update --init --recursive
mkdir build
cd build
cmake ..
cmake --build .

Remember to copy built sdl dll to the appriopriate folder! Should compile under both Linux and Windows, altough it has only been tested on the WSL.

Known issues:

  • only mbc 0 and 1 are supported.
  • double height rendering is not supported.
  • audio is barely implemented.
  • cpu speed is synced to the refreshrate, so it will be faster on faster monitors.

Demo (audio is a bit loud!):

2023-11-03.00-08-26.mp4