mirror of
https://github.com/mattrberry/crab.git
synced 2025-01-16 03:41:18 +01:00
abort on swap halfword transfers
This commit is contained in:
parent
6f7f10d292
commit
c57bb1e4bf
2 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue