mirror of
https://github.com/mattrberry/crab.git
synced 2025-01-29 20:35:13 +01:00
fix stmia register order
This commit is contained in:
parent
155f0a7f68
commit
ad446281fc
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ module ARM
|
|||
end
|
||||
end
|
||||
else
|
||||
16.times do |idx|
|
||||
15.downto(0).each do |idx|
|
||||
if bit?(list, idx)
|
||||
address &+= add ? 4 : -4 if pre_index
|
||||
@gba.bus[address] = @r[idx]
|
||||
|
|
|
@ -12,7 +12,7 @@ module THUMB
|
|||
end
|
||||
end
|
||||
else # stmia
|
||||
8.times do |idx|
|
||||
7.downto(0).each do |idx|
|
||||
if bit?(list, idx)
|
||||
@gba.bus[address] = @r[idx]
|
||||
address &+= 4
|
||||
|
|
Loading…
Add table
Reference in a new issue