x86 floating point modulus
What is the general algorithm to calculate a floating point modulus on the FPU?
I tried this
loop:
fprem1();
test(c2) --> blah blah, more involed, pseudo code :-)
jnz loop;
fstp(st0); --> crash, did fprem1() knock it off??
but for whatever reason when I try to pop off the stack it crashes, could be a bug in my assembler or it could be I am not doing something right.
Any easier way to do it?
Peace
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement