]>
wirehaze git hosting - MS-DOS.git/blob - v4.0/src/CMD/DEBUG/DEBDATA.ASM
2 TITLE DEBDATA
.SAL - PC DOS
3 ;======================= START OF SPECIFICATIONS =========================
5 ; MODULE NAME: DEBDATA.SAL
7 ; DESCRIPTIVE NAME: DATA SEGMENT VALUE DEFINITION
9 ; FUNCTION: PROVIDES ALL DATA SEGMENT DEFINITIONS.
13 ; INPUT: ANY VALUE IN DATA SEGMENT
19 ; INTERNAL REFERENCES: NA
21 ; EXTERNAL REFERENCES: NA
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
29 ; AN000 VERSION 4.00 - REVISIONS MADE RELATE TO THE FOLLOWING:
31 ; - IMPLEMENT DBCS HANDLING DMS:6/17/87
32 ; - IMPLEMENT MESSAGE RETRIEVER DMS:6/17/87
33 ; - > 32 MB SUPPORT DMS:6/17/87
35 ; COPYRIGHT: "MS DOS DEBUG UTILITY"
36 ; "VERSION 4.00 (C) COPYRIGHT 1988 Microsoft"
37 ; "LICENSED MATERIAL - PROPERTY OF Microsoft "
39 ;======================= END OF SPECIFICATIONS ===========================
42 %
OUT COMPONENT
=DEBUG
, MODULE
=DEBDATA
51 CODE SEGMENT PUBLIC BYTE
54 CONST
SEGMENT PUBLIC BYTE
57 DATA SEGMENT PUBLIC BYTE
63 DG GROUP
CODE,CONST
,CSTACK
,DATA
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
77 public rel_read_write_tab
;an000;relative read/write
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
84 public lbtbl
;an000;lead byte table pointer
86 public xm_page
;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;
100 ;=========================================================================
101 ; REL_READ_WRITE_TAB : This table provides the new generic IOCTL primitive
102 ; read/write with its values.
105 ;=========================================================================
107 REL_READ_WRITE_TAB
label dword ;an000;relative read/write
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
116 ;=========================================================================
118 lbtbl dd ?
;an000;lead byte table pointer
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
128 xm_page_cnt dw ?
;an000;current page count
130 xm_handle_pages_buf db 1024 dup(0) ;an000;hold handle pages
132 xm_frame dw ?
;an000;holds frame segment
134 xm_alloc_pg dw ?
;an000;active page count
136 xm_total_pg dw ?
;an000;total possible page cnt.
138 xm_han_total dw ?
;an000;total possible handles
140 xm_han_alloc dw ?
;an000;handles allocated
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
157 SAVESTATE DPL
<> ; storage for extended error info
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
170 ASMSP
DW ?
; SP AT ENTRY TO ASM
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
184 ; The following data areas are destroyed during hex file read
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
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
211 NUMFLG
DB ?
; ZERO MEANS NO NUMBER SEEN
221 DB BUFFER
+BUFSIZ
-$ DUP (?
)