Message Edited by hotdog on 04-13-200602:25 AM
Message Edited by hotdog on 04-14-200601:25 AM
Message Edited by hotdog on 04-14-200601:26 AM
Hello Sir,
I've tried to use the function exp and log but so far the simulator gives a message "Error: Attempt to push or pop with SP out of allowed range". I've changed the SP initial value, then there is an error in the calculation. Also defined _MSL_FLOATING_POINT 1 but not worked yet. Any help would be appreciated. Thanks.
Message Edited by rocco on 04-13-200603:30 PM
Can You send me the square root routine? Thanks in advance info@vn-amps.com.ar
Hello
Did you specify you intend to use math library when you created the project?
Did you create your project using the project wizard?
Default settings for HC08 doe not include floating point arithmetic support as this generate a big code overhead.
I would recommend you to create a project from the wizard and specify in the C/C++ Panel (the last panel when you create a project) that you want to use floating point arithmetic.
Then add your source file to the project and it should be working.
CrasyCat