Samsung S3C84I8 User Manual page 58

Table of Contents

Advertisement

S3C84I8/F84I8/C84I9/F84I9
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
SPL,#0FFH
PP
RP0
RP1
R3
R3
RP1
RP0
PP
; SPL ← FFH
; (Normally, the SPL is set to 0FFH by the initialization
; routine)
; Stack address 0FEH ← PP
; Stack address 0FDH ← RP0
; Stack address 0FCH ← RP1
; Stack address 0FBH ← R3
; R3 ← Stack address 0FBH
; RP1 ← Stack address 0FCH
; RP0 ← Stack address 0FDH
; PP ← Stack address 0FEH
ADDRESS SPACES
2-23

Advertisement

Table of Contents
loading

This manual is also suitable for:

S3c84i9S3f84i8S3f84i9

Table of Contents