It was thus said that the Great Michael B. Brutman once stated:
On a related note, does anybody have a good method for doing a floating
point multiply in software? Before I steal an existing floating point
emulation lib, I'd like to see if I can cheat and just write enough code
to do the one multiply that I need.
I need to figure out how to do this:
float elapsed = ticks * 0.85;
using purely integer operations.
mov ax,ticks
mov dx,55706
mul dx
The result is now in DX (55,706 is 85% of 65,536).
-spc