English
Language : 

GMS30C2216 Datasheet, PDF (316/320 Pages) Hynix Semiconductor – 16/32 BIT RISC/DSP
A-144
Appendix A. Instruction Set Details
Trap (continued)
TRAPxx
Operation:
Code Notation
Operation
4 TRAPLE trapno
5 TRAPGT trapno
instruction;
6 TRAPLT trapno
7 TRAPGE trapno
8 TRAPSE trapno
if N = 1 or Z = 1 then execute TRAP else execute next instruction;
if N = 0 and Z = 0 then execute TRAP else execute next
if N = 1 then execute TRAP else execute next instruction;
if N = 0 then execute TRAP else execute next instruction;
if C = 1 or Z = 1 then execute TRAP else execute next instruction;
9 TRAPHT trapno
instruction;
10 TRAPST trapno
11 TRAPHE trapno
12 TRAPE trapno
13 TRAPNE trapno
if C = 0 and Z = 0 then execute TRAP else execute next
if C = 1 then execute TRAP else execute next instruction;
if C = 0 then execute TRAP else execute next instruction;
if Z = 1 then execute TRAP else execute next instruction;
if Z = 0 then execute TRAP else execute next instruction;
14 TRAPV trapno
15 TRAP trapno
if V = 1 then execute TRAP else execute next instruction;
PC := adr;
S := 1;
(FP + FL)^ := old PC(31..1)//old S;
(FP + FL + 1)^ := old SR;
FP := FP + FL;
-- FL = 0 is treated as FL = 16
FL := 6;
M := 0;
T := 0;
L := 1;
trapno indicates one of the traps 0..63.
Exceptions:
None.