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