Trinity-11 / FoenixIDE

Development and Debugging Suite for the C256 Foenix Family of Computers
GNU General Public License v3.0
48 stars 14 forks source link

Incorrect multipication results in BASIC #17

Closed dtremblay closed 3 years ago

dtremblay commented 3 years ago

In the IDE, this works:

z=1
z=-z
print z

returns -1.

If I use this,

z=1
z=z*-1
print z

returns 65535. The Foenix FMX correctly returns -1.

dtremblay commented 3 years ago

This is an issue with the IDE's math co-processor. The signed integers were not handled properly. This is now fixed in release-0.5.3.7.