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.

16. FLOATING POINT ARITHMETIC<br />

GENERAL DESCRIPTION: This subroutine performs add, subtract, multiply, and<br />

divide operations on floating point numbers. This is the same subroutine as<br />

FLOAT except for I/O parameters and the addition of FSUB.<br />

CALLING SEQUENCE:<br />

Address Mnemonic Operand<br />

L IRJP (FADD, FSUB, FMUL, OR FDIV)<br />

L+l 0 TAG 1<br />

L+2 0 TAG 2<br />

L+3 0 TAG 3<br />

L+4 (Return)<br />

TAG 1 and TAG 2 are the addresses of the least significant halves of operands 1<br />

and 2. TAG 3 is the address of the least significant half of the answer.<br />

For FADD and FMUL, the order of operands 1 and 2 is not important. For FSUB,<br />

operand 1 is the minuend and operand 2 the subtrahend. For FDIV, operand 1<br />

is the dividend and operand 2 the divisor. Register A also contains the<br />

answer upon return from the routine.<br />

RESTRICTIONS: The routine must be wholly contained with one bank. TAG I,<br />

TAG 2, and TAG 3 must be in the same bank as the return jump<br />

instruction.<br />

V-A-16

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

Saved successfully!

Ooh no, something went wrong!