Contents | < Browse | Browse >
NAME
	TRAP -- Initiate processor trap

SYNOPSIS
	TRAP	#<number>

FUNCTION
	Processor starts an exception process. TRAP number is pointed
	out by 4 bits into the instruction. 16 vectors are free to
	be used for TRAP (vectors from 32 to 47).
	So the <number> can go from 0 to 15.
	PC and SR are stored to SSP, and Vector is written to PC.

FORMAT
	-----------------------------------------------------------------
	|15 |14 |13 |12 |11 |10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
	|---|---|---|---|---|---|---|---|---|---|---|---|---------------|
	| 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 |  N° of TRAP   |
	-----------------------------------------------------------------

RESULT
	None.

SEE ALSO
	TRAPcc