Integer Instructions
4-188 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA
TRAP Trap TRAP
(M68000 Family)
Operation: 1 → S-Bit of SR
*SSP – 2 → SSP; Format/Offset → (SSP);
SSP – 4 → SSP; PC → (SSP); SSP – 2 → SSP;
SR → (SSP); Vector Address → PC
*The MC68000 and MC68008 do not write vector offset or
format code to the system stack.
Assembler
Syntax: TRAP # < vector >
Attributes: Unsized
Description: 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.
Instruction Format:
Instruction Fields:
Vector field—Specifies the trap vector to be taken.
1514131211109876543210
010011100100 VECTOR
Comments to this Manuals