HP 3000 III Series Manual page 196

Table of Contents

Advertisement

System Microcode
Table 5-4. Function Field Code
~finitions
(Continued)
---------------l----.----T.-------.------~-----·-·---~-------.----
I
I
Field
I
I
Label and Name
I
Cbde
I
Des cr iption
I
I
1
.
I
------.--------- --.-.----.-.- -------_·_-----_·_-_·_----_·_--_·_--------·-1
DVSB (Cont)
TBUS := RBUS - SBUS
I
UBU S (0 : 14)
: = TBU S (1: 15)
I
If
ALU
carry or F2=1 then:
I
1
BEGIN
I
I
RREG(0:14)
:= UBUS(0:14)
RREG(15)
:= SPl(O)
SPl(0:14)
:= SPl(1:15)
SPl(15)
:= 1
F2 : = TBU S ( 0)
END
else:
BEGIN
RREG(0:14)
:= RREG(1:15)
RREG(15)
:= SPl(O)
S PI (0 : 14)
: = SP 1 ( I: 15)
S PI (15)
:
=
0
f
2 :
=
RRE G( 0 )
END
For example, after 17 executions of
the above algorithm, a 16-bit quo-
tient is contained in the SP I-Reg-
ister and the remainder times 2 is
conta ined in the R-Bus Registe r.
When the remainder is unloaded from
the R-Bus Register,
it is shifted
right one place (divided by 2) •
INC
11101
(Incremented Add)
INca
11001
(Incremented Add-
Enab Ie Ove r flow)
The R-Bus Register content is added
to the S-Bus Register content plus
1.
The result is placed on the T-
Bus.
The R-Bus Register content is added
to the S-Bus Registe r content plus
1, the resul t placed on the T-Bus,
and the carry and overflow is modi-
fied in the Status l€gister.
The
condition code is set to CCA on the
T-Bus
Da
ta.
--------------~-- -----~
----
5-16

Advertisement

Table of Contents
loading

Table of Contents