Re: [cc65] C64 fast-loader suggestion?

From: Gábor Lénárt <lgb1lgb.hu>
Date: 2011-12-16 18:29:42
On Fri, Dec 16, 2011 at 05:30:54PM +0100, silverdr@wfmh.org.pl wrote:
> 
> On 2011-12-16, at 16:51, Gábor Lénárt wrote:
> 
> > Yes, I need other files, not my ones, where I can create a format I prefer.
> 
> Do they come as PRG files? Are they large?

PRG, but data files. I am unsure if one file is SEQ then it causes problem
for LOAD or not. I can't tell you the file sizes, but from about 1K
anything is possible which fits into the BASIC RAM (and my code is there
too). So I guess, I can't expect to load larger files than - let's say -
about 30K, which is large enough though that I want to be the fastest on a
stock C64 too (without fastloaders, custom hw etc) and to use the features
given by fast loaders and others too (that's why my "love" towards LOAD).

> > not sure about that: I need OPEN the file then BASIN two bytes. Do I need to
> > close the file before LOAD then?
> 
> The best way would be to simply try this, wouldn't it? I believe that LOAD calls OPEN itself, so unless you want to jump directly into KERNAL code rather than via jump table (which is what you don't want to do!) then you will get I/O error #2 aka FILE OPEN  ERROR if you don't CLOSE upfront. But I am telling that off head so checking is the best way.
> 
> > Won't be LOAD bothered (ZP locations
> > modified etc) that I did OPEN/BASIC/CLOSE/whatever before calling LOAD as I
> > want to use the same params given by SETNAM+SETLFS? And can I use the very
> > same parameters as for LOAD for OPEN too, so I don't need call SETNAM/SETLFS
> > again before LOAD (as far as I know, SETNAM/SETLFS only sets some ZP
> > locations btw, nothing more).
> 
> Again - I believe you can reuse the SETLFS/SETNAM but don't take my word. It's just a few lines. Check this and let us know too! ;-)

I will tell, actually the code supposed to be open source (it it works at
least).  The reason I am asking: I can test it of course.  However I am
always unsure in this project if custom fastloaders, IDEDOS, whatever does
not modify the situation in a way that it will cause problems, even if it
works on a "stock C64".  That's also a reason I don't want to jump into the
kernal code directly but using the "official" entry points only.  btw this
is also the reason I am so in using LOAD: there is greater chance it's
accelerated by certain fastloaders.

To be honest, I would reuse my code in my future projects, that's why I want
to do it well, so no need to dig in things again and again later for me ;)
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Dec 16 18:29:49 2011

This archive was generated by hypermail 2.1.8 : 2011-12-16 18:29:52 CET