HI,
I have a problem using div32, I think it might be related to memory issue because the first time I use Div32, the division works, but the second time, the result is 65535, humm I think I have seen this number before
here is the code, thanks in advance
if counter > 126 then
dummy=(counter *10000)
test11= div32 506
dummy =0
dummy=(126 * 10000)
test22=div32 506 'this is always 65535....
test3=test11-test22
gauss= test3 / 25
gauss1= test3 // 25
lcdout $FE,1, "1:",dec test11," 2:", dec test22," 3:", dec test3
lcdout $FE,$C0, "C:", dec counter, "G:", dec dummy
Bookmarks