Skip to content

alt-romes/gameboyemulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Gameboy Emulator in C

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.

Building

  • Clone the repository
  • Install glfw with brew install glfw and glew with brew install glew
  • mkdir obj
  • Compile with make

Running

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

Controls

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

Screenshots

cpu_instr

tetris opening screen

tetris mid game

tetris game over

prince of persia

About

simple gameboy emulator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •