Simple 16 bit Math Library?
John Couture
Posts: 370
Does anyone know of a SIMPLE 16·bit Math library for the SX processor?· Something like:
- ConvertTo16 (convert an ASCII number to a binary 16 bit number)
- Add, Subtract, Multiply and Divide 16 bit numbers
- ConvertToString (convert 16bit binary to ASCII string)
Or do you all just recommend using a Floating Point Coprocessor·hardware approach
(i.e. uM-FPU from www.micromegacorp.com)
My biggest challenge is just going to/from ASCII and 16 bit binary.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John J. Couture
San Diego Miramar College
- ConvertTo16 (convert an ASCII number to a binary 16 bit number)
- Add, Subtract, Multiply and Divide 16 bit numbers
- ConvertToString (convert 16bit binary to ASCII string)
Or do you all just recommend using a Floating Point Coprocessor·hardware approach
(i.e. uM-FPU from www.micromegacorp.com)
My biggest challenge is just going to/from ASCII and 16 bit binary.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John J. Couture
San Diego Miramar College
Comments
Lots of 8/16/24/32 bit math samples.
regards peter
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"I reject your reality, and substitute my own." Mythbusters
dan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John J. Couture
San Diego Miramar College