Add WAITCNT but do nothing for now

This commit is contained in:
David Guillen Fandos 2022-01-05 21:43:03 +01:00
parent dbbefdf021
commit 4eac8e30a8
2 changed files with 2 additions and 0 deletions

View File

@ -1346,6 +1346,7 @@ cpu_alert_type function_cc write_io_register16(u32 address, u32 value)
// WAITCNT
case 0x204:
write_ioreg(REG_WAITCNT, value);
break;
// Halt

View File

@ -150,6 +150,7 @@ typedef enum
REG_RCNT = 0x9A,
REG_IE = 0x100,
REG_IF = 0x101,
REG_WAITCNT = 0x102,
REG_IME = 0x104,
REG_HALTCNT = 0x180
} hardware_register;