# gba-python's NanoBoyAdvance driver **Moved (2026-11-25):** the driver is now `../nanoboyadvance/nba_driver/` (`nba_driver` here is a link to it), built with NanoBoyAdvance by `../nanoboyadvance/build.py --machine gba`; see `../nanoboyadvance/README.md`. What follows describes the folder as parked on 2026-11-22. From the emulator family's gba-python repository: `scripts/nba_driver/`, parked on 2026-11-22 at gba-python's history rewrite (wave E) as it stood at `2f8fcd5` (old history). ## What it measures NanoBoyAdvance's GBA pictures and registers for test ROMs, beside gba-python's board. OBSERVED (NanoBoyAdvance 8c3b159). ## Who uses it gba-python, which finds this folder through `GBA_GPL_TOOLS`. `scripts/build_referees.py --nba` builds `reference/build/nba/nba_driver` from here (passing the NanoBoyAdvance tree as `NBA_ROOT`); `scripts/referee_run.py --emu nba` and arm7tdmi-python's `tests/hw/thumb_undefined/run_referees.py` run it. ## Contents - `nba_driver/driver.cc`: A headless driver for NanoBoyAdvance's core with the same command line and output as gba-python's MIT mGBA driver: runs a ROM for a number of frames with a BIOS and saves the picture and registers. Upstream: NanoBoyAdvance (fleroviux), GPL-3.0-or-later, `8c3b159`. - `nba_driver/CMakeLists.txt`: Builds it against NanoBoyAdvance's core library only. Upstream: the same. ## Licence and notices Our code (alewman), GPL-3.0-or-later (owner, 2026-11-20). Upstream code is not committed here, except where a file above says it carries upstream lines; each tool fetches and builds its upstream at the pin from the consuming repository. This repository is GPL-3.0-or-later (`../../LICENSE`). ## Outputs Every value these tools give is a closed-box measurement: tag it OBSERVED with the upstream and its pin, and let any document or hardware measurement overrule it (`emu-tools/docs/wall.md`). Nothing here has been refactored onto the shared contract yet (`emu-tools/docs/contract.md`); that is the next job.