PET Kernal 'load' routine & CC65 question

From: vtgearhead <snhirsch_at_gmail.com>
Date: Tue, 13 Oct 2020 19:08:00 -0500 (CDT)
Message-ID: <1602634080518-0.post_at_n4.nabble.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, 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 03:00:03

Archive generated by hypermail 2.3.0.