< operation >
< operation >
ADC – Add with Carry
Rd := Rn + Operand2 + Carry
< operation >
SUB – Subtract
Rd := Rn − Operand2
< operation >
SBC – Subtract with Carry
Rd := Rn − Operand2 − NOT(Carry)
< operation >
RSB – Reverse Subtract
Rd := Operand2 − Rn
< operation >
RSC – Reverse Subtract with Carry
Rd := Operand2 − Rn − NOT(Carry)
ADD r0, r1, r2
R0 = R1 + R2
SUB r5, r3, #10
R5 = R3 − 10
RSB r2, r5, #0xFF00
R2 = 0xFF00 − R5
RSB and RSC subtract in _____ order (e.g. y – x not x – y).
RSB and RSC subtract in reverse order (e.g. y – x not x – y).
There is no divide instruction –
There is no divide instruction – the compiler uses a run-time library function or shifts to perform division.