]>
wirehaze git hosting - MS-DOS.git/blob - v2.0/source/EDLMES.ASM
3 ;-----------------------------------------------------------------------;
5 ; Done for Vers 2.00 (rev 9) by Aaron Reynolds ;
6 ; Update for rev. 11 by M.A. Ulloa ;
8 ;-----------------------------------------------------------------------;
19 CODE SEGMENT PUBLIC BYTE
22 CONST
SEGMENT PUBLIC BYTE
25 DATA SEGMENT PUBLIC BYTE
26 EXTRN QFLG
:BYTE,FCB2
:BYTE
29 DG GROUP
CODE,CONST
,DATA
31 CODE SEGMENT PUBLIC BYTE
33 ASSUME
CS:DG
,DS:DG
,SS:DG
,ES:DG
36 EXTRN rest_dir
:NEAR,CRLF
:NEAR
40 MOV AH,STD_CON_STRING_OUTPUT
42 MOV AX,(STD_CON_INPUT_FLUSH
SHL 8) OR STD_CON_INPUT
54 call rest_dir
;restore directory if needed
58 TEST BYTE PTR [QFLG
],-1
61 MOV AH,STD_CON_STRING_OUTPUT
63 MOV AX,(STD_CON_INPUT_FLUSH
SHL 8) OR STD_CON_INPUT
68 CMP AL,13 ;Carriage return means yes
77 CONST
SEGMENT PUBLIC BYTE
79 PUBLIC BADDRV
,NDNAME
,bad_vers_err
,opt_err
,NOBAK
80 PUBLIC NODIR
,DSKFUL
,MEMFUL
,FILENM
,BADCOM
,NEWFIL
81 PUBLIC NOSUCH
,TOOLNG
,EOF
,DEST
,MRGERR
,ro_err
,bcreat
83 BADDRV
DB "Invalid drive or file name$"
84 NDNAME
DB "File name must be specified$"
86 bad_vers_err db "Incorrect DOS version$"
87 opt_err db "Invalid Parameter$"
88 ro_err db "Invalid operation: R/O file",13,10,"$"
89 bcreat db "File Creation Error",13,10,"$"
91 NOBAK
DB "Cannot edit .BAK file--rename file$"
92 NODIR
DB "No room in directory for file$"
93 DSKFUL
DB "Disk full-- write not completed$"
94 MEMFUL
DB 13,10,"Insufficient memory",13,10,"$"
95 FILENM
DB "File not found",13,10,"$"
96 BADCOM
DB "Entry error",13,10,"$"
97 NEWFIL
DB "New file",13,10,"$"
98 NOSUCH
DB "Not found",13,10,"$"
100 TOOLNG
DB "Line too long",13,10,"$"
101 EOF
DB "End of input file",13,10,"$"
102 QMES
DB "Abort edit (Y/N)? $"
103 DEST
DB "Must specify destination line number",13,10,"$"
104 MRGERR
DB "Not enough room to merge the entire file",13,10,"$"