Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SHIFT bug (*solved*)
#1
Try this:
Code:
DIM a AS UBYTE = 3
DIM b AS UBYTE = 2

PRINT a << (3-b)
Attempting to compile this program using latest ZX BASIC version 1.4.0s1953 will produce this error:

Code:
Error: Undefined label '__LABEL0'
It will only compile correctly if you disable compiler optimizations using "-O 1".

Previous ZX BASIC version 1.4.0s1935 was able to compile this correctly at any optimization level.
Reply
#2
Another bug due to the update after 1935.
Can you download ZX BASIC 1.4.0s1964 and test it, please? :roll:
Reply
#3
It works now, thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)