Digital Research
This commit is contained in:
2020-11-06 18:50:37 +01:00
parent 621ed8ccaf
commit 31738079c4
8481 changed files with 1888323 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
ttl ieee format equivalent power function(iefpwr)
***************************************
* (c) copyright 1981 by motorola inc. *
***************************************
*************************************************
* iefpwr *
* ieee format equivalent power function *
* *
* input: d6 - ieee format exponent value *
* d7 - ieee format argument value *
* *
* output: d7 - result of the value taken to *
* the power specified *
* *
* all registers are transparent *
* *
* maximum stack used: 52 bytes *
* *
* condition codes: *
* z - set if result is zero *
* n - cleared *
* v - set if result is nan (not-a-number)*
* (input argument negative or nan) *
* c - undefined *
* x - undefined *
* *
* notes: *
* 1) see the mc68344 user's guide for details*
* concerning limitations on normalized *
* argument ranges. *
* 2) a negative base value, or zero to a *
* negative power is invalid and returns *
* a nan with the "v" bit set. *
* 3) spot checks show at least six digit *
* precision for 80 percent of the cases. *
* *
*************************************************
page
iefpwr idnt 1,1 ieee format equivalent power function
opt pcs
section 9
xdef iefpwr entry point
xref ieflog ieee log function
xref iefmul ieee multiply routine
xref iefexp ieee exponent function
xref ffpcpyrt copyright stub
*****************
* power entry *
*****************
iefpwr bsr ieflog find low of base value
bsr iefmul multiply by the power
bra iefexp finish with exponent result