Re: A82: Scientific functions in ASM


[Prev][Next][Index][Thread]

Re: A82: Scientific functions in ASM



>I was wondering how to use scientific functions in ASM, such as sin, cos,
tan...

I don't know if there is a way to use the internal scientific functions.  One
thing to remember about them:  they are slow!  Any games you see that use
them (whether on the PC or calculator) use look-up tables, generated when the
program starts or beforehand.  If you want to use them, compute all the
angles you need and put them into a table hardcoded into your program.  That
would be the fastest and easiest way, if you can spare the memory.

Hope this helps!


David Phillips