SAM88RI INSTRUCTION SET

S3C9228/P9228

 

 

IRET — Interrupt Return

IRETIRET

Operation: FLAGS ¨ @SP

SP ¨ SP + 1

PC ¨ @SP

SP ¨ SP + 2

SYM(2) ¨ 1

This instruction is used at the end of an interrupt service routine. It restores the flag register and the program counter. It also re-enables global interrupts.

Flags: All flags are restored to their original settings (that is, the settings before the interrupt occurred).

Format:

IRET

Bytes Cycles

Opcode

(Normal)

 

(Hex)

opc

1 6 BF

6-24

Page 340
Image 340
Samsung S3C9228/P9228, 8-Bit CMOS Microcontroller user manual Iret Interrupt Return