Portable Game Console
PoGa-4DGL Reference Manual
File Control Block
FCB
Nomenclature
Entry
WORD
offset
Entry
BYTE
size
Usage
FCB_SIG
0
2
Signature 0x AA55 (valid entry), WORD
FCB_NEXT
1
2
Next entry (1 relative), or 0, WORD
FCB_PREV
2
2
Previous entry (1 relative), or 0, WORD
FCB_FIRST
3
2
First entry (1 relative), or 0, valid for first entry only, WORD
FCB_LAST
4
2
Last entry (1 relative), or 0, valid for first entry only, WORD
FCB_MENUFLAG
5
2
0, or 1 for menu program, WORD
FCB_CATEGORY
6
20
Padded with Blanks, Null terminated, STRING
FCB_FILENAME
16
20
first char 0x00 if empty, STRING
FCB_DATE
26
12
File Date, Padded with Blanks, Null terminated, STRING
FCB_TIME
32
10
File Time Padded with Blanks, Null terminated, STRING
FCB_GCI_NAME
37
20
GCI file name Padded with Blanks, Null terminated, STRING
FCB_GCI_DATE
47
12
GCI file date, Padded with Blanks, Null terminated, STRING
FCB_GCI_TIME
53
10
GCI file time, Padded with Blanks, Null terminated, STRING
FCB_PROG_SIZE
58
2
4DGL Program Size, WORD
FCB_PROG_CSUM 59
2
4DGL Program Checksum, WORD
FCB_DESC1
60
32
Reserved, padded with Blanks, Null terminated, STRING
FCB_DESC2
76
32
Reserved, padded with Blanks, Null terminated, STRING
FCB_DESC3
92
32
Reserved, padded with Blanks, Null terminated, STRING
FCB_DESC4
108
32
Reserved, padded with Blanks, Null terminated, STRING
FCB_BIN_NAME
124
20
GP data name, padded with Blanks, Null terminated, STRING
FCB_BIN_DATE
134
12
GP data date, padded with Blanks, Null terminated, STRING
FCB_BIN_TIME
140
10
GP data time, padded with Blanks, Null terminated, STRING
FCB_GCI_SIZE
145
4
GCI file size, DWORD
FCB_BIN_SIZE
147
2
GP data field size, WORD
FCB_CSA_NAME
148
20
Name of GCI loaded at CSA offset 0 (first entry only)
, STRING
FCB_CSA_MULTI
158
2
1 if CSA written to at other than offset 0, WORD
FCB_CSA_TOP
159
4
Highest CSA size written to since format, DWORD
FCB_RESERVED
161
190
(reserved for future additions)
TOTAL
512
© 2011 4D Systems
www.4dsystems.com.au
Page 77 of 87