mirror of
https://github.com/mattrberry/crab.git
synced 2024-12-29 10:23:54 +01:00
add minor docs to thumb move shifted reg
This commit is contained in:
parent
d5c06fef98
commit
026b86c891
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,8 @@ module GBA
|
|||
when 0b00 then set_reg(rd, lsl(@r[rs], offset, pointerof(carry_out)))
|
||||
when 0b01 then set_reg(rd, lsr(@r[rs], offset, true, pointerof(carry_out)))
|
||||
when 0b10 then set_reg(rd, asr(@r[rs], offset, true, pointerof(carry_out)))
|
||||
else raise "Invalid shifted register op: #{op}"
|
||||
when 0b11 # encodes thumb add/subtract
|
||||
else raise "Invalid shifted register op: #{op}"
|
||||
end
|
||||
set_neg_and_zero_flags(@r[rd])
|
||||
@cpsr.carry = carry_out
|
||||
|
|
Loading…
Reference in a new issue