[comp.sys.apple] System file load address

jerryk@pro-beagle.cts.com (Jerry Kindall) (03/19/89)

Murph Sewall writes:

>>Thanks for all the help folks.  The problem turned out to be that the 
>>file from the Executioner was created as a BIN file at A$1000 rather than 
>>a SYS file at A$2000.  I checked the text file I downloaded, and the 
>>text file specifies a save at A$1000 and then the E00G. 
>> 
>>Why's it say this? 
 
>Whatever works.  I got a -SYS file that works even though the BSAVE is 
>at $1000.  I gather the little program invoked by E00G (when it works) 
>alters the start address along with the rest of the directory entry. 

It doesn't matter what the auxtype of a system file is.  SYS files ALWAYS load
at $2000; the auxtype is never even checked.
 
By using the pathname at $280, a SYS file can read and set its own auxtype...
might be useful for programs that need to save a few little bits of
information back to their own file.  Use the auxtype instead of opening and
writing the file... much faster.

I don't think there are any reserved auxtypes within the SYS filetype, but if
there are, I imagine I will hear about it for the above suggestion.  :)
 
- Jerry Kindall
 
crash!pnet01!pro-beagle!jerryk                  GEnie: J.KINDALL
jerryk@pro-beagle.cts.com                       ALink: JKindall
jerryk%pro-beagle.cts.com@nosc.mil

mattd@Apple.COM (Matt Deatherage) (03/19/89)

In article <8903181916.AA05810@crash.cts.com> pnet01!pro-beagle!jerryk@nosc.mil writes:
>By using the pathname at $280, a SYS file can read and set its own auxtype...
>might be useful for programs that need to save a few little bits of
>information back to their own file.  Use the auxtype instead of opening and
>writing the file... much faster.
>
>I don't think there are any reserved auxtypes within the SYS filetype, but if
>there are, I imagine I will hear about it for the above suggestion.  :)
>
How did you guess?  :-)

I haven't published a File Type Note talking about $FF files yet, but I wrote
one last summer as a "test case" - something to get the idea of FT Notes
approved.  In it, I wrote something like this:

"The auxtype of SYS files is currently available for application use, but
probably won't be of much interest to most programmers.  To use it, a program
would have to take the pathname stored at $280 when the program is launched 
(making sure nothing has overwritten it), use it as input to a GET_FILE_INFO
call, and alter it with a SET_FILE_INFO call.  A lot of trouble to obtain a
two-byte storage space."

Also note that S16 and EXE files ($B3 and $B5) are NOT this way; the auxtypes
of those two file types are currently reserved for future definition.
 
>- Jerry Kindall
>
(Did I mention that I just finished a book that had the word "Microdot" in
a chapter title?  Even had a picture of one.)
 
>crash!pnet01!pro-beagle!jerryk                  GEnie: J.KINDALL
>jerryk@pro-beagle.cts.com                       ALink: JKindall
>jerryk%pro-beagle.cts.com@nosc.mil
==============================================================================
Matt Deatherage, Apple Computer, Inc. | "The opinions expressed in this tome
Send PERSONAL mail ONLY (please) to:  | should not be construed to imply that
AppleLink PE: Matt DTS  GEnie: AIIDTS | Apple Computer, Inc., or any of its
CompuServe: 76703,3030                | subsidiaries, in whole or in part,
Usenet:  mattd@apple.com              | have any opinion on any subject."
UUCP:  (other stuff)!ames!apple!mattd | "So there."
=============================================================================