Mercurial > hg > Members > kono > nitros9-code
annotate defs/scfdefs @ 1971:136a4e706aa6
Fixed step rate issues on recalibrate on original Dragon 5.25" drives
author | afra |
---|---|
date | Sun, 08 Jan 2006 21:39:17 +0000 |
parents | 338690d16f53 |
children | e396d4f24b27 |
rev | line source |
---|---|
1541 | 1 IFNE SCFDEFS-1 |
373
c07686556109
Added ifeq statements at top to allow for multiple use's of same def
boisy
parents:
0
diff
changeset
|
2 |
c07686556109
Added ifeq statements at top to allow for multiple use's of same def
boisy
parents:
0
diff
changeset
|
3 SCFDEFS set 1 |
c07686556109
Added ifeq statements at top to allow for multiple use's of same def
boisy
parents:
0
diff
changeset
|
4 |
1200 | 5 ******************************************************************** |
6 * SCFDefs - Sequential Character File Manager Definitions | |
7 * | |
8 * $Id$ | |
9 * | |
10 * SCF stands for 'Sequential Character Filemanager' and is a package of subroutines | |
11 * that define the logical structure of a serial device. | |
12 * | |
13 * The data structures in this file give SCF its 'personality' and are used | |
14 * by SCF itself, as well as applications that will require disk I/O. | |
15 * | |
16 * Edt/Rev YYYY/MM/DD Modified by | |
17 * Comment | |
18 * ------------------------------------------------------------------ | |
19 * 1984/01/11 YO | |
20 * Added V.KANJI, V.KBUF, V.MODADR for new kanji input process. | |
0 | 21 * |
1200 | 22 * 1985/04/20 Mark G. Hawkins |
23 * Added V.PDLHd Path Descriptor List Head. | |
24 * | |
25 * 1985/04/21 Mark G. Hawkins | |
26 * Added PD.PLP and PD.PST for modem handling. | |
27 * | |
28 * 1987/06/23 Kevin K. Darling | |
29 * Updated with Dev Desc info. | |
30 * | |
31 * 1998/10/03 Boisy G. Pitre | |
32 * Consolidated L1/L2 scfdefs. | |
33 * | |
34 * 2003/01/21 Boisy G. Pitre | |
35 * Added symbolics for enhanced SCF line editing. | |
36 * | |
37 * 2003/06/02 Boisy G. Pitre | |
38 * Updated comments for clarity. | |
1568 | 39 * |
40 * 2004/05/17 Boisy G. Pitre | |
41 * Added higher baud rates. | |
1200 | 42 |
43 nam SCFDefs | |
44 ttl Sequential File Manager Definitions | |
0 | 45 |
46 | |
1200 | 47 pag |
0 | 48 ******************************* |
49 * SCF Device Descriptor Offsets | |
50 * | |
1200 | 51 * These definitions are for SCF device descriptors. |
52 | |
0 | 53 org M$DTyp |
1200 | 54 IT.DVC rmb 1 Device type (DT.SCF) |
0 | 55 IT.UPC rmb 1 Uppercase flag |
56 IT.BSO rmb 1 Backspace behavior | |
57 IT.DLO rmb 1 Delete behavior | |
58 IT.EKO rmb 1 Echo flag | |
59 IT.ALF rmb 1 Auto linefeed flag | |
60 IT.NUL rmb 1 End-of-line null count | |
61 IT.PAU rmb 1 Page pause flag | |
62 IT.PAG rmb 1 Number of lines per page | |
63 IT.BSP rmb 1 Backspace character | |
64 IT.DEL rmb 1 Delete-line character | |
65 IT.EOR rmb 1 End-of-record character | |
66 IT.EOF rmb 1 End-of-file character | |
67 IT.RPR rmb 1 Reprint-line character | |
68 IT.DUP rmb 1 Duplicate-last-line character | |
69 IT.PSC rmb 1 Pause character | |
70 IT.INT rmb 1 Interrupt character | |
71 IT.QUT rmb 1 Quit character | |
72 IT.BSE rmb 1 Backspace echo character | |
73 IT.OVF rmb 1 Bell character | |
74 IT.PAR rmb 1 Parity | |
75 IT.BAU rmb 1 Baud rate | |
76 IT.D2P rmb 2 Attached device name string offset | |
77 IT.XON rmb 1 X-ON character | |
78 IT.XOFF rmb 1 X-OFF character | |
79 IT.COL rmb 1 Number of columns for display | |
80 IT.ROW rmb 1 Number of rows for display | |
81 IT.XTYP rmb 1 Extended type (added by BRI) | |
82 | |
940 | 83 IFGT Level-1 |
0 | 84 * Window Descriptor Additions |
85 * For CoCo window, where IT.PAR = $80 | |
86 org IT.ROW+1 | |
87 IT.WND rmb 1 Window number (matches device name) ($2E) | |
88 IT.VAL rmb 1 Use defaults on Init (0=no, 1=yes) | |
89 IT.STY rmb 1 Screen type default | |
90 IT.CPX rmb 1 Column start default | |
91 IT.CPY rmb 1 Row start default | |
92 IT.FGC rmb 1 Foreground color default | |
93 IT.BGC rmb 1 Background color default | |
94 IT.BDC rmb 1 Border color default | |
940 | 95 ENDC |
0 | 96 |
1200 | 97 |
0 | 98 pag |
1200 | 99 ******************** |
100 * SCF Static Storage | |
101 * | |
102 * SCF devices must reserve this space for SCF | |
0 | 103 * |
104 org V.USER | |
105 V.TYPE rmb 1 Device type or parity | |
106 V.LINE rmb 1 Lines left until end of page | |
107 V.PAUS rmb 1 Immediate Pause request | |
108 V.DEV2 rmb 2 Attached device's static | |
109 V.INTR rmb 1 Interrupt char | |
110 V.QUIT rmb 1 Quit char | |
111 V.PCHR rmb 1 Pause char | |
112 V.ERR rmb 1 Accumulated errors | |
113 V.XON rmb 1 X-On char | |
114 V.XOFF rmb 1 X-Off char | |
115 V.KANJI rmb 1 Kanji mode flag | |
116 V.KBUF rmb 2 Kana - Kanji convert routine work address | |
117 V.MODADR rmb 2 Kana - Kanji convert module address | |
118 V.PDLHd rmb 2 Open path descriptor list head pointer | |
119 V.RSV rmb 5 Reserve bytes for future expansion | |
120 V.SCF equ . Total SCF manager static overhead | |
121 | |
1200 | 122 |
123 pag | |
0 | 124 *********************** |
125 * Character Definitions | |
126 * | |
127 C$NULL set 0 Null char | |
1200 | 128 C$RPET set $01 (CTRL-A - SOH) Repeat last input line |
129 C$INTR set $03 (CTRL-C - ETX) Keyboard interrupt | |
130 C$RPRT set $04 (CTRL-D - EOT) Reprint current input line | |
131 C$QUIT set $05 (CTRL-E - ENQ) Keyboard Abort | |
132 C$BELL set $07 (CTRL-G - BEL) Line overflow warning | |
133 C$BSP set $08 (CTRL-H - BS ) Back space | |
433 | 134 C$RARR set $09 Right Arrow |
0 | 135 C$EL set $05 Erase Line |
136 C$LF set $0A Line feed | |
137 C$HOME set $0B Home position Code | |
138 C$Clsgr set $15 Graphic screen clear (use FM-11) | |
139 C$Clsall set $16 Graphic & character clear (use FM-11) | |
140 C$CR set $0D Carriage return | |
1200 | 141 C$FORM set $0C (CTRL-L - FF ) Form Feed ... screen clear |
0 | 142 C$SI set $0F Shift IN Code |
143 C$SO set $0E Shift OUT Code | |
940 | 144 C$DELETE set $10 Delete char (for SCF enhanced line editing) |
1200 | 145 C$XON set $11 (CTRL-Q - DC1) Transmit Enable |
940 | 146 C$INSERT set C$XON Insert char (for SCF enhanced line editing) |
1200 | 147 C$XOFF set $13 (CTRL-S - DC3) Transmit Disable |
940 | 148 C$PLINE set C$XOFF Print remaining line (for SCF enhanced line editing) |
1200 | 149 C$PAUS set $17 (CTRL-W - ETB) Pause character |
150 C$DEL set $18 (CTRL-X - CAN) Delete line | |
433 | 151 C$SHRARR set $19 Shift Right-Arrow |
1200 | 152 C$EOF set $1B (CTRL-[ - ESC) END of file |
0 | 153 C$RGT set $1C Cursor right |
154 C$LFT set $1D Cursor left | |
155 C$UP set $1E Cursor up | |
156 C$DWN set $1F Cursor down | |
157 C$SPAC set $20 Space | |
158 C$PERD set '. | |
159 C$COMA set ', | |
160 | |
1200 | 161 |
0 | 162 pag |
1200 | 163 ********************************************* |
164 * Sequential Character Path Descriptor Format | |
165 * | |
166 * A path descriptor is created for every new path that is open | |
167 * via the I$Open system call (processed by IOMan). Process | |
168 * descriptors track state information of a path. | |
0 | 169 * |
170 org PD.FST | |
1200 | 171 PD.DV2 rmb 2 Output device table pointer |
172 PD.RAW rmb 1 Read/Write or ReadLn/WritLn mode | |
173 PD.MAX rmb 2 ReadLn high byte count | |
174 PD.MIN rmb 1 Devices are "mine" if clear | |
0 | 175 PD.STS rmb 2 Status routine module addr |
1200 | 176 PD.STM rmb 2 Reserved for status routine |
0 | 177 org PD.OPT |
1200 | 178 rmb 1 Device type |
179 PD.UPC rmb 1 Case (0=both, 1=upper only) | |
180 PD.BSO rmb 1 Backspace (0=BSE, 1=BSE,SP,BSE) | |
181 PD.DLO rmb 1 Delete (0=BSE over line, 1=CRLF) | |
182 PD.EKO rmb 1 Echo (0=No Echo) | |
183 PD.ALF rmb 1 Auto linefeed (0=No auto LF) | |
184 PD.NUL rmb 1 End of Line null count | |
185 PD.PAU rmb 1 Page pause (0=No end of page pause) | |
186 PD.PAG rmb 1 Lines per page | |
187 PD.BSP rmb 1 Backspace character | |
188 PD.DEL rmb 1 Delete Line character | |
189 PD.EOR rmb 1 End of Record character (read only) | |
190 PD.EOF rmb 1 End of File character | |
191 PD.RPR rmb 1 Repront Line character | |
192 PD.DUP rmb 1 Dup Last Line character | |
193 PD.PSC rmb 1 Pause character | |
194 PD.INT rmb 1 Keyboard interrupt character (CTRL-C) | |
195 PD.QUT rmb 1 Keyboard quit character (CTRL-E) | |
196 PD.BSE rmb 1 Backspace echo character | |
197 PD.OVF rmb 1 Line overflow character (BELL) | |
198 PD.PAR rmb 1 Parity code | |
199 PD.BAU rmb 1 ACIA baud rate (Color Computer) | |
200 PD.D2P rmb 2 Offset of DEV2 name | |
201 PD.XON rmb 1 ACIA X-ON character | |
202 PD.XOFF rmb 1 ACIA X-OFF character | |
0 | 203 OPTCNT equ .-PD.OPT Total user settable options |
204 PD.ERR rmb 1 Most recent I/O error status | |
1200 | 205 PD.TBL rmb 2 Device table addr (copy) |
0 | 206 PD.PLP rmb 2 Path Descriptor List Pointer |
1200 | 207 PD.PST rmb 1 Current path status |
0 | 208 |
1200 | 209 |
0 | 210 * PD.PST values Path Descriptor Status byte |
211 * | |
212 PST.DCD equ %00000001 Set if DCD is lost on Serial port | |
213 | |
1200 | 214 |
215 * PD.PAR definitions | |
0 | 216 * |
1208 | 217 * Parity |
218 PARNONE equ %00000000 | |
219 PARODD equ %00100000 | |
220 PAREVEN equ %01100000 | |
221 PARMARK equ %10100000 | |
222 PARSPACE equ %11100000 | |
223 | |
224 * PD.BAU definitions | |
225 * | |
0 | 226 * Baud rate |
1568 | 227 B110 equ %00000000 |
228 B300 equ %00000001 | |
229 B600 equ %00000010 | |
230 B1200 equ %00000011 | |
231 B2400 equ %00000100 | |
232 B4800 equ %00000101 | |
233 B9600 equ %00000110 | |
234 B19200 equ %00000111 | |
235 B38400 equ %00001000 | |
236 B57600 equ %00001001 | |
237 B115200 equ %00001010 | |
0 | 238 * Word size |
239 WORD8 equ %00000000 | |
240 WORD7 equ %00100000 | |
241 * Stop bits | |
242 STOP1 equ %00000000 | |
243 STOP2 equ %00010000 | |
244 | |
940 | 245 ENDC |