Monday, April 14, 2008

Floating point calculations

load
md 1000 1100
g 122a
md 1000 1100



I have type those lines sooo many times while trying to debug these undocumented floating point routines in ICC12. __tofp1, __tofp2, __fpmul, and __fromfp1 seem to like to mess/use space that you have not indicated.

Now I get to spend time coding my own floating point routines in assembly. If anyone knows some open source code that does floating point calculations for the hcs12 microcontroller, that would simplify my life. C is starting really good right now, let the compiler and assembler do the work.

My brain in shot, so time for circuit analysis!

No comments: