mirror of
https://github.com/mattrberry/crab.git
synced 2025-02-04 08:46:04 +01:00
remove dead code
This commit is contained in:
parent
cd97745c09
commit
e5cbf18eaf
1 changed files with 0 additions and 2 deletions
|
@ -42,7 +42,6 @@ module GBA
|
||||||
end
|
end
|
||||||
|
|
||||||
def [](io_addr : Int) : UInt8
|
def [](io_addr : Int) : UInt8
|
||||||
return 0_u8 if io_addr >= 0xE0 # todo: OOB read
|
|
||||||
channel = (io_addr - 0xB0) // 12
|
channel = (io_addr - 0xB0) // 12
|
||||||
reg = (io_addr - 0xB0) % 12
|
reg = (io_addr - 0xB0) % 12
|
||||||
case reg
|
case reg
|
||||||
|
@ -56,7 +55,6 @@ module GBA
|
||||||
end
|
end
|
||||||
|
|
||||||
def []=(io_addr : Int, value : UInt8) : Nil
|
def []=(io_addr : Int, value : UInt8) : Nil
|
||||||
return if io_addr >= 0xE0 # todo: OOB write
|
|
||||||
channel = (io_addr - 0xB0) // 12
|
channel = (io_addr - 0xB0) // 12
|
||||||
reg = (io_addr - 0xB0) % 12
|
reg = (io_addr - 0xB0) % 12
|
||||||
case reg
|
case reg
|
||||||
|
|
Loading…
Add table
Reference in a new issue