Shift Instructions - HP 3000 III Series Manual

Table of Contents

Advertisement

Machine Instructions and Stack Operations
Instruction Commentary 1.
Stack opcode: 22
Indicators: CCA, Overflow
Traps: STUN, ARITH
TEST
Test TOS
=
,
.
'
Alternate
Position
The Condition Code is set to pattern A according to
the
content
of the TOS word.
Stack opcode: 25
Ind ica tor s: CCA
Traps: STUN
XOR
Logical Exclusive-OR
~
o
0 0 0 1
1 0 1
1 0
.
Alternate
POSition
The top two
words
of
the
stack
are
combined
by
a
logical
exclus ive-OR.
The two word s are deleted and the resul t is pushed
onto the stack.
Stack opcode: 65
Ind ica tors: CCA on the new 'IDS
Traps: STUN
4-7. Shift Instructions
ASL
Arithmetic Shift Left
..
Shift
Count
The TOS is
shi~ted
left n bits, preserving
the
sign
bit.
The
value
of
n
(modulo 64)
is the number specified in the argument
field plus, if X is specified (bit 4), the content of
the
Index
Re gister .
Instruction Commentary 2.
Sub-opcode l: 00
I nd ica tors: CCA
Traps: STUN
4-10

Advertisement

Table of Contents
loading

Table of Contents