Operations:

Format

Syntax:

Operation:

Operands:

Architecture revision

Opcode

1

scr Rd

Rd = Rd - C;
d ∈ {0, 1, …, 15}

Rev1+

010111000001

Rd

12

4

Description

Subtracts carry from the specified destination register.

Status Flags:

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]

Example

; Subtract a 32-bit variable (R0) from a 64-bit variable (R2:R1) sub

R1, R0

scr

R2