add minor docs to thumb move shifted reg

This commit is contained in:
Matthew Berry 2021-05-17 21:04:54 -07:00
parent d5c06fef98
commit 026b86c891

View file

@ -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