]> wirehaze git hosting - MS-DOS.git/blob - v4.0/src/CMD/XCOPY/XCOPY.EQU

wirehaze git hosting

MZ is back!
[MS-DOS.git] / v4.0 / src / CMD / XCOPY / XCOPY.EQU
1 ;XCOPY EQUATES
2 ;*****************************************************************************
3 ; REVISION HISTORY: A000 Version 4.00: add PARSER, System Message Handler,
4 ; Remove the BELL char.,turn off APPEND during TREE
5 ; search,Extended Attribute processing, Uppercasing
6 ; and "Out Of Space" during write to standard out.
7 ; A004 PTM0700 9/02/87 Avoid duplicate switches and
8 ; display parm in error.
9 ; A005 DCR0201 9/11/87 Incorperate new format for EXTENDED
10 ; ATTRIBUTES.
11 ;*****************************************************************************
12 ;Equates used for flags
13 ;*** MY_FLAG ****
14 find_first_flag equ 01h ;set MY_FLAG by "OR"
15 findfile_flag equ 02h
16 no_more_file equ 04h
17 single_copy_flag equ 08h ;single copy instead of multi copy
18 visit_parent_flag equ 10h ;visit parent node
19 found_flag equ 20h ;found flag - for find subdir
20 missing_link_flag equ 40h
21 is_source_flag equ 80h ;if set, dealing with source
22 reset_find_first equ 0FEh ;reset by AND
23 reset_findfile equ 0FDh
24 reset_no_more equ 0FBh
25 reset_visit_parent equ 0EFh
26 reset_found equ 0DFh
27 reset_missing_link equ 0BFh
28 reset_is_source equ 07Fh
29
30 ;*** FILE_FLAG ***
31 cont_flag equ 01h
32 eof_flag equ 02h
33 big_file_flag equ 04h
34 file_bigger_flag equ 08h
35 created_flag equ 10h
36 reset_cont equ 0FEh
37 reset_eof equ 0FDh
38 reset_big_file equ 0FBh
39 reset_file_bigger equ 0F7h
40 reset_created equ 0EFh
41 reset_readfile equ 0F0h ;reset FILE_FLAG for read a file
42
43 ;*** COPY_STATUS ***
44 open_error_flag equ 01h
45 read_error_flag equ 02h
46 create_error_flag equ 04h
47 write_error_flag equ 08h
48 mkdir_error_flag equ 10h
49 chdir_error_flag equ 20h
50 maybe_itself_flag equ 40h ;source, target starting drv, directory is same.
51 disk_full_flag equ 80h
52 reset_open_error equ 0FEh
53 reset_read_error equ 0FDh
54 reset_create_error equ 0FBh
55 reset_write_error equ 0F7h
56 reset_close_error equ 0EFh
57 reset_chdir_error equ 0DFh
58
59
60 ;*** ACTION_FLAG ***
61
62 reading_flag equ 01h ;display "Reading source files..."
63 reset_reading equ 0FEh ;do not display.
64
65 ;*** SYS_FLAG ***
66
67 one_disk_copy_flag equ 01h
68 default_drv_set_flag equ 02h ;default drive has been changed by this program
69 default_s_dir_flag equ 04h ;source current directory saved.
70 default_t_dir_flag equ 08h ;target current directory saved.
71 removalble_drv_flag equ 10h
72 sharing_source_flag equ 20h ;source shared
73 sharing_target_flag equ 40h
74 turn_verify_off_flag equ 80h ;turn the verify off when exit to dos.
75 reset_default_s_dir equ 0FBh ;reset default_s_dir_flag
76
77 ;*** OPTION_FLAG ***
78
79 slash_a equ 01h ;soft archieve ?
80 slash_d equ 02h ;date?
81 slash_e equ 04h ;create empty dir?
82 slash_m equ 08h ;hard archieve ? (turn off source archieve bit)
83 slash_p equ 10h ;prompt?
84 slash_s equ 20h ;walk the tree?
85 slash_v equ 40h ;verify on?
86 slash_w equ 80h ;show "Press any key to begin copying" msg)
87 reset_slash_a equ 0FEh ;turn off soft archieve
88 reset_slash_m equ 0F7h ;turn off hard archieve
89
90 ;*** PARM_FLAG ***
91
92 first_parm_flag equ 01h ;first parm entered in input parm
93 second_parm_flag equ 02h ;second parm entered.
94 end_of_parm_flag equ 04h ;end of parm reached
95 copy_onto_itself_flag equ 08h ;copy onto itself flag
96 cyclic_flag equ 10h ;cyclic copy flag
97 inv_time_flag equ 20h ;invalid time
98 inv_date_flag equ 40h ;invalid date
99 init_error_flag equ 80h ;critical initialization error. Should abort.
100
101 ;*** PARM1_FLAG ***
102
103 inv_s_path_flag equ 01h ;invalid source path (path not found)
104 inv_t_path_flag equ 02h ;invalid target path
105 s_file_flag equ 04h ;source filename entered
106 t_file_flag equ 08h ;target filename entered
107 INV_SW_flag equ 10h ;AN004;DUPLICATE OR INVALID SW ENTERED
108
109 ;general equates
110
111 COLON EQU ":" ;AN000;FOLLOWS DRV LTR IN FULL FILESPEC
112 NUL EQU 0 ;AN000;DELIMITER FOR ASCIIZ STRINGS
113 SPACE EQU " " ;AN000;TEST FOR DBCS IN 'F D ' MESSAGE
114 PARAGRAPH EQU 4 ;AN005;TO CONVERT TO/FROM BYTES/PARA.
115 PARA_BOUND EQU 15 ;AN005;BYTES TO ADD FOR PARA. CALCULAT
116 FIXD_HD_SIZ EQU 3 ;AC015;PARA COUNT MINIMUM FOR FILE HDR
117 SYSPRM_EX_MANY EQU 1 ;AN000;TOO MANY OPERANDS ERR FROM PARSE
118 SYSPRM_MISSING_OP EQU 2 ;AN000;MISSING OPERANDS ERR FROM PARSE
119 SYSPRM_DUP_SW EQU 3 ;AN004;INVALID SWITCH R-CODE FROM PARSE
120 F_APPEND EQU 8000H ;AN000; /X status bit in Append
121 D_V_APPEND EQU -1 ;AN019;DOS VERSION OF APPEND
122 PSPFCB1_DRV EQU 5Ch
123 PSPFCB2_DRV EQU 6Ch
124 PSPDTA_PARMLEN EQU 80h
125 PSPDTA_PARRSTR EQU 81h
126 BASE_OF_ALPHA_DRV EQU 64 ;1 => A, 2 => B for drive letter
127 BASE_UPPER_CASE EQU 11011111B ;"AND"ed will make it to upper case chr
128 ALPHA_A EQU 'A'
129 ;ALPHA_D EQU 'D' ;moved to XCPYINT.MSG file for translation.
130 ALPHA_E EQU 'E'
131 ;ALPHA_F EQU 'F' ;moved to XCPYINT.MSG file for translation.
132 ALPHA_M EQU 'M'
133 ALPHA_S EQU 'S'
134 ALPHA_P EQU 'P'
135 ALPHA_T EQU 'T'
136 ALPHA_V EQU 'V'
137 ALPHA_W EQU 'W'
138 ALPHA_Z EQU 'Z'
139 A_dot EQU '.'
140 path_delim equ '\'
141 drv_delim equ ':'
142 ;**********************************************************************
143 ;DOS_LEVEL EQU 0314h ;VERSION 3.20
144 ;*************************END OF XCOPY.EQU ****************************