Page 1 of 1

ZX80 Blank REM statements

Posted: Sun Mar 09, 2025 3:36 am
by stroebeljc
I'm sure this has been brought up here somewhere in the past, but my search isn't finding the topic.
Has anyone seen the behavior below on the ZX80?

Code: Select all

10 REM THIS IS A TEST
11 REM
12 REM
13 REM
14 REM
20 PRINT "NEW"
30 PRINT "TEST"
Run this program. (Note that lines 11-14 do not have anything after the REM)
Now delete any single line from 11-14 and run again.
Delete another single line from this group and run.

If the number of empty REM lines is odd, line 20 is skipped.
If the REM line immediately preceding line 20 contains any character other than a space, 20 is executed.

Since I haven't done much playing on a ZX80, this is a new one to me.

Re: ZX80 Blank REM statements

Posted: Sun Mar 09, 2025 9:06 am
by 1024MAK
You’re not going mad, I can recreate the problem on an emulator...

It’s mentioned here and more details are here (scroll up a little).

Mark

Re: ZX80 Blank REM statements

Posted: Sun Mar 09, 2025 7:44 pm
by stroebeljc
Thanks for the links, Mark!

Re: ZX80 Blank REM statements

Posted: Mon Mar 10, 2025 10:29 am
by Paul
It's one of the errors corrected in the ZX80PAND version of the ROM

Re: ZX80 Blank REM statements

Posted: Mon Mar 10, 2025 12:02 pm
by Moggy
Paul wrote: Mon Mar 10, 2025 10:29 am It's one of the errors corrected in the ZX80PAND version of the ROM
As it has never cropped up in my use of the ZX80 spand I wasn't aware of that Paul thanks for the information, any other improvements added?