;Offset Size Contents Normal FCB Fields ; ; ÚÄÄÄ¿ ; +0 1 ³Drv³ drive ID (before open: 0=default,1=A,etc; after: 0=A,1=B,etc.) ; ÃÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ; +1 8 ³'F' 'I' 'L' 'E' 'N' 'A' 'M' 'E'³ Filename; 1 to 8 characters, ; ÃÄÄÄÁÄÄÄÁÄÄÄÅÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÙ left-justified, blank-padded ; +9 3 ³'E' 'X' 'T'³ Extension; 0 to 3 characters, ; ÃÄÄÄÁÄÄÄÅÄÄÄÙ left-justified, blank-padded ;+0cH 2 ³CurBlk ³ current block number ; ÃÄÄÄÁÄÄÄ´ ;+0eH 2 ³RecSize³ logical record size (bytes) ; ÃÄÄÄÁÄÄÄÅÄÄÄÂÄÄÄ¿ ;+10H 4 ³file size ³ length of file (low word first) ; ÃÄÄÄÄÄÄÄÅÄÄÄÁÄÄÄÙ ;+14H 2 ³ date ³ modified date in filetime format ; ÃÄÄÄÁÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ;+16H 0aH ³ DOS reserved area ³ ; ÃÄÄÄÁÄÄÄÅÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÙ ;+20H 2 ³CurRec ³ block-relative record number (0-7fH) ; ÃÄÄÄÁÄÄÄÁÄÄÄÂ Ä ¿ ;+21H 4 ³RandomRec | | file-relative record number (for Random files) ; ÀÄÄÄÁÄÄÄÁÄÄÄÁ Ä Ù (the last byte is used only when rec_size < 64) ;25H size of an Open FCB ; ;Notes: ;þ before opening a file, you need only supply the Drv field and the 11 bytes ; of the filename and extension (eg: db 0,'MYFILE TXT') and leave room for ; DOS to fill in the other fields. ; ; An 'Unopened' FCB is the first 12 bytes (Drv, Filename, Ext) plus enough ; room for the other fields. An 'Open' FCB has had the other fields filled- ; in. If the Drv field was 0, DOS sets it to the drive number of the current ; drive (0=A, 1=B, etc.) ; ; Offset Size Contents Extended FCB Fields ; ÚÄÄÄ¿ ; -7 1 ³ffH³ flag indicated extended FCB ; ÃÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ; -6 5 ³ DOS reserved area ³ ; ÃÄÄÄÅÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÁÄÄÄÙ ; -1 1 ³ ³ file attribute ; ÃÄÄÄÁ Ä Ä Ä ÄÄÄÄÄÄÄÄ¿ ; +0 25H ³ Normal FCB Fields ³ the rest is the same as above ; ÀÄÄÄÁ Ä Ä Ä ÁÄÄÄÁÄÄÄÙ ; ;Notes: ;þ all functions which will accept an FCB will also accept an Extended FCB. ; The address of the FCB is the same; if FCB-7 is 0ffH, an Extended FCB is ; assumed. ;þ use an Extended FCB if you want to specify the file attribute of a file that ; you are opening, creating, renaming, or searching via the FCB functions