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 120
Image 120
Samsung S3C9228/P9228 user manual Iret Interrupt Return, Iretiret, Operation Flags ¨ @SP, Bytes Cycles Opcode Normal Hex