Mercurial > hg > Members > kono > nitros9-code
annotate defs/scfdefs @ 373:c07686556109
Added ifeq statements at top to allow for multiple use's of same def
file without conflicts.
os9defs: added rmb 2 in NitrOS-9 dev table section to make dev table
13 bytes in size
author | boisy |
---|---|
date | Sat, 24 Aug 2002 14:34:32 +0000 |
parents | 6641a883d6b0 |
children | 911983420d77 |
rev | line source |
---|---|
373
c07686556109
Added ifeq statements at top to allow for multiple use's of same def
boisy
parents:
0
diff
changeset
|
1 ifeq SCFDEFS |
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 |
0 | 5 nam SCFDefs |
6 ttl Sequential File Manager (SCF) Definitions | |
7 | |
8 ***************** | |
9 * Edition History | |
10 * | |
11 * Date Changes Made by | |
12 * -------- ------------------------------------------------------------ --- | |
13 * 84/01/11 Added V.KANJI, V.KBUF, V.MODADR for new kanji input process Y.O | |
14 * 85/04/20 Added V.PDLHd Path Descriptor List Head MGH | |
15 * 85/04/21 Added PD.PLP and PD.PST for modem handling MGH | |
16 * 87/06/23 Updated with Dev Desc info KKD | |
17 * 98/10/03 Consolidated L1/L2 scfdefs BGP | |
18 | |
19 | |
20 ******************************* | |
21 * SCF Device Descriptor Offsets | |
22 * | |
23 org M$DTyp | |
24 IT.DVC rmb 1 Device class | |
25 IT.UPC rmb 1 Uppercase flag | |
26 IT.BSO rmb 1 Backspace behavior | |
27 IT.DLO rmb 1 Delete behavior | |
28 IT.EKO rmb 1 Echo flag | |
29 IT.ALF rmb 1 Auto linefeed flag | |
30 IT.NUL rmb 1 End-of-line null count | |
31 IT.PAU rmb 1 Page pause flag | |
32 IT.PAG rmb 1 Number of lines per page | |
33 IT.BSP rmb 1 Backspace character | |
34 IT.DEL rmb 1 Delete-line character | |
35 IT.EOR rmb 1 End-of-record character | |
36 IT.EOF rmb 1 End-of-file character | |
37 IT.RPR rmb 1 Reprint-line character | |
38 IT.DUP rmb 1 Duplicate-last-line character | |
39 IT.PSC rmb 1 Pause character | |
40 IT.INT rmb 1 Interrupt character | |
41 IT.QUT rmb 1 Quit character | |
42 IT.BSE rmb 1 Backspace echo character | |
43 IT.OVF rmb 1 Bell character | |
44 IT.PAR rmb 1 Parity | |
45 IT.BAU rmb 1 Baud rate | |
46 IT.D2P rmb 2 Attached device name string offset | |
47 IT.XON rmb 1 X-ON character | |
48 IT.XOFF rmb 1 X-OFF character | |
49 IT.COL rmb 1 Number of columns for display | |
50 IT.ROW rmb 1 Number of rows for display | |
51 IT.XTYP rmb 1 Extended type (added by BRI) | |
52 | |
53 ifgt Level-1 | |
54 * Window Descriptor Additions | |
55 * For CoCo window, where IT.PAR = $80 | |
56 org IT.ROW+1 | |
57 IT.WND rmb 1 Window number (matches device name) ($2E) | |
58 IT.VAL rmb 1 Use defaults on Init (0=no, 1=yes) | |
59 IT.STY rmb 1 Screen type default | |
60 IT.CPX rmb 1 Column start default | |
61 IT.CPY rmb 1 Row start default | |
62 IT.FGC rmb 1 Foreground color default | |
63 IT.BGC rmb 1 Background color default | |
64 IT.BDC rmb 1 Border color default | |
65 endc | |
66 | |
67 pag | |
68 ************************************************************ | |
69 * Static storage requirements | |
70 * SCF Devices must reserve this space for SCF | |
71 * | |
72 org V.USER | |
73 V.TYPE rmb 1 Device type or parity | |
74 V.LINE rmb 1 Lines left until end of page | |
75 V.PAUS rmb 1 Immediate Pause request | |
76 V.DEV2 rmb 2 Attached device's static | |
77 V.INTR rmb 1 Interrupt char | |
78 V.QUIT rmb 1 Quit char | |
79 V.PCHR rmb 1 Pause char | |
80 V.ERR rmb 1 Accumulated errors | |
81 V.XON rmb 1 X-On char | |
82 V.XOFF rmb 1 X-Off char | |
83 V.KANJI rmb 1 Kanji mode flag | |
84 V.KBUF rmb 2 Kana - Kanji convert routine work address | |
85 V.MODADR rmb 2 Kana - Kanji convert module address | |
86 V.PDLHd rmb 2 Open path descriptor list head pointer | |
87 V.RSV rmb 5 Reserve bytes for future expansion | |
88 V.SCF equ . Total SCF manager static overhead | |
89 | |
90 *********************** | |
91 * Character Definitions | |
92 * | |
93 C$NULL set 0 Null char | |
94 C$RPET set $01 (ctl A - SOH) Repeat last input line | |
95 C$INTR set $03 (ctl C - ETX) Keyboard interrupt | |
96 C$RPRT set $04 (ctl D - EOT) Reprint current input line | |
97 C$QUIT set $05 (ctl E - ENQ) Keyboard Abort | |
98 C$BELL set $07 (ctl G - BEL) Line overflow warning | |
99 C$BSP set $08 (ctl H - BS ) Back space | |
100 C$EL set $05 Erase Line | |
101 C$LF set $0A Line feed | |
102 C$HOME set $0B Home position Code | |
103 C$Clsgr set $15 Graphic screen clear (use FM-11) | |
104 C$Clsall set $16 Graphic & character clear (use FM-11) | |
105 C$CR set $0D Carriage return | |
106 C$FORM set $0C (ctl L - FF ) Form Feed ... screen clear | |
107 C$SI set $0F Shift IN Code | |
108 C$SO set $0E Shift OUT Code | |
109 C$XON set $11 (ctl Q - DC1) Transmit Enable | |
110 C$XOFF set $13 (ctl S - DC3) Transmit Disable | |
111 C$PAUS set $17 (ctl W - ETB) Pause character | |
112 C$DEL set $18 (ctl X - CAN) Delete line | |
113 C$EOF set $1B (ctl [ - ESC) END of file | |
114 C$RGT set $1C Cursor right | |
115 C$LFT set $1D Cursor left | |
116 C$UP set $1E Cursor up | |
117 C$DWN set $1F Cursor down | |
118 C$SPAC set $20 Space | |
119 C$PERD set '. | |
120 C$COMA set ', | |
121 | |
122 pag | |
123 ************************* | |
124 * FILE DESCRIPTOR OFFSETS | |
125 * | |
126 org PD.FST | |
127 PD.DV2 rmb 2 OUTPUT DEV TBL PTR | |
128 PD.RAW rmb 1 READ/WRITE OR RDLIN/WRLIN MODE | |
129 PD.MAX rmb 2 READLINE HIGH BYTE COUNT | |
130 PD.MIN rmb 1 DEVICES ARE "MINE" IF CLEAR | |
131 PD.STS rmb 2 Status routine module addr | |
132 PD.STM rmb 2 Reserved for Status routine | |
133 org PD.OPT | |
134 rmb 1 DEVICE TYPE | |
135 PD.UPC rmb 1 CASE (0=BOTH, 1=UPPER ONLY) | |
136 PD.BSO rmb 1 BACKSP (0=BSE, 1=BSE,SP,BSE) | |
137 PD.DLO rmb 1 DELETE (0=BSE OVER LINE, 1=CRLF) | |
138 PD.EKO rmb 1 ECHO (0=NO ECHO) | |
139 PD.ALF rmb 1 AUTOLF (0=NO AUTO LF) | |
140 PD.NUL rmb 1 END of LINE NULL COUNT | |
141 PD.PAU rmb 1 PAUSE (0=NO END of PAGE PAUSE) | |
142 PD.PAG rmb 1 LINES PER PAGE | |
143 PD.BSP rmb 1 BACKSPACE charACTER | |
144 PD.DEL rmb 1 DELETE LINE charACTER | |
145 PD.EOR rmb 1 END of RECORD char (READ ONLY) | |
146 PD.EOF rmb 1 END of FILE char | |
147 PD.RPR rmb 1 REPRINT LINE char | |
148 PD.DUP rmb 1 DUP LAST LINE char | |
149 PD.PSC rmb 1 PAUSE char | |
150 PD.INT rmb 1 KBD INTR char (ctl c) | |
151 PD.QUT rmb 1 KBD QUIT char (ctl q) | |
152 PD.BSE rmb 1 BACKSPACE ECHO charACTER | |
153 PD.OVF rmb 1 LINE OVERFLOW char (BELL) | |
154 PD.PAR rmb 1 PARITY CODE | |
155 PD.BAU rmb 1 ACIA BAUD RATE (Color Computer) | |
156 PD.D2P rmb 2 OFFSET of DEV2 name | |
157 PD.XON rmb 1 ACIA X-ON char | |
158 PD.XOFF rmb 1 ACIA X-OFF char | |
159 OPTCNT equ .-PD.OPT Total user settable options | |
160 PD.ERR rmb 1 Most recent I/O error status | |
161 PD.TBL rmb 2 Device Table addr (copy) | |
162 PD.PLP rmb 2 Path Descriptor List Pointer | |
163 PD.PST rmb 1 Current Path Status | |
164 | |
165 ******************************************** | |
166 * PD.PST values Path Descriptor Status byte | |
167 * | |
168 PST.DCD equ %00000001 Set if DCD is lost on Serial port | |
169 | |
170 pag | |
171 ************************************************************ | |
172 * | |
173 * SCF PD.PAR definitions | |
174 * | |
175 * Baud rate | |
176 B110 equ 0 | |
177 B300 equ 1 | |
178 B600 equ 2 | |
179 B1200 equ 3 | |
180 B2400 equ 4 | |
181 B4800 equ 5 | |
182 B9600 equ 6 | |
183 B19200 equ 7 | |
184 * Word size | |
185 WORD8 equ %00000000 | |
186 WORD7 equ %00100000 | |
187 * Parity | |
188 PARNONE equ %00000000 | |
189 PARODD equ %00100000 | |
190 PAREVEN equ %01100000 | |
191 PARMARK equ %10100000 | |
192 PARSPACE equ %11100000 | |
193 * Stop bits | |
194 STOP1 equ %00000000 | |
195 STOP2 equ %00010000 | |
373
c07686556109
Added ifeq statements at top to allow for multiple use's of same def
boisy
parents:
0
diff
changeset
|
196 endc |
0 | 197 |