comparison defs/scfdefs @ 1200:0a678473d5cf

Major overhaul of headers to 'new' style
author boisy
date Mon, 02 Jun 2003 20:42:40 +0000
parents 903ccb6c06cf
children cfc38fcd72d7
comparison
equal deleted inserted replaced
1199:4e48403790f0 1200:0a678473d5cf
1 IFEQ SCFDEFS 1 IFEQ SCFDEFS
2 2
3 SCFDEFS set 1 3 SCFDEFS set 1
4 4
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.
21 *
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
5 nam SCFDefs 40 nam SCFDefs
6 ttl Sequential File Manager (SCF) Definitions 41 ttl Sequential File Manager Definitions
7 42
8 ***************** 43
9 * Edition History 44 pag
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 * 03/01/21 Added symbolics for enhanced SCF line editing BGP
19
20
21 ******************************* 45 *******************************
22 * SCF Device Descriptor Offsets 46 * SCF Device Descriptor Offsets
23 * 47 *
48 * These definitions are for SCF device descriptors.
49
24 org M$DTyp 50 org M$DTyp
25 IT.DVC rmb 1 Device class 51 IT.DVC rmb 1 Device type (DT.SCF)
26 IT.UPC rmb 1 Uppercase flag 52 IT.UPC rmb 1 Uppercase flag
27 IT.BSO rmb 1 Backspace behavior 53 IT.BSO rmb 1 Backspace behavior
28 IT.DLO rmb 1 Delete behavior 54 IT.DLO rmb 1 Delete behavior
29 IT.EKO rmb 1 Echo flag 55 IT.EKO rmb 1 Echo flag
30 IT.ALF rmb 1 Auto linefeed flag 56 IT.ALF rmb 1 Auto linefeed flag
63 IT.FGC rmb 1 Foreground color default 89 IT.FGC rmb 1 Foreground color default
64 IT.BGC rmb 1 Background color default 90 IT.BGC rmb 1 Background color default
65 IT.BDC rmb 1 Border color default 91 IT.BDC rmb 1 Border color default
66 ENDC 92 ENDC
67 93
68 pag 94
69 ************************************************************ 95 pag
70 * Static storage requirements 96 ********************
71 * SCF Devices must reserve this space for SCF 97 * SCF Static Storage
98 *
99 * SCF devices must reserve this space for SCF
72 * 100 *
73 org V.USER 101 org V.USER
74 V.TYPE rmb 1 Device type or parity 102 V.TYPE rmb 1 Device type or parity
75 V.LINE rmb 1 Lines left until end of page 103 V.LINE rmb 1 Lines left until end of page
76 V.PAUS rmb 1 Immediate Pause request 104 V.PAUS rmb 1 Immediate Pause request
86 V.MODADR rmb 2 Kana - Kanji convert module address 114 V.MODADR rmb 2 Kana - Kanji convert module address
87 V.PDLHd rmb 2 Open path descriptor list head pointer 115 V.PDLHd rmb 2 Open path descriptor list head pointer
88 V.RSV rmb 5 Reserve bytes for future expansion 116 V.RSV rmb 5 Reserve bytes for future expansion
89 V.SCF equ . Total SCF manager static overhead 117 V.SCF equ . Total SCF manager static overhead
90 118
119
120 pag
91 *********************** 121 ***********************
92 * Character Definitions 122 * Character Definitions
93 * 123 *
94 C$NULL set 0 Null char 124 C$NULL set 0 Null char
95 C$RPET set $01 (ctl A - SOH) Repeat last input line 125 C$RPET set $01 (CTRL-A - SOH) Repeat last input line
96 C$INTR set $03 (ctl C - ETX) Keyboard interrupt 126 C$INTR set $03 (CTRL-C - ETX) Keyboard interrupt
97 C$RPRT set $04 (ctl D - EOT) Reprint current input line 127 C$RPRT set $04 (CTRL-D - EOT) Reprint current input line
98 C$QUIT set $05 (ctl E - ENQ) Keyboard Abort 128 C$QUIT set $05 (CTRL-E - ENQ) Keyboard Abort
99 C$BELL set $07 (ctl G - BEL) Line overflow warning 129 C$BELL set $07 (CTRL-G - BEL) Line overflow warning
100 C$BSP set $08 (ctl H - BS ) Back space 130 C$BSP set $08 (CTRL-H - BS ) Back space
101 C$RARR set $09 Right Arrow 131 C$RARR set $09 Right Arrow
102 C$EL set $05 Erase Line 132 C$EL set $05 Erase Line
103 C$LF set $0A Line feed 133 C$LF set $0A Line feed
104 C$HOME set $0B Home position Code 134 C$HOME set $0B Home position Code
105 C$Clsgr set $15 Graphic screen clear (use FM-11) 135 C$Clsgr set $15 Graphic screen clear (use FM-11)
106 C$Clsall set $16 Graphic & character clear (use FM-11) 136 C$Clsall set $16 Graphic & character clear (use FM-11)
107 C$CR set $0D Carriage return 137 C$CR set $0D Carriage return
108 C$FORM set $0C (ctl L - FF ) Form Feed ... screen clear 138 C$FORM set $0C (CTRL-L - FF ) Form Feed ... screen clear
109 C$SI set $0F Shift IN Code 139 C$SI set $0F Shift IN Code
110 C$SO set $0E Shift OUT Code 140 C$SO set $0E Shift OUT Code
111 C$DELETE set $10 Delete char (for SCF enhanced line editing) 141 C$DELETE set $10 Delete char (for SCF enhanced line editing)
112 C$XON set $11 (ctl Q - DC1) Transmit Enable 142 C$XON set $11 (CTRL-Q - DC1) Transmit Enable
113 C$INSERT set C$XON Insert char (for SCF enhanced line editing) 143 C$INSERT set C$XON Insert char (for SCF enhanced line editing)
114 C$XOFF set $13 (ctl S - DC3) Transmit Disable 144 C$XOFF set $13 (CTRL-S - DC3) Transmit Disable
115 C$PLINE set C$XOFF Print remaining line (for SCF enhanced line editing) 145 C$PLINE set C$XOFF Print remaining line (for SCF enhanced line editing)
116 C$PAUS set $17 (ctl W - ETB) Pause character 146 C$PAUS set $17 (CTRL-W - ETB) Pause character
117 C$DEL set $18 (ctl X - CAN) Delete line 147 C$DEL set $18 (CTRL-X - CAN) Delete line
118 C$SHRARR set $19 Shift Right-Arrow 148 C$SHRARR set $19 Shift Right-Arrow
119 C$EOF set $1B (ctl [ - ESC) END of file 149 C$EOF set $1B (CTRL-[ - ESC) END of file
120 C$RGT set $1C Cursor right 150 C$RGT set $1C Cursor right
121 C$LFT set $1D Cursor left 151 C$LFT set $1D Cursor left
122 C$UP set $1E Cursor up 152 C$UP set $1E Cursor up
123 C$DWN set $1F Cursor down 153 C$DWN set $1F Cursor down
124 C$SPAC set $20 Space 154 C$SPAC set $20 Space
125 C$PERD set '. 155 C$PERD set '.
126 C$COMA set ', 156 C$COMA set ',
127 157
128 pag 158
129 ************************* 159 pag
130 * FILE DESCRIPTOR OFFSETS 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.
131 * 166 *
132 org PD.FST 167 org PD.FST
133 PD.DV2 rmb 2 OUTPUT DEV TBL PTR 168 PD.DV2 rmb 2 Output device table pointer
134 PD.RAW rmb 1 READ/WRITE OR RDLIN/WRLIN MODE 169 PD.RAW rmb 1 Read/Write or ReadLn/WritLn mode
135 PD.MAX rmb 2 READLINE HIGH BYTE COUNT 170 PD.MAX rmb 2 ReadLn high byte count
136 PD.MIN rmb 1 DEVICES ARE "MINE" IF CLEAR 171 PD.MIN rmb 1 Devices are "mine" if clear
137 PD.STS rmb 2 Status routine module addr 172 PD.STS rmb 2 Status routine module addr
138 PD.STM rmb 2 Reserved for Status routine 173 PD.STM rmb 2 Reserved for status routine
139 org PD.OPT 174 org PD.OPT
140 rmb 1 DEVICE TYPE 175 rmb 1 Device type
141 PD.UPC rmb 1 CASE (0=BOTH, 1=UPPER ONLY) 176 PD.UPC rmb 1 Case (0=both, 1=upper only)
142 PD.BSO rmb 1 BACKSP (0=BSE, 1=BSE,SP,BSE) 177 PD.BSO rmb 1 Backspace (0=BSE, 1=BSE,SP,BSE)
143 PD.DLO rmb 1 DELETE (0=BSE OVER LINE, 1=CRLF) 178 PD.DLO rmb 1 Delete (0=BSE over line, 1=CRLF)
144 PD.EKO rmb 1 ECHO (0=NO ECHO) 179 PD.EKO rmb 1 Echo (0=No Echo)
145 PD.ALF rmb 1 AUTOLF (0=NO AUTO LF) 180 PD.ALF rmb 1 Auto linefeed (0=No auto LF)
146 PD.NUL rmb 1 END of LINE NULL COUNT 181 PD.NUL rmb 1 End of Line null count
147 PD.PAU rmb 1 PAUSE (0=NO END of PAGE PAUSE) 182 PD.PAU rmb 1 Page pause (0=No end of page pause)
148 PD.PAG rmb 1 LINES PER PAGE 183 PD.PAG rmb 1 Lines per page
149 PD.BSP rmb 1 BACKSPACE charACTER 184 PD.BSP rmb 1 Backspace character
150 PD.DEL rmb 1 DELETE LINE charACTER 185 PD.DEL rmb 1 Delete Line character
151 PD.EOR rmb 1 END of RECORD char (READ ONLY) 186 PD.EOR rmb 1 End of Record character (read only)
152 PD.EOF rmb 1 END of FILE char 187 PD.EOF rmb 1 End of File character
153 PD.RPR rmb 1 REPRINT LINE char 188 PD.RPR rmb 1 Repront Line character
154 PD.DUP rmb 1 DUP LAST LINE char 189 PD.DUP rmb 1 Dup Last Line character
155 PD.PSC rmb 1 PAUSE char 190 PD.PSC rmb 1 Pause character
156 PD.INT rmb 1 KBD INTR char (ctl c) 191 PD.INT rmb 1 Keyboard interrupt character (CTRL-C)
157 PD.QUT rmb 1 KBD QUIT char (ctl q) 192 PD.QUT rmb 1 Keyboard quit character (CTRL-E)
158 PD.BSE rmb 1 BACKSPACE ECHO charACTER 193 PD.BSE rmb 1 Backspace echo character
159 PD.OVF rmb 1 LINE OVERFLOW char (BELL) 194 PD.OVF rmb 1 Line overflow character (BELL)
160 PD.PAR rmb 1 PARITY CODE 195 PD.PAR rmb 1 Parity code
161 PD.BAU rmb 1 ACIA BAUD RATE (Color Computer) 196 PD.BAU rmb 1 ACIA baud rate (Color Computer)
162 PD.D2P rmb 2 OFFSET of DEV2 name 197 PD.D2P rmb 2 Offset of DEV2 name
163 PD.XON rmb 1 ACIA X-ON char 198 PD.XON rmb 1 ACIA X-ON character
164 PD.XOFF rmb 1 ACIA X-OFF char 199 PD.XOFF rmb 1 ACIA X-OFF character
165 OPTCNT equ .-PD.OPT Total user settable options 200 OPTCNT equ .-PD.OPT Total user settable options
166 PD.ERR rmb 1 Most recent I/O error status 201 PD.ERR rmb 1 Most recent I/O error status
167 PD.TBL rmb 2 Device Table addr (copy) 202 PD.TBL rmb 2 Device table addr (copy)
168 PD.PLP rmb 2 Path Descriptor List Pointer 203 PD.PLP rmb 2 Path Descriptor List Pointer
169 PD.PST rmb 1 Current Path Status 204 PD.PST rmb 1 Current path status
170 205
171 ******************************************** 206
172 * PD.PST values Path Descriptor Status byte 207 * PD.PST values Path Descriptor Status byte
173 * 208 *
174 PST.DCD equ %00000001 Set if DCD is lost on Serial port 209 PST.DCD equ %00000001 Set if DCD is lost on Serial port
175 210
176 pag 211
177 ************************************************************ 212 * PD.PAR definitions
178 *
179 * SCF PD.PAR definitions
180 * 213 *
181 * Baud rate 214 * Baud rate
182 B110 equ 0 215 B110 equ 0
183 B300 equ 1 216 B300 equ 1
184 B600 equ 2 217 B600 equ 2