Mercurial > hg > Members > kono > nitros9-code
annotate defs/scf.d @ 1766:2b34da8585c4
Fixed makefile error
author | boisy |
---|---|
date | Fri, 01 Apr 2005 17:21:19 +0000 |
parents | 27e85b681dab |
children | 9d95e3246a61 |
rev | line source |
---|---|
1629 | 1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1760
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
2 ; scf - Sequential File Manager Definitions |
1629 | 3 ; |
4 ; $Id$ | |
5 ; | |
1760
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
6 ; SCF stands for 'Sequential Character Filemanager' and is a package of |
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
7 ; subroutines that define the logical structure of a serial device. |
1629 | 8 ; |
9 ; The data structures in this file give SCF its 'personality' and are used | |
10 ; by SCF itself, as well as applications that will require disk I/O. | |
11 ; | |
12 ; Edt/Rev YYYY/MM/DD Modified by | |
13 ; Comment | |
14 ; ------------------------------------------------------------------ | |
15 ; 2004/07/02 Boisy G. Pitre | |
1760
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
16 ; Created |
1629 | 17 |
1630
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1629
diff
changeset
|
18 .title Sequential File Manager Definitions |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1629
diff
changeset
|
19 |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1629
diff
changeset
|
20 .area SCF (ABS) |
1629 | 21 |
1630
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1629
diff
changeset
|
22 .ifndef Level |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1629
diff
changeset
|
23 Level == 1 |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1629
diff
changeset
|
24 .endif |
1629 | 25 |
26 .page | |
27 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
28 ; SCF Device Descriptor Offsets | |
29 ; | |
30 ; These definitions are for SCF device descriptors. | |
31 | |
32 .org M$DTyp | |
33 IT.DVC:: .rmb 1 ; Device type (DT.SCF) | |
34 IT.UPC:: .rmb 1 ; Uppercase flag | |
35 IT.BSO:: .rmb 1 ; Backspace behavior | |
36 IT.DLO:: .rmb 1 ; Delete behavior | |
37 IT.EKO:: .rmb 1 ; Echo flag | |
38 IT.ALF:: .rmb 1 ; Auto linefeed flag | |
39 IT.NUL:: .rmb 1 ; End-of-line null count | |
40 IT.PAU:: .rmb 1 ; Page pause flag | |
41 IT.PAG:: .rmb 1 ; Number of lines per page | |
42 IT.BSP:: .rmb 1 ; Backspace character | |
43 IT.DEL:: .rmb 1 ; Delete-line character | |
44 IT.EOR:: .rmb 1 ; End-of-record character | |
45 IT.EOF:: .rmb 1 ; End-of-file character | |
46 IT.RPR:: .rmb 1 ; Reprint-line character | |
47 IT.DUP:: .rmb 1 ; Duplicate-last-line character | |
48 IT.PSC:: .rmb 1 ; Pause character | |
49 IT.INT:: .rmb 1 ; Interrupt character | |
50 IT.QUT:: .rmb 1 ; Quit character | |
51 IT.BSE:: .rmb 1 ; Backspace echo character | |
52 IT.OVF:: .rmb 1 ; Bell character | |
53 IT.PAR:: .rmb 1 ; Parity | |
54 IT.BAU:: .rmb 1 ; Baud rate | |
55 IT.D2P:: .rmb 2 ; Attached device name string offset | |
56 IT.XON:: .rmb 1 ; X-ON character | |
57 IT.XOFF:: .rmb 1 ; X-OFF character | |
58 IT.COL:: .rmb 1 ; Number of columns for display | |
59 IT.ROW:: .rmb 1 ; Number of rows for display | |
60 IT.XTYP:: .rmb 1 ; Extended type (added by BRI) | |
61 | |
62 .ifgt Level-1 | |
63 ; Window Descriptor Additions | |
64 ; For CoCo window, where IT.PAR = $80 | |
65 .org IT.ROW+1 | |
66 IT.WND:: .rmb 1 ; Window number (matches device name) ($2E) | |
67 IT.VAL:: .rmb 1 ; Use defaults on Init (0=no, 1=yes) | |
68 IT.STY:: .rmb 1 ; Screen type default | |
69 IT.CPX:: .rmb 1 ; Column start default | |
70 IT.CPY:: .rmb 1 ; Row start default | |
71 IT.FGC:: .rmb 1 ; Foreground color default | |
72 IT.BGC:: .rmb 1 ; Background color default | |
73 IT.BDC:: .rmb 1 ; Border color default | |
74 .endif | |
75 | |
76 | |
77 .page | |
78 ;;;;;;;;;;;;;;;;;;;; | |
79 ; SCF Static Storage | |
80 ; | |
81 ; SCF devices must reserve this space for SCF | |
82 ; | |
83 .org V.USER | |
84 V.TYPE:: .rmb 1 ; Device type or parity | |
85 V.LINE:: .rmb 1 ; Lines left until end of page | |
86 V.PAUS:: .rmb 1 ; Immediate Pause request | |
87 V.DEV2:: .rmb 2 ; Attached device's static | |
88 V.INTR:: .rmb 1 ; Interrupt char | |
89 V.QUIT:: .rmb 1 ; Quit char | |
90 V.PCHR:: .rmb 1 ; Pause char | |
91 V.ERR:: .rmb 1 ; Accumulated errors | |
92 V.XON:: .rmb 1 ; X-On char | |
93 V.XOFF:: .rmb 1 ; X-Off char | |
94 V.KANJI:: .rmb 1 ; Kanji mode flag | |
95 V.KBUF:: .rmb 2 ; Kana - Kanji convert routine work address | |
96 V.MODADR:: .rmb 2 ; Kana - Kanji convert module address | |
97 V.PDLHd:: .rmb 2 ; Open path descriptor list head pointer | |
98 V.RSV:: .rmb 5 ; Reserve bytes for future expansion | |
99 V.SCF == . ; Total SCF manager static overhead | |
100 | |
101 .page | |
102 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
103 ; Sequential Character Path Descriptor Format | |
104 ; | |
105 ; A path descriptor is created for every new path that is open | |
106 ; via the I$Open system call (processed by IOMan). Process | |
107 ; descriptors track state information of a path. | |
108 ; | |
109 .org PD.FST | |
110 PD.DV2:: .rmb 2 ; Output device table pointer | |
111 PD.RAW:: .rmb 1 ; Read/Write or ReadLn/WritLn mode | |
112 PD.MAX:: .rmb 2 ; ReadLn high byte count | |
113 PD.MIN:: .rmb 1 ; Devices are "mine" if clear | |
114 PD.STS:: .rmb 2 ; Status routine module addr | |
115 PD.STM:: .rmb 2 ; Reserved for status routine | |
116 .org PD.OPT | |
117 .rmb 1 ; Device type | |
118 PD.UPC:: .rmb 1 ; Case (0=both, 1=upper only) | |
119 PD.BSO:: .rmb 1 ; Backspace (0=BSE, 1=BSE,SP,BSE) | |
120 PD.DLO:: .rmb 1 ; Delete (0=BSE over line, 1=CRLF) | |
121 PD.EKO:: .rmb 1 ; Echo (0=No Echo) | |
122 PD.ALF:: .rmb 1 ; Auto linefeed (0=No auto LF) | |
123 PD.NUL:: .rmb 1 ; End of Line null count | |
124 PD.PAU:: .rmb 1 ; Page pause (0=No end of page pause) | |
125 PD.PAG:: .rmb 1 ; Lines per page | |
126 PD.BSP:: .rmb 1 ; Backspace character | |
127 PD.DEL:: .rmb 1 ; Delete Line character | |
128 PD.EOR:: .rmb 1 ; End of Record character (read only) | |
129 PD.EOF:: .rmb 1 ; End of File character | |
130 PD.RPR:: .rmb 1 ; Reprint Line character | |
131 PD.DUP:: .rmb 1 ; Dup Last Line character | |
132 PD.PSC:: .rmb 1 ; Pause character | |
133 PD.INT:: .rmb 1 ; Keyboard interrupt character (CTRL-C) | |
134 PD.QUT:: .rmb 1 ; Keyboard quit character (CTRL-E) | |
135 PD.BSE:: .rmb 1 ; Backspace echo character | |
136 PD.OVF:: .rmb 1 ; Line overflow character (BELL) | |
137 PD.PAR:: .rmb 1 ; Parity code | |
138 PD.BAU:: .rmb 1 ; ACIA baud rate (Color Computer) | |
139 PD.D2P:: .rmb 2 ; Offset of DEV2 name | |
140 PD.XON:: .rmb 1 ; ACIA X-ON character | |
141 PD.XOFF:: .rmb 1 ; ACIA X-OFF character | |
142 OPTCNT == .-PD.OPT ; Total user settable options | |
143 PD.ERR:: .rmb 1 ; Most recent I/O error status | |
144 PD.TBL:: .rmb 2 ; Device table addr (copy) | |
145 PD.PLP:: .rmb 2 ; Path Descriptor List Pointer | |
146 PD.PST:: .rmb 1 ; Current path status | |
147 | |
148 | |
149 ; PD.PST values Path Descriptor Status byte | |
150 ; | |
151 PST.DCD == 0b00000001 ; Set if DCD is lost on Serial port | |
152 | |
153 | |
154 ; PD.PAR definitions | |
155 ; | |
156 ; Parity | |
157 PARNONE == 0b00000000 | |
158 PARODD == 0b00100000 | |
159 PAREVEN == 0b01100000 | |
160 PARMARK == 0b10100000 | |
161 PARSPACE == 0b11100000 | |
162 | |
163 ; PD.BAU definitions | |
164 ; | |
165 ; Baud rate | |
166 B110 == 0b00000000 | |
167 B300 == 0b00000001 | |
168 B600 == 0b00000010 | |
169 B1200 == 0b00000011 | |
170 B2400 == 0b00000100 | |
171 B4800 == 0b00000101 | |
172 B9600 == 0b00000110 | |
173 B19200 == 0b00000111 | |
174 B38400 == 0b00001000 | |
175 B57600 == 0b00001001 | |
176 B115200 == 0b00001010 | |
177 ; Word size | |
178 WORD8 == 0b00000000 | |
179 WORD7 == 0b00100000 | |
180 ; Stop bits | |
181 STOP1 == 0b00000000 | |
182 STOP2 == 0b00010000 |