INSTRUCTION SET

S3C84E5/C84E9/P84E9

 

 

NEXT — Next

NEXT

Operation: PC @IP

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:

Bytes Cycles Opcode (Hex)

opc

1 100F

Example: The following diagram shows an example of how to use the NEXT instruction.

Address

1P

PC

0043

0120

Before

Data

AddressData

43 Address H 01

44Address L 30

45Address H

120 Next

Memory

Address

1P

PC

0045

0130

After

Data

Address

43

44

45

130

Data

Address H

Address L

Address H

Routine

Memory

6-60

Page 187
Image 187
Samsung S3C84E5 user manual Next Next, Operation PC ← @IP