6.3.2 Status Register (SREG) and Boolean Formula

ITHSVNZC
S
N ⊕ V, for signed tests.
V

Rdh7 ∧ R15

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 0x0000; cleared otherwise.

C

R15 ∧ Rdh7

Set if there was a carry from the MSB of the result; cleared otherwise.

R (Result) equals R[d+1]:Rd after the operation.

Example:

      adiw      r24,1      ; Add 1 to r25:r24
      adiw      ZL,63      ; Add 63 to the Z-pointer(r31:r30)
Words
1 (2 bytes)
Table 6-3. Cycles
NameCycles
AVRe2
AVRxm2
AVRxt2
AVRrcN/A