Package smsqmulator
Class Arith
java.lang.Object
smsqmulator.Arith
Class to speed up some SMSQ/E floating point ari ops.
Some notes:
On the d1/d2 operations, d1 = mantissa, d2 - exponent.
tos=top of stack, pointed to by (a1)
nos=next on stack, pointed to by 6(a1)
SMSQ/E FPs have a 12 bit exponent, and a 31 bit mantissa + sign bit (bit 31 of the long word is the sign bit).
IEEE doubles (64 bits) "only" have an 11 bit exponent, rest is mantissa + sign bit (bit 63), so there might be some
FPs that SMSQ/E can handle that IEEE can't : they are handed back to SMSQ/E.
*
THIS CLASS IS NOT THREAD SAFE!!!!!!!!!!!!!!!!!
Do not use one same object of this class by different threads concurrently.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
handleOp
(MC68000Cpu cpu, int whatOp) Handles the f.p.
-
Constructor Details
-
Arith
public Arith()
-
-
Method Details
-
handleOp
Handles the f.p. arithmetic operation.- Parameters:
cpu
- the cpu to handle the op for.whatOp
- what operation to handle.
-