trap


Software trap.

[Syntax]

-

trap vector

 

The following can be specified for vector:

-

Absolute expression having a value of up to 5 bits

[Function]

Causes a software trapNote.

Note

For details of the function, see the Relevant Device's Architecture User's Manual of each device.

[Flag]

CY

---

OV

---

S

---

Z

---

SAT

---

[Caution]

-

If an absolute expression having a value falling outside the range of 0 to 31 is specified as vector, the assembler outputs the following message, continuing assembling using the lower 5 bitsNote of the specified value.

W0550011 : illegal operand (range error in immediate)

Note

The trap machine instruction takes an immediate value in the range of 0 to 31 (0x0 to 0x1F) as an operand.