Open alvoskov opened 3 days ago
Thank you for the report!
I saw your previous issue about the missing math functions, the only reason
I'm not tackling that is that I don't know enough about implementing those
in order to do anything.
Anyways, in this case it looks like the issue is actually with some part of
the compilation process (my guess is either optimizer or parser) somehow
obliterating the top half of the const variable OUT1
, as evidenced by
your screenshot, the calculations are all done correctly, but OUT1 had the
upper-half of it mistakenly replaced with all 1s and actual output from the
compiler in terms of assembly supports this.
I still need to get going on my #embed work (I'm going to move the
The next XXTEA implementation gives incorrect result when compiled by OCC 6.0.73. Compilation in MinGW (both 32-bit and 64-bit), Open Watcom and Pelles C gives correct results.
The program output in OCC:
The source code: