NonStop S-Series Server Description Manual (G06.24+)
TNS Instruction Set
HP NonStop S-Series Server Description Manual—520331-003
11-22
Definitions of TNS Instructions
DSUB (000221). Double Subtract BA From DC. The doubleword integer contained in
BA is subtracted in doubleword integer form from the doubleword integer in DC. Both
operands are then deleted, and the result is pushed onto the stack. Overflow is set if
the result is greater than 2
31
-1 or less than -2
31
. Carry can be set (meaning no
borrow), and Condition Code is set on the result.
DTST (000031). Double Test BA. The Condition Code is set according to the contents
of the doubleword contained in BA.
DXCH (000005). Double Exchange BA With DC. The doubleword contained in DC is
interchanged with the doubleword contained in BA. Condition Code is set on the result
in BA.
EADD (000300). Extended Add. The extended floating-point quantities in HGFE and
DCBA are added in extended floating-point form. Both operands are deleted and the
result is pushed onto the stack. Overflow is set if the result falls outside the range of
extended floating-point numbers. (For the range of extended floating-point numbers,
refer to Section 3, TNS Data Formats and Number Representations.) Condition Code
is set on the result.
ECMP (000305). Extended Compare. The Condition Code is set according to the
comparison of HGFE (operand 1) with DCBA (operand 2). Both operands are then
deleted from the stack.
EDIV (000303). Extended Divide. The extended floating-point quantity in HGFE is
divided in extended floating-point form by the extended floating-point quantity in DCBA.
Both operands are deleted and the result is pushed onto the stack. Overflow is set if
Figure 11-9. Example of Depositing a Field Using the DPF Instruction
71013041
00000 00 010100000
INT i : % 023003
i.<5:10> := 5;
Values in register stack to do the above:
C
Value to be deposited: 5
00000 11 111100000B
Mask containing "1" bits
in positions subject to
deposit: <5:10>
00100 11 000000011A
Operand accepting
deposit: % 023003
00100 00 0 0100011 % 020243 (Result)1
A
VST327.vsd