neilsf / xc-basic3

A BASIC cross compiler for MOS 6502-based machines
MIT License
42 stars 5 forks source link

Invalid result for CINT() on first call #220

Closed sine707 closed 1 year ago

sine707 commented 1 year ago
test = 0.12345
print cint(test)
print cint(test)

results to

19532
0
neilsf commented 1 year ago

The fix is on the way... For the time being, adding this line at the top of your program will fix the issue: MEMSET 21, 37, 0