EMAC PRIMER Instruction Manual page 59

Table of Contents

Advertisement

stack pointer at the same place, some of the bytes below the stack pointer address will be changed because of the
PUSHes.
If it were possible to run the program full speed and stop it at FFCB without single stepping or
breakpoints, the memory values would be defined as follows:
ADDRESS
FFC7
FFC8
FFC9
FFCA
PC->
FFCB
FFCC
FFCD
FFCE
FFCF
FFD0
FFD1
FFD2
FFD3
SP->
FFD4
Unfortunately there is no way to stop the program and view the memory without setting a breakpoint or using RST
7 so this cannot be demonstrated.
The stack has another purposes other than storing general purpose registers. It is also used by the RST 7 instruction
which was discussed in an earlier lab and the XTHL, CALL and RET instructions which will be discussed later.
DATA
DESCRIPTION
F5
PUSH
C5
PUSH
F1
POP
C1
POP
00
00
00
00
00
04
value from register C
03
value from register B
02
value from flags
01
value from register A
00
PSW
B
PSW
B
59

Advertisement

Table of Contents
loading

Table of Contents