Re: [cc65] C64 fast-loader suggestion?

From: <silverdr1wfmh.org.pl>
Date: 2011-12-16 17:30:54
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?

> 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! ;-)

-- 
SD!----------------------------------------------------------------------
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 17:31:06 2011

This archive was generated by hypermail 2.1.8 : 2011-12-16 17:31:09 CET