🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.folklore.computers
Article #210973

Re: Very old MS Basic listing to ASCII?

#210973
From: Eric Fischer
Date: Fri, 27 Jul 2001 04:20
23 lines
1638 bytes
Andrew Carol  <aaca...@coastside.net> wrote:

> Does anyone recall the format of a tokenised saved MSDOS BASIC app?
> 
> I'm hoping it's as simple as reading two bytes for the line number,
> print the line as ASCII (expanding high bit bytes by token lookup) and
> looping until done.

Applesoft BASIC, at least, puts a little more in the file than that.
Each line is represented in the file by:

  *  two bytes giving a pointer to the address in memory (not the
     offset in the file) of the next line
  *  two bytes of line number
  *  the text of the line, null-terminated, with values greater
     than 127 representing tokenized keywords

> Does anybody have a table of bytes->tokens?

Unfortunately the GWBASIC manual I have doesn't have a list of them.
I can give you the Applesoft table, if you think it would help any.

eric
Technical Details
Message-ID: <9jqq5j$jh9$1@bob.news.rcn.net>
Path: mbox-mo1.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!feed1.news.rcn.net!rcn!not-for-mail
References: <260720011422219865%aacaroll@coastside.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!feed1.news.rcn.net!rcn!not-for-mail
From: Eric Fischer <e...@pobox.com>
Newsgroups: alt.folklore.computers
Subject: Re: Very old MS Basic listing to ASCII?
Date: 27 Jul 2001 04:20:03 GMT
Lines: 23
Message-ID: <9jqq5j$jh9$1@bob.news.rcn.net>
References: <260720011422219865%aacaroll@coastside.net>
X-Trace: UmFuZG9tSVbTbS4ByLJtwpeiMRD6R4S+Ti5KSvVDTAdCKgCpPII7b/KjzVBY7xYM
X-Complaints-To: ab...@rcn.com
NNTP-Posting-Date: 27 Jul 2001 04:20:03 GMT
X-Newsreader: trn 4.0-test72 (19 April 1999)
Originator: e...@enteract.com (Eric Fischer)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit