User’s Manual
C166S V1 SubSystem
Detailed Instruction Set
User’s Manual
6-96
V 1.6, 2001-08
TRAP
Software Trap
TRAP
Group
Call Instructions
Syntax
TRAP op1
Source Operand(s)
op1
→
7-bit trap number
Destination Operand(s)
none
Operation
(SP)
←
(SP) - 2
((SP)
←
(PSW)
IF (SYSCON.SGTDIS = 0) THEN
(SP)
←
(SP) - 2
((SP))
←
(CSP)
(CSP)
←
(0)
END IF
(SP)
←
(SP) - 2
((SP))
←
(IP)
(IP)
←
zero_extended((op1) * 4)
Description
Invokes a trap or interrupt routine based on the specified operand op1. The invoked
routine is determined by branching to the specified vector table entry point. This routine
has no indication of whether it was called by software or hardware. System state is
preserved identically to hardware interrupt entry except that the CPU priority level is not
affected. The RETI, Return from Interrupt instruction is used to resume execution after
the completion of the trap or interrupt routine. The CSP is pushed if the segmentation is
enabled. This is indicated by the SGTDIS bit of the SYSCON register.
CPU Flags
E
Not affected.
Z
Not affected.
V
Not affected.
C
Not affected.
N
Not affected.
E
Z
V
C
N
-
-
-
-
-
Содержание C166S V1 SubSystem
Страница 10: ...User s Manual C166S V1 SubSystem User s Manual I 6 V 1 6 2001 08...
Страница 16: ...User s Manual C166S V1 SubSystem Introduction User s Manual 1 6 V 1 6 2001 08...
Страница 126: ...User s Manual C166S V1 SubSystem Central Processing Unit User s Manual 3 96 V 1 6 2001 08...
Страница 178: ...User s Manual C166S V1 SubSystem Memory Organization User s Manual 4 52 V 1 6 2001 08...
Страница 206: ...User s Manual C166S V1 SubSystem Instruction Set User s Manual 5 28 V 1 6 2001 08...
Страница 306: ...User s Manual C166S V1 SubSystem Detailed Instruction Set User s Manual 6 100 V 1 6 2001 08...
Страница 362: ...User s Manual C166S V1 SubSystem The External Bus Interface User s Manual 8 40 V 1 6 2001 08...
Страница 452: ...User s Manual C166S V1 SubSystem General Purpose Timer Unit User s Manual 12 44 V 1 6 2001 08...
Страница 454: ...User s Manual C166S V1 SubSystem Instruction Index User s Manual 13 2 V 1 6 2001 08...
Страница 459: ......