temporarily patch rcnt to return 0x8000 so that sonic advance boots

This commit is contained in:
Matthew Berry 2022-06-24 23:06:25 -07:00
parent ed1a8214c6
commit 61b21b4233

View file

@ -33,7 +33,11 @@ module GBA
@gba.keypad.read_io io_addr
elsif 0x120 <= io_addr <= 0x12F || 0x134 <= io_addr <= 0x1FF
# todo: serial
0_u8
if io_addr == 0x135
0x80_u8
else
0_u8
end
elsif 0x200 <= io_addr <= 0x203 || 0x208 <= io_addr <= 0x209
@gba.interrupts.read_io io_addr
elsif 0x204 <= io_addr <= 0x205