1 ;fsexec equ true ; ; ;an038;bgb ;
12 ; NOTE WARNING DANGER.
13 ; THIS EQU DEFINES AN OFFSET INTO THE SEARCH FCB OF THE LASTENT VALUE.
14 ; ITS LOCATION MAY CHANGE FROM DOS VERSION TO DOS VERSION.
16 ;THISENT EQU 17H ;Relative entry number of current entry
18 THISENT EQU 14H ;Relative entry number of current entry
30 ;*****************************************************************************
32 ;*****************************************************************************
35 Multiplex equ 2Fh ; ;AN000;
36 Set_Append_X equ 0B707h ; ;AN000;;
37 Append_X equ 0B706h ; ;AN000;;
38 Append_X_Set equ 1 ; ;AN000;
39 Append_Off equ 0 ; ;AN000;
40 Append_ON equ 1 ; ;AN000;
43 Disk_Error equ 80h ;INT 24h bit clear if disk error;AN000;
46 YES equ not NO ;AN000;
64 No_Ext_Attrib equ 0 ;AN000;
66 XA_Chain equ 84h ;Mark head of XA chain ;AN000;
68 ifdef fsexec ;an038;bgb
69 Len_FS_String_Buffer equ 13 ;an038;bgb
70 FAT12_File_System equ 01h ;an038;bgb;AN000;
71 FAT16_File_System equ 04h ;an038;bgb;AN000;
72 New_File_System equ 06h ;an038;bgb;AN000;
75 Bad_Exit equ 0FFh ;Errorlevel = 0FFh ;AN000;
77 Net_Check equ 1200h ;AN000;
78 Assign_Check equ 8000h ;AN000;
80 Found_Yes equ 1 ;AN000;
81 Found_No equ 0 ;AN000;
83 Asciiz_End equ 0 ;AN000;
88 Dir_Entries_Per_Sector equ 512/32
91 Critical_Error_Fail equ 3
97 Head_Mask equ 7Fh ;Mask to turn off head bit ;AN000;
101 BIG_FAT_THRESHOLD equ 4086 ;AN000;
105 ;-------------------------------------------------------------------------------
106 ; These are the data structures which we will need
107 ;****************************************************************************
109 ;****************************************************************************
110 ifdef fsexec ;an038;bgb
111 Exec_Block_Parms struc ;an038;bgb
112 Segment_Env dw 0 ;an038;bgb
113 Offset_Command dw 0 ;an038;bgb
114 Segment_Command dw 0 ;an038;bgb
115 Offset_FCB1 dw 0 ;an038;bgb
116 Segment_FCB1 dw 0 ;an038;bgb
117 Offset_FCB2 dw 0 ;an038;bgb
118 Segment_FCB2 dw 0 ;an038;bgb
119 Exec_Block_Parms ends ;an038;bgb
121 Media_ID struc ;AN000;
122 Media_ID_Info_Level dw 0 ;AN000;
123 Media_ID_Serial_Number dd 0 ;AN000;
124 Media_ID_Volume_Label db 11 dup(" ") ;AN000;
125 Media_ID_File_System db 8 dup(" ") ;AN000;
126 Media_ID ends ;AN000;
130 Sublist_Size db ? ; ;AN000;
131 Sublist_Rsv db ? ; ;AN000;
132 Sublist_Offset dw ? ; ;AN000;
133 Sublist_Segment dw ? ; ;AN000;
134 Sublist_Number db ? ; ;AN000;
135 Sublist_Type db ? ; ;AN000;
136 Sublist_Max db ? ; ;AN000;
137 Sublist_Min db ? ; ;AN000;
138 Sublist_Char db ? ; ;AN000;
141 A_DeviceParameters struc
143 SpecialFunctions db ? ;1 0
145 DeviceAttributes dw ? ;2 2
146 NumberOfCylinders dw ? ;2 4
148 BytePerSector dw ? ;2 7
149 SectorsPerCluster db ? ;
159 Ext_Total_Sectors dd ?
160 ReservedArea db 6 dup(?)
162 A_DeviceParameters ends
167 Relative_Sector_Buffer struc ; ;AN000;
169 Start_Sector_Low dw ? ;Low word of RBA sector ;AN000;
170 Start_Sector_High dw ? ;High word of RBA sector ;AN000;
171 Number_Sectors dw ? ;Number of sectors ;AN000;
172 Buffer_Offset dw ? ;Address of data buffer ;AN000;
173 Buffer_Segment dw ? ; ;AN000;
175 Relative_Sector_Buffer ends ; ;AN000;
180 XAL_Tsize dw ? ;AN000;
181 XAL_TCount dw ? ;AN000;
182 XAL_LSize dw ? ;AN000;
183 XAL_LCount dw ? ;AN000;
184 XAL_Data db 512-8 dup(?) ;AN000;
189 DB 7 DUP (?) ;Ext FCB junk
191 DIRNAM DB 11 DUP (?) ;
194 DIR_XA DW ? ; ;AN000;
195 DIRATT2 db ? ; ;AN000;
196 DIRRES DB 5 DUP (?) ; ;AC000;
202 ENTSIZ EQU SIZE DIRENT
204 ;-------------------------------------------------------------------------------