NonStop S-Series Server Description Manual (G06.24+)

TNS Instruction Set
HP NonStop S-Series Server Description Manual520331-003
11-39
Definitions of TNS Instructions
the first word of a two-word extended memory pointer. The index value in A is then
added to the extended memory pointer to address the location that is to receive the
byte being stored. For binary coding details, refer to Table B-3 on page B-3.
SCS (000444). Set Code Segment. Registers B and A are assumed to contain a
17-bit byte address within the current code segment. The doubleword BA is converted
from a 17-bit C-relative offset in the current code segment to the corresponding
extended relative address. This is done by inserting the appropriate segment number
into the upper 15 bits.
SDA (000363). Store Double via A. The doubleword in CB is stored into the effective
memory locations starting at the location pointed to by the address in A. C, B, and A
are then deleted. SDA accesses the current data segment only.
SDAS (000353). Store Double via A Into System. The doubleword in CB is stored into
the effective memory locations starting at the location pointed to by the address in A.
C, B, and A are then deleted. A refers to an address in the system data segment.
SDDX (000413). Store Doubleword Extended. The doubleword in registers D and C is
stored into memory starting at the location specified by the 32-bit even-byte address in
registers B and A. All four words are then deleted from the register stack.
SETE (000022). Set ENV With A. The least significant eight bits of the Environment
(ENV) register are replaced with the lower eight bits of the A register. The most
significant eight bits of the Environment register are logically ANDed with the upper
eight bits of the A register. An instruction-fail interrupt occurs if the new value of ENV
has the invalid Condition Code of “negative zero” (N=1, Z=1), or if the DS, CS, or LS
bits were altered. This instruction can only clear the PRIV bit of the Environment
register, and cannot set it. This instruction is nonprivileged.
SETL (000020). Set L With A. The contents of the L register, which points to the
current stack marker, are replaced with the contents of register A. A is then deleted
from the register stack.
SETP (000023). Set P With A. The contents of the Program Counter (P) are replaced
with the contents of the A Register. A is deleted from the stack, and control is
transferred to the new location indicated by P.
SETS (000021). Set S With A. The contents of the S register, which points to the top
word of the stack in memory, are replaced with the contents of register A. A is then
deleted from the stack. A stack overflow trap occurs if the result is greater than 32767.
SQAS (000446). Store Quadrupleword via A to SG. The quadrupleword in registers
EDCB is stored into the four memory locations starting at the location pointed to by the
address in A. The address in A refers to an address in the system data segment. All
five words are then deleted from the register stack.
SQX (000415). Store Quadrupleword Extended. The quadrupleword in registers
FEDC is stored into memory (8 bytes) starting at the location specified by the 32-bit
even-byte address in registers B and A. All six words are then deleted from the
register stack.