NonStop S-Series Server Description Manual (G06.24+)
TNS Instruction Set Definition
HP NonStop S-Series Server Description Manual—520331-003
C-27
Instruction Definitions
0 0 0 3 0 5  ECMP extended compare
 V := 0;
 if H.<0> <> D.<0> then
 cc(H:D)
 else
 {sign:=H.<0>;
 H.<0>:=D.<0>:=0;
 t1:=exponent(E);
 t2:=exponent(A);
 if t1<>t2 then
 if sign=0 then
 cc(t1:t2)
 else cc(t2:t1)
 else
 if sign=0 then
 cc(HGFE:DCBA)
 else cc(DCBA:HGFE)}
0 0 0 3 0 6  CDF  convert double to floating
 V := 0;
 sign:=B.<0>; exp:=31+256;
 if sign=1 then BA:=-BA;
 if BA<>0 then
 {norm(BA);
 exponent(A):=exp;
 B.<0>:=sign}
0 0 0 3 0 7  CDI  convert double to integer
 V := 0;
 if B+A.<0> <> 0 then V:=1
 else V:=0;
 B:=A;
 RP:=RP-1
0 0 0 3 1 0  CFIR convert floating to integer with rounding
 V := 0;
 t:=15+256-exponent(A);
 sign:=B.<0>;
 if -2**15 <= BA <= 2**15-1
 then {B.<0>:=1;
 BA:=BA'>>'t;
 BA:=BA'+'%100000;
 if sign=1 then B:=-B
 else if B.<0>=1 then
 V:=1}
 else V:=1;
 cc(B); RP:=RP-1
0 0 0 3 1 1  CFI  convert floating to integer
 V := 0;
 t:=15+256-exponent(A);
 sign:=B.<0>;
 if -2**15 <= BA <= 2**15-1
 then {B.<0>:=1;
 BA:=BA'>>'t;
 if sign=1 then B:=-B}
 else V:=1;
 cc(B); RP:=RP-1
Table C-2. Instruction Definitions (page17of38)










