1 ;/* BEGIN INCLUDE FILE: asmdefs.mac */
 2 
 3 ; HISTORY COMMENTS:
 4 ;  1) change(86-09-16,Lee), approve(87-07-13,mcr7580),
 5 ;     audit(87-07-13,Leskiw), install(87-08-07,MR12.1-1072):
 6 ;     History comments, include comments
 7 ;                                                      END HISTORY COMMENTS
 8 
 9 
10 ;--------------Buffer Sizes---------------
11 
12 BUFSIZE         =       4096           ;4k general buffer size
13 TBUFSIZE        =       4096           ;4k terminal buffer size
14 PBUFSIZE        =       520            ;packet_buf size = a little over 512,just in case
15 
16 ;--------------ASCII codes----------------
17 
18 LF              =       0Ah            ;line feed
19 CR              =       0dh            ;carridge return
20 ESC             =       1bh            ;escape
21 SOP             =       01h            ;Start of packet
22 EOP             =       0Ah            ;End of Packet
23 TAB             =       09h            ;Tab character
24 
25 ;--------------BIOS calls------------------
26 
27 RS232           =       14h            ;RS232 Service
28 kbd_io          =       16h            ;Keyboard service
29 
30 ;--------------INS8250 ACE Registers-----------
31 
32 THR             =       3f8h           ;trans holding register
33 RBR             =       3f8h           ;Receiver buffer register(read)
34 IER             =       3f9h           ;Interrupt enable register
35 LCR             =       3fbh           ;Line control register
36                                        ;bit 7 of LCR is DLAB. DLAB must
37                                        ;be zero to acces THR. RBR, IER.
38 IIR             =       3fah           ;Interrupt identification register
39 MCR             =       3fch           ;Modem control register
40 LSR             =       3fdh           ;Line status register
41 MSR             =       3feh           ;Modem status register
42 
43 ;------------- structure holding parameters for initialising com 1
44 
45 commparm record baud:3, parity:2, stopbits:1, wordbits:2
46 
47 ;--------------Baud rates------------------------------
48 ; see tech reference manual on rs232
49 
50 B110            =       000b           ; 110
51 b150            =       001b           ; 150
52 B300            =       010b           ; 300
53 B600            =       011b           ; 600
54 B1200           =       100b           ; 1200
55 B2400           =       101b           ; 2400
56 B4800           =       110b           ; 4800
57 B9600           =       111b           ; 9600
58 
59 ;--------------Parity-----------
60 
61 no_parity       =       00b
62 odd_parity      =       01b
63 even_parity     =       11b
64 
65 ;--------------Stop bits-------------
66 
67 stop1           =       0
68 stop2           =       1
69 
70 ;--------------Data bits-------------
71 
72 data7           =       10b
73 data8           =       11b
74 
75 ;/* END INCLUDE FILE asmdefs.mac */
76 ^Z