I found this bug while handling big numbers on 8051
an addition with huge numbers in some conditions
doesn't give the expected result ...
I'm sorry i couldn't put out all the library code coz
the bug is visible only at execution time, but if you
have an available printf, you can use the lines 29 to 54.
command for compiling main.c :
> sdcc --model-large -c main.c -I ../../modules_8051 -I .
and the project :
> sdcc --model-large main.rel lcd.rel i2c.rel
wait.rel utils.rel --xram-loc 0x7000
my sdcc version :
28 (Jan 18 2005) (MINGW32)
so in main.c i simply add a value to a structure
member, and the result is false ( 451000000 + 12500
Log in to post a comment.