Samsung S3F80P5X User Manual page 182

S3f80p5 microcontrollers
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
0120
PC
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
0130
PC
S3F80P5_UM_ REV1.00
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