Hi Ultrasniper,
I emailed some files that should get you a square-root routine for the S08.
The square-root routine, "SQUAROOT.SA5", was written for the HC05 many years ago. I never optimized it for the S08, because I didn't need it anymore.
It uses macros from my math library, so I included the original HC05 version "MATH.SA5", and my updated S08 version "Math.sa8". You should be able to get a working square-root from there.
You may have to change the file extensions (Codewarrior may insist on '.asm') and update the syntax (Motorola used to modify the assembler syntax every few years) to get is to assemble. It was originally written for Motorola's PASM assembler.
Good Luck.
Message Edited by rocco on 2009-12-29 12:40 PM