diff options
Diffstat (limited to 'v4.0/src/CMD/DEBUG/DEBDATA.ASM')
| -rw-r--r-- | v4.0/src/CMD/DEBUG/DEBDATA.ASM | 227 |
1 files changed, 227 insertions, 0 deletions
diff --git a/v4.0/src/CMD/DEBUG/DEBDATA.ASM b/v4.0/src/CMD/DEBUG/DEBDATA.ASM new file mode 100644 index 0000000..fafae77 --- /dev/null +++ b/v4.0/src/CMD/DEBUG/DEBDATA.ASM | |||
| @@ -0,0 +1,227 @@ | |||
| 1 | PAGE 60,132 ; | ||
| 2 | TITLE DEBDATA.SAL - PC DOS | ||
| 3 | ;======================= START OF SPECIFICATIONS ========================= | ||
| 4 | ; | ||
| 5 | ; MODULE NAME: DEBDATA.SAL | ||
| 6 | ; | ||
| 7 | ; DESCRIPTIVE NAME: DATA SEGMENT VALUE DEFINITION | ||
| 8 | ; | ||
| 9 | ; FUNCTION: PROVIDES ALL DATA SEGMENT DEFINITIONS. | ||
| 10 | ; | ||
| 11 | ; ENTRY POINT: NA | ||
| 12 | ; | ||
| 13 | ; INPUT: ANY VALUE IN DATA SEGMENT | ||
| 14 | ; | ||
| 15 | ; EXIT NORMAL: NA | ||
| 16 | ; | ||
| 17 | ; EXIT ERROR: NA | ||
| 18 | ; | ||
| 19 | ; INTERNAL REFERENCES: NA | ||
| 20 | ; | ||
| 21 | ; EXTERNAL REFERENCES: NA | ||
| 22 | ; | ||
| 23 | ; NOTES: THIS MODULE IS TO BE PREPPED BY SALUT WITH THE "PR" OPTIONS. | ||
| 24 | ; LINK DEBUG+DEBCOM1+DEBCOM2+DEBCOM3+DEBASM+DEBUASM+DEBERR+ | ||
| 25 | ; DEBCONST+DEBDATA+DEBMES | ||
| 26 | ; | ||
| 27 | ; REVISION HISTORY: | ||
| 28 | ; | ||
| 29 | ; AN000 VERSION 4.00 - REVISIONS MADE RELATE TO THE FOLLOWING: | ||
| 30 | ; | ||
| 31 | ; - IMPLEMENT DBCS HANDLING DMS:6/17/87 | ||
| 32 | ; - IMPLEMENT MESSAGE RETRIEVER DMS:6/17/87 | ||
| 33 | ; - > 32 MB SUPPORT DMS:6/17/87 | ||
| 34 | ; | ||
| 35 | ; COPYRIGHT: "MS DOS DEBUG UTILITY" | ||
| 36 | ; "VERSION 4.00 (C) COPYRIGHT 1988 Microsoft" | ||
| 37 | ; "LICENSED MATERIAL - PROPERTY OF Microsoft " | ||
| 38 | ; | ||
| 39 | ;======================= END OF SPECIFICATIONS =========================== | ||
| 40 | |||
| 41 | IF1 | ||
| 42 | %OUT COMPONENT=DEBUG, MODULE=DEBDATA | ||
| 43 | ENDIF | ||
| 44 | .XLIST | ||
| 45 | .XCREF | ||
| 46 | INCLUDE DOSSYM.INC | ||
| 47 | INCLUDE DEBEQU.ASM | ||
| 48 | INCLUDE DPL.ASM | ||
| 49 | .LIST | ||
| 50 | .CREF | ||
| 51 | CODE SEGMENT PUBLIC BYTE | ||
| 52 | CODE ENDS | ||
| 53 | |||
| 54 | CONST SEGMENT PUBLIC BYTE | ||
| 55 | CONST ENDS | ||
| 56 | |||
| 57 | DATA SEGMENT PUBLIC BYTE | ||
| 58 | DATA ENDS | ||
| 59 | |||
| 60 | CSTACK SEGMENT STACK | ||
| 61 | CSTACK ENDS | ||
| 62 | |||
| 63 | DG GROUP CODE,CONST,CSTACK,DATA | ||
| 64 | |||
| 65 | DATA SEGMENT PUBLIC BYTE | ||
| 66 | PUBLIC PARITYFLAG,XNXOPT,XNXCMD,SWITCHAR,EXTPTR,HANDLE,TRANSADD | ||
| 67 | PUBLIC PARSERR,ASMADD,DISADD,DISCNT,ASMSP,INDEX,DEFDUMP,DEFLEN | ||
| 68 | PUBLIC REGSAVE,SEGSAVE,OFFSAVE,TEMP,BUFFER,BYTCNT,OPCODE,AWORD | ||
| 69 | PUBLIC REGMEM,MIDFLD,MODE,NSEG,BRKCNT,TCOUNT,ASSEM_CNT | ||
| 70 | PUBLIC ASSEM1,ASSEM2,ASSEM3,ASSEM4,ASSEM5,ASSEM6,BYTEBUF,BPTAB | ||
| 71 | PUBLIC DIFLG,SIFLG,BXFLG,BPFLG,NEGFLG,NUMFLG,MEMFLG,REGFLG | ||
| 72 | PUBLIC MOVFLG,TSTFLG,SEGFLG,LOWNUM,HINUM,F8087,DIRFLG,DATAEND | ||
| 73 | PUBLIC BEGSEG,CREATE_LONG,ARG_BUF_INDEX | ||
| 74 | PUBLIC FILEEND,FILESTRT,SSINTSAV,BPINTSAV | ||
| 75 | PUBLIC FZTRACE, PREV24, FIN24 | ||
| 76 | |||
| 77 | public rel_read_write_tab ;an000;relative read/write | ||
| 78 | ; table | ||
| 79 | public rel_low_sec ;an000;sector add. low word | ||
| 80 | public rel_high_sec ;an000;sector add. high word | ||
| 81 | public rel_sec_num ;an000;# of sectors to access | ||
| 82 | public rel_rw_add ;an000;transfer address | ||
| 83 | |||
| 84 | public lbtbl ;an000;lead byte table pointer | ||
| 85 | |||
| 86 | public xm_page ;an000; | ||
| 87 | public xm_log ;an000; | ||
| 88 | public xm_phy ;an000; | ||
| 89 | public xm_handle ;an000; | ||
| 90 | public xm_handle_ret ;an000; | ||
| 91 | public xm_page_cnt ;an000; | ||
| 92 | public xm_handle_pages_buf ;an000; | ||
| 93 | public xm_frame ;an000; | ||
| 94 | public xm_deall_han ;an000; | ||
| 95 | public xm_alloc_pg ;an000; | ||
| 96 | public xm_total_pg ;an000; | ||
| 97 | public xm_han_total ;an000; | ||
| 98 | public xm_han_alloc ;an000; | ||
| 99 | |||
| 100 | ;========================================================================= | ||
| 101 | ; REL_READ_WRITE_TAB : This table provides the new generic IOCTL primitive | ||
| 102 | ; read/write with its values. | ||
| 103 | ; | ||
| 104 | ; Date : 6/17/87 | ||
| 105 | ;========================================================================= | ||
| 106 | |||
| 107 | REL_READ_WRITE_TAB label dword ;an000;relative read/write | ||
| 108 | ; table | ||
| 109 | rel_low_sec dw ? ;an000;sector add. low word | ||
| 110 | rel_high_sec dw ? ;an000;sector add. high word | ||
| 111 | rel_sec_num dw ? ;an000;# of sectors to write | ||
| 112 | rel_rw_add dd ? ;an000;holds the segment | ||
| 113 | ; & offset of the | ||
| 114 | ; transfer address | ||
| 115 | |||
| 116 | ;========================================================================= | ||
| 117 | |||
| 118 | lbtbl dd ? ;an000;lead byte table pointer | ||
| 119 | |||
| 120 | xm_page db ? ;an000;page count to allocate | ||
| 121 | xm_log db ? ;an000;log. page to map | ||
| 122 | xm_phy db ? ;an000;phy. page to map | ||
| 123 | xm_deall_han dw ? ;an000;handle to deallocate | ||
| 124 | xm_handle dw ? ;an000;handle to map | ||
| 125 | xm_handle_ret dw ? ;an000;handle created | ||
| 126 | |||
| 127 | |||
| 128 | xm_page_cnt dw ? ;an000;current page count | ||
| 129 | |||
| 130 | xm_handle_pages_buf db 1024 dup(0) ;an000;hold handle pages | ||
| 131 | |||
| 132 | xm_frame dw ? ;an000;holds frame segment | ||
| 133 | |||
| 134 | xm_alloc_pg dw ? ;an000;active page count | ||
| 135 | |||
| 136 | xm_total_pg dw ? ;an000;total possible page cnt. | ||
| 137 | |||
| 138 | xm_han_total dw ? ;an000;total possible handles | ||
| 139 | |||
| 140 | xm_han_alloc dw ? ;an000;handles allocated | ||
| 141 | |||
| 142 | IF IBMVER | ||
| 143 | PUBLIC OLD_MASK | ||
| 144 | OLD_MASK DB ? | ||
| 145 | ENDIF | ||
| 146 | PREV24 DD ? ; prevvious INT 24 handler | ||
| 147 | FIN24 DB 0 ; TRUE => in the process of cleaning up | ||
| 148 | FZTRACE DB 0 ; TRUE => in a Ztrace | ||
| 149 | FILEEND DW ? ; ARR 2.4 | ||
| 150 | FILESTRT DW ? ; ARR 2.4 | ||
| 151 | SSINTSAV DD ? ; ARR 2.4 | ||
| 152 | BPINTSAV DD ? ; ARR 2.4 | ||
| 153 | |||
| 154 | PARITYFLAG DB 0 | ||
| 155 | |||
| 156 | PUBLIC SAVESTATE | ||
| 157 | SAVESTATE DPL <> ; storage for extended error info | ||
| 158 | |||
| 159 | XNXOPT DB ? ; AL OPTION FOR DOS COMMAND | ||
| 160 | XNXCMD DB ? ; DOS COMMAND FOR OPEN_A_FILE TO PERFORM | ||
| 161 | SWITCHAR DB ? ; CURRENT SWITCH CHARACTER | ||
| 162 | EXTPTR DW ? ; POINTER TO FILE EXTENSION | ||
| 163 | HANDLE DW ? ; CURRENT HANDLE | ||
| 164 | TRANSADD DD ? ; TRANSFER ADDRESS | ||
| 165 | |||
| 166 | PARSERR DB ? | ||
| 167 | ASMADD DB 4 DUP (?) | ||
| 168 | DISADD DB 4 DUP (?) | ||
| 169 | DISCNT DW ? | ||
| 170 | ASMSP DW ? ; SP AT ENTRY TO ASM | ||
| 171 | INDEX DW ? | ||
| 172 | DEFDUMP DB 4 DUP (?) | ||
| 173 | DEFLEN DW ? | ||
| 174 | REGSAVE DW ? | ||
| 175 | SEGSAVE DW ? | ||
| 176 | OFFSAVE DW ? | ||
| 177 | |||
| 178 | ;Do NOT move this dword variable - it sets up a long call for | ||
| 179 | ;a Create_process_data_block call issued in DEBUG | ||
| 180 | CREATE_LONG LABEL DWORD | ||
| 181 | DW 100H | ||
| 182 | BEGSEG DW ? | ||
| 183 | |||
| 184 | ; The following data areas are destroyed during hex file read | ||
| 185 | TEMP DB 4 DUP(?) | ||
| 186 | BUFFER LABEL BYTE | ||
| 187 | BYTCNT DB ? | ||
| 188 | ARG_BUF_INDEX DW ? | ||
| 189 | OPCODE DW ? | ||
| 190 | AWORD DB ? | ||
| 191 | REGMEM DB ? | ||
| 192 | MIDFLD DB ? | ||
| 193 | MODE DB ? | ||
| 194 | NSEG DW ? | ||
| 195 | BRKCNT DW ? ; Number of breakpoints | ||
| 196 | TCOUNT DW ? ; Number of steps to trace | ||
| 197 | ASSEM_CNT DB ? ; preserve order of assem_cnt and assem1 | ||
| 198 | ASSEM1 DB ? | ||
| 199 | ASSEM2 DB ? | ||
| 200 | ASSEM3 DB ? | ||
| 201 | ASSEM4 DB ? | ||
| 202 | ASSEM5 DB ? | ||
| 203 | ASSEM6 DB ? ; preserve order of assemx and bytebuf | ||
| 204 | BYTEBUF DB BUFLEN DUP (?) ; Table used by LIST | ||
| 205 | BPTAB DB BPLEN DUP (?) ; Breakpoint table | ||
| 206 | DIFLG DB ? | ||
| 207 | SIFLG DB ? | ||
| 208 | BXFLG DB ? | ||
| 209 | BPFLG DB ? | ||
| 210 | NEGFLG DB ? | ||
| 211 | NUMFLG DB ? ; ZERO MEANS NO NUMBER SEEN | ||
| 212 | MEMFLG DB ? | ||
| 213 | REGFLG DB ? | ||
| 214 | MOVFLG DB ? | ||
| 215 | TSTFLG DB ? | ||
| 216 | SEGFLG DB ? | ||
| 217 | LOWNUM DW ? | ||
| 218 | HINUM DW ? | ||
| 219 | F8087 DB ? | ||
| 220 | DIRFLG DB ? | ||
| 221 | DB BUFFER+BUFSIZ-$ DUP (?) | ||
| 222 | |||
| 223 | DATAEND LABEL WORD | ||
| 224 | |||
| 225 | DATA ENDS | ||
| 226 | END | ||
| 227 | \ No newline at end of file | ||