Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | - | 1 | ;; |
2 | ;; Copyright (c) 2016 Marco Granati <mg@unet.bz> |
||
3 | ;; |
||
4 | ;; Permission to use, copy, modify, and distribute this software for any |
||
5 | ;; purpose with or without fee is hereby granted, provided that the above |
||
6 | ;; copyright notice and this permission notice appear in all copies. |
||
7 | ;; |
||
8 | ;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
||
9 | ;; WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
||
10 | ;; MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
||
11 | ;; ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
||
12 | ;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
||
13 | ;; ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
||
14 | ;; OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
||
15 | ;; |
||
16 | |||
17 | ;; name: dirp05.inc |
||
18 | ;; rev.: 2017/07/04 |
||
19 | ;; bios C816 version v1.0 |
||
20 | |||
21 | .LIST on |
||
22 | |||
23 | SOBUFADDR3 .EQU SPOUTBUFF3 |
||
24 | SIBUFADDR3 .EQU SPINBUFF3 |
||
25 | SOBUFSIZ3 .EQU $1000 |
||
26 | SIBUFSIZ3 .EQU $1000 |
||
27 | |||
28 | SOBUFADDR4 .EQU SPOUTBUFF4 |
||
29 | SIBUFADDR4 .EQU SPINBUFF4 |
||
30 | ;SOBUFSIZ4 .EQU $1000 |
||
31 | ;SIBUFSIZ4 .EQU $1000 |
||
32 | SOBUFSIZ4 .EQU $8000 |
||
33 | SIBUFSIZ4 .EQU $8000 |
||
34 | |||
35 | NGUARD31 .EQU $0200 ; numero bytes di guardia buffer RX XON/XOFF |
||
36 | NGUARD32 .EQU $0100 ; numero bytes di guardia buffer RX handshake |
||
37 | NFREE31 .EQU $0800 ; minimo posto in coda RX per cancellare pausa remota |
||
38 | NFREE32 .EQU $0400 |
||
39 | |||
40 | ;--------------------------------------------------------------------------- |
||
41 | ; direct page var's for test serial ports/usb handling |
||
42 | ;--------------------------------------------------------------------------- |
||
43 | |||
44 | DPSP2: .SECTION page0, common, ref_only ;UART D.P. |
||
45 | |||
46 | usbslv .DB ; <7>: plugged-in, <6>: plug-in pending |
||
47 | usbum .DB ; <7>: pending message, <6>: connected |
||
48 | usbcnt1 .DB ; timeout UM245 plug-in detection |
||
49 | usbbuf .DS 8 |
||
50 | usbtim .DB |
||
51 | usbcnt .DB |
||
52 | usbmst .DB |
||
53 | usbsiz .DW |
||
54 | usbptr LP |
||
55 | usbtmp .DB |
||
56 | usbcmp .DB |
||
57 | |||
58 | ; serial port 65C51 |
||
59 | spmode3 .DB ; <7>: 0=no handshake, 1=handshake |
||
60 | ; <6>: 0=software/1=hardware handshake |
||
61 | ; <5>: not used |
||
62 | ; <4>: not used |
||
63 | ; <3>: 0=odd parity, 1=even parity |
||
64 | ; <2>: 0=no parity, 1=parity as specified |
||
65 | ; by bit <3> |
||
66 | ; <1:0> : baud rate |
||
67 | ; 00 = 19200 |
||
68 | ; 01 = 38400 |
||
69 | ; 10 = 57600 |
||
70 | ; 11 = 115200 |
||
71 | |||
72 | splin3 .DB ; <7>: /CTS line level |
||
73 | ; <6>: /DSR line status |
||
74 | |||
75 | sppause3 .DB |
||
76 | spout3 .DB |
||
77 | spstat3 .DB ; staus |
||
78 | ; <7>: rx error (data discarded) |
||
79 | ; <6>: rx buffer overflow |
||
80 | ; <5>: remote disconnession (/DSR line = 1) |
||
81 | ; <4>: output buffer overflow |
||
82 | ; <3>: not used |
||
83 | ; <2>: framing error |
||
84 | ; <1>: parity error |
||
85 | ; <0>: overrun error |
||
86 | |||
87 | sptmp3 .DB |
||
88 | |||
89 | ibuftail3 .DW |
||
90 | ibufhead3 .DW |
||
91 | obuftail3 .DW |
||
92 | obufhead3 .DW |
||
93 | ibufcnt3 .DW |
||
94 | obufcnt3 .DW |
||
95 | icntmin3 .DW |
||
96 | icntmax3 .DW |
||
97 | |||
98 | ; serial port 16C550 |
||
99 | spmode4 .DB ; <7>: 0=no handshake, 1=handshake |
||
100 | ; <6>: 0=software/1=hardware handshake |
||
101 | ; <5>: not used |
||
102 | ; <4>: not used |
||
103 | ; <3>: 0=odd parity, 1=even parity |
||
104 | ; <2>: 0=no parity, 1=parity as specified |
||
105 | ; by bit <3> |
||
106 | ; <1:0> : baud rate |
||
107 | ; 00 = 19200 |
||
108 | ; 01 = 38400 |
||
109 | ; 10 = 57600 |
||
110 | ; 11 = 115200 |
||
111 | |||
112 | splin4 .DB ; <7>: /DSR line level |
||
113 | ; <6>: /CTS line status |
||
114 | |||
115 | sppause4 .DB |
||
116 | spout4 .DB |
||
117 | spstat4 .DB ; staus |
||
118 | ; <7>: rx error (data discarded) |
||
119 | ; <6>: rx buffer overflow |
||
120 | ; <5>: remote disconnession (/DSR line = 1) |
||
121 | ; <4>: output buffer overflow |
||
122 | ; <3>: break |
||
123 | ; <2>: framing error |
||
124 | ; <1>: parity error |
||
125 | ; <0>: overrun error |
||
126 | |||
127 | sptmp4 .DB |
||
128 | |||
129 | ibuftail4 .DW |
||
130 | ibufhead4 .DW |
||
131 | obuftail4 .DW |
||
132 | obufhead4 .DW |
||
133 | ibufcnt4 .DW |
||
134 | obufcnt4 .DW |
||
135 | icntmin4 .DW |
||
136 | icntmax4 .DW |
||
137 | |||
138 | spcnt4 .DB |
||
139 | uartlsr .DB |
||
140 | uartiir .DB |
||
141 | |||
142 | usb0name .DS 36 |
||
143 | |||
144 | .ENDS |
||
145 | |||
146 | .LIST off |