Re: PET Kernal 'load' routine & CC65 question

From: André Fachat <afachat_at_gmx.de>
Date: Wed, 14 Oct 2020 05:21:23 +0200
Message-ID: <17525206b38.27ff.b4d1f2b66006003a6acd9b1a7b71c3b1_at_gmx.de>
Am 14. Oktober 2020 02:11:40 schrieb vtgearhead <snhirsch_at_gmail.com>:

> I'm working on adding overlay support to a CC65 application (CBM Commander).
> After a lot of hair pulling, I have the configuration setup and can build
> main program and overlay code.  However, there is some confusion about use
> of 'cbm_load()' on a PET.  The CC65 sources fail to import the Kernal LOAD
> entry point ($FFD5) and the way it's being excluded makes me wonder if this
> is deliberate: All models but PET have it available.
>
> Since the entry point is there,

No it isn't. At least not what you'd expect.

Follow the source, you'll see that it calls BASIC to actually parse the
parameters.

Full separation of BASIC and kernal has only been achieved in the VIC20 and
later.

André

> I rebuilt the CC65 runtime so it can make
> the call.  Register setup looks correct in the library, but I'm having no
> luck getting it to work.  I'm telling it to use device #8, which is a 4040
> disk drive. When I invoke the load I see a prompt on screen: 'press play on
> tape #10'.  Where is the breakage?  Is LOAD not a usable routine on a PET
> (SuperPET)?  Is cc65 runtime broken?  Am I misunderstanding something?  Any
> input would be appreciated - even guesswork at this point.
>
>
>
> --
> Sent from: http://cbm-hackers.2304266.n4.nabble.com/
Received on 2020-10-14 06:00:03

Archive generated by hypermail 2.3.0.