FAQ  •  Register  •  Login

SHIFT bug (*solved*)

<<

einar

Posts: 84

Joined: Sun Apr 08, 2012 9:33 pm

Post Tue Aug 25, 2015 2:27 pm

SHIFT bug (*solved*)

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.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sat Aug 29, 2015 6:36 pm

Re: SHIFT bug

Another bug due to the update after 1935.
Can you download ZX BASIC 1.4.0s1964 and test it, please? :roll:
<<

einar

Posts: 84

Joined: Sun Apr 08, 2012 9:33 pm

Post Fri Sep 04, 2015 6:49 pm

Re: SHIFT bug

It works now, thank you!

Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO