Re: Pointer at the start of a BASIC line: what good is it?

From: Ethan Dicks <ethan.dicks_at_gmail.com>
Date: Fri, 29 Oct 2021 19:18:18 -0400
Message-ID: <CAALmimkcquYOw9k9T+d7_pNZomfa+340qfwZCP-A4Aq94W6v5A_at_mail.gmail.com>
On Fri, Oct 29, 2021 at 6:32 PM Marc Rintsch <marc_at_rintsch.de> wrote:
> On 29.10.21 23:50, André Fachat wrote:
> > Doesn't BASIC recalculate the pointer when it loads the file? So it does
> > not matter what the link address is on disk.
> > Or for what these bytes were used when saved...
>
> Yes, the actual values in the saved file don't matter.  So if
> compatibility with the tokenised format is important one must
> recalculate those values.

I believe that's true for the VIC-20 and C-64 but not for the PET.
I.e., you can load a program with pointers from any base address into
a VIC-20 or C-64 and just "RUN", but the PET will load at the load
address and not recalculate (nor repoint).

-ethan
Received on 2021-10-30 02:00:04

Archive generated by hypermail 2.3.0.