HP 3000 III Series Manual page 139

Table of Contents

Advertisement

..
Alternatf>
Position
Machine Instructions and Stack Operations
DIV
Divide
-
o
0 0 0 0 1 0 0 1
1
..
Alternate
Position
The integer in the second word of the stack is divided by the in-
teger on the TOS.
The two words are then
deleted.
The
second
word is replaced by the quotient, and the top word is replaced by
the remainder.
Stack opcode: 23
Indicators: CCA on quotient, Overflow
Traps: STUN, ARITH
DUP
Duplica te A
-
0 0 0 0 1 0 0 1 0 1
..
Alternate
POSition
The top word of the stack is duplicated by pushing a copy of
the
TOS onto the stack.
Stack opcode: 45
Ind ica tors: CCA
Traps: STUN, STOV
INCA
Increment A
-
0 0 0 0 0 1 1 0 1
1
..
Alternate
POSition
The TOS is incremented by one in integer form.
Stack opcode: 33
Indicators:
CCA, Carry, Overflow
Traps: STUN, ARITH
MPY
Multiply
-
o
0 0 0 0 1 0 0 1
0
,
The top two words of the stack are multiplied in integer form.The
two words are deleted and the least significant word of the doub-
le length product is pushed onto the stack.
If the high order 17
bi ts of the double length pr od uct
(includ ing the sign b it of the
second word) are not all zeros or all ones, Overflow is set.
4-9

Advertisement

Table of Contents
loading

Table of Contents