Next — Next - Samsung S3F84B8 User Manual

8-bit cmos
Hide thumbs Also See for S3F84B8:
Table of Contents

Advertisement

S3F84B8_UM_REV 1.00
6.3.46 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
Example:
Figure 6-5
Address
IP
0043
PC
0120
shows an example about how to use the NEXT instruction.
Before
Data
Address
43
Address H
44
Address L
45
Address H
120
Next
Memory
Figure 6-5
Example of the Usage of the NEXT Instruction
Bytes
1
Address
IP
0045
Data
Data
01
PC
0130
10
6-59
6 INSTRUCTION SET
Cycles
Opcode
(Hex)
10
0F
After
Data
Address
43
Address H
44
Address L
45
Address H
130
Routine
Memory
Data

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents