gbsim is an emulator for the Gamebuino. It's based on simavr.
$ 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.
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
W
,S
,A
,D
: Up, down, left, rightK
: A buttonL
: B buttonR
: C buttonESC
: Quit
simavr probably wants OpenGL, and Glut to build, but shouldn't be necessary.
$ cmake .
$ make
The binary will be in build/[your-platform]
. For Debian/Ubuntu, the dependencies are libsdl2-dev
and libelfg0-dev
.
I'm told that this works:
brew install sdl2
brew install libelf
cmake .
make
See README.windows.md.