mirror of
https://github.com/mattrberry/crab.git
synced 2025-02-04 08:46:04 +01:00
stop printing for lack of stop mode
This commit is contained in:
parent
7543c401a8
commit
cd97745c09
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ module GBA
|
||||||
end
|
end
|
||||||
|
|
||||||
def []=(io_addr : Int, value : Byte) : Nil
|
def []=(io_addr : Int, value : Byte) : Nil
|
||||||
puts "TODO: Implement stopping and keycnt behavior" if 0x132 <= io_addr <= 0x133
|
# TODO: If stopping is implemented, implement keycnt to exit stop mode
|
||||||
end
|
end
|
||||||
|
|
||||||
def handle_input(input : Input, pressed : Bool) : Nil
|
def handle_input(input : Input, pressed : Bool) : Nil
|
||||||
|
|
|
@ -40,7 +40,7 @@ module GBA
|
||||||
when 0x204..0x205 then @waitcnt.write_byte(io_addr & 1, value)
|
when 0x204..0x205 then @waitcnt.write_byte(io_addr & 1, value)
|
||||||
when 0x301
|
when 0x301
|
||||||
if bit?(value, 7)
|
if bit?(value, 7)
|
||||||
puts "TODO: Implement stopping behavior"
|
# TODO: See about supporting some kind of stopping
|
||||||
else
|
else
|
||||||
@gba.cpu.halted = true
|
@gba.cpu.halted = true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue