summaryrefslogtreecommitdiff
path: root/v4.0/src/CMD/CHKDSK/CHKEQU.INC
diff options
context:
space:
mode:
Diffstat (limited to 'v4.0/src/CMD/CHKDSK/CHKEQU.INC')
-rw-r--r--v4.0/src/CMD/CHKDSK/CHKEQU.INC206
1 files changed, 206 insertions, 0 deletions
diff --git a/v4.0/src/CMD/CHKDSK/CHKEQU.INC b/v4.0/src/CMD/CHKDSK/CHKEQU.INC
new file mode 100644
index 0000000..c2cbba5
--- /dev/null
+++ b/v4.0/src/CMD/CHKDSK/CHKEQU.INC
@@ -0,0 +1,206 @@
1;fsexec equ true ; ; ;an038;bgb ;
2FCB EQU 5CH
3
4String_Done equ 0
5No_Error equ 0
6chk_Error equ 1
7Stderr equ 2
8
9FALSE EQU 0
10TRUE 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
18THISENT EQU 14H ;Relative entry number of current entry
19
20
21;Attribute bits
22
23RDONLY EQU 1
24HIDDN EQU 2
25SYSTM EQU 4
26VOLIDA EQU 8
27ISDIR EQU 10H
28DRVCHAR EQU ":"
29;
30;*****************************************************************************
31; Equates
32;*****************************************************************************
33;
34
35Multiplex equ 2Fh ; ;AN000;
36Set_Append_X equ 0B707h ; ;AN000;;
37Append_X equ 0B706h ; ;AN000;;
38Append_X_Set equ 1 ; ;AN000;
39Append_Off equ 0 ; ;AN000;
40Append_ON equ 1 ; ;AN000;
41
42
43Disk_Error equ 80h ;INT 24h bit clear if disk error;AN000;
44
45NO equ 0 ;AN000;
46YES equ not NO ;AN000;
47
48Year_Mask equ 0FE00h
49Month_Mask equ 01E0h
50Day_Mask equ 001Fh
51Hour_Mask equ 0F800h
52Minute_Mask equ 07E0h
53
54Not_Include equ 0
55Do_Include equ 1
56
57
58YES_Found equ 1
59NO_Found equ 0
60
61ON equ 1
62OFF equ 0
63
64No_Ext_Attrib equ 0 ;AN000;
65No_Entry equ 0
66XA_Chain equ 84h ;Mark head of XA chain ;AN000;
67
68ifdef fsexec ;an038;bgb
69Len_FS_String_Buffer equ 13 ;an038;bgb
70FAT12_File_System equ 01h ;an038;bgb;AN000;
71FAT16_File_System equ 04h ;an038;bgb;AN000;
72New_File_System equ 06h ;an038;bgb;AN000;
73endif
74
75Bad_Exit equ 0FFh ;Errorlevel = 0FFh ;AN000;
76
77Net_Check equ 1200h ;AN000;
78Assign_Check equ 8000h ;AN000;
79
80Found_Yes equ 1 ;AN000;
81Found_No equ 0 ;AN000;
82
83Asciiz_End equ 0 ;AN000;
84
85Dir_Attribute equ 10h
86Vol_Attribute equ 08h
87
88Dir_Entries_Per_Sector equ 512/32
89
90
91Critical_Error_Fail equ 3
92Write_Protect equ 0
93Drive_Not_Ready equ 2
94
95Blank equ " " ;AN000;
96
97Head_Mask equ 7Fh ;Mask to turn off head bit ;AN000;
98
99
100;Limits
101BIG_FAT_THRESHOLD equ 4086 ;AN000;
102
103
104
105;-------------------------------------------------------------------------------
106; These are the data structures which we will need
107;****************************************************************************
108; Structures
109;****************************************************************************
110ifdef fsexec ;an038;bgb
111Exec_Block_Parms struc ;an038;bgb
112Segment_Env dw 0 ;an038;bgb
113Offset_Command dw 0 ;an038;bgb
114Segment_Command dw 0 ;an038;bgb
115Offset_FCB1 dw 0 ;an038;bgb
116Segment_FCB1 dw 0 ;an038;bgb
117Offset_FCB2 dw 0 ;an038;bgb
118Segment_FCB2 dw 0 ;an038;bgb
119Exec_Block_Parms ends ;an038;bgb
120
121Media_ID struc ;AN000;
122Media_ID_Info_Level dw 0 ;AN000;
123Media_ID_Serial_Number dd 0 ;AN000;
124Media_ID_Volume_Label db 11 dup(" ") ;AN000;
125Media_ID_File_System db 8 dup(" ") ;AN000;
126Media_ID ends ;AN000;
127endif ;an038;bgb
128
129Sublist_Struc struc
130Sublist_Size db ? ; ;AN000;
131Sublist_Rsv db ? ; ;AN000;
132Sublist_Offset dw ? ; ;AN000;
133Sublist_Segment dw ? ; ;AN000;
134Sublist_Number db ? ; ;AN000;
135Sublist_Type db ? ; ;AN000;
136Sublist_Max db ? ; ;AN000;
137Sublist_Min db ? ; ;AN000;
138Sublist_Char db ? ; ;AN000;
139Sublist_Struc ends
140
141A_DeviceParameters struc
142
143SpecialFunctions db ? ;1 0
144DeviceType db ? ;1 1
145DeviceAttributes dw ? ;2 2
146NumberOfCylinders dw ? ;2 4
147MediaType db ? ;1 6
148BytePerSector dw ? ;2 7
149SectorsPerCluster db ? ;
150ReservedSectors dw ?
151NumberOfFATs db ?
152RootEntries dw ?
153TotalSectors dw ?
154MediaDescriptor db ?
155SectorsPerFAT dw ?
156SectorsPerTrack dw ?
157Heads dw ?
158HiddenSectors dd ?
159Ext_Total_Sectors dd ?
160ReservedArea db 6 dup(?)
161
162A_DeviceParameters ends
163
164
165
166
167Relative_Sector_Buffer struc ; ;AN000;
168
169Start_Sector_Low dw ? ;Low word of RBA sector ;AN000;
170Start_Sector_High dw ? ;High word of RBA sector ;AN000;
171Number_Sectors dw ? ;Number of sectors ;AN000;
172Buffer_Offset dw ? ;Address of data buffer ;AN000;
173Buffer_Segment dw ? ; ;AN000;
174
175Relative_Sector_Buffer ends ; ;AN000;
176
177
178XAL struc ;AN000;
179
180XAL_Tsize dw ? ;AN000;
181XAL_TCount dw ? ;AN000;
182XAL_LSize dw ? ;AN000;
183XAL_LCount dw ? ;AN000;
184XAL_Data db 512-8 dup(?) ;AN000;
185
186XAL ends ;AN000;
187
188DIRENT STRUC
189 DB 7 DUP (?) ;Ext FCB junk
190 DB ? ;Drive
191DIRNAM DB 11 DUP (?) ;
192DIRATT DB ? ;
193DIRCP DW ? ; ;AN000;
194DIR_XA DW ? ; ;AN000;
195DIRATT2 db ? ; ;AN000;
196DIRRES DB 5 DUP (?) ; ;AC000;
197DIRTIM DW ? ;
198DIRDAT DW ? ;
199DIRCLUS DW ? ;
200DIRESIZ DD ? ;
201DIRENT ENDS ;
202ENTSIZ EQU SIZE DIRENT
203
204;-------------------------------------------------------------------------------
205
206 \ No newline at end of file