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

TNS Instruction Set Definition
HP NonStop S-Series Server Description Manual520331-003
C-12
Instruction Definitions
0 0 0 0 2 2 SETE set ENV register
ENV.RP := A.<13:15>;
ENV.<0:7> := ENV.<0:7> & A.<0:7>;
if ENV.DS <> A.DS then
'IFAIL(TRAP_INVALID_OPERAND)';
if (ENV.<0:7> & ~A.<0:7>) <> 0 then
IFAIL(TRAP_INVALID_OPERAND);
'validate ENV.NZ';
case A.<11:12> of
{cc(1); ! N,Z = (0,0)
cc(0); ! N,Z = (0,1)
cc(-1); ! N,Z = (1,0)
'IFAIL'; ! N,Z = (1,1);
};
ENV.V := A.<10>;
K := A.<9>;
ENV.T := A.<8>;
if ENV.T & ENV.V then
'overflow';
if ENV.RP <> predicted RP then
'choose Nonacclerated Mode'
0 0 0 0 2 3 SETP set P register
TNSP := A ;
RP:=RP-1
if 'P is register-exact point' & RP = 7 then
'choose Acclerated Mode'
else
'choose Nonaccelerated Mode';
0 0 0 0 2 4 RDE read ENV register
RP:=RP+1;
A := old ENV
[ Note : ENV holds a local copy of PRIV and DS ]
0 0 0 0 2 5 RDP read P register
RP:=RP+1; A:=P;
0 0 0 0 2 6 RSW read switches
RP:=RP+1; cc(A:=0)
0 0 0 0 2 7 C SSW set switches
sysstack[%122]:=A;
RP:=RP-1
[ See Note 1: CALLABLE PRIV ;]
0 0 0 0 3 0 BFI branch forward indirect
TNSP:=TNSP+A+code[TNSP+A];
RP:=RP-1
0 0 0 0 3 1 DTST double test
cc(BA)
Table C-2. Instruction Definitions (page 2 of 38)