diff --git a/src/io-read.c b/src/io-read.c index 9845955..f4b1c66 100644 --- a/src/io-read.c +++ b/src/io-read.c @@ -19,6 +19,8 @@ struct IOReadTest { }; static const struct IOReadTest ioReadTests[] = { + { "DISPCNT", 0x4000000, true, true, 0xFFF7, 0x0200 }, // Set by main + { "GREENSWAP", 0x4000002, true, true, 0x0001, 0 }, { "BG0CNT", 0x4000008, true, true, 0xDFFF, 0 }, { "BG1CNT", 0x400000A, true, true, 0xDFFF, 0 }, { "BG2CNT", 0x400000C, true, true, 0xFFFF, 0 }, @@ -68,6 +70,7 @@ static const struct IOReadTest ioReadTests[] = { { "SOUND1CNT_X", 0x4000064, true, true, 0x4000, 0 }, { "INVALID (66)", 0x4000066, true, false, 0, 0 }, { "SOUND2CNT_LO", 0x4000068, true, true, 0xFFC0, 0 }, + { "INVALID (6A)", 0x400006A, true, false, 0, 0 }, { "SOUND2CNT_HI", 0x400006C, true, true, 0x4000, 0 }, { "INVALID (6E)", 0x400006E, true, false, 0, 0 }, { "SOUND3CNT_LO", 0x4000070, true, true, 0x00E0, 0 }, @@ -82,6 +85,7 @@ static const struct IOReadTest ioReadTests[] = { { "SOUNDCNT_HI", 0x4000082, true, true, 0x770F, 0 }, { "SOUNDCNT_X", 0x4000084, true, true, 0x0080, 0x0080 }, { "INVALID (86)", 0x4000086, true, false, 0, 0 }, + { "SOUNDBIAS", 0x4000088, true, true, 0xC3FE, 0x0200 }, { "INVALID (8A)", 0x400008A, true, false, 0, 0 }, { "INVALID (8C)", 0x400008C, true, false, 0xDEAD, 0 }, { "INVALID (8E)", 0x400008E, true, false, 0xDEAD, 0 }, @@ -141,6 +145,40 @@ static const struct IOReadTest ioReadTests[] = { { "INVALID (FA)", 0x40000FA, true, false, 0xDEAD, 0 }, { "INVALID (FC)", 0x40000FC, true, false, 0xDEAD, 0 }, { "INVALID (FE)", 0x40000FE, true, false, 0xDEAD, 0 }, + { "TIM0CNT_HI", 0x4000102, true, true, 0x00C3, 0 }, + { "TIM1CNT_HI", 0x4000106, true, true, 0x00C7, 0 }, + { "TIM2CNT_HI", 0x400010A, true, true, 0x00C7, 0 }, + { "TIM3CNT_HI", 0x400010E, true, true, 0x00C7, 0 }, + { "INVALID (110)", 0x4000110, true, false, 0xDEAD, 0 }, + { "INVALID (112)", 0x4000112, true, false, 0xDEAD, 0 }, + { "INVALID (114)", 0x4000114, true, false, 0xDEAD, 0 }, + { "INVALID (116)", 0x4000116, true, false, 0xDEAD, 0 }, + { "INVALID (118)", 0x4000118, true, false, 0xDEAD, 0 }, + { "INVALID (11A)", 0x400011A, true, false, 0xDEAD, 0 }, + { "INVALID (11C)", 0x400011C, true, false, 0xDEAD, 0 }, + { "INVALID (11E)", 0x400011E, true, false, 0xDEAD, 0 }, + { "INVALID (12C)", 0x400012C, true, false, 0xDEAD, 0 }, + { "INVALID (12E)", 0x400012E, true, false, 0xDEAD, 0 }, + { "KEYCNT", 0x4000132, true, true, 0xC3FF, 0 }, + { "INVALID (136)", 0x4000136, true, false, 0, 0 }, + { "INVALID (138)", 0x4000138, true, false, 0xDEAD, 0 }, + { "INVALID (13A)", 0x400013A, true, false, 0xDEAD, 0 }, + { "INVALID (13C)", 0x400013C, true, false, 0xDEAD, 0 }, + { "INVALID (13E)", 0x400013E, true, false, 0xDEAD, 0 }, + { "INVALID (142)", 0x4000142, true, false, 0, 0 }, + { "INVALID (144)", 0x4000144, true, false, 0xDEAD, 0 }, + { "INVALID (146)", 0x4000146, true, false, 0xDEAD, 0 }, + { "INVALID (148)", 0x4000148, true, false, 0xDEAD, 0 }, + { "INVALID (14A)", 0x400014A, true, false, 0xDEAD, 0 }, + { "INVALID (14C)", 0x400014C, true, false, 0xDEAD, 0 }, + { "INVALID (14E)", 0x400014E, true, false, 0xDEAD, 0 }, + { "INVALID (15A)", 0x400015A, true, false, 0, 0 }, + { "INVALID (15C)", 0x400015C, true, false, 0xDEAD, 0 }, + { "INVALID (15E)", 0x400015E, true, false, 0xDEAD, 0 }, + { "WAITCNT", 0x4000204, true, true, 0x5FFF, 0 }, // Set by BIOS + { "INVALID (206)", 0x4000206, true, false, 0, 0 }, + { "IME", 0x4000208, true, true, 0x0001, 0x0001 }, + { "INVALID (20A)", 0x400020A, true, false, 0, 0 }, { "INVALID (100C)", 0x400100C, true, false, 0xDEAD, 0 }, };