NonStop S-Series Server Description Manual (G06.24+)
TNS Instruction Set
HP NonStop S-Series Server Description Manual—520331-003
11-14
Definitions of TNS Instructions
the BPT instruction is executed, a Debug trap occurs when the BPT instruction is 
reached. When Debug has completed processing the breakpoint event, it can resume 
process execution at that interrupted point. Debug can leave the BPT instruction in 
place or it can have replaced it with the original contents of that location.  In the former 
case, execution resumes in a special, temporary mode that fetches the missing 
instruction word from the system’s breakpoint table rather than from C[P].
BSUB (-174--). Branch to Subprocedure.  S is incremented by 1 and the return 
address (P) is saved in that location. Then a direct or indirect unconditional branch is 
taken (depending on the “i” field of the instruction). For binary coding details, see 
Table B-4 on page B-4.
BTST (000007). Byte Test A. The Condition Code is set on the value of the test byte 
in bits 8:15 of A; CCL indicates ASCII numeric, CCE indicates ASCII alphabetic, and 
CCG indicates special ASCII character. A is deleted after the test.
BUN (-104--). Branch Unconditionally. A direct or indirect unconditional branch is 
taken (depending on the “i” field of the instruction). For binary coding details, refer to 
Table B-4 on page B-4.
CAQ (000262). Convert ASCII to Quad. A string of 7-bit ASCII-coded digits in 
memory, defined by a starting byte address in B and a byte count in A, is converted to 
a binary-coded quadrupleword integer. The quadrupleword result is pushed onto the 
stack.  If a nondigit ASCII code is encountered, only the preceding digits are converted 
and CCG indicates that only part of the string was converted; CCE indicates that the 
entire string was converted. Overflow is set if the result is greater than 2
63
–1 or less 
than –2
63
. If overflow is set, the value in DCBA is undefined.
CAQV (000261). Convert ASCII to Quad With Initial Value. A string of ASCII-coded 
digits in memory, defined by a starting byte address in F and a byte count in E, is 
converted to a binary-coded quadrupleword integer in DCBA.  DCBA contains an initial 
value (greater than or equal to zero) that is multiplied by 10, providing a high-order 
value to which the converted value is added to produce the result in DCBA. If a 
nondigit ASCII code is encountered, only the preceding digits are converted and CCG 
indicates that only part of the string was converted; CCE indicates that the entire string 
was converted. Overflow is set if the result is greater than 2
63
–1 or less than–2
63
. If 
overflow is set, the value in DCBA is undefined.
CCE (000016). Set Condition Code to Equal. A Condition Code of CCE (N = 0 and 
Z = 1) is set into the ENV register.
CCG (000017).  Set Condition Code to Greater. A Condition Code of CCG (N = 0 and 
Z = 0) is set into the ENV register.
CCL (000015). Set Condition Code to Less. A Condition Code of CCL (N = 1 and 
Z = 0) is set into the ENV register.
CDE (000334). Convert Double to Extended.  The doubleword signed integer in BA is 
converted to an extended floating-point quantity. BA is deleted, and the four-word 
result is pushed onto the stack.










