mirror of
https://github.com/mattrberry/crab.git
synced 2025-01-16 03:41:18 +01:00
stub keypad to 0xFF (no keys pressed)
This commit is contained in:
parent
cbe206b13e
commit
025a0c3d5b
2 changed files with 4 additions and 2 deletions
|
@ -11,7 +11,7 @@ class Interrupts
|
|||
when 0x203 then 0xFF_u8 & @reg_if >> 8
|
||||
when 0x208 then @reg_ime ? 1_u8 : 0_u8
|
||||
when 0x209 then @reg_ime ? 1_u8 : 0_u8
|
||||
else raise "Unimplemented interrupts read ~ addr:#{hex_str io_addr.to_u8}"
|
||||
else raise "Unimplemented interrupts read ~ addr:#{hex_str io_addr.to_u8!}"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -6,8 +6,10 @@ class MMIO
|
|||
io_addr = 0x0FFF_u16 & index
|
||||
if io_addr <= 0x05F
|
||||
@gba.ppu.read_io io_addr
|
||||
elsif (io_addr >= 0x200 & io_addr <= 0x203) || (io_addr >= 0x208 && io_addr <= 0x209)
|
||||
elsif (io_addr >= 0x200 && io_addr <= 0x203) || (io_addr >= 0x208 && io_addr <= 0x209)
|
||||
@gba.interrupts.read_io io_addr
|
||||
elsif io_addr >= 0x130 && io_addr <= 0x133 # todo keypad
|
||||
0xFF_u8
|
||||
elsif not_used? io_addr
|
||||
0xFF_u8 # todo what is returned here?
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue