mirror of
https://github.com/mattrberry/crab.git
synced 2025-01-29 20:35:13 +01:00
arm single data transfer respect byte quantity
This commit is contained in:
parent
4654d15e2a
commit
155f0a7f68
1 changed files with 10 additions and 2 deletions
|
@ -26,9 +26,17 @@ module ARM
|
|||
end
|
||||
|
||||
if load
|
||||
@r[rd] = @gba.bus.read_word address
|
||||
if byte_quantity
|
||||
@r[rd] = 0xFF_u32 & @gba.bus[address]
|
||||
else
|
||||
@r[rd] = @gba.bus.read_word address
|
||||
end
|
||||
else
|
||||
@gba.bus[address] = @r[rd]
|
||||
if byte_quantity
|
||||
@gba.bus[address] = 0xFF_u8 & @r[rd]
|
||||
else
|
||||
@gba.bus[address] = @r[rd]
|
||||
end
|
||||
end
|
||||
|
||||
if !pre_indexing
|
||||
|
|
Loading…
Add table
Reference in a new issue