6.98.2 Status Register (SREG) and Boolean Formula

ITHSVNZC
–––⇔⇔⇔⇔⇔
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

R15 ∧ R14 ∧ R13 ∧ R12 ∧ R11 ∧ R10 ∧ R9 ∧ R8∧R7 ∧ R6 ∧ R5 ∧ R4 ∧ R3 ∧ R2 ∧ R1 ∧ R0

Set if the result is 0x0000; 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 R[d+1]:Rd after the operation.

Example:

      sbiw  r24,1   ; Subtract 1 from r25:r24
      sbiw  YL,63   ; Subtract 63 from the Y-pointer(r29:r28)
Words
1 (2 bytes)
Table 6-98. Cycles
NameCycles
AVRe2
AVRxm2
AVRxt2
AVRrcN/A