mirror of
https://github.com/mattrberry/crab.git
synced 2025-02-14 20:48:18 +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
|
if load
|
||||||
@r[rd] = @gba.bus.read_half address
|
@r[rd] = @gba.bus.read_half address
|
||||||
else
|
else
|
||||||
@gba.bus[address] = @r[rd]
|
@gba.bus[address] = 0xFFFF_u16 & @r[rd]
|
||||||
end
|
end
|
||||||
when 0b10 # ldrsb
|
when 0b10 # ldrsb
|
||||||
@r[rd] = @gba.bus[address].to_i8!.to_u32
|
@r[rd] = @gba.bus[address].to_i8!.to_u32
|
||||||
|
|
Loading…
Add table
Reference in a new issue