11
LatticeMico
8
Microcontroller
Lattice Semiconductor
User’s Guide
SETZ
Zero Flag = 1
Set zero flag.
CLRI
Interrupt Enable Flag = 0
Clear interrupt enable flag. Disable interrupts.
SETI
Interrupt Enable Flag = 1
Set interrupt enable flag. Enable interrupt.
BZ Label
If Zero Flag = 1 then PC = PC + (Signed Offset of Label). Else PC = PC + 1.
Branch if 0. If zero flag is set, the PC is incremented by the signed offset of the label from the current PC. If zero
flag is 0, then execution continues with the following instruction. The offset can be +/- 512.
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
1
1
CY Flag Updated
Zero Flag Updated
No
Yes
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
0
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
CY Flag Updated
Zero Flag Updated
No
No
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
0
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
CY Flag Updated
Zero Flag Updated
No
No
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
1
0
0
1
0
0
0
L
L
L
L
L
L
L
L
L
L
CY Flag Updated
Zero Flag Updated
No
No