mirror of
https://github.com/mattrberry/crab.git
synced 2025-01-29 20:35:13 +01:00
clear the bottom bits of IF properly
This commit is contained in:
parent
a8ed1e7f6b
commit
8ccb8cb31b
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ module GBA
|
|||
case io_addr
|
||||
when 0x200 then @reg_ie.value = (@reg_ie.value & 0xFF00) | value
|
||||
when 0x201 then @reg_ie.value = (@reg_ie.value & 0x00FF) | value.to_u16 << 8
|
||||
when 0x202 then @reg_if.value &= ~value
|
||||
when 0x202 then @reg_if.value &= ~value.to_u16
|
||||
when 0x203 then @reg_if.value &= ~(value.to_u16 << 8)
|
||||
when 0x208 then @ime = bit?(value, 0)
|
||||
when 0x209 # ignored
|
||||
|
|
Loading…
Add table
Reference in a new issue