13
LatticeMico
8
Microcontroller
Lattice Semiconductor
User’s Guide
CALLZ Label
If Zero Flag = 1, then
Push PC + 1 into Call Stack
PC = PC + Signed Offset of LABEL
Else, PC = PC + 1
CALL if 0. If the zero flag is set, the address of the next instruction (PC+1) is pushed into the call stack and the PC
is incremented by the signed offset of the label from the current PC. If zero flag is not set, then execution continues
from the following instruction.
CALLNZ Label
If Zero Flag = 0, then
Push PC + 1 into Call Stack
PC = PC + Signed Offset of LABEL.
Else PC = PC + 1
CALL if NOT 0. If the zero flag is not set, the address of the next instruction (PC+1) is pushed into the call stack,
and the PC is incremented by the signed offset of the label from the current PC. If the zero flag is set, then execu-
tion continues from the following instruction.
CALLC Label
If Carry Flag = 1, then
Push PC + 1 into Call Stack
PC = PC + Signed Offset of LABEL.
Else, PC = PC + 1
CALL if carry. If the carry flag is set, the address of the next instruction (PC+1) is pushed into the call stack, and the
PC is incremented by the signed offset of the label from the current PC. If the carry flag is not set, then execution
continues from the following instruction.
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
1
0
1
1
0
0
0
L
L
L
L
L
L
L
L
L
L
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
1
1
0
0
1
L
L
L
L
L
L
L
L
L
L
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
1
1
0
1
0
L
L
L
L
L
L
L
L
L
L
CY Flag Updated
Zero Flag Updated
No
No