mirror of
https://github.com/mattrberry/crab.git
synced 2025-02-05 08:45:50 +01:00
arm fix strh, only store halfword
This commit is contained in:
parent
f9c8ae7668
commit
4654d15e2a
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ module ARM
|
|||
if load
|
||||
@r[rd] = @gba.bus.read_half address
|
||||
else
|
||||
@gba.bus[address] = @r[rd]
|
||||
@gba.bus[address] = 0xFFFF_u16 & @r[rd]
|
||||
end
|
||||
when 0b10 # ldrsb
|
||||
@r[rd] = @gba.bus[address].to_i8!.to_u32
|
||||
|
|
Loading…
Add table
Reference in a new issue