|
Technische Informatik
|
|
|
Multiplication (sign-magnitude)
|
Kontakt
|
|
- Enter the operands in sign-magnitude form. The
multiplier will be loaded into Q(0:7) and the multiplicand into
M(0:7). In the beginning register A(0:7) (accumulator) is equal zero.
The most-significant bits of Q and M represent the signs of
the operands.
- The multiplication process is controlled by Q(7). If
Q(7) = 1 then add M to A and right-shift A.Q, else right-shift A.Q only.
- When count =7, the product occupies bits 1 through 14 of the
register pair A.Q, i.e., A(1:7)Q(0:6). The sign bit is then evaluated and
placed into A(0). At the same time, 0 is written into Q(7).
back
© asfour@ira.uka.de
|