# NanoBoyAdvance ![license-bsd-2-clause](https://img.shields.io/badge/License-BSD--2--Clause-blue) ![built-with-cxx](https://img.shields.io/badge/Built%20with-C++-F34B7D) [![discord](https://img.shields.io/discord/969218483873251338?logo=discord&label=discord)](https://discord.gg/TxG387NbR2) [![Please don't upload to GitHub](https://nogithub.codeberg.page/badge.svg)](https://nogithub.codeberg.page) NanoBoyAdvance is a cycle-accurate Game Boy Advance emulator. It aims to be as accurate as possible, while also offering enhancements such as improved audio quality. **Please note that this is the in-development branch for Update 2. The source code here may or may not work correctly on all platforms.** **The `master` branch is currently frozen and will be renamed once Update 2 is complete.** ## Features - Very high compatibility and accuracy (see [Accuracy](#accuracy)) - HQ audio mixer (for games which use Nintendo's MusicPlayer2000 sound engine) - Post-processing options (color correction and LCD ghosting simulation) - Save State support (10x save slots available) - Game controller support (buttons and axes can be remapped) - RTC emulation - Solar Sensor emulation (for example: for Boktai - The Sun is in Your Hand) - Debug tools: PPU palette, tile, background and sprite viewers ## Running Download the lastest [release](https://codeberg.org/nba-emu/NanoBoyAdvance/releases). Upon loading a ROM for the first time you will be prompted to assign the Game Boy Advance BIOS file. You can [dump](https://github.com/mgba-emu/bios-dump) it from a real console (accurate) or use an [unofficial BIOS](https://github.com/Nebuleon/ReGBA) (Use `gba_bios.bin` from the `bios` folder.) (less accurate). ## Accuracy A lot of research and attention to detail has been put into developing this core and making it accurate. - Cycle-accurate emulation of most components, including: CPU, DMA, timers, PPU and Game Pak prefetch - Passes all AGS aging cartridge tests (NBA was the first public emulator to achieve this) - Passes most tests in the [mGBA test suite](https://github.com/mgba-emu/suite) - Passes [ARMWrestler](https://github.com/destoer/armwrestler-gba-fixed), [gba-suite](https://github.com/jsmolka/gba-tests) and [FuzzARM](https://github.com/DenSinH/FuzzARM) CPU tests - Very high compatibility, including games that require emulation of peculiar hardware edge-cases ## Compiling Prerequisites: - Clang with C++ 23 support - CMake 4.0 or newer (Recommended generator is Ninja) - Qt 6.11 or newer Use CMake to generate a build tree and then build NanoBoyAdvance. ## Acknowledgements | Individual(s) | Their impact | |---|---| | Martin Korth | [GBATEK](http://problemkaputt.de/gbatek.htm), a good piece of hardware documentation | | [endrift](https://github.com/endrift) | Hardware [research](http://mgba.io/tag/emulation/) and her excellent [test suite](https://github.com/mgba-emu/suite) | | [destoer](https://github.com/destoer), [noumi](https://github.com/noumidev), [Sky](https://github.com/skylersaleh) and [Zayd](https://github.com/zaydlang) | Hardware research and tests, countless discussions and being good friends | | [hunterk](https://github.com/hunterk), [Pokefan531](https://github.com/Pokefan531) | The default GBA color correction algorithm | | Talarubi, Near | [higan's GBA color correction algorithm](https://archive.ares-emu.net/near.sh/articles/video/color-emulation.html) | ## Sister Projects Our sister projects include **[SkyEmu](https://github.com/skylersaleh/SkyEmu)**, **[Dust](https://github.com/Kelpsyberry/dust)** and **[Panda3DS](https://github.com/wheremyfoodat/panda3DS)**. ## Copyright See [LICENSE](LICENSE) for details. "Nintendo" and "Game Boy Advance" are registered trademarks of Nintendo Co., Ltd.