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

wirehaze git hosting

MZ is back!
[MS-DOS.git] / v4.0 / src / CMD / RECOVER / RECEQU.INC
1 ;fsexec equ true
2 const segment public para 'const' ;AC000;bgb
3 Len_FS_ID_String equ 8 ; length of fat_12 and fat_16 strings ;AN000;bgb
4 Command_Line_Length equ 128 ; length of command line area ;AN000;bgb
5 Len_FS_String_End equ 8 ; length of rec.exe + 0H ;AN000;bgb
6 FALSE EQU 0
7 ;TRUE EQU -1
8
9 bdos equ 21h
10 boot equ 20h
11 aread equ 25h
12 awrite equ 26h
13
14
15 ;IBMVER EQU false ; not for single drive system ;AC000;bgb
16 ;KANJI EQU true ; set this to true for assembling jap version ;AC000;bgb
17 tab equ 09h
18 aread equ 25h
19 awrite equ 26h
20 fcb equ 5ch
21 FCB1 equ 5Ch
22 FCB2 equ 6Ch
23 FCB_Filename_Length equ 11
24
25 NO equ 0 ;AN000;
26 YES equ not NO ;AN000;
27
28
29 Not_Include equ 0
30 Do_Include equ 1
31
32 No_Ext_Attrib equ 0 ;AN000;
33 No_Entry equ 0
34
35
36 FAT12_File_System equ 01h ;AN000;
37 FAT16_File_System equ 04h ;AN000;
38 New_File_System equ 06h ;AN000;
39
40 Bad_Exit equ 0FFh ;Errorlevel = 0FFh ;AN000;
41
42 Net_Check equ 1200h ;AN000;
43 Assign_Check equ 8000h ;AN000;
44
45 DBCS_Lead equ 81h
46 DBCS_Blank equ 40h
47 DBCS_Vector_Size equ 2
48 End_Of_Vector equ 0
49 Blank equ " " ;AN000;
50
51 Found_Yes equ 1 ;AN000;
52 Found_No equ 0 ;AN000;
53
54 Asciiz_End equ 0 ;AN000;
55
56 Dir_Attribute equ 10h
57 Vol_Attribute equ 08h
58
59 Dir_Entries_Per_Sector equ 512/32
60
61
62 Critical_Error_Fail equ 3
63 Write_Protect equ 0
64 Drive_Not_Ready equ 2
65
66
67 Len_FS_String_Buffer equ 13
68
69 ;Limits
70 BIG_FAT_THRESHOLD equ 4086 ;AN000;
71
72 ; equates from recinit
73 ;***********************************************
74 Multiplex equ 2Fh ; ;AN000;
75 Set_Append_X equ 0B707h ; ;AN000;;
76 Append_X equ 0B706h ; ;AN000;;
77 Append_X_Set equ 1 ; ;AN000;
78 Append_Off equ 0 ; ;AN000;
79 Append_ON equ 1 ; ;AN000;
80 fcb1 equ 05ch ; ;AN000;bgb
81
82 String_Done equ 0
83 No_Error equ 0
84 rec_error equ 1
85 Stderr equ 2
86 Len_FS_String_Buffer equ 13
87
88
89
90 ;-------------------------------------------------------------------------------
91 ; DATA STRUCTURES
92 ;-------------------------------------------------------------------------------
93
94 Exec_Block_Parms struc
95 Segment_Env dw 0
96 Offset_Command dw 0
97 Segment_Command dw 0
98 Offset_FCB1 dw 0
99 Segment_FCB1 dw 0
100 Offset_FCB2 dw 0
101 Segment_FCB2 dw 0
102
103 Exec_Block_Parms ends
104
105
106
107 ;-------------------------------------------------------------------------------
108 ; media id
109 ;-------------------------------------------------------------------------------
110 Media_ID struc ;AN000;
111 Media_ID_Info_Level dw 0 ;AN000;
112 Media_ID_Serial_Number dd 0 ;AN000;
113 Media_ID_Volume_Label db 11 dup(" ") ;AN000;
114 Media_ID_File_System db 8 dup(" ") ;AN000;
115 Media_ID ends ;AN000;
116
117 ;-------------------------------------------------------------------------------
118 ; device parameters
119 ;-------------------------------------------------------------------------------
120 A_DeviceParameters struc
121
122 SpecialFunctions db ?
123 DeviceType db ?
124 DeviceAttributes dw ?
125 NumberOfCylinders dw ?
126 MediaType db ?
127 BytePerSector dw ?
128 SectorsPerCluster db ?
129 ReservedSectors dw ?
130 NumberOfFATs db ?
131 RootEntries dw ?
132 TotalSectors dw ?
133 MediaDescriptor db ?
134 SectorsPerFAT dw ?
135 SectorsPerTrack dw ?
136 Heads dw ?
137 HiddenSectors dd ?
138 Ext_Total_Sectors dd ?
139 Reserved_Area db 6 dup(?)
140
141 A_DeviceParameters ends
142
143
144
145
146 ;-------------------------------------------------------------------------------
147 ; relative sector buffer
148 ;-------------------------------------------------------------------------------
149 Relative_Sector_Buffer struc ; ;AN000;
150
151 Start_Sector_Low dw ? ;Low word of RBA sector ;AN000;
152 Start_Sector_High dw ? ;High word of RBA sector ;AN000;
153 Number_Sectors dw ? ;Number of sectors ;AN000;
154 Buffer_Offset dw ? ;Address of data buffer ;AN000;
155 Buffer_Segment dw ? ; ;AN000;
156
157 Relative_Sector_Buffer ends ; ;AN000;
158
159
160 ;-------------------------------------------------------------------------------
161 ; xal ????
162 ;-------------------------------------------------------------------------------
163 XAL struc ;AN000;
164
165 XAL_Tsize dw ? ;AN000;
166 XAL_TCount dw ? ;AN000;
167 XAL_LSize dw ? ;AN000;
168 XAL_LCount dw ? ;AN000;
169 XAL_Data db 512-8 dup(?) ;AN000;
170
171 XAL ends ;AN000;
172
173 ;-------------------------------------------------------------------------------
174 const ends