6F3B0253

7. Instructions

FUN 142

IRET

Interrupt return

Expression

−− [ IRET ]−

Function

This instruction indicates the end of an interrupt program. When program execution reaches this instruction, it returns to the original location of the main program (or subroutine).

Execution condition

Input

Operation

-

Execution

Output

-

Operand

No operand is required.

Example

An interrupt program

(Timer interrupt,

I/O interrupt #1, #2, #3 or #4)

Note

The IRET instruction can be used only in an interrupt program.

There is no specific instruction which indicates the beginning of the interrupt program.

210 T1-16S User’s Manual

Page 212
Image 212
Toshiba 6F3B0253 user manual Iret, Interrupt return