NonStop S-Series Server Description Manual (G06.27+)
TNS Instruction Set
HP NonStop S-Series Server Description Manual—520331-004
11-4
Immediate Operand and Shift Instructions
Immediate Operand and Shift Instructions
Figure 11-3 illustrates the general instruction word format for instructions that use
immediate operands. Immediate operand instructions operate on stack registers.
The first example shows how an 8-bit immediate value is extended to a 16-bit value for
comparison purposes. The second example shows the result of a load-left operation;
the sign is extended into the right eight bits.
Figure 11-3. Examples of Immediate Operand Instructions
710130
Instruction Format
Immediate operand
Two's complement integer
Range is –256 : +255
41
Sign Bit
Example 1
0000 0 10 111111 110
CMPI –2 (compare immediate –2)
Sign bit is
extended
through <0:7>
1111 1 11 111111 110
(–2)
Example 2
0000 1 10 111111 110
LDLI –2 (load left immediate –2)
Sign bit is extended
through A.<8:15>
1111 1 11 011111 111
(–257)
Is treated as
Value loaded
into A
A:
VST321.vsd