6.30.2 Status Register (SREG) and Boolean Formula
I | T | H | S | V | N | Z | C |
⇔ | ⇔ | ⇔ | ⇔ | ⇔ | ⇔ | ⇔ | ⇔ |
- I
- If (s == 7) then I ← 1, else unchanged.
- T
- If (s == 6) then T ← 1, else unchanged.
- H
- If (s == 5) then H ← 1, else unchanged.
- S
- If (s == 4) then S ← 1, else unchanged.
- V
- If (s == 3) then V ← 1, else unchanged.
- N
- If (s == 2) then N ← 1, else unchanged.
- Z
- If (s == 1) then Z ← 1, else unchanged.
- C
- If (s == 0) then C ← 1, else unchanged.
Example:
bset 6 ; Set T bit bset 7 ; Enable interrupt
- Words
- 1 (2 bytes)
Name | Cycles |
---|---|
AVRe | 1 |
AVRxm | 1 |
AVRxt | 1 |
AVRrc | 1 |