mirror of
https://github.com/mattrberry/crab.git
synced 2025-02-05 08:45:50 +01:00
thumb load address does not need set_reg
This commit is contained in:
parent
cf804e723c
commit
d5c06fef98
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ module GBA
|
|||
word = bits(instr, 0..7)
|
||||
imm = word << 2
|
||||
# Where the PC is used as the source register (SP = 0), bit 1 of the PC is always read as 0.
|
||||
set_reg(rd, (source ? @r[13] : @r[15] & ~2) &+ imm)
|
||||
@r[rd] = (source ? @r[13] : @r[15] & ~2) &+ imm
|
||||
|
||||
step_thumb
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue