Re: [cc65] Common macros for dirent.d_type

From: Oliver Schmidt <ol.sc1web.de>
Date: 2012-07-06 11:45:45
Hi,

I'd like to learn some more...

I think I understood that LOAD is the only Kernal call doing a "mass
transfer" of data from disk - in contrast to the "other" single byte
calls - correct?

And according to the discussion here LOAD is only applicable to PRG
files - correct?

I believe that "usually" a PRG file starts with A two btye load addr.
I seem to remember that we talked about this here already. I sort of
remember that those first two bytes can't be read by LOAD so one would
need to "read" them in the "usual" way and then LOAD the rest. Or one
would need to add two dummy bytes to the file in order to be able to
LOAD the actual content. As far as I understand all this has to be
taken care of by the programmer - the cc65 C library doesn't do so.

So it seems to me that in order to actually benefit from PRG files so
much has to be done manually that setting the cc65 filetype to 'p'
seems only a very minor additional step.

But if a programmer doesn't want to use LOAD but probably even stay
with the POSIX stuff then he won't benefit from PRG and thus SEQ seems
the better default - keeping CBM-specific stuff from the source code.

Maybe I'm missing an important point but from the arguments I
understand so far the decision seem easy to me.

Regards,
Oliver
----------------------------------------------------------------------
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 Jul 6 11:46:20 2012

This archive was generated by hypermail 2.1.8 : 2012-07-06 11:46:24 CEST