Re: Pet basic-2 save different than C64?

From: Ethan Dicks <ethan.dicks_at_gmail.com>
Date: Mon, 6 Feb 2017 13:24:20 -0500
Message-ID: <CAALmim=ZGFXhhuayBA3y-d3uig5=W-yKe+TmWpTk0He5VbZfGg@mail.gmail.com>
On Mon, Feb 6, 2017 at 10:32 AM, Francesco Messineo
<francesco.messineo@gmail.com> wrote:
> Hi all,
> some more fun with the 3032 today...
> Today I was trying the same procedure with the PET, typed the basic
> loader in, saved it to a couple of tapes, so I don't have to type it
> anymore, loaded the machine language non relocatable program with it,
> then loaded the basic relocatable version....

The save and load routines in all PETs do work slightly differently
than the VIC-20 and C-64.  In operational terms, I always saved
anything that was not a plain-old BASIC program from TIM.  This
included ML fragments in the Cassette #2 buffer (at $033A) and stuff
in upper memory, and any BASIC-ML combo programs.  SAVE works when
it's _just_ the visible lines of BASIC.  Similarly, LOAD does not do
relocation, and LOAD "",1,1 doesn't do _exactly_ the same thing on a
PET as on a VIC-20 or C-64.

Short answer is if it's not BASIC, use TIM to save it.  LOAD will load
it back in to wherever it was saved from.  No need for the equivalent
of LOAD"*",8,1 on a PET.

-ethan

       Message was sent through the cbm-hackers mailing list
Received on 2017-02-06 19:00:02

Archive generated by hypermail 2.2.0.