3
3-116 M32R-FPU Software Manual (Rev.1.01)

TRAPTRAP

EIT-related instruction

Trap

[Mnemonic]

TRAP #imm4

[Function]
Trap occurrence
BPC = PC + 4;
BSM = SM;
BIE = IE;
BC = C ;
IE = 0;
C = 0;
call_trap_handler( imm4 );
[Description]
TRAP generates a trap with the trap number specified by the 4-bit immediate value.
IE and C bits are cleared to "0".
[EIT occurrence]
Trap (TRAP)
[Encoding]

0001 0000 1111 imm4 TRAP #imm4;

INSTRUCTIONS
3.2 Instruction description