Samsung S3C9454B User Manual page 34

Table of Contents

Advertisement

S3C9454B/F9454B
F
PROGRAMMING TIP — Standard Stack Operations Using PUSH and POP
The following example shows you how to perform stack operations in the internal register file using PUSH and
POP instructions:
LD
PUSH
PUSH
PUSH
PUSH
POP
POP
POP
POP
SP,#0C0H
SYM
R15
20H
R3
R3
20H
R15
SYM
; SP ← C0H (Normally, the SP is set to C0H by the
; initialization routine)
; Stack address 0BFH ← SYM
; Stack address 0BEH ← R15
; Stack address 0BDH ← 20H
; Stack address 0BCH ← R3
; R3 ← Stack address 0BCH
; 20H ← Stack address 0BDH
; R15 ← Stack address 0BEH
; SYM ← Stack address 0BFH
ADDRESS SPACES
2-9

Advertisement

Table of Contents
loading

This manual is also suitable for:

F9454b

Table of Contents