Status Register (SREG) and Boolean Formula

I T H S V N Z C
S
N ⊕ V, for signed tests.
V

R15 • Rdh7

Set if two’s complement overflow resulted from the operation; cleared otherwise.

N

R15

Set if MSB of the result is set; cleared otherwise.

Z

R15R14R13R12R11R10R9R8R7R6R5R4R3R2R1R0

Set if the result is $0000; cleared otherwise.

C

R15 • Rdh7

Set if the absolute value of K is larger than the absolute value of Rd; cleared otherwise.

R (Result) equals Rdh:Rdl after the operation (Rdh7-Rdh0 = R15-R8, Rdl7-Rdl0=R7-R0).

Example:

 sbiw r25:r24,1 ; Subtract 1 from r25:r24
 sbiw YH:YL,63 ; Subtract 63 from the Y-pointer(r29:r28)
Words
1 (2 bytes)
Cycles
2