06-29-2014, 04:55 PM
Still more research:
The example above compiles fine and it even compiles fine with a = peek(b) bxor 255.
The example below does not compile under -O3.
dim a as ubyte
dim bPtr as uinteger
for bPtr = 32768 to 32768 + 25
a = peek(bPtr) bxor 255
poke bPtr, a
next bPtr
If you change bxor to 25 or any other number but 255 and 255 does translate to cpl in assembly then it does compile.
Now I do not have to share the source.
It is up to you now Boriel.
The example above compiles fine and it even compiles fine with a = peek(b) bxor 255.
The example below does not compile under -O3.
dim a as ubyte
dim bPtr as uinteger
for bPtr = 32768 to 32768 + 25
a = peek(bPtr) bxor 255
poke bPtr, a
next bPtr
If you change bxor to 25 or any other number but 255 and 255 does translate to cpl in assembly then it does compile.
Now I do not have to share the source.
It is up to you now Boriel.