Re: PET Kernal 'load' routine & CC65 question

From: groepaz_at_gmx.net
Date: Wed, 14 Oct 2020 15:08:48 +0200
Message-ID: <2489438.fDdHjke4Dd_at_rakete>
Am Mittwoch, 14. Oktober 2020, 14:52:43 CEST schrieb vtgearhead:
> André Fachat wrote
> 
> > Am 14. Oktober 2020 02:11:40 schrieb vtgearhead &lt;
> > 
> > snhirsch_at_
> > 
> > &gt;:
> >> 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.
> 
> Ah - thanks for the clarification, Andre'!  This had been driving me nuts.
> I'll implement Plan B and implement the load by leveraging cbm_read().

I'd suggest to implement a small assembly routine for the PET that is 
compatible to the FFD5 LOAD, and submit that to cc65. shouldn't be too hard.


-- 

http://hitmen.eu                 http://ar.pokefinder.org
http://vice-emu.sourceforge.net  http://magicdisk.untergrund.net

Nur wer gegen den Strom schwimmt, kommt zur Quelle.
Received on 2020-10-14 16:01:17

Archive generated by hypermail 2.3.0.