aboutsummaryrefslogtreecommitdiffstats
path: root/src/cpu.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* headless: $ED opcode = clean power-off (exit + battery save)gbc dev2026-07-161-0/+2
| | | | | | | | The unused SM83 opcode $ED now sets gb->poweroff, which breaks the headless loop so the normal cart_free()->cart_save() path runs. Lets a guest OS shut the emulator down cleanly (and flush its .sav) instead of relying on an external timeout/SIGTERM, which could SIGKILL before the save. run_frame() also stops on poweroff so exit is immediate.
* core emulator: SM83 CPU, MMU, timer, PPU, CGB supportgbc dev2026-07-041-0/+446
Passes blargg cpu_instrs (all 11), instr_timing, mem_timing.