🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.folklore.computers
Article #895

Commodore PET BASIC (was: BBC micro)

#895
From: SL... Roger Ivie
Date: Mon, 15 Jan 1990 01:22
27 lines
1863 bytes
In article <wZfVc0200...@andrew.cmu.edu>, sa...@andrew.cmu.edu (Sudheer Apte) writes:
> The BASIC not only allowed any characters inside comments, but added
> its own control codes to the basic screen driver routines (the BASIC
> was resident in a ROM and loaded up at boot time along with the OS,
> so the machine was always in BASIC expr-eval mode), making it possible
> to save an ascii file full of control characters and simply EXEC'ing
> it from BASIC... What we did was: wrote a nice long program to do
> graphics on the screen, and exit with a taunt to ``try reading the
> code to discover how this is done!''. Here's the program:

I used to have fun poking a Commodore PET basic program so that the
only lines that LISTed were ones that were not the target of a GOTO.
These had to be contained in the linked list because the interpreter had
to be able to search for them; but sequentially executed statements could
be left out of the list because it just kept going and didn't search for
the next line.

Unfortunately, I soon discovered that you couldn't SAVE a program this way.
When you LOADed it back, the links were restored. :(

===============================================================================
Roger Ivie

35 S 300 W
Logan, Ut.  84321
(801) 752-8633
===============================================================================
Technical Details
Message-ID: <16669@cc.usu.edu>
Path: mbox-mo1.pugleaf.net!gmdzi!unido!mcsun!uunet!husc6!rutgers!cs.utexas.edu!hellgate.utah.edu!cc.utah.edu!cc.usu.edu!slsw2
References: <wZfVc0200WB68G8m1a@andrew.cmu.edu>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!gmdzi!unido!mcsun!uunet!husc6!rutgers!cs.utexas.edu!hellgate.utah.edu!cc.utah.edu!cc.usu.edu!slsw2
From: SL...@cc.usu.edu (Roger Ivie)
Newsgroups: alt.folklore.computers
Subject: Commodore PET BASIC (was: BBC micro)
Message-ID: <16669@cc.usu.edu>
Date: 15 Jan 90 01:22:09 GMT
References: <wZfVc0200WB68G8m1a@andrew.cmu.edu>
Lines: 27
Posted: Mon Jan 15 02:22:09 1990
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit