ZX80 Blank REM statements

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
Post Reply
stroebeljc
Posts: 114
Joined: Thu Apr 23, 2020 6:02 am
Location: Minneapolis, MN

ZX80 Blank REM statements

Post 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.
John
User avatar
1024MAK
Posts: 5526
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...
Contact:

Re: ZX80 Blank REM statements

Post 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
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Amp

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Spring approaching...
stroebeljc
Posts: 114
Joined: Thu Apr 23, 2020 6:02 am
Location: Minneapolis, MN

Re: ZX80 Blank REM statements

Post by stroebeljc »

Thanks for the links, Mark!
John
User avatar
Paul
Posts: 1602
Joined: Thu May 27, 2010 8:15 am
Location: Germanys west end

Re: ZX80 Blank REM statements

Post by Paul »

It's one of the errors corrected in the ZX80PAND version of the ROM
In theory, there is no difference between theory and practice. But, in practice, there is.
Moggy
Posts: 3493
Joined: Wed Jun 18, 2008 2:00 pm

Re: ZX80 Blank REM statements

Post 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?
???????????????????????????PIINKEY$?????RND????????????????????????????????????????????????????????PI????????
Post Reply