Z8018x Family
MPU User Manual
178
Stack Pointer (SP)
The Stack Pointer (SP) contains the memory address based LIFO stack.
SP is cleared to 0000Hduring reset.
Program Counter (PC)
The Program Counter (PC) contains the address of the instruction to be
executed and is automatically updated after each instruction fetch. PC is
cleared to 0000Hduring reset.
Flag Register (F)
The Flag Register stores the logical state reflecting the results of instruction
execution. The contents of the Flag Register are used to control program
flow and instruction operation.
Flag Register
Bit
7
S
6
Z
5
4
H
3
2
P/V
R/W
0
1
N
0
C
Bit/Field
R/W
Not Used
Not Used
R/W
0
R/W
0
?
?
R/W
0
?
?
R/W
0
R/W
0
Reset
R = Read W = Write X = Indeterminate ? = Not Applicable
Bit
Position Bit/Field R/W
Value Description
7
S
R/W
0
Sign. S stores the state of the most significant bit
(bit 7) of the result. This is useful for operations with
signed numbers in which values with bit 7 = 1 are
interpreted as negative.
UM005001-ZMP0400