i have the followin program float a; long int c; float b;
now i haave an expression a = b- c*0.05
however when i run this expression in simulator the values are correct...however in the machine it gives me some other garbage value...
realtime values are c = 102929 b= 457461
expected value of a = 452314.6 found value of a = 1358481 wat cld be the problem..
and you're surprised that you get corrupt results?!
Fix the warnings!
You're not trying to do something like printf from an ISR, are you...?
That's always a bad thing - doubly so with floating-point on an 8051!!