]> wirehaze git hosting - MS-DOS.git/blob - v4.0/src/CMD/CHKDSK/CHKEQU.INC

wirehaze git hosting

MZ is back!
[MS-DOS.git] / v4.0 / src / CMD / CHKDSK / CHKEQU.INC
1 ;fsexec equ true ; ; ;an038;bgb ;
2 FCB EQU 5CH
3
4 String_Done equ 0
5 No_Error equ 0
6 chk_Error equ 1
7 Stderr equ 2
8
9 FALSE EQU 0
10 TRUE EQU NOT FALSE
11
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.
15 ;2.0/2.1 value
16 ;THISENT EQU 17H ;Relative entry number of current entry
17 ;3.0 value
18 THISENT EQU 14H ;Relative entry number of current entry
19
20
21 ;Attribute bits
22
23 RDONLY EQU 1
24 HIDDN EQU 2
25 SYSTM EQU 4
26 VOLIDA EQU 8
27 ISDIR EQU 10H
28 DRVCHAR EQU ":"
29 ;
30 ;*****************************************************************************
31 ; Equates
32 ;*****************************************************************************
33 ;
34
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;
41
42
43 Disk_Error equ 80h ;INT 24h bit clear if disk error;AN000;
44
45 NO equ 0 ;AN000;
46 YES equ not NO ;AN000;
47
48 Year_Mask equ 0FE00h
49 Month_Mask equ 01E0h
50 Day_Mask equ 001Fh
51 Hour_Mask equ 0F800h
52 Minute_Mask equ 07E0h
53
54 Not_Include equ 0
55 Do_Include equ 1
56
57
58 YES_Found equ 1
59 NO_Found equ 0
60
61 ON equ 1
62 OFF equ 0
63
64 No_Ext_Attrib equ 0 ;AN000;
65 No_Entry equ 0
66 XA_Chain equ 84h ;Mark head of XA chain ;AN000;
67
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;
73 endif
74
75 Bad_Exit equ 0FFh ;Errorlevel = 0FFh ;AN000;
76
77 Net_Check equ 1200h ;AN000;
78 Assign_Check equ 8000h ;AN000;
79
80 Found_Yes equ 1 ;AN000;
81 Found_No equ 0 ;AN000;
82
83 Asciiz_End equ 0 ;AN000;
84
85 Dir_Attribute equ 10h
86 Vol_Attribute equ 08h
87
88 Dir_Entries_Per_Sector equ 512/32
89
90
91 Critical_Error_Fail equ 3
92 Write_Protect equ 0
93 Drive_Not_Ready equ 2
94
95 Blank equ " " ;AN000;
96
97 Head_Mask equ 7Fh ;Mask to turn off head bit ;AN000;
98
99
100 ;Limits
101 BIG_FAT_THRESHOLD equ 4086 ;AN000;
102
103
104
105 ;-------------------------------------------------------------------------------
106 ; These are the data structures which we will need
107 ;****************************************************************************
108 ; Structures
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
120
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;
127 endif ;an038;bgb
128
129 Sublist_Struc struc
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;
139 Sublist_Struc ends
140
141 A_DeviceParameters struc
142
143 SpecialFunctions db ? ;1 0
144 DeviceType db ? ;1 1
145 DeviceAttributes dw ? ;2 2
146 NumberOfCylinders dw ? ;2 4
147 MediaType db ? ;1 6
148 BytePerSector dw ? ;2 7
149 SectorsPerCluster db ? ;
150 ReservedSectors dw ?
151 NumberOfFATs db ?
152 RootEntries dw ?
153 TotalSectors dw ?
154 MediaDescriptor db ?
155 SectorsPerFAT dw ?
156 SectorsPerTrack dw ?
157 Heads dw ?
158 HiddenSectors dd ?
159 Ext_Total_Sectors dd ?
160 ReservedArea db 6 dup(?)
161
162 A_DeviceParameters ends
163
164
165
166
167 Relative_Sector_Buffer struc ; ;AN000;
168
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;
174
175 Relative_Sector_Buffer ends ; ;AN000;
176
177
178 XAL struc ;AN000;
179
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;
185
186 XAL ends ;AN000;
187
188 DIRENT STRUC
189 DB 7 DUP (?) ;Ext FCB junk
190 DB ? ;Drive
191 DIRNAM DB 11 DUP (?) ;
192 DIRATT DB ? ;
193 DIRCP DW ? ; ;AN000;
194 DIR_XA DW ? ; ;AN000;
195 DIRATT2 db ? ; ;AN000;
196 DIRRES DB 5 DUP (?) ; ;AC000;
197 DIRTIM DW ? ;
198 DIRDAT DW ? ;
199 DIRCLUS DW ? ;
200 DIRESIZ DD ? ;
201 DIRENT ENDS ;
202 ENTSIZ EQU SIZE DIRENT
203
204 ;-------------------------------------------------------------------------------
205
206 \1a