Re: BASIC listing..

From: silverdr_at_wfmh.org.pl
Date: Mon, 10 Jun 2013 19:36:00 +0200
Message-Id: <71E9DD7E-743B-4B30-BE79-E08A0A1B5E13@wfmh.org.pl>
On 2013-06-10, at 19:27, Spiro Trikaliotis wrote:

>> instead of pointing to 0x0000 _after_ the last EOL, why not point to
>> the last byte of the last line?
> [...]
> Even on the PET (which does *not* relink the BASIC program), this would
> not work, though. The interpreter intself does not care about the link
> bytes (as long as no GOTO/GOSUB is involved), thus, you need the link
> pointers HIGH BYTE==0 in order to end the program - or you MUST add an
> "END" statement.

Pointing to the last byte of the last line would do, wouldn't it? If the PRG wasn't relinked, that is.. Why wouldn't it work if the pointers were not rewritten by LINKPRG? HI byte of the last line's next line pointer would be \0.

-- 
SD!
       Message was sent through the cbm-hackers mailing list
Received on 2013-06-10 18:04:03

Archive generated by hypermail 2.2.0.