English
Language : 

GMS30C2116 Datasheet, PDF (44/322 Pages) Hynix Semiconductor – USERS MANUAL
1-24
1.7 Stack (continued)
before Frame Instruction for frame
X
register part
memory part
of the stack
of the stack
A and X
overlap modulo 64
CHAPTER 1
after Frame Instruction for frame
X
register part
memory part
of the stack
of the stack
words
A
to be
pushed
rest of frame A
various
frames
FP
X
space
available for X
additional
space for X
required
stack
space
SP
required
rest of frame A
pushed number
of words
according to
space required
for frame X
FP
various
frames
additional
space for X
available
stack
space
appended
SP
before Return Instruction to frame A
after Return Instruction to frame A
FP
frame
words for A
A
required
rest of frame A
various
frames
words
to be
pulled
FP
A
SP
frame
words
pulled
rest of frame A
pulled number
of words
completes
stack frame A!
various
frames
words
X
to be
overwritten
= available part of a frame
Figure 1.14: Stack frame pushing and popping
stack
space
SP
freed