WAIT

Waiting

WAIT

WAIT


[Syntax]

WAIT

 

[Operation]

 

 

[Function]

-

This instruction stops program execution. Program execution is then restarted by acceptance of a non-maskable interrupt, interrupt, or generation of a reset.

-

This instruction is a privileged instruction. Attempting to execute this instruction in user mode generates a privileged instruction exception.

-

The I bit in the PSW becomes 1.

-

The address of the PC saved at the generation of an interrupt is the one next to the WAIT instruction.

Note

For the power-down state when the execution of the program is stopped, refer to the hardware manual of each product.

 

[Instruction Format]

Syntax

Code size

(Byte)

WAIT

2

[Flag Change]

-

This instruction does not affect the states of flags.

[Description Example]

WAIT