aboutsummaryrefslogtreecommitdiffstats
path: root/src/control.c
diff options
context:
space:
mode:
authorgbc dev <gbc@localhost>2026-07-17 00:27:06 +0200
committergbc dev <gbc@localhost>2026-07-17 00:27:06 +0200
commit9a48db9bbc913171c62c86ff8649467474533e2d (patch)
treeaf6d600dc188e43698d17693229265d367d89e48 /src/control.c
parentmain/gb: --keys button-script harness + serial_no_eof for OSK testing (diff)
downloadsl0pboy-9a48db9bbc913171c62c86ff8649467474533e2d.tar.gz
sl0pboy-9a48db9bbc913171c62c86ff8649467474533e2d.tar.xz
sl0pboy-9a48db9bbc913171c62c86ff8649467474533e2d.zip
gb: boot ROM (BIOS) support
Add optional boot ROM emulation. When a boot ROM image is loaded, gb_reset starts execution at PC=0 with power-on register state instead of the documented post-boot state; the ROM overlays low memory (with the CGB 0x0100-0x01FF header hole showing the cartridge through) until the game writes 0xFF50 to hand off. gb_load_bootrom() accepts 256-byte (DMG) or 2304-byte (CGB) images.
Diffstat (limited to 'src/control.c')
0 files changed, 0 insertions, 0 deletions