Files
Sepp J Morris 31738079c4 Upload
Digital Research
2020-11-06 18:50:37 +01:00

60 lines
2.6 KiB
ArmAsm
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

ttl ieee format equivalent integer to float (iefifp)
************************************
* (c) copyright 1981 motorla inc. *
************************************
***********************************************************
* iefifp - ieee format equivalent integer to float *
* *
* input: d7 = fixed point integer (2's complement) *
* output: d7 = ieee format floating point equivalent *
* *
* condition codes: *
* n - set if result is negative *
* z - set if result is zero *
* v - cleared (not a nan) *
* c - undefined *
* x - undefined *
* *
* registers are transparent *
* *
* maximum stack used: 28 bytes *
* *
* notes: *
* 1) since a longword binary value contains 31 bits of *
* precision which is more than the effective 24 bits *
* available with the ieee single-precision format, *
* integers of greater than 24 bit magnitude will be *
* rounded and imprecise. *
* *
***********************************************************
page
xdef iefifp external name
xref ffpifp fast floating point integer convert
xref ieftieee convert ffp to ieee and return
xref ffpcpyrt copyright notice
iefifp idnt 1,1 ieee format equivalent integer to float
section 9
iefifp movem.l d3-d7,-(sp) save work registers
bsr ffpifp convert to fast floating point format
bra ieftieee to ieee format, test, and return
end
pifp convert to fast floating point format
bra ieftieee o ieee format, test, and return
end
pifp convert to fast floating point format
bra ieftieee o ieee format, test, and return
end
pifp convert to fast floating point format
bra ieftieee o ieee format, test, and return
end
pifp convert to fast floating point format
bra ieftieee