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.
No flags are affected.
Flags:
Format:
opc
The following diagram shows an example of how to use the NEXT instruction.
Example:
Address
Data
0043
1P
0120
PC
6-60
Before
Address
Data
Data
43
Address H
01
44
Address L
30
45
Address H
120
Next
Memory
Bytes
Cycles
1
10
After
Address
Data
0045
1P
0130
PC
S3C84I8/F84I8/C84I9/F84I9
Opcode
(Hex)
0F
Address
Data
43
Address H
44
Address L
45
Address H
130
Routine
Memory