70c19ea343
Former-commit-id: 92dec2c186b9e6f34ae5ce0ee167d6f1fa7730c8 |
||
---|---|---|
.vscode | ||
assets | ||
external | ||
media | ||
src | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md |
RustBoyAdvance-NG
Nintendo GameBoy Advance ™ emulator and debugger, written in rust.
Build and usage
-
set-up rust nightly
-
Obtain a gba bios binary. you can get an open source GBA bios
-
Place the bios file in the repository root and name it
gba_bios.bin
-
Build and run in release mode (performance is terrible in the
dev
profile)$ cargo run --release -- path/to/rom
Why is this project needed ?
It's actually not. There are quite a lot of GBA emulators, and even some written in rust. Actually, I couldn't find any game capable emulators written in rust.
I'm only doing this as a side project intended for learning rust.
This is my third take on this project. My first go at this was about 3 years ago, but I didn't like rust much at the time so it got abandoned. I tried to resurrect it a year ago but didn't have the time to get invested in a side-project, let alone learning rust.
I've grown to like rust a lot since then, so here we go again. You know what they say, third time's a charm.
Progress
Supported features:
- Display modes 0,4,5
- PCM Audio channels
Todo:
- Display modes 2,3 (affine backgrounds)
- Flash(backup) support
- CGB audio (4 wave generator channels)
- web.asm frontend
- color correction
Tested games status
Kirby - Nightmare in Dreamland*
No issues so far
Pokemon - Emerald
Won't boot unless binary patched to remove a loop querying the flash chip
Dragon Ball - Legacy of Goku 2
crashes when entering in-game menu, other than that works fine.
Screenshots
Links and attribution
- ARM7TDMI Technical Reference Manual Technical Reference Manuals are fun.
- GBATEK A single webpage written by no$gba developer Martin Korth. This page has pretty much everything. Seriously, it's the best.
- TONC A comprehensive GBA dev guide that I used a-lot in order to understand the GBA system. Comes with neat demo roms that really helped me during development and debugging.
- NanoboyAdvance A GameBoy Advance emulator written in C++17 by a nice person called fleroviux. I've used this for debugging.
- Eggvance gba-suite Incredible test suite for the arm7tdmi interpreter that I'm using, written by Julian Smolka.