rie


Reserved Instruction exception (Reserved Instruction Exception)

[Syntax]

-

rie

-

rie imm5, imm4

 

The following can be specified as imm5:

-

Absolute expression having a value of up to 5 bits

 

The following can be specified as imm4:

-

Absolute expression having a value of up to 4 bits

[Function]

Saves the contents of the return PC (address of the RIE instruction) and the current contents of the PSW to FEPC and FEPSW, respectively, stores the exception cause code in the FEIC register, and updates the PSW according to the exception causes. Execution then branches to the exception handler address and exception handling is started.

Exception handler addresses are calculated based on the offset address 60H.

[Description]

-

The assembler generates one rie machine instruction.

[Flag]

CY

---

OV

---

S

---

Z

---

SAT

---