Download Print this page

Samsung S3C8248 User Manual page 167

8-bit cmos

Advertisement

INSTRUCTION SET
NEXT
— Next
NEXT
PC ← @ IP
Operation:
IP ← IP + 2
The NEXT instruction is useful when implementing threaded-code languages. The program
memory word that is pointed to by the instruction pointer is loaded into the program counter. The
instruction pointer is then incremented by two.
Flags:
No flags are affected.
Format:
opc
Example:
The following diagram shows one example of how to use the NEXT instruction.
Address
Data
0043
IP
PC
0120
6-60
Before
Address
Data
Data
43
Address H
01
44
Address L
10
45
Address H
120
Next
Memory
S3C8248/C8245/P8245/C8247/C8249/P8249
Bytes
Cycles
1
10
After
Address
Data
0045
IP
PC
0130
Opcode
(Hex)
0F
Address
Data
43
Address H
44
Address L
45
Address H
130
Routine
Memory

Advertisement

loading

This manual is also suitable for:

C8245P8245C8249C8247P8249