<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Mon, 23 Jul 2012 15:14:50 +0100
From   : jgh@... (J.G.Harston)
Subject: INF file format..

Farlie A wrote:
> What is the format of INF files used with emulators?

...and other applications that use INF files, eg
ZipToInf (http://mdfs.net/Apps/Archivers/ZipTools),
SJFiler (http://mdfs.net/Apps/Filers/), etc.

A INF file contains a single line of text containing space-
seperated fields:

<filename><spc><load><spc><exec><spc><length><spc><access><spc><extensions>

where <filename> is the filename, all other fields are upper
case hexadecimal, <spc> is one or more spaces. As a special case
<access> may be L to represent 08 (DFS locked).

<extensions> are application-specific, but should adhere to the
Zip Extras Field contents 
(http://mdfs.net/Docs/Comp/Archiving/Zip/ExtraField),
viz:

<filename><spc><load><spc><exec><spc><length><spc><attr><spc>
<mod_date><spc><mod_time><spc><create_date><spc><create_time><spc>
<user_account><spc><auxilary_account>

Any fields may be omitted from the right of the string, eg:

MyProgram1
Myprogram1 FFFF1900
MyProgram1 FFFF1900 FFFF8023
MyProgram1 FFFF1900 FFFF8023 0000102B
MyProgram1 FFFF1900 FFFF8023 0000102B 33
MyProgram1 FFFF1900 FFFF8023 0000102B 33 213B
MyProgram1 FFFF1900 FFFF8023 0000102B 33 213B 7B89
MyProgram1 FFFF1900 FFFF8023 0000102B 33 213B 7B89 2247
MyProgram1 FFFF1900 FFFF8023 0000102B 33 213B 7B89 2247 894B
MyProgram1 FFFF1900 FFFF8023 0000102B 33 213B 7B89 2247 894B 0100
MyProgram1 FFFF1900 FFFF8023 0000102B 33 213B 7B89 2247 894B 0100 00FF

Applications should be liberal in input (swallow everything thrown
at them, ignore extra spaces, silently ignore extra fields that it
doesn't understand, absolutely NEVER bomb out and say "wah! don't
understand this!") and conservative in output (use rigidly fixed 
output,
exactly one space between fields, hex numbers output exactly 8 digits
for addresses, exactly 2 digits for access byte, exactly 4 digits for
extra words).

-- 
J.G.Harston - jgh@...      - mdfs.net

















   400 
inf$=leaf$+s$+"inf":IFos%<>32:inf$=LEFT$(LEFT$(leaf$,8)+s$+"inf",10)
   410 A$=leaf$+STRING$(11-LENleaf$," ")+FNh0(load%,8)+" 
"+FNh0(exec%,8)+" "+FNh0(fsize%,8)+" "
   420 IFdsz%>20:A$=A$+FNh0(attr%,2)+" "+FNh0(mdate%,4)+" 
"+FNh0(mtime%,4)+" "+FNh0(cdate%,4)+" "+FNh0(ctime%,4)+" "
   430 IFdsz%>24:A$=A$+FNh0(acc%,4)+" "+FNh0(aux%,4)
   440 A$=A$+CHR$13+CHR$10
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>