Skip to content

33d/gbsim

Repository files navigation

gbsim is an emulator for the Gamebuino. It's based on simavr.

Usage

$ gbsim <elf-file>

To get the .elf file from Arduino, go to File/Preferences, then check "Show verbose output during compiling". Then click "Verify", and the .elf file should be shown in the output window.

Status

The graphics and input partially works. Notably the 3D dungeon demo doesn't work. It probably uses more CPU time than it needs to.

gdb support would be nice, and simavr already supports it.

What doesn't work: Everything else, including:

  • Sound
  • I²C
  • SD card
  • EEPROM
  • gdb
  • Screen brightness
  • Battery
  • Backlight

Keys

  • W, S, A, D: Up, down, left, right
  • K: A button
  • L: B button
  • R: C button
  • ESC: Quit

Building

You'll need SDL 2 and libelf.

simavr probably wants OpenGL, and Glut to build, but shouldn't be necessary.

Linux

$ cmake .
$ make

The binary will be in build/[your-platform]. For Debian/Ubuntu, the dependencies are libsdl2-dev and libelfg0-dev.

MacOS

I'm told that this works:

brew install sdl2
brew install libelf
cmake .
make

Windows

See README.windows.md.

Releases

No releases published

Packages

No packages published