abort on swap halfword transfers

This commit is contained in:
Matthew Berry 2021-04-01 23:18:58 -07:00
parent 6f7f10d292
commit c57bb1e4bf
2 changed files with 2 additions and 0 deletions

View file

@ -23,6 +23,7 @@ module ARM
case sh
when 0b00 # swp, no docs on this?
abort "HalfwordDataTransferReg swp #{hex_str instr}"
when 0b01 # ldrh/strh
if load
set_reg(rd, @gba.bus.read_half_rotate address)

View file

@ -22,6 +22,7 @@ module ARM
case sh
when 0b00 # swp, no docs on this?
abort "HalfwordDataTransferReg swp #{hex_str instr}"
when 0b01 # ldrh/strh
if load
set_reg(rd, @gba.bus.read_half_rotate address)