stop printing for lack of stop mode

This commit is contained in:
Matthew Berry 2022-09-02 17:56:02 -07:00
parent 7543c401a8
commit cd97745c09
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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