27.07.2013 Views

U UNIVAC 1218 - Bitsavers

U UNIVAC 1218 - Bitsavers

U UNIVAC 1218 - Bitsavers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

24<br />

25<br />

26<br />

MULTIPLY AL (MULALB) (AL) (Y) --.-. A<br />

Execution time: 26-49 microseconds<br />

y = up or uSR<br />

Multiply (AL) by (y) leaving the double<br />

length product in A. If the factors are<br />

considered integers, the product is an<br />

integer in A. The multiplication process<br />

is executed on the absolute value of the<br />

factors, then corrected for algebraic sign.<br />

MULTIPLY AL (MULALB) (AL) (Y) ------ A<br />

Execution time: 30-53 microseconds<br />

y = up or uSB<br />

Multiply (ALJ by (y + B) leaving the double<br />

length product in A. If the factors are<br />

considered integers, the product is an integer<br />

in A. The multiplication process is executed<br />

on the absolute value of the factors, then<br />

corrected for algebraic sign.<br />

DIVIDE A (DIVA) (A) -7- (Y)---'AL;REMAINDER----. AU<br />

Execution time: 48 microseconds<br />

y = up or uSR<br />

Divide (A) by (y) leaving the quotient in AL<br />

and the remainder in AU. The remainder always<br />

bears the sign of the dividend, Ai, with the<br />

results satisfying the relationship: dividend<br />

= quotient x divisor + remainder. Set overflow<br />

designator if overflow occurs*. If overflow<br />

occurs, (AL) becomes O.<br />

Examples of the four possible sign combinations<br />

of the dividend/divisor and the results:<br />

Dividend Divisor Quotient.<br />

+5 +4 +1<br />

+5 -4 -1<br />

-5 +4 -1<br />

-5 -4 +1<br />

Remainder<br />

* The overflow designator is cleared only by the execution of instruction skip<br />

on overflow (f, m = 50 52) or instruction skip on no overflow (f t m = 50 53).<br />

I-B-15<br />

+1<br />

+1<br />

-1<br />

-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!