Module fs:romfs - ROM file-system
ROM file-system. This implements a file-system on top of a ROM memory image.
Index
-
Record
ROMFS.ENTRY- ROM file-system entry-
Variable
length- Length of the entry in bytes -
Variable
mode- Mode and permission bits ( ) -
Variable
sblk- Starting block number -
Variable
spare- Spare bits -
Variable
stroffs- Name offset in string table (from start of image)
-
Variable
-
Record
ROMFS.HDR- ROM file-system header structure-
Variable
blkshft- Block size in powers of 2 -
Variable
checksum- Checksum: sum of entire image in 16-bit words = 0 -
Variable
ident- Header identity -
Variable
nblks- Number of blocks -
Variable
rootblk- Block where root directory lives -
Variable
rootlen- Bytes in root directory -
Variable
spare- Spare bits -
Variable
version- ROMFS version (current #01)
-
Variable
-
Constant
ROMFS.HDR.IDENT.LEN- Header identity length -
Constant
ROMFS.HDR.IDENT.VAL- Header identity string
Declarations
romfs.inc:22Constant ROMFS.HDR.IDENT.LEN
VAL INT ROMFS.HDR.IDENT.LEN
Header identity length.
romfs.inc:23Constant ROMFS.HDR.IDENT.VAL
VAL [8]BYTE ROMFS.HDR.IDENT.VAL
Header identity string.
romfs.inc:26Record ROMFS.HDR
DATA TYPE ROMFS.HDR
ROM file-system header structure.
romfs.inc:28Variable ident
[ROMFS.HDR.IDENT.LEN]BYTE
Header identity.
romfs.inc:29Variable version
BYTE
ROMFS version (current #01).
romfs.inc:30Variable blkshft
BYTE
Block size in powers of 2.
romfs.inc:31Variable nblks
INT16
Number of blocks.
romfs.inc:32Variable checksum
INT16
Checksum: sum of entire image in 16-bit words = 0
romfs.inc:33Variable rootblk
INT16
Block where root directory lives.
romfs.inc:34Variable rootlen
INT16
Bytes in root directory.
romfs.inc:35Variable spare
INT16
Spare bits.
romfs.inc:39Record ROMFS.ENTRY
DATA TYPE ROMFS.ENTRY
ROM file-system entry.
romfs.inc:41Variable stroffs
INT16
Name offset in string table (from start of image).
romfs.inc:43Variable length
INT32
Length of the entry in bytes.
romfs.inc:44Variable sblk
INT16
Starting block number.
romfs.inc:45Variable spare
INT16
Spare bits.