6ppyh
Dr
ÃWrp
DqrÃSrtvr
Ã
DqrÃSrtvr
ThpxÃQvr
Q
t
hÃ8r
)LJXUH
6SHFLDO3XUSRVH 5HJLVWHUV
3URJUDP &RXQWHU 3&
The program counter holds the 16-bit address of the current instruction
being fetched from memory. The PC is automatically incremented after its
contents have been transferred to the address lines. When a program jump
occurs, the new value is automatically placed in the PC, overriding the
incrementer.
6WDFN 3RLQWHU 63
The stack pointer holds the 16-bit address of the current top of a stack
located anywhere in external system RAM memory. The external stack
memory is organized as a last-in first-out (LIFO) file. Data can be pushed
onto the stack from specific CPU registers or popped off of the stack to
specific CPU registers through the execution of PUSH and POP instructions.
The data popped from the stack is always the last data pushed onto it. The
80
HhvÃSrtvr
ÃTr
Ayht
A
6
7
8
9
@
C
G
Hr
ÃSrs
ru
D
S
DY
D`
TQ
Q8
= &38 5HJLVWHU &RQILJXUDWLRQ
6yr
hrÃSrtvr
ÃTr
6ppyh
Ayht
AÃ
6Ã
7Ã
7Ã
9Ã
@Ã
CÃ
GÃ
Trpvhy
Q
r
Srtvr
< %27
7UGT U /CPWCN
Brr
hy
Q
r
Srtvr
2YHUYLHZ
Need help?
Do you have a question about the Z80 and is the answer not in the manual?
Questions and answers