Samsung S3C8275X User Manual Page 175

  • Download
  • Add to my manuals
  • Print
  • Page
    / 324
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 174
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X INSTRUCTION SET
6-41
ENTER Enter
ENTER
Operation: SP SP – 2
@SP IP
IP PC
PC @IP
IP IP + 2
This instruction is useful when implementing threaded-code languages. The contents of the
instruction pointer are pushed to the stack. The program counter (PC) value is then written to the
instruction pointer. The program memory word that is pointed to by the instruction pointer is
loaded into the PC, and the instruction pointer is incremented by two.
Flags: No flags are affected.
Format:
Bytes Cycles Opcode
(Hex)
opc 1 14 1F
Example: The diagram below shows one example of how to use an ENTER statement.
0050
IP
0022
SP
22
Data
Address Data
0040
PC
40
41
42
43
Enter
Address H
Address L
Address H
Address Data
1F
01
10
Memory
0043
IP
0020
SP
20
21
22
IPH
IPL
Data
Address Data
0110
PC
40
41
42
43
Enter
Address H
Address L
Address H
Address Data
1F
01
10
Memory
00
50
Stack Stack
110 Routine
Before After
Page view 174
1 2 ... 170 171 172 173 174 175 176 177 178 179 180 ... 323 324

Comments to this Manuals

No comments