mirror of
https://github.com/mattrberry/crab.git
synced 2025-01-29 20:35:13 +01:00
touched up tmcnt read logic slightly
This commit is contained in:
parent
026b86c891
commit
6d00710121
1 changed files with 1 additions and 2 deletions
|
@ -53,9 +53,8 @@ module GBA
|
|||
|
||||
def read_io(io_addr : Int) : UInt8
|
||||
num = (io_addr & 0xF) // 4
|
||||
tmcnt = @tmcnt[num]
|
||||
value = if bit?(io_addr, 1)
|
||||
tmcnt.value
|
||||
@tmcnt[num].value
|
||||
else
|
||||
get_current_tm(num)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue