Format |
Syntax: |
Operation: |
Operands: |
Architecture revision |
Opcode | ||||
1 |
scr Rd |
Rd = Rd - C; |
d ∈ {0, 1, …, 15} |
Rev1+ |
|
Subtracts carry from the specified destination register.
Q: |
Not affected |
V: |
V = (Rd[31] AND ~RES[31]) |
N: |
N = RES[31] |
Z: |
Z = (RES[31:0] == 0) AND Z |
C: |
C = ~Rd[31] AND RES[31] |
; Subtract a 32-bit variable (R0) from a 64-bit variable (R2:R1) sub
R1, R0
scr
R2