mirror of
https://github.com/mattrberry/crab.git
synced 2025-01-19 10:26:44 +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,6 +10,7 @@ module GBA
|
||||||
when 0b00 then set_reg(rd, lsl(@r[rs], offset, pointerof(carry_out)))
|
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 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)))
|
when 0b10 then set_reg(rd, asr(@r[rs], offset, true, pointerof(carry_out)))
|
||||||
|
when 0b11 # encodes thumb add/subtract
|
||||||
else raise "Invalid shifted register op: #{op}"
|
else raise "Invalid shifted register op: #{op}"
|
||||||
end
|
end
|
||||||
set_neg_and_zero_flags(@r[rd])
|
set_neg_and_zero_flags(@r[rd])
|
||||||
|
|
Loading…
Reference in a new issue