diff options
Diffstat (limited to 'v4.0/src/CMD/EDLIN/EDLEQU.ASM')
| -rw-r--r-- | v4.0/src/CMD/EDLIN/EDLEQU.ASM | 156 |
1 files changed, 156 insertions, 0 deletions
diff --git a/v4.0/src/CMD/EDLIN/EDLEQU.ASM b/v4.0/src/CMD/EDLIN/EDLEQU.ASM new file mode 100644 index 0000000..d60796d --- /dev/null +++ b/v4.0/src/CMD/EDLIN/EDLEQU.ASM | |||
| @@ -0,0 +1,156 @@ | |||
| 1 | page 60,132 ; | ||
| 2 | |||
| 3 | .xlist | ||
| 4 | include DOSSYM.INC | ||
| 5 | include EDLSTDSW.INC | ||
| 6 | .list | ||
| 7 | |||
| 8 | ;======================= START OF SPECIFICATIONS ========================= | ||
| 9 | ; | ||
| 10 | ; MODULE NAME: EDLEQU.SAL | ||
| 11 | ; | ||
| 12 | ; DESCRIPTIVE NAME: EQUATES FOR EDLIN | ||
| 13 | ; | ||
| 14 | ; FUNCTION: PROVIDES EQUATES FOR EDLIN. IT ALSO PROVIDES THE MACRO | ||
| 15 | ; VAL_YN. | ||
| 16 | ; | ||
| 17 | ; ENTRY POINT: NA | ||
| 18 | ; | ||
| 19 | ; INPUT: NA | ||
| 20 | ; | ||
| 21 | ; EXIT NORMAL: NA | ||
| 22 | ; | ||
| 23 | ; EXIT ERROR: NA | ||
| 24 | ; | ||
| 25 | ; INTERNAL REFERENCES: | ||
| 26 | ; | ||
| 27 | ; ROUTINE: VAL_YN - VALIDATES Y/N RESPONSES FROM THE KEYBOARD | ||
| 28 | ; | ||
| 29 | ; EXTERNAL REFERENCES: | ||
| 30 | ; | ||
| 31 | ; ROUTINE: NA | ||
| 32 | ; | ||
| 33 | ; NOTES: THIS MODULE IS TO BE PREPPED BY SALUT WITH THE "PR" OPTIONS. | ||
| 34 | ; LINK EDLIN+EDLCMD1+EDLCMD2+EDLMES+EDLPARSE | ||
| 35 | ; | ||
| 36 | ; REVISION HISTORY: | ||
| 37 | ; | ||
| 38 | ; AN000 VERSION 4.00 - REVISIONS MADE RELATE TO THE FOLLOWING: | ||
| 39 | ; | ||
| 40 | ; - IMPLEMENT SYSPARSE | ||
| 41 | ; - IMPLEMENT MESSAGE RETRIEVER | ||
| 42 | ; - IMPLEMENT DBCS ENABLING | ||
| 43 | ; - ENHANCED VIDEO SUPPORT | ||
| 44 | ; - EXTENDED OPENS | ||
| 45 | ; - SCROLLING ERROR | ||
| 46 | ; | ||
| 47 | ; COPYRIGHT: "MS DOS EDLIN UTILITY" | ||
| 48 | ; "VERSION 4.00 (C) COPYRIGHT 1988 Microsoft" | ||
| 49 | ; | ||
| 50 | ;======================= END OF SPECIFICATIONS =========================== | ||
| 51 | |||
| 52 | |||
| 53 | |||
| 54 | |||
| 55 | |||
| 56 | |||
| 57 | COMAND_LINE_LENGTH EQU 128 | ||
| 58 | QUOTE_CHAR EQU 16H ;Quote character = ^V | ||
| 59 | CR EQU 13 | ||
| 60 | STKSIZ EQU 200h | ||
| 61 | STACK equ stksiz | ||
| 62 | |||
| 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 | ||
| 67 | |||
| 68 | ;======== Y/N validation equates ========================================= | ||
| 69 | |||
| 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 | ||
| 74 | |||
| 75 | ;======== text display values for initialization ========================= | ||
| 76 | |||
| 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 | ||
| 80 | |||
| 81 | ;======== code page values for functions ================================= | ||
| 82 | |||
| 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 | ||
| 86 | |||
| 87 | ;======== screen length & width defaults ================================= | ||
| 88 | |||
| 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 | ||
| 94 | |||
| 95 | ;======== extended open equates ========================================== | ||
| 96 | |||
| 97 | rw equ 0082h ;an000;read/write | ||
| 98 | ; compatibility | ||
| 99 | ; noinherit | ||
| 100 | ; int 24h handler | ||
| 101 | ; no commit | ||
| 102 | |||
| 103 | ext_read equ 0080h ;an000;read | ||
| 104 | ; compatibility | ||
| 105 | ; noinherit | ||
| 106 | ; int 24h handler | ||
| 107 | ; no commit | ||
| 108 | |||
| 109 | rw_flag equ 0101h ;an000;fail if file not exist | ||
| 110 | ; open if file exists | ||
| 111 | ; don't validate code page | ||
| 112 | |||
| 113 | creat_flag equ 0110h ;an000;create if file does not exist | ||
| 114 | ; fail if file exists | ||
| 115 | ; don't validate code page | ||
| 116 | |||
| 117 | open_flag equ 0101h ;an000;fail if file not exist | ||
| 118 | ; open if file exists | ||
| 119 | ; don't validate code page | ||
| 120 | |||
| 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 | ||
| 124 | |||
| 125 | attr equ 00h ;an000;attributes set to 0 | ||
| 126 | |||
| 127 | ;======== parse value equates ============================================ | ||
| 128 | |||
| 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 | ||
| 133 | |||
| 134 | |||
| 135 | ;======== Strucs ========================================================= | ||
| 136 | |||
| 137 | Display_Buffer_Struc Struc ;an000;dms; | ||
| 138 | |||
| 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; | ||
| 144 | ; TEXT=01 | ||
| 145 | ; APA =02 | ||
| 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 | ||
| 152 | |||
| 153 | Display_Buffer_Struc ends ;an000;dms; | ||
| 154 | |||
| 155 | |||
| 156 | \ No newline at end of file | ||