IO initial states are correct

This commit is contained in:
2025-05-31 09:47:01 -06:00
parent 8ef1a5cd60
commit 2543ba04b5
8 changed files with 76 additions and 33 deletions

View File

@ -28,7 +28,7 @@ void cpu_init() {
ctx.regs.sp = 0xFFFE;
ctx.regs.pc = 0x100;
ctx.ie_register = 0;
ctx.int_flags = 0;
ctx.int_flags = 0xE1;
ctx.int_master_enabled = false;
ctx.enabling_ime = false;