Hello
 
I'm building a project using a 87c52 mcu and the SDCC compiler.
 
I have a need to solve this equation:
 
result= 54.2535 * ((float) (I_HI) + (float) (F_HI) / 65536);
 
I have declared the variables as:
 
float result;
unsigned char I_HI;
unsigned char F_HI;
 
I have compiled a program in MS C++ to solve this equation and it works fine, but using SDCC it doesn't. I don't know if the problem lies with the mcu, the code , SDCC or all of the above
 
Anybody has any advice I'll appreciate it
 
Thanks
Jim Peterson