Prog8 language and compiler topic

All aspects of programming on the Commander X16.
User avatar
desertfish
Posts: 1137
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Re: Prog8 language and compiler topic

Post by desertfish »

A problem was found in 11.3.1 that now fails to compile this:

word x
x &= $fff8

you can rewrite it as:
x = x & $fff8 as word

Or get the latest development compiler build from github, because the bug has been fixed there.
The problem only occurs when you're doing bitwise operations on a signed and unsigned value.
User avatar
desertfish
Posts: 1137
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Important Prog8 version 11.3.2 has been released

Post by desertfish »

Prog8 version 11.3.2 has been released: https://github.com/irmen/prog8/releases/tag/v11.3.2

Documentation: https://prog8.readthedocs.io/en/latest/

Contains 3 bug fixes:

- allow bitwise operation between different types as long as they're the same size. (11.3.1 broke this)
- various bugs around word-indexing combined with address-of: &buffer[2000]
- code gen error for certain goto array[index] where sometimes the first entry was taken regardless of index
Post Reply