Exit Exit - Samsung S3C8275X User Manual

8-bit cmos microcontrollers
Table of Contents

Advertisement

INSTRUCTION SET
EXIT
— Exit
EXIT
Operation:
IP
SP
PC
IP
This instruction is useful when implementing threaded-code languages. The stack value is
popped and loaded into the instruction pointer. The program memory word that is pointed to by
the instruction pointer is then loaded into the program counter, and the instruction pointer is
incremented by two.
Flags:
No flags are affected.
Format:
opc
Example:
The diagram below shows one example of how to use an EXIT statement.
Address
Data
0050
IP
0040
PC
0022
SP
20
IPH
00
21
50
IPL
22
Data
Stack
6-42
@SP
SP + 2
@IP
IP + 2
Before
Address
50
PCL old
51
PCH
140
Exit
Memory
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X
Bytes
1
Address
0052
IP
Data
0060
PC
60
00
0022
SP
2F
Data
22
Stack
Cycles
14 (internal stack)
16 (internal stack)
After
Data
Address
60
Main
Memory
Opcode (Hex)
2F
Data

Advertisement

Table of Contents
loading

This manual is also suitable for:

F8275xF8274xC8278xC8274xF8278x

Table of Contents