Next - Samsung S3C80A5B User Manual

8-bit cmos
Table of Contents

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
Bytes
Cycles
1
10
After
Address
Data
0045
IP
PC
0130
S3C80A5B
Opcode
(Hex)
0F
Address
Data
43
Address H
44
Address L
45
Address H
130
Routine
Memory

Advertisement

Table of Contents
loading

Table of Contents