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