Table of Contents Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->TRAP
TRAP Trap
Compatibility: 68000, 68010, 68020 and CPU32 families.
SSP - 2 -> SSP : Format/Offset -> SSP
SSP - 4 -> SSP : PC -> (SSP) : SSP - 2 -> SSP
S -> (SSP) : Vector address -> PC
Assembler Syntax: TRAP #<vector>
where <vector> is a 4 bit value
Size: Unsized
Causes a TRAP #<vector> exception. The instruction adds the immediate operand (vector) of the instruction to 32 to obtain the vector number. The range of vector values is 0-15, which provides 16 vectors.
Condition Codes: Not Affected