shadow1013
Junior Member
Posts: 228
Registered: 08-10 |
#ifdef __WATCOMC__
#pragma aux FixedMul = \
"imul ebx", \
"shrd eax,edx,16" \
parm [eax] [ebx] \
value [eax] \
modify exact [eax edx]
#pragma aux FixedDiv2 = \
"cdq", \
"shld edx,eax,16", \
"sal eax,16", \
"idiv ebx" \
parm [eax] [ebx] \
value [eax] \
modify exact [eax edx]
#endif
^ the above is what vanilla doom used to do fixed division.
EDIT: and multiplication. sorry about the long lateness. didnt realize how long ago this thread was
|