[C.CC USERS] bug?

Adam Sampson ats at offog.org
Wed Aug 11 15:20:24 BST 2010


"Patrick J.G.C. Weemeeuw" <pweemeeuw at telenet.be> writes:

> ffff000000000600
> I would have expected 0000000000000600 (1536), or did I make a mistake
> somewhere?

Looks like you've found a bug -- I would also expect 0x600 as the
result, and running your code (slightly modified) on KRoC does produce
0000000000000600 correctly.  There's probably something slightly wonky
in the libtvm implementations of the long maths instructions; they've
not been tested very thoroughly on 16-bit platforms like the AVR.

-- 
Adam Sampson <ats at offog.org>                         <http://offog.org/>




More information about the users mailing list