Het FCB Onbekend, 00-00-00 ;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 |