NonStop S-Series Server Description Manual (G06.27+)
TNS Instruction Set Definition
HP NonStop S-Series Server Description Manual—520331-004
C-20
Instruction Definitions
0 0 0 2 4 0  QADD quad add
 ccn(HGFE:=HGFE + DCBA);
 RP:=RP-4
 [ See Note 5: OVFL TRAP RESULTS UNDEFINED ]
 [ See Note 6: OVERFLOW TNS COMPATIBLE ]
0 0 0 2 4 1  QSUB quad subtract
 ccn(HGFE:=HGFE - DCBA);
 RP:=RP-4
 [See Note 5: OVFL TRAP RESULTS UNDEFINED ]
 [See Note 6: OVERFLOW TNS COMPATIBLE ]
0 0 0 2 4 2  QMPY quad multiply
 V:= -2**63<=HGFE*DCBA<=2**63-1;
 HGFE:=HGFE * DCBA;
 cc(HGFE);
 RP:=RP-4
 [ See Note 4: OVERFLOW RESULTS UNDEFINED]
0 0 0 2 4 3  QDIV quad divide
 V:=if DCBA=0 or (HGFE = –2**63 & DCBA = –1) then 
1 else 0;
 HGFE:=HGFE / DCBA;
 cc(HGFE);
 RP:=RP-4
 [ See Note 4: OVERFLOW RESULTS UNDEFINED]
0 0 0 2 4 4  QNEG quad negate
 DCBA:=-DCBA;
 ccn(DCBA)
0 0 0 2 4 5  QCMP quad compare
 cc(HGFE:DCBA)
0 0 0 2 4 6  CQL  convert quad to logical
 V:=if 0 <= DCBA <=2**16-1
 then 0 else 1;
 D:=A;
 RP:=RP-3
0 0 0 2 4 7  CQD  convert quad to double
 V:=if -2**31 <=DCBA<= 2**31-1
 then 0 else 1;
 DC:=BA;
 RP:=RP-2
0 0 0 2 5 nn0 QUP  quad scale up
 DCBA:=DBCA*
 10**(I.<13:14>+1);
 V:=if -2**63<=DCBA<=2**63-1
 then 0 else 1;
 cc(DCBA)
 [ See Note 4: OVERFLOW RESULTS UNDEFINED]
0 0 0 2 5 nn1 QDWN quad scale down
 DCBA:=DBCA/
 10**(I.<13:14>+1);
 V:=0; cc(DCBA);
Table C-2. Instruction Definitions (page10of38)










