NonStop S-Series Server Description Manual (G06.24+)
TNS Instruction Set
HP NonStop S-Series Server Description Manual—520331-003
11-17
Definitions of TNS Instructions
CFQ (000320). Convert Floating to Quadruple. The floating-point quantity in BA is
converted to a quadrupleword integer in DCBA. Overflow is set if the value of the
operand was greater than 2
63
–1 or less than –2
63
. Condition Code is set on the result.
CFQR (000321). Convert Floating to Quadruple, Rounded. The floating-point quantity
in BA is converted to a quadrupleword integer in DCBA, with rounding according to the
contents of the most significant fractional bit. Overflow is set if the value of the
operand was greater than 2
63
–1 or less than –2
63
. Condition Code is set on the result.
CID (000327). Convert Integer to Double. The single-word integer in A is extended to
a doubleword quantity on the top of the register stack. A is copied into H, and then A is
filled with zeros if A was positive, or ones if A was negative; the register pointer is
incremented to give the result in BA.
CIE (000332). Convert Integer to Extended. The signed integer in A is converted to
an extended floating-point quantity. A is deleted, and the four-word result is pushed
onto the stack.
CIF (000331). Convert Integer to Floating. The signed integer in A is converted to a
floating-point quantity. A is deleted, and the two-word result is pushed onto the stack.
CIQ (000266). Convert Integer to Quad. The single-word integer in A is extended to a
quadrupleword quantity, filling the most significant three words with zeros if A was
positive or ones if A was negative. A is deleted, and the quadrupleword result is
pushed onto the stack.
CLQ (000267). Convert Logical to Quad. The single-word logical quantity in A is
extended to a quadrupleword quantity, filling the most significant three words with
zeros. A is deleted, and the quadrupleword result is pushed onto the stack.
CMBX (000422). Compare Bytes Extended. This instruction compares one area of
extended memory with another, a byte at a time, until the bytes are not equal or until a
specified number of comparisons have been made. This instruction expects A to
contain a byte count, CB to contain a 32-bit source byte address, and ED to contain a
32-bit destination byte address. The instruction fetches the contents of the source and
destination addresses, compares them, increments the addresses by 1, and
decrements the byte count in A until either A = 0 or a noncomparison is reached. If
termination is due to a noncomparison, either CCG indicates that the byte at ED is
greater than the byte at CB, or CCL indicates that the byte at ED is less than the byte
at CB; A indicates the count of bytes left to compare. If termination is due to the count
running out, CCE indicates that all bytes compared exactly; ED and CB point to the
bytes after the last ones compared, and A is 0.
CMPI (001---). Compare A With Immediate Operand. The Condition Code is set as a
result of the 16-bit integer comparison of A and the immediate operand. A is then
deleted from the stack. Examples of the use of immediate operands are shown in
Figure 11-3 on page 11-4.
COMB (1262--). Compare Bytes. This instruction compares one area of memory with
another, a byte at a time, until the bytes are not equal or until a specified number of
comparisons have been made. It expects A to contain a byte count, B to contain a