8 ;======================= START OF SPECIFICATIONS =========================
10 ; MODULE NAME: EDLEQU.SAL
12 ; DESCRIPTIVE NAME: EQUATES FOR EDLIN
14 ; FUNCTION: PROVIDES EQUATES FOR EDLIN. IT ALSO PROVIDES THE MACRO
25 ; INTERNAL REFERENCES:
27 ; ROUTINE: VAL_YN - VALIDATES Y/N RESPONSES FROM THE KEYBOARD
29 ; EXTERNAL REFERENCES:
33 ; NOTES: THIS MODULE IS TO BE PREPPED BY SALUT WITH THE "PR" OPTIONS.
34 ; LINK EDLIN+EDLCMD1+EDLCMD2+EDLMES+EDLPARSE
38 ; AN000 VERSION 4.00 - REVISIONS MADE RELATE TO THE FOLLOWING:
40 ; - IMPLEMENT SYSPARSE
41 ; - IMPLEMENT MESSAGE RETRIEVER
42 ; - IMPLEMENT DBCS ENABLING
43 ; - ENHANCED VIDEO SUPPORT
47 ; COPYRIGHT: "MS DOS EDLIN UTILITY"
48 ; "VERSION 4.00 (C) COPYRIGHT 1988 Microsoft"
50 ;======================= END OF SPECIFICATIONS ===========================
57 COMAND_LINE_LENGTH EQU
128
58 QUOTE_CHAR EQU 16H
;Quote character = ^V
63 asian_blk equ 40h
;an000;asian blank 2nd. byte
64 dbcs_lead_byte equ 81h
;an000;asian blank lead byte
65 nul equ
00h ;an000;nul character
66 Access_Denied equ
0005h ;an000;extended error code for access denied
68 ;======== Y/N validation equates =========================================
70 yn_chk equ 23h
;an000;check for Y/N response
71 max_len equ
01h ;an000;max. len. for Y/N char.
72 yes equ
01h ;an000;boolean yes value
73 no equ
00h ;an000;boolean no value
75 ;======== text display values for initialization =========================
77 video_get equ
0fh ;an000;int 10 get video attributes
78 video_set equ
00h ;an000;int 10 set video attributes
79 video_text equ
03h ;an000;80 X 25 color monitor
81 ;======== code page values for functions =================================
83 get_set_cp equ 66h
;an000;get or set code page
84 get_cp equ
01h ;an000;get active code page
85 set_cp equ
02h ;an000;set active code page
87 ;======== screen length & width defaults =================================
89 std_out equ
01h ;an000;console output
90 display_attr equ
03h ;an000;display for IOCTL
91 Get_Display equ 7fh
;an000;Get display for IOCTL
92 Def_Disp_Len equ
25 ;an000;default display length
93 Def_Disp_Width equ
80 ;an000;default display width
95 ;======== extended open equates ==========================================
97 rw equ
0082h ;an000;read/write
103 ext_read equ
0080h ;an000;read
109 rw_flag equ
0101h ;an000;fail if file not exist
110 ; open if file exists
111 ; don't validate code page
113 creat_flag equ
0110h ;an000;create if file does not exist
114 ; fail if file exists
115 ; don't validate code page
117 open_flag equ
0101h ;an000;fail if file not exist
118 ; open if file exists
119 ; don't validate code page
121 creat_open_flag equ
0112h ;an000;create if file does not exist
122 ; open/replace if file exists
123 ; don't validate code page
125 attr equ
00h ;an000;attributes set to 0
127 ;======== parse value equates ============================================
129 nrm_parse_exit equ
0ffffh ;an000;normal exit from sysparse
130 too_many equ
01h ;an000;too many parms entered
131 op_missing equ
02h ;an000;required operand missing
132 sw_missing equ
03h ;an000;not a valid switch
135 ;======== Strucs =========================================================
137 Display_Buffer_Struc
Struc ;an000;dms;
139 Display_Info_Level db ?
;an000;dms;
140 Display_Reserved db ?
;an000;dms;
141 Display_Buffer_Size dw ?
;an000;dms;
142 Display_Flags dw ?
;an000;dms;
143 Display_Mode db ?
;an000;dms;
146 Display_Mode_Reserved db ?
;an000;dms;
147 Display_Colors dw ?
;an000;dms;# of colors
148 Display_Width_Pixels dw ?
;an000;dms;# of pixels in width
149 Display_Length_Pixels dw ?
;an000;dms;# of pixels in len.
150 Display_Width_Char dw ?
;an000;dms;# of chars in width
151 Display_Length_Char dw ?
;an000;dms;# of chars in length
153 Display_Buffer_Struc ends
;an000;dms;