summaryrefslogtreecommitdiff
path: root/v4.0/src/DEV/PRINTER/CPSPEQU.INC
diff options
context:
space:
mode:
authorGravatar Mark Zbikowski2024-04-25 21:24:10 +0100
committerGravatar Microsoft Open Source2024-04-25 22:32:27 +0000
commit2d04cacc5322951f187bb17e017c12920ac8ebe2 (patch)
tree80ee017efa878dfd5344b44249e6a241f2a7f6e2 /v4.0/src/DEV/PRINTER/CPSPEQU.INC
parentMerge pull request #430 from jpbaltazar/typoptbr (diff)
downloadms-dos-main.tar.gz
ms-dos-main.tar.xz
ms-dos-main.zip
MZ is back!HEADmain
Diffstat (limited to 'v4.0/src/DEV/PRINTER/CPSPEQU.INC')
-rw-r--r--v4.0/src/DEV/PRINTER/CPSPEQU.INC577
1 files changed, 577 insertions, 0 deletions
diff --git a/v4.0/src/DEV/PRINTER/CPSPEQU.INC b/v4.0/src/DEV/PRINTER/CPSPEQU.INC
new file mode 100644
index 0000000..ca086cb
--- /dev/null
+++ b/v4.0/src/DEV/PRINTER/CPSPEQU.INC
@@ -0,0 +1,577 @@
1
2 PAGE ,132
3
4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
5;;
6;; FILENAME: CPS Printer Device Driver EQUAL Include
7;; MODULE NAME: CPSEQU
8;; TYPE: Include File
9;;
10;; LINK PROCEDURE: See CPSPx.ASM
11;;
12;; INCLUDE FILES:
13;;
14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
15 ;;
16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
17;;
18;; Request Header (Common portion)
19;;
20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
21 ;;
22RH EQU ES:[DI] ;; addressability to Request Header
23 ;;
24RHC STRUC ;; fields common to all request types
25RHC_LEN DB ? ;; length of Request Header
26 DB ? ;; unit code (subunit)
27RHC_CMD DB ? ;; command code
28RHC_STA DW ? ;; status
29 DQ ? ;; reserved for DOS
30RHC ENDS ;; end of common portion
31 ;;
32 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
33 ;;
34 ;; Command in the Request Header
35 ;; (see CMD_CODES table)
36 ;;
37 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
38 ;;
39CMD_INI EQU 0 ;; init command
40CMD_WRT EQU 8 ;; write command
41CMD_GIO EQU 19 ;; generic IOCTL command
42 ;; (see major/minor GIO functions)
43 ;;
44 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
45 ;;
46 ;; status values for RHC_STA
47 ;;
48 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
49 ;;
50STAT_DONE EQU 01H ;; function complete - high order byte
51STAT_CMDERR EQU 8003H ;; invalid command code error
52STAT_ERROR EQU 8000H ;; error returned by normal driver
53 ;;
54;; see Generic IOCTL Request Header section
55;; for more errorneous status. ;;
56 ;;
57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
58;;
59;; Request Header for INIT
60;;
61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
62 ;;
63 ;;
64RH0 STRUC ;;
65 DB (TYPE RHC) DUP (?) ;; common portion
66 ;;
67 DB ? ;; not used for CHAR devices
68RH0_ENDO DW ? ;; offset of ending address
69RH0_ENDS DW ? ;; segment of ending address
70RH0_BPBA DD ? ;; pointer to BPBA
71 db ?
72RH0_CONFIG_ERRMSG dw 0 ;DCR D493 "Error in CONFIG.SYS..." msg flag.
73RH0 ENDS ;;
74 ;;
75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
76;;
77;; Request Header for IOCTL
78;;
79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
80 ;;
81RH3 STRUC ;;
82 DB (TYPE RHC) DUP (?) ;; common portion
83 ;;
84 ;;
85 DB ? ;; media descriptor
86RH3_DTAO DW ? ;; offset of transfer address
87RH3_DTAS DW ? ;; segment of transfer address
88RH3_CNT DW ? ;; byte count
89RH3 ENDS ;;
90 ;;
91 ;;
92;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
93;;
94;; Request Header for GENERIC IOCTL
95;;
96;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
97 ;;
98GIH STRUC ;;
99 DB (TYPE RHC) DUP (?) ;; common portion
100 ;;
101 ;;
102GIH_MAF DB ? ;; major function
103GIH_MIF DB ? ;; minor function
104GIH_SI DW ? ;; content of SI
105GIH_DI DW ? ;; content of DI
106GIH_GBA DD ? ;; Address of Generic Buffer
107GIH ENDS ;;
108 ;;
109 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
110 ;;
111 ;; GIO major/minor functions
112 ;; (see GIO_CODES table)
113 ;;
114 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
115MAF_CON EQU 03 ;; major function for CON device
116MAF_PTR EQU 05 ;; major function for LPTX device
117 ;;
118MIF_DST EQU 4CH ;; minor function : designate start
119MIF_DEN EQU 4DH ;; designate end
120MIF_IVK EQU 4AH ;; invoke
121MIF_QIV EQU 6AH ;; query-invoked
122MIF_QLS EQU 6BH ;; query-list
123 ;;
124 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
125 ;; Designate Start (MIF_DST)Flags
126 ;; see GBIS structure
127 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
128 ;;
129DSF_FIFOCP EQU 08000H ;; Single code page FIFO command
130DSF_CARTCP EQU 00001H ;; Code page for Cartridge/semi-
131 ;; hardware RAM
132 ;;
133 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
134 ;; Generic IOCTL errorneous status
135 ;; upon return
136 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
137 ;;
138STAT_DELETE EQU 08000H ;; previous degignate deleted (DST)
139 ;; STAT_DELETE : only for FIFO
140STAT_NOFIND EQU 08008H ;; codepage,device not found (DST)
141STAT_DEVERR EQU 0800AH ;; Device error (DST,IVK,QIV,QLS,WRT)
142STAT_BADATA EQU 0800CH ;; bad font file (DST)
143STAT_NOBUFF EQU 0800CH ;; no font buffer for (REFRESH)
144STAT_BADDEN EQU 0800CH ;; no DST (DEN)
145STAT_bffDEN EQU 08000H ;; bad font file (DEN)
146STAT_TOMANY EQU 0800aH ;; too manay codepages (DST)
147STAT_DUPLCP EQU 0800aH ;; too manay codepages (DST)
148STAT_NOCPIV EQU 08007H ;; no codepage designated/invoked
149STAT_NOCP EQU 08007H ;; no codepage designated/invoked
150 ;; (IVK, QIV, QLS)
151 ;;
152;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
153;;
154;; Generic IOCTL Buffer DS:[SI]
155;;
156;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
157GIOB EQU DS:[SI] ;;
158 ;;
159GB1S STRUC ;;
160GB1_FLAG DW ? ;; flag
161GB1_LEN DW ? ;; length
162GB1_NUM DW ? ;; length
163GB1_CP DW ? ;;
164GB1S ENDS ;;
165 ;;
166 ;;
167GB2S STRUC ;;
168GB2_LEN DW ? ;; length
169GB2_CP DW ? ;;
170GB2S ENDS ;;
171 ;;
172 ;;
173GB3S STRUC ;;
174GB3_LEN DW ? ;; length
175GB3_GBL DW ? ;; hardware code page number
176GB3S ENDS ;;
177 ;;
178GB3_MINILEN EQU 4 ;; minimium length of GB3
179 ;;
180GBLS STRUC ;;
181GBL_LEN DW ? ;; length
182GBL_CP DW ? ;; hardware code page number
183GBLS ENDS ;;
184 ;;
185;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
186;;
187;; DEVICE Header DS:[SI] -- to locate the next LPTn header
188;; NEXT device header ES:[DI]
189;;
190;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
191HP EQU DS:[SI] ;;
192NHD EQU ES:[DI] ;;
193 ;;
194NAME_LEN EQU 8 ;;
195 ;;
196DHS STRUC ;;
197DH_NEXTO DW ? ;; offset of pointer to next header
198DH_NEXTS DW ? ;; segment of pointer to next header
199 DW ? ;; attribute
200DH_STRAO DW ? ;; offset to strategy routine
201DH_INTRO DW ? ;; offset to interrupt routine
202DH_NAME DB NAME_LEN DUP(0) ;; device name in this header
203DHS ENDS ;; end of common portion
204 ;;
205;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
206;;
207;; FONT_PARSER data
208;;
209;; -- Interface table : FTABLE
210;;
211;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
212 ;;
213FPKT EQU DS:[SI] ;;
214 ;;
215FTP EQU ES:[BX] ;;
216 ;; ( I=Input O=Output )
217FTBLK STRUC ;;
218FTB_LENGTH DW TYPE FTBLK ;; (NOT TO BE CHANGED)
219FTB_STATUS DW 0FFFFH ;; (O) parsing compelte
220FTB_TYPE DW 0 ;; (O)
221FTB_TID DB 8 DUP(?) ;; (I)
222FTB_CP DW 0FFFFH ;; (I)
223FTB_MOD DW 0 ;; (O)
224FTB_FONTS DW 0 ;; (O)
225FTB_ROWS DB 0 ;; (O) DISPLAY TYPE DEVICE
226FTB_COLS DB 0 ;; (O) DISPLAY TYPE DEVICE
227FTB_X DB 0 ;; (O) DISPLAY TYPE DEVICE
228FTB_Y DB 0 ;; (O) DISPLAY TYPE DEVICE
229FTB_COUNT DW 0 ;; (O) DISPLAY TYPE DEVICE
230FTB_SELECT DW 0 ;; (O) PRINTER TYPE DEVICE
231FTB_SELLEN DW 0 ;; (O) PRINTER TYPE DEVICE
232FTB_DLEFT DW 0 ;; (O) =0, none to come
233FTB_DLEN DW 0 ;; (O) =0, not in this packet
234FTB_DALO DW 0 ;; (O) in the DOS "packet" buffer
235FTB_DAHI DW 0 ;; (O) " " " " "
236TARGET_LO DW 0 ;; internal registers
237TARGET_HI DW 0 ;; internal registers
238FTBLK ENDS ;;
239 ;;
240TYPE_DISPLAY EQU 01H ;; display type device
241TYPE_PRINTER EQU 02H ;; printer type device
242 ;;
243FBUFS STRUC ;;
244FLAG DW 0 ;;
245BUFFER_LEN DW 0 ;;
246BUFFER_ADDR DD 0 ;;
247NUM_FTBLK DW 0 ;; no. of FTBKL entries
248FBUFS ENDS ;;
249 ;;
250 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
251 ;; FLAGS :
252FLAG_RESTART EQU 000001H ;; bit 1 = restart the parsing
253 ;;
254 ;;
255 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
256 ;; STATUS : (in FTB_STATUS)
257 ;;
258FSTAT_COMPLETE EQU 0FFFFH ;; parsing compeleted. (good status)
259FSTAT_FONT EQU 0FFFEH ;; font data is defined and returned
260FSTAT_FOUND EQU 0FFFDH ;; informations including font-length
261FSTAT_MATCH EQU 0FFFCH ;; font header matches FTBLK
262FSTAT_SEARCH EQU 0FFFBH ;; seraching for header & font
263FSTAT_BOTTOM EQU 0FFF0H ;; below this are the DOS_STATUS.
264 ;;
265;; the FSTAT with value lower than 0FFF0H is to be returned to the DOS
266 ;;
267;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
268;
269; DEVICE Command Parser Table ES:[DI]
270;
271;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
272 ;;
273table_len equ 290 ;;
274 ;;
275PSE EQU ES:[DI] ;;
276 ;;
277PAR_OT STRUC ;;
278PAR_DEV_NUM DW ? ;;
279PAR_OFF DW ? ;;
280PAR_OT ENDS ;;
281 ;;
282PAR_DEVOT STRUC ;; OFFSET to the parameters of a device
283PAR_onum DW ? ;; number of offsets in the table
284PAR_DNMO DW ? ;; device-name table offset
285PAR_DIDO DW ? ;; device-id table offset
286PAR_HWCPO DW ? ;; hwcp table offset
287PAR_DESGO DW ? ;; designate table offset
288PAR_PARMO DW ? ;; parameter table offset
289PAR_DEVOT ENDS ;;
290 ;;
291PAR_DNMT STRUC ;; DEVICE NAME table
292PAR_DNML DW ? ;; length of device name
293PAR_DNM DB ? ;; device name
294PAR_DNMT ENDS ;;
295 ;;
296PAR_DIDT STRUC ;; DEVICE ID table
297PAR_DIDL DW ? ;; device ID length
298PAR_DID DB ? ;; device ID
299PAR_DIDT ENDS ;;
300 ;;
301PAR_HWCPT STRUC ;; hwcp table
302PAR_HWCPL DW ? ;; hwcp entry number
303PAR_HWCP DW ? ;; hwcp
304PAR_HWCPT ENDS ;;
305 ;;
306 ;;
307PAR_DESGT STRUC ;; DESIGNATE table
308PAR_DESGL DW ? ;; entry number
309PAR_DESG DW ? ;; designate
310PAR_FONT DW ? ;; fonts
311PAR_DESGT ENDS ;;
312 ;;
313 ;;
314PAR_PARMT STRUC ;; parameter table
315PAR_PARML DW ? ;; length
316PAR_PARM DW ? ;;
317PAR_PARMT ENDS ;;
318 ;;
319 ;;
320;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
321;
322; LPTn printer data structure CS:[BX]
323;
324;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
325 ;;
326BUF EQU CS:[BX] ;;
327 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
328 ;; STATES
329 ;;
330NORMAL EQU 0 ;; normal state
331CPSW EQU 1 ;;
332DESG_WR EQU 2 ;; designate write
333DESG_END EQU 3 ;; designate end
334LOCKED EQU 4 ;; WGR locked
335 ;;
336 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
337GOOD EQU 0 ;; STATUS :
338REPLX EQU 8000H ;; codepage replaced in DST
339FAIL EQU 4000H ;; fail in designate
340LOADED EQU 2000H ;; the font has just been loaded to
341REFRESH EQU 0800H ;; there was a refresh via DST
342 ;;
343 ;; also
344 ;; -- DSF_CARTCP
345 ;;
346 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
347 ;;
348 ;; for BFLAG :
349BF_PRN EQU 0 ;; 0 = PRN initialized (interrupt)
350BF_LPT1 EQU 1 ;; 1 = LPT1 initialized (interrupt)
351BF_LPT2 EQU 2 ;; 2 = LPT2 initialized (interrupt)
352BF_LPT3 EQU 3 ;; 3 = LPT3 initialized (interrupt)
353BF_MEM_DONE EQU 08000H ;; memory done for this device
354 ;;
355 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
356 ;; BUFFER DATA structure
357BUF_DATA STRUC ;;.................................
358BFLAG DW -1 ;; buf flag for initialisation
359 ;; -1 = buf not yet initialised
360 ;; (see BF_PRN, BF_LPT's)
361 ;;
362DEV_HDRO DW -1 ;; device driver n header offset
363DEV_HDRS DW -1 ;;
364LPT_STRAO DW -1 ;; dos lptn strategy offset
365LPT_STRAS DW -1 ;;
366LPT_INTRO DW -1 ;; dos lptn strategy offset
367LPT_INTRS DW -1 ;;
368RH_PTRO DW -1 ;; request header offset
369RH_PTRS DW -1 ;; segment ....................(unique)
370 ;;
371 ;; (following is replicated for LPT1 )
372 ;;
373RNORMO DW -1 ;; request-normal driver header offset
374prn_bufo dw -1 ;; offset to prn buffer
375did_prn dw 0 ;; where PRN is in the DID order
376PCLASS DW 0 ;;
377STATE DW NORMAL ;;
378STATUS DW GOOD ;;
379 ;; (the followings should be used
380 ;; IFF BUT.STATE <> NORMAL : )
381 ;;
382PDESCO DW -1 ;; offset to printer description table.
383 ;;
384 ;;===== hwcp and designated slots ====
385HSLMX DW 0 ;; HSLMX is the size of HARDslot (at
386 ;; HARDSO) and the buffer(at HRBUFO)
387 ;;
388HARDMX DW 0 ;; no. of HWCP+cart slots supported
389 ;; (less than or equal to .HSLOTS)
390HARDSO DW -1 ;; offset to hardware slots n
391 ;;
392HCARMX DW 0 ;; no. of cart slots supported
393HRBUFO DW -1 ;; offset to cart slots' buffer
394 ;;
395 ;;===== physical and designated RAM ===
396 ;;
397RSLMX DW 0 ;; RSLMX is the size of RAMslot (at
398 ;; RAMSO) and the RAM buffer(at RMBUFO)
399 ;;
400 ;;
401RAMMX DW 0 ;; no. of physical RAM slots(max.=1)
402RAMSO DW -1 ;; offset to RAM slots(incl. designated
403 ;;
404RBUFMX DW 0 ;; no. of designated RAM slots supported
405RMBUFO DW -1 ;; offset to RAM slots's buffer
406 ;;
407FTSZPA DW -1 ;; font buffer in paragraph = FONTSZ
408FTSIZE DW 0 ;; font buffer size = FTSZPA x 16
409FTSTART DW -1 ;; start of font buffer
410FTSLOTO DW -1 ;; segment address of font buffer
411 ;; -- of the one to be designated to
412FTDLO DW -1 ;; offset to where the FTSTART:OFFSET
413 ;; (next destination = total length
414 ;; so far)
415FSELEN DW 0 ;; length of selection control copied
416 ;; to the selection buffer
417 ;; (USED BY SELECT TYPE = 1 ONLY)
418 ;; -- initialized to 0, if selection
419 ;; is not 0, copied the selection
420 ;; from the font file until the
421 ;; length is reached. After copying
422 ;; to selection buffer, reset to 0
423FSELMAX DW 0 ;; max. room reserved for selection
424 ;; controls.
425 ;;
426PAR_EXTRACTO DB (TYPE PAR_DEVOT) DUP (-1);; Offset to parameter extracts
427SAVED_CP DW -1 ;; WGR saved code page during lock ;AN000;
428BUFEND DW 0 ;; END OF BUFFER, for LPT1 copy.
429BUF_DATA ENDS ;;
430 ;;
431;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
432;
433; Printer Description Table
434;
435;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
436 ;;
437DEVN_LEN EQU 8 ;; device name (type-id) length
438 ;;
439PDSH STRUC ;;
440PD_LEN DW 30 ;; length of each entry
441TYPEID DB ' ' ;; device name (id), length DEVN_LEN
442VMINOR DB 0 ;; version : .00
443VMAJOR DB 1 ;; version : 1.
444CLASS DW ? ;; reserved
445FONTSZ DW ? ;; font buffer size in paragraph (max)
446HSLOTS DW ? ;; hard-slots number (max # of Hslots)
447HWCPMIN DW ? ;; what left by min_hwcp can be cart.
448RSLOTS DW ? ;; ram-slots number (max # of Rslots)
449PDSH ENDS ;; the SELH_O, and SELR_O are defined
450 ;; in the next two entries in PDS
451 ;;
452 ;;
453PDS STRUC ;;
454 DB (TYPE PDSH) DUP (?) ;; common portion
455SELH_O DW ? ;; offset to select controls on Hslots
456SELR_O DW ? ;; offset to select controls on Rslots
457SELB_O DW ? ;; offset to buffered select controls
458PDS ENDS ;;
459 ;;
460 ;;
461;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
462;
463; HARD / RAM slots table structure/constants
464;
465;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
466 ;; NOTE : must be only FOUR bytes for
467 ;; codepage positioning
468 ;; calculation as compared
469 ;; with each entry in FTDL_OFF
470 ;;
471SLTS STRUC ;; slots-table structure
472SLT_CP DW -1 ;; code page : no code page
473SLT_AT DW 0 ;; attribute : empty
474SLTS ENDS ;;
475 ;;
476 ;; ATTRIBUTES :
477AT_RAM1 EQU 00001H ;; in the 1st physical RAM slot
478AT_RAM2 EQU 00002H ;; in the 2nd physical RAM slot
479AT_RAM3 EQU 00004H ;; in the 3rd physical RAM slot
480AT_RAM4 EQU 00008H ;; in the 4th physical RAM slot
481AT_RAMS EQU 0000FH ;;(note the current logic supports
482 ;; only ONE physical RAM slot)
483 ;;
484AT_OCC EQU 01000H ;; slot occupied
485AT_ACT EQU 02000H ;; slot active
486AT_HWCP EQU 04000H ;; slot is hwcp
487AT_OLD EQU 08000H ;; codepage in buffer is not newly
488 ;; designated.
489AT_LOAD EQU 00100H ;; slot with font to be loaded
490AT_FONT EQU 00200H ;; font in this slot has been loaded
491AT_NO_LOAD EQU NOT AT_LOAD ;; to reset the bit
492AT_NO_FONT EQU NOT AT_FONT ;; to reset the bit
493AT_SELECT EQU 00400H ;; for SELECT TYPE = 1
494 ;; -- mark the FTBLK where control is
495 ;; copied from.
496;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
497 ;; constants on SLOTS
498HARDSL_MAX EQU 12 ;;
499 ;;
500RAMSL_MAX EQU 12 ;;
501 ;;
502CTL_MAX EQU 32 ;; max.length of each selection control
503CTL5202_OFFS EQU 8 ;; offset to CTL5202_H for codepage
504 ;;
505;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
506;
507; General Constants
508;
509;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
510 ;;
511STACK_SIZE EQU 28H ;; in paragraph, total 200H bytes
512 ;;
513;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
514;
515;
516; STRUCS AND EQUATES
517;
518;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
519 ;;
520PARSE_NAME STRUC ;; ;AN000;
521N_LENGTH DW ? ;; ;AN000;
522FNAME DB " " ;; ;AN000;
523PARSE_NAME ENDS ;; ;AN000;
524 ;;
525PARSE_OFFSETS STRUC ;; ;AN000;
526 DW ? ;; ;AN000;
527DN_OFFSET DW ? ;; ;AN000;
528DI_OFFSET DW ? ;; ;AN000;
529DCP_OFFSET DW ? ;; ;AN000;
530DD_OFFSET DW ? ;; ;AN000;
531 DW ? ;; ;AN000;
532PARSE_OFFSETS ENDS ;; ;AN000;
533 ;;
534PARSE_HWCP STRUC ;; ;AN000;
535NUM_HWCPS DW ? ;; ;AN000;
536HWCP_1 DW ? ;; ;AN000;
537HWCP_2 DW ? ;; ;AN000;
538HWCP_3 DW ? ;; ;AN000;
539HWCP_4 DW ? ;; ;AN000;
540HWCP_5 DW ? ;; ;AN000;
541HWCP_6 DW ? ;; ;AN000;
542HWCP_7 DW ? ;; ;AN000;
543HWCP_8 DW ? ;; ;AN000;
544HWCP_9 DW ? ;; ;AN000;
545HWCP_10 DW ? ;; ;AN000;
546PARSE_HWCP ENDS ;; ;AN000;
547 ;;
548PARSE_DESG STRUC ;; ;AN000;
549NUM_VALUES DW ? ;; ;AN000;
550NUM_DESGS DW ? ;; ;AN000;
551NUM_FONTS DW ? ;; ;AN000;
552PARSE_DESG ENDS ;; ;AN000;
553 ;;
554 ;;
555ZERO EQU 0H ;; ;AN000;
556ONE EQU 1H ;; ;AN000;
557TWO EQU 2H ;; ;AN000;
558THREE EQU 3H ;; ;AN000;
559FOUR EQU 4H ;; ;AN000;
560FIVE EQU 5H ;; ;AN000;
561SIX EQU 6H ;; ;AN000;
562SEVEN EQU 7H ;; ;AN000;
563EIGHT EQU 8H ;; ;AN000;
564NINE EQU 9H ;; ;AN000;
565TEN EQU 0AH ;; ;AN000;
566NUMBER EQU 1 ;; ;AN000;
567STRING EQU 3 ;; ;AN000;
568COMPLEX EQU 4 ;; ;AN000;
569RC_EOL EQU -1 ;; ;AN000;
570RC_NO_ERROR EQU 0 ;; ;AN000;
571RC_OP_MISSING EQU 2 ;; ;AN000;
572ON EQU 1 ;; ;AN000;
573OFF EQU 0 ;; ;AN000;
574BAD_SYNTAX_MSG EQU 12 ;; ;AN000;
575BAD_DEVICE_MSG EQU 2 ;; ;AN000;
576;
577