annotate lib/os9defs.a @ 2328:cfb7dcf4322c

added lib
author boisy
date Wed, 13 Jan 2010 04:44:24 +0000
parents
children a894bfdef5b3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2328
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1 ********************************************************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
2 * OS9Defs - NitrOS-9 System Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
3 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
4 * $Id$
cfb7dcf4322c added lib
boisy
parents:
diff changeset
5 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
6 * Edt/Rev YYYY/MM/DD Modified by
cfb7dcf4322c added lib
boisy
parents:
diff changeset
7 * Comment
cfb7dcf4322c added lib
boisy
parents:
diff changeset
8 * ------------------------------------------------------------------
cfb7dcf4322c added lib
boisy
parents:
diff changeset
9 * 1985/08/29 KMZ
cfb7dcf4322c added lib
boisy
parents:
diff changeset
10 * Fixed DT.SBF/NFM values to 3/4
cfb7dcf4322c added lib
boisy
parents:
diff changeset
11 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
12 * 1985/09/01 KMZ
cfb7dcf4322c added lib
boisy
parents:
diff changeset
13 * Added SS.FDInf, SS.Attr to accept 68K request thru NET.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
14 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
15 * 1985/09/03 KMZ/Robert F. Doggett
cfb7dcf4322c added lib
boisy
parents:
diff changeset
16 * Eliminated E$BPrcID, made Error #238 become E$DNE for
cfb7dcf4322c added lib
boisy
parents:
diff changeset
17 * 68000 compatability.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
18 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
19 * 1986/04/15 Mark G. Hawkins
cfb7dcf4322c added lib
boisy
parents:
diff changeset
20 * F$AlHRAM System call added for COCO.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
21 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
22 * 1986/09/08 Mark G. Hawkins
cfb7dcf4322c added lib
boisy
parents:
diff changeset
23 * F$Alarm for COCO Clock Module.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
24 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
25 * 1986/09/17 Mark G. Hawkins
cfb7dcf4322c added lib
boisy
parents:
diff changeset
26 * SS.Tone For COCO.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
27 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
28 * 1986/09/23 Mark G. Hawkins
cfb7dcf4322c added lib
boisy
parents:
diff changeset
29 * Added F$NMLink and F$NMLoad for COCO.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
30 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
31 * 1986/09/30 Mark G. Hawkins
cfb7dcf4322c added lib
boisy
parents:
diff changeset
32 * Added Reserved User $70 to $7f in sytem calls.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
33 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
34 * 1986/09/30 Mark G. Hawkins
cfb7dcf4322c added lib
boisy
parents:
diff changeset
35 * Created Color Computer 3 Version of OS9Defs.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
36 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
37 * 1998/10/03 Boisy G. Pitre
cfb7dcf4322c added lib
boisy
parents:
diff changeset
38 * Consoldated Level 1/Level 2 os9defs.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
39 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
40 * 2002/04/04 Boisy G. Pitre
cfb7dcf4322c added lib
boisy
parents:
diff changeset
41 * Consoldated Level 2/Level 2 V3 os9defs.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
42 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
43 * 2002/04/30 Boisy G. Pitre
cfb7dcf4322c added lib
boisy
parents:
diff changeset
44 * Added NitrOS-9 definitions.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
45 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
46 * 2003/05/30 Boisy G. Pitre
cfb7dcf4322c added lib
boisy
parents:
diff changeset
47 * Added WD1002 sys vars to Level One section.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
48 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
49 * 2003/06/02 Boisy G. Pitre
cfb7dcf4322c added lib
boisy
parents:
diff changeset
50 * Fixed incorrectly ordered D.X*** system globals for OS-9 Level One and
cfb7dcf4322c added lib
boisy
parents:
diff changeset
51 * changed the sizes from 2 to 3 bytes.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
52 * DT.NFM is now the same for both Level One and Level Two.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
53 * Added DT.CDFM type for future CD-ROM file manager
cfb7dcf4322c added lib
boisy
parents:
diff changeset
54 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
55 * 2003/11/05 Robert Gault
cfb7dcf4322c added lib
boisy
parents:
diff changeset
56 * Fixed MouseInf. Made it rmb 2 as it should be. Also changes to init and cc3io.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
57 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
58 * 2005/11/02 P.Harvey-Smith
cfb7dcf4322c added lib
boisy
parents:
diff changeset
59 * Added definitions for boot areas on Dragon computers.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
60 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
61 * 2006/03/03 Boisy G. Pitre
cfb7dcf4322c added lib
boisy
parents:
diff changeset
62 * Added F$Debug and D.DbgMem areas, common to all levels of NitrOS-9
cfb7dcf4322c added lib
boisy
parents:
diff changeset
63
cfb7dcf4322c added lib
boisy
parents:
diff changeset
64 NAM OS9Defs
cfb7dcf4322c added lib
boisy
parents:
diff changeset
65 IFEQ Level-1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
66 TTL NitrOS-9 Level 1 System Symbol Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
67 ELSE
cfb7dcf4322c added lib
boisy
parents:
diff changeset
68 IFEQ Level-2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
69 TTL NitrOS-9 Level 2 System Symbol Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
70 ELSE
cfb7dcf4322c added lib
boisy
parents:
diff changeset
71 TTL NitrOS-9 Level 3 System Symbol Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
72 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
73 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
74
cfb7dcf4322c added lib
boisy
parents:
diff changeset
75 psect OS9Defs_a,0,0,0,0,0
cfb7dcf4322c added lib
boisy
parents:
diff changeset
76
cfb7dcf4322c added lib
boisy
parents:
diff changeset
77 * Common definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
78 true: EQU 1 useful name
cfb7dcf4322c added lib
boisy
parents:
diff changeset
79 false: EQU 0 useful name
cfb7dcf4322c added lib
boisy
parents:
diff changeset
80
cfb7dcf4322c added lib
boisy
parents:
diff changeset
81 PAG
cfb7dcf4322c added lib
boisy
parents:
diff changeset
82 *****************************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
83 * System Service Request Code Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
84 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
85 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
86 F$Link: RMB 1 Link to Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
87 F$Load: RMB 1 Load Module from File
cfb7dcf4322c added lib
boisy
parents:
diff changeset
88 F$UnLink: RMB 1 Unlink Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
89 F$Fork: RMB 1 Start New Process
cfb7dcf4322c added lib
boisy
parents:
diff changeset
90 F$Wait: RMB 1 Wait for Child Process to Die
cfb7dcf4322c added lib
boisy
parents:
diff changeset
91 F$Chain: RMB 1 Chain Process to New Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
92 F$Exit: RMB 1 Terminate Process
cfb7dcf4322c added lib
boisy
parents:
diff changeset
93 F$Mem: RMB 1 Set Memory Size
cfb7dcf4322c added lib
boisy
parents:
diff changeset
94 F$Send: RMB 1 Send Signal to Process
cfb7dcf4322c added lib
boisy
parents:
diff changeset
95 F$Icpt: RMB 1 Set Signal Intercept
cfb7dcf4322c added lib
boisy
parents:
diff changeset
96 F$Sleep: RMB 1 Suspend Process
cfb7dcf4322c added lib
boisy
parents:
diff changeset
97 F$SSpd: RMB 1 Suspend Process
cfb7dcf4322c added lib
boisy
parents:
diff changeset
98 F$ID: RMB 1 Return Process ID
cfb7dcf4322c added lib
boisy
parents:
diff changeset
99 F$SPrior: RMB 1 Set Process Priority
cfb7dcf4322c added lib
boisy
parents:
diff changeset
100 F$SSWI: RMB 1 Set Software Interrupt
cfb7dcf4322c added lib
boisy
parents:
diff changeset
101 F$PErr: RMB 1 Print Error
cfb7dcf4322c added lib
boisy
parents:
diff changeset
102 F$PrsNam: RMB 1 Parse Pathlist Name
cfb7dcf4322c added lib
boisy
parents:
diff changeset
103 F$CmpNam: RMB 1 Compare Two Names
cfb7dcf4322c added lib
boisy
parents:
diff changeset
104 F$SchBit: RMB 1 Search Bit Map
cfb7dcf4322c added lib
boisy
parents:
diff changeset
105 F$AllBit: RMB 1 Allocate in Bit Map
cfb7dcf4322c added lib
boisy
parents:
diff changeset
106 F$DelBit: RMB 1 Deallocate in Bit Map
cfb7dcf4322c added lib
boisy
parents:
diff changeset
107 F$Time: RMB 1 Get Current Time
cfb7dcf4322c added lib
boisy
parents:
diff changeset
108 F$STime: RMB 1 Set Current Time
cfb7dcf4322c added lib
boisy
parents:
diff changeset
109 F$CRC: RMB 1 Generate CRC ($17)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
110
cfb7dcf4322c added lib
boisy
parents:
diff changeset
111 IFGT Level-1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
112
cfb7dcf4322c added lib
boisy
parents:
diff changeset
113 * NitrOS-9 Level 2 system calls
cfb7dcf4322c added lib
boisy
parents:
diff changeset
114 F$GPrDsc: RMB 1 Get Process Descriptor copy ($18)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
115 F$GBlkMp: RMB 1 Get System Block Map copy ($19)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
116 F$GModDr: RMB 1 Get Module Directory copy ($1A)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
117 F$CpyMem: RMB 1 Copy External Memory ($1B)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
118 F$SUser: RMB 1 Set User ID number ($1C)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
119 F$UnLoad: RMB 1 Unlink Module by name ($1D)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
120 F$Alarm: RMB 1 Color Computer 3 Alarm Call ($1E)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
121 RMB 2 Reserved - For overlap of other systems ($1F)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
122 F$NMLink: RMB 1 Color Computer 3 Non-Mapping Link ($21)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
123 F$NMLoad: RMB 1 Color Computer 3 Non-Mapping Load ($22)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
124
cfb7dcf4322c added lib
boisy
parents:
diff changeset
125 ELSE
cfb7dcf4322c added lib
boisy
parents:
diff changeset
126
cfb7dcf4322c added lib
boisy
parents:
diff changeset
127 * NitrOS-9 Level 1 system call padding
cfb7dcf4322c added lib
boisy
parents:
diff changeset
128 RMB 11
cfb7dcf4322c added lib
boisy
parents:
diff changeset
129
cfb7dcf4322c added lib
boisy
parents:
diff changeset
130 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
131
cfb7dcf4322c added lib
boisy
parents:
diff changeset
132 F$Debug: RMB 1 Drop the system into the debugger ($23)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
133
cfb7dcf4322c added lib
boisy
parents:
diff changeset
134 IFGT Level-1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
135
cfb7dcf4322c added lib
boisy
parents:
diff changeset
136 RMB $25-*
cfb7dcf4322c added lib
boisy
parents:
diff changeset
137 F$TPS: RMB 1 Return System's Ticks Per Second
cfb7dcf4322c added lib
boisy
parents:
diff changeset
138 F$TimAlm: RMB 1 CoCo individual process alarm call
cfb7dcf4322c added lib
boisy
parents:
diff changeset
139
cfb7dcf4322c added lib
boisy
parents:
diff changeset
140 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
141
cfb7dcf4322c added lib
boisy
parents:
diff changeset
142 RMB $27-* Beginning of System Reserved Calls
cfb7dcf4322c added lib
boisy
parents:
diff changeset
143 * NitrOS-9 common system calls
cfb7dcf4322c added lib
boisy
parents:
diff changeset
144 F$VIRQ: RMB 1 Install/Delete Virtual IRQ
cfb7dcf4322c added lib
boisy
parents:
diff changeset
145 F$SRqMem: RMB 1 System Memory Request
cfb7dcf4322c added lib
boisy
parents:
diff changeset
146 F$SRtMem: RMB 1 System Memory Return
cfb7dcf4322c added lib
boisy
parents:
diff changeset
147 F$IRQ: RMB 1 Enter IRQ Polling Table
cfb7dcf4322c added lib
boisy
parents:
diff changeset
148 F$IOQu: RMB 1 Enter I/O Queue
cfb7dcf4322c added lib
boisy
parents:
diff changeset
149 F$AProc: RMB 1 Enter Active Process Queue
cfb7dcf4322c added lib
boisy
parents:
diff changeset
150 F$NProc: RMB 1 Start Next Process
cfb7dcf4322c added lib
boisy
parents:
diff changeset
151 F$VModul: RMB 1 Validate Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
152 F$Find64: RMB 1 Find Process/Path Descriptor
cfb7dcf4322c added lib
boisy
parents:
diff changeset
153 F$All64: RMB 1 Allocate Process/Path Descriptor
cfb7dcf4322c added lib
boisy
parents:
diff changeset
154 F$Ret64: RMB 1 Return Process/Path Descriptor
cfb7dcf4322c added lib
boisy
parents:
diff changeset
155 F$SSvc: RMB 1 Service Request Table Initialization
cfb7dcf4322c added lib
boisy
parents:
diff changeset
156 F$IODel: RMB 1 Delete I/O Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
157
cfb7dcf4322c added lib
boisy
parents:
diff changeset
158 IFGT Level-1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
159
cfb7dcf4322c added lib
boisy
parents:
diff changeset
160 F$SLink: RMB 1 System Link
cfb7dcf4322c added lib
boisy
parents:
diff changeset
161 F$Boot: RMB 1 Bootstrap System
cfb7dcf4322c added lib
boisy
parents:
diff changeset
162 F$BtMem: RMB 1 Bootstrap Memory Request
cfb7dcf4322c added lib
boisy
parents:
diff changeset
163 F$GProcP: RMB 1 Get Process ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
164 F$Move: RMB 1 Move Data (low bound first)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
165 F$AllRAM: RMB 1 Allocate RAM blocks
cfb7dcf4322c added lib
boisy
parents:
diff changeset
166 F$AllImg: RMB 1 Allocate Image RAM blocks
cfb7dcf4322c added lib
boisy
parents:
diff changeset
167 F$DelImg: RMB 1 Deallocate Image RAM blocks
cfb7dcf4322c added lib
boisy
parents:
diff changeset
168 F$SetImg: RMB 1 Set Process DAT Image
cfb7dcf4322c added lib
boisy
parents:
diff changeset
169 F$FreeLB: RMB 1 Get Free Low Block
cfb7dcf4322c added lib
boisy
parents:
diff changeset
170 F$FreeHB: RMB 1 Get Free High Block
cfb7dcf4322c added lib
boisy
parents:
diff changeset
171 F$AllTsk: RMB 1 Allocate Process Task number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
172 F$DelTsk: RMB 1 Deallocate Process Task number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
173 F$SetTsk: RMB 1 Set Process Task DAT registers
cfb7dcf4322c added lib
boisy
parents:
diff changeset
174 F$ResTsk: RMB 1 Reserve Task number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
175 F$RelTsk: RMB 1 Release Task number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
176 F$DATLog: RMB 1 Convert DAT Block/Offset to Logical
cfb7dcf4322c added lib
boisy
parents:
diff changeset
177 F$DATTmp: RMB 1 Make temporary DAT image (Obsolete)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
178 F$LDAXY: RMB 1 Load A [X,[Y]]
cfb7dcf4322c added lib
boisy
parents:
diff changeset
179 F$LDAXYP: RMB 1 Load A [X+,[Y]]
cfb7dcf4322c added lib
boisy
parents:
diff changeset
180 F$LDDDXY: RMB 1 Load D [D+X,[Y]]
cfb7dcf4322c added lib
boisy
parents:
diff changeset
181 F$LDABX: RMB 1 Load A from 0,X in task B
cfb7dcf4322c added lib
boisy
parents:
diff changeset
182 F$STABX: RMB 1 Store A at 0,X in task B
cfb7dcf4322c added lib
boisy
parents:
diff changeset
183 F$AllPrc: RMB 1 Allocate Process Descriptor
cfb7dcf4322c added lib
boisy
parents:
diff changeset
184 F$DelPrc: RMB 1 Deallocate Process Descriptor
cfb7dcf4322c added lib
boisy
parents:
diff changeset
185 F$ELink: RMB 1 Link using Module Directory Entry
cfb7dcf4322c added lib
boisy
parents:
diff changeset
186 F$FModul: RMB 1 Find Module Directory Entry
cfb7dcf4322c added lib
boisy
parents:
diff changeset
187 F$MapBlk: RMB 1 Map Specific Block
cfb7dcf4322c added lib
boisy
parents:
diff changeset
188 F$ClrBlk: RMB 1 Clear Specific Block
cfb7dcf4322c added lib
boisy
parents:
diff changeset
189 F$DelRAM: RMB 1 Deallocate RAM blocks
cfb7dcf4322c added lib
boisy
parents:
diff changeset
190 F$GCMDir: RMB 1 Pack module directory
cfb7dcf4322c added lib
boisy
parents:
diff changeset
191 F$AlHRAM: RMB 1 Allocate HIGH RAM Blocks
cfb7dcf4322c added lib
boisy
parents:
diff changeset
192
cfb7dcf4322c added lib
boisy
parents:
diff changeset
193 * Alan DeKok additions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
194 F$ReBoot: RMB 1 Reboot machine (reload OS9Boot) or drop to RSDOS
cfb7dcf4322c added lib
boisy
parents:
diff changeset
195 F$CRCMod: RMB 1 CRC mode, toggle or report current status
cfb7dcf4322c added lib
boisy
parents:
diff changeset
196 F$XTime: RMB 1 Get Extended time packet from RTC (fractions of second)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
197 F$VBlock: RMB 1 Verify modules in a block of memory, add to module directory
cfb7dcf4322c added lib
boisy
parents:
diff changeset
198
cfb7dcf4322c added lib
boisy
parents:
diff changeset
199 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
200
cfb7dcf4322c added lib
boisy
parents:
diff changeset
201 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
202 * Numbers $70 through $7F are reserved for user definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
203 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
204 RMB $70-*
cfb7dcf4322c added lib
boisy
parents:
diff changeset
205
cfb7dcf4322c added lib
boisy
parents:
diff changeset
206 IFEQ Level-1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
207
cfb7dcf4322c added lib
boisy
parents:
diff changeset
208 RMB 16 Reserved for user definition
cfb7dcf4322c added lib
boisy
parents:
diff changeset
209
cfb7dcf4322c added lib
boisy
parents:
diff changeset
210 ELSE
cfb7dcf4322c added lib
boisy
parents:
diff changeset
211
cfb7dcf4322c added lib
boisy
parents:
diff changeset
212 F$RegDmp: RMB 1 Ron Lammardo's debugging register dump
cfb7dcf4322c added lib
boisy
parents:
diff changeset
213 F$NVRAM: RMB 1 Non Volatile RAM (RTC battery backed static) read/write
cfb7dcf4322c added lib
boisy
parents:
diff changeset
214
cfb7dcf4322c added lib
boisy
parents:
diff changeset
215 RMB $80-* Reserved for user definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
216 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
217 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
218
cfb7dcf4322c added lib
boisy
parents:
diff changeset
219 PAG
cfb7dcf4322c added lib
boisy
parents:
diff changeset
220 **************************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
221 * I/O Service Request Code Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
222 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
223 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
224 RMB $80
cfb7dcf4322c added lib
boisy
parents:
diff changeset
225 I$Attach: RMB 1 Attach I/O Device
cfb7dcf4322c added lib
boisy
parents:
diff changeset
226 I$Detach: RMB 1 Detach I/O Device
cfb7dcf4322c added lib
boisy
parents:
diff changeset
227 I$Dup: RMB 1 Duplicate Path
cfb7dcf4322c added lib
boisy
parents:
diff changeset
228 I$Create: RMB 1 Create New File
cfb7dcf4322c added lib
boisy
parents:
diff changeset
229 I$Open: RMB 1 Open Existing File
cfb7dcf4322c added lib
boisy
parents:
diff changeset
230 I$MakDir: RMB 1 Make Directory File
cfb7dcf4322c added lib
boisy
parents:
diff changeset
231 I$ChgDir: RMB 1 Change Default Directory
cfb7dcf4322c added lib
boisy
parents:
diff changeset
232 I$Delete: RMB 1 Delete File
cfb7dcf4322c added lib
boisy
parents:
diff changeset
233 I$Seek: RMB 1 Change Current Position
cfb7dcf4322c added lib
boisy
parents:
diff changeset
234 I$Read: RMB 1 Read Data
cfb7dcf4322c added lib
boisy
parents:
diff changeset
235 I$Write: RMB 1 Write Data
cfb7dcf4322c added lib
boisy
parents:
diff changeset
236 I$ReadLn: RMB 1 Read Line of ASCII Data
cfb7dcf4322c added lib
boisy
parents:
diff changeset
237 I$WritLn: RMB 1 Write Line of ASCII Data
cfb7dcf4322c added lib
boisy
parents:
diff changeset
238 I$GetStt: RMB 1 Get Path Status
cfb7dcf4322c added lib
boisy
parents:
diff changeset
239 I$SetStt: RMB 1 Set Path Status
cfb7dcf4322c added lib
boisy
parents:
diff changeset
240 I$Close: RMB 1 Close Path
cfb7dcf4322c added lib
boisy
parents:
diff changeset
241 I$DeletX: RMB 1 Delete from current exec dir
cfb7dcf4322c added lib
boisy
parents:
diff changeset
242 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
243
cfb7dcf4322c added lib
boisy
parents:
diff changeset
244 *******************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
245 * File Access Modes
cfb7dcf4322c added lib
boisy
parents:
diff changeset
246 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
247 READ.: EQU %00000001
cfb7dcf4322c added lib
boisy
parents:
diff changeset
248 WRITE.: EQU %00000010
cfb7dcf4322c added lib
boisy
parents:
diff changeset
249 UPDAT.: EQU READ.+WRITE.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
250 EXEC.: EQU %00000100
cfb7dcf4322c added lib
boisy
parents:
diff changeset
251 PREAD.: EQU %00001000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
252 PWRIT.: EQU %00010000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
253 PEXEC.: EQU %00100000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
254 SHARE.: EQU %01000000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
255 DIR.: EQU %10000000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
256 ISIZ.: EQU %00100000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
257
cfb7dcf4322c added lib
boisy
parents:
diff changeset
258 **************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
259 * Signal Codes
cfb7dcf4322c added lib
boisy
parents:
diff changeset
260 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
261 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
262 S$Kill: RMB 1 Non-Interceptable Abort
cfb7dcf4322c added lib
boisy
parents:
diff changeset
263 S$Wake: RMB 1 Wake-up Sleeping Process
cfb7dcf4322c added lib
boisy
parents:
diff changeset
264 S$Abort: RMB 1 Keyboard Abort
cfb7dcf4322c added lib
boisy
parents:
diff changeset
265 S$Intrpt: RMB 1 Keyboard Interrupt
cfb7dcf4322c added lib
boisy
parents:
diff changeset
266 S$Window: RMB 1 Window Change
cfb7dcf4322c added lib
boisy
parents:
diff changeset
267 S$Peer: EQU S$Window Peer disconnected (scdwt)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
268 S$Alarm: RMB 1 CoCo individual process' alarm signal
cfb7dcf4322c added lib
boisy
parents:
diff changeset
269 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
270
cfb7dcf4322c added lib
boisy
parents:
diff changeset
271 PAG
cfb7dcf4322c added lib
boisy
parents:
diff changeset
272 **********************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
273 * Status Codes for GetStat/GetStat
cfb7dcf4322c added lib
boisy
parents:
diff changeset
274 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
275 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
276 SS.Opt: RMB 1 Read/Write PD Options
cfb7dcf4322c added lib
boisy
parents:
diff changeset
277 SS.Ready: RMB 1 Check for Device Ready
cfb7dcf4322c added lib
boisy
parents:
diff changeset
278 SS.Size: RMB 1 Read/Write File Size
cfb7dcf4322c added lib
boisy
parents:
diff changeset
279 SS.Reset: RMB 1 Device Restore
cfb7dcf4322c added lib
boisy
parents:
diff changeset
280 SS.WTrk: RMB 1 Device Write Track
cfb7dcf4322c added lib
boisy
parents:
diff changeset
281 SS.Pos: RMB 1 Get File Current Position
cfb7dcf4322c added lib
boisy
parents:
diff changeset
282 SS.EOF: RMB 1 Test for End of File
cfb7dcf4322c added lib
boisy
parents:
diff changeset
283 SS.Link: RMB 1 Link to Status routines
cfb7dcf4322c added lib
boisy
parents:
diff changeset
284 SS.ULink: RMB 1 Unlink Status routines
cfb7dcf4322c added lib
boisy
parents:
diff changeset
285 SS.Feed: RMB 1 Issue form feed
cfb7dcf4322c added lib
boisy
parents:
diff changeset
286 SS.Frz: RMB 1 Freeze DD. information
cfb7dcf4322c added lib
boisy
parents:
diff changeset
287 SS.SPT: RMB 1 Set DD.TKS to given value
cfb7dcf4322c added lib
boisy
parents:
diff changeset
288 SS.SQD: RMB 1 Sequence down hard disk
cfb7dcf4322c added lib
boisy
parents:
diff changeset
289 SS.DCmd: RMB 1 Send direct command to disk
cfb7dcf4322c added lib
boisy
parents:
diff changeset
290 SS.DevNm: RMB 1 Return Device name (32-bytes at [X])
cfb7dcf4322c added lib
boisy
parents:
diff changeset
291 SS.FD: RMB 1 Return File Descriptor (Y-bytes at [X])
cfb7dcf4322c added lib
boisy
parents:
diff changeset
292 SS.Ticks: RMB 1 Set Lockout honor duration
cfb7dcf4322c added lib
boisy
parents:
diff changeset
293 SS.Lock: RMB 1 Lock/Release record
cfb7dcf4322c added lib
boisy
parents:
diff changeset
294 SS.DStat: RMB 1 Return Display Status (CoCo)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
295 SS.Joy: RMB 1 Return Joystick Value (CoCo)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
296 SS.BlkRd: RMB 1 Block Read
cfb7dcf4322c added lib
boisy
parents:
diff changeset
297 SS.BlkWr: RMB 1 Block Write
cfb7dcf4322c added lib
boisy
parents:
diff changeset
298 SS.Reten: RMB 1 Retension cycle
cfb7dcf4322c added lib
boisy
parents:
diff changeset
299 SS.WFM: RMB 1 Write File Mark
cfb7dcf4322c added lib
boisy
parents:
diff changeset
300 SS.RFM: RMB 1 Read past File Mark
cfb7dcf4322c added lib
boisy
parents:
diff changeset
301 SS.ELog: RMB 1 Read Error Log
cfb7dcf4322c added lib
boisy
parents:
diff changeset
302 SS.SSig: RMB 1 Send signal on data ready
cfb7dcf4322c added lib
boisy
parents:
diff changeset
303 SS.Relea: RMB 1 Release device
cfb7dcf4322c added lib
boisy
parents:
diff changeset
304 SS.AlfaS: RMB 1 Return Alfa Display Status (CoCo, SCF/GetStat)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
305 SS.Attr: EQU SS.AlfaS To serve 68K/RBF/SetStat only, thru NET
cfb7dcf4322c added lib
boisy
parents:
diff changeset
306 SS.Break: RMB 1 Send break signal out acia
cfb7dcf4322c added lib
boisy
parents:
diff changeset
307 SS.RsBit: RMB 1 Reserve bitmap sector (do not allocate in) LSB(X)=sct#
cfb7dcf4322c added lib
boisy
parents:
diff changeset
308 RMB 1 Reserved
cfb7dcf4322c added lib
boisy
parents:
diff changeset
309 SS.FDInf: EQU $20 To serve 68K/RBF/GetStat only, thru NET
cfb7dcf4322c added lib
boisy
parents:
diff changeset
310 RMB 4 Reserve $20-$23 for Japanese version (Hoshi)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
311 SS.SetMF: RMB 1 Reserve $24 for Gimix G68 (Flex compatability?)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
312 SS.Cursr: RMB 1 Cursor information for COCO
cfb7dcf4322c added lib
boisy
parents:
diff changeset
313 SS.ScSiz: RMB 1 Return screen size for COCO
cfb7dcf4322c added lib
boisy
parents:
diff changeset
314 SS.KySns: RMB 1 Getstat/SetStat for COCO keyboard
cfb7dcf4322c added lib
boisy
parents:
diff changeset
315 SS.ComSt: RMB 1 Getstat/SetStat for Baud/Parity
cfb7dcf4322c added lib
boisy
parents:
diff changeset
316 SS.Open: RMB 1 SetStat to tell driver a path was opened
cfb7dcf4322c added lib
boisy
parents:
diff changeset
317 SS.Close: RMB 1 SetStat to tell driver a path was closed
cfb7dcf4322c added lib
boisy
parents:
diff changeset
318 SS.HngUp: RMB 1 SetStat to tell driver to hangup phone
cfb7dcf4322c added lib
boisy
parents:
diff changeset
319 SS.FSig: RMB 1 New signal for temp locked files
cfb7dcf4322c added lib
boisy
parents:
diff changeset
320 SS.DSize: EQU SS.ScSiz Return disk size (RBF GetStat)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
321 SS.VarSect: EQU SS.DStat Variable Sector Size (RBF GetStat)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
322
cfb7dcf4322c added lib
boisy
parents:
diff changeset
323 * System Specific and User defined codes above $80
cfb7dcf4322c added lib
boisy
parents:
diff changeset
324 RMB $80-*
cfb7dcf4322c added lib
boisy
parents:
diff changeset
325 SS.AAGBf: RMB 1 SetStat to Allocate Additional Graphic Buffer
cfb7dcf4322c added lib
boisy
parents:
diff changeset
326 SS.SLGBf: RMB 1 SetStat to Select a different Graphic Buffer
cfb7dcf4322c added lib
boisy
parents:
diff changeset
327 SS.Mount: RMB 1 Network 4 Mount Setstat
cfb7dcf4322c added lib
boisy
parents:
diff changeset
328 SS.RdNet: RMB 1 Read Raw Sector from Network 4 Omnidrive
cfb7dcf4322c added lib
boisy
parents:
diff changeset
329 SS.MpGPB: RMB 1 SetStat to request a Get/Put Buffer be mapped in workspace
cfb7dcf4322c added lib
boisy
parents:
diff changeset
330 SS.Slots: RMB 1 Network 4 slots? getstat
cfb7dcf4322c added lib
boisy
parents:
diff changeset
331
cfb7dcf4322c added lib
boisy
parents:
diff changeset
332 IFGT Level-1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
333
cfb7dcf4322c added lib
boisy
parents:
diff changeset
334 * Level 2 Windowing
cfb7dcf4322c added lib
boisy
parents:
diff changeset
335 SS.WnSet: RMB 1 Set up High Level Windowing Information
cfb7dcf4322c added lib
boisy
parents:
diff changeset
336 SS.MnSel: RMB 1 Request High level Menu Handler take determine next event
cfb7dcf4322c added lib
boisy
parents:
diff changeset
337 SS.SBar: RMB 1 SetStat to set position block on Window scroll bars
cfb7dcf4322c added lib
boisy
parents:
diff changeset
338 SS.Mouse: RMB 1 Return Mouse information packet (COCO)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
339 SS.MsSig: RMB 1 SetStat to tell driver to send signal on mouse event
cfb7dcf4322c added lib
boisy
parents:
diff changeset
340 SS.AScrn: RMB 1 Allocate a screen for application poking
cfb7dcf4322c added lib
boisy
parents:
diff changeset
341 SS.DScrn: RMB 1 Display a screen allocated by SS.AScrn
cfb7dcf4322c added lib
boisy
parents:
diff changeset
342 SS.FScrn: RMB 1 Free a screen allocated by SS.AScrn
cfb7dcf4322c added lib
boisy
parents:
diff changeset
343 SS.PScrn: RMB 1 Polymorph Screen into different screen type
cfb7dcf4322c added lib
boisy
parents:
diff changeset
344 SS.ScInf: RMB 1 Get Current screen info for direct writes
cfb7dcf4322c added lib
boisy
parents:
diff changeset
345 RMB 1 Reserved
cfb7dcf4322c added lib
boisy
parents:
diff changeset
346 SS.Palet: RMB 1 Return palette information
cfb7dcf4322c added lib
boisy
parents:
diff changeset
347 SS.Montr: RMB 1 Get and Set Monitor Type
cfb7dcf4322c added lib
boisy
parents:
diff changeset
348 SS.ScTyp: RMB 1 Get screen type information
cfb7dcf4322c added lib
boisy
parents:
diff changeset
349 SS.GIP: RMB 1 Global Input Parameters (SetStat)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
350 SS.UMBar: RMB 1 update menu bar (SetStat)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
351 SS.FBRgs: RMB 1 return color registers (GetStat)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
352 SS.DfPal: RMB 1 set/return default palette registers (Getstat/Setstat)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
353 SS.Tone: RMB 1 Generate a tone using 6 bit sound
cfb7dcf4322c added lib
boisy
parents:
diff changeset
354 SS.GIP2: RMB 1 Global Input Params #2 (L2V3)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
355 SS.AnPal: RMB 1 Animate palettes (L2V3)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
356 SS.FndBf: RMB 1 Find named buffer (L2V3)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
357
cfb7dcf4322c added lib
boisy
parents:
diff changeset
358 * sc6551 defined
cfb7dcf4322c added lib
boisy
parents:
diff changeset
359 SS.CDSta: EQU SS.GIP2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
360 SS.CDSig: EQU SS.AnPal
cfb7dcf4322c added lib
boisy
parents:
diff changeset
361 SS.CDRel: EQU SS.FndBf
cfb7dcf4322c added lib
boisy
parents:
diff changeset
362 ELSE
cfb7dcf4322c added lib
boisy
parents:
diff changeset
363 * These are wide open in Level 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
364 RMB 19
cfb7dcf4322c added lib
boisy
parents:
diff changeset
365
cfb7dcf4322c added lib
boisy
parents:
diff changeset
366 * sc6551 defined
cfb7dcf4322c added lib
boisy
parents:
diff changeset
367 SS.CDSta: RMB 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
368 SS.CDSig: RMB 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
369 SS.CDRel: RMB 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
370 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
371
cfb7dcf4322c added lib
boisy
parents:
diff changeset
372 RMB $A0-*
cfb7dcf4322c added lib
boisy
parents:
diff changeset
373 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
374 * New Default SCF input buffer Set status call
cfb7dcf4322c added lib
boisy
parents:
diff changeset
375 SS.Fill: RMB 1 Pre-load SCF device input buffer
cfb7dcf4322c added lib
boisy
parents:
diff changeset
376 SS.Hist: RMB 1 Enable command-line history easily
cfb7dcf4322c added lib
boisy
parents:
diff changeset
377
cfb7dcf4322c added lib
boisy
parents:
diff changeset
378 RMB $B0-*
cfb7dcf4322c added lib
boisy
parents:
diff changeset
379 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
380 * New WDDisk get/set status calls
cfb7dcf4322c added lib
boisy
parents:
diff changeset
381 SS.ECC: RMB 1 ECC corrected data error enable/disable (GetStat/SetStat)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
382 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
383
cfb7dcf4322c added lib
boisy
parents:
diff changeset
384 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
385 IFGT Level-1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
386
cfb7dcf4322c added lib
boisy
parents:
diff changeset
387 * VRN get/set status calls. Named by Alan DeKok.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
388 SS.VCtr: EQU $80 Return FS2 total VIRQ counter
cfb7dcf4322c added lib
boisy
parents:
diff changeset
389 SS.VSig: EQU $81 Return FS2 number of signals sent
cfb7dcf4322c added lib
boisy
parents:
diff changeset
390
cfb7dcf4322c added lib
boisy
parents:
diff changeset
391 SS.FClr: EQU $81 Set/clear FS2 VIRQ
cfb7dcf4322c added lib
boisy
parents:
diff changeset
392 SS.FSet: EQU $C7 Set FS2+ VIRQ
cfb7dcf4322c added lib
boisy
parents:
diff changeset
393 SS.KSet: EQU $C8 Set KQ3 VIRQ
cfb7dcf4322c added lib
boisy
parents:
diff changeset
394 SS.KClr: EQU $C9 Clr KQ3 VIRQ
cfb7dcf4322c added lib
boisy
parents:
diff changeset
395 SS.ARAM: EQU $CA Allocate RAM blocks
cfb7dcf4322c added lib
boisy
parents:
diff changeset
396 SS.DRAM: EQU $CB De-allocate RAM blocks
cfb7dcf4322c added lib
boisy
parents:
diff changeset
397
cfb7dcf4322c added lib
boisy
parents:
diff changeset
398 * SDisk 3 Definition Equates
cfb7dcf4322c added lib
boisy
parents:
diff changeset
399 SS.DRead: EQU SS.AAGBf SDisk3 Direct Sector Read ($80)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
400 SS.DWrit: EQU SS.DRead SDisk3 Direct sector Write ($80)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
401 SS.UnFrz: EQU SS.SLGBf SDisk3 UNFreeze DD info ($81)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
402 SS.MOFF: EQU SS.Mount SDisk3 fast motor off call ($82)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
403 SS.MoTim: EQU SS.RdNet SDisk3 Set motor shut off time ($83)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
404 SS.SDRD: EQU SS.MpGPB SDisk3 System direct read ($84)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
405 SS.SDWRT: EQU SS.SDRD SDisk3 System direct writes ($84)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
406 SS.Sleep: EQU SS.Slots SDisk3 (DMC ONLY) Enable/disable F$Sleep calls in read/write 1773 I/O ($85)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
407 SS.DrvCh: EQU SS.WnSet SDisk3 (DMC ONLY) Set drive number to cache, or return drive number being cached ($86)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
408
cfb7dcf4322c added lib
boisy
parents:
diff changeset
409 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
410
cfb7dcf4322c added lib
boisy
parents:
diff changeset
411 TTL Direct Page Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
412 PAG
cfb7dcf4322c added lib
boisy
parents:
diff changeset
413
cfb7dcf4322c added lib
boisy
parents:
diff changeset
414 **********************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
415 * Direct Page Variable Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
416 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
417 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
418 D.WDAddr: RMB 2 FHL/Isted WD1002-05 interface base address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
419 D.WDBtDr: RMB 1 FHL/Isted WD1002-05 boot physical device drive num.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
420 D.SWPage: RMB 1 SmartWatch page # (see clock2_smart)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
421 RMB 5
cfb7dcf4322c added lib
boisy
parents:
diff changeset
422 D.COCOXT: RMB 1 Busy flag for CoCo-XT driver (one drive at a time)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
423 D.DbgMem: RMB 2 Debug memory pointer
cfb7dcf4322c added lib
boisy
parents:
diff changeset
424 D.DWSubAddr: RMB 2 DriveWire subroutine module pointer
cfb7dcf4322c added lib
boisy
parents:
diff changeset
425 D.DWStat: RMB 2 DriveWire statics page
cfb7dcf4322c added lib
boisy
parents:
diff changeset
426
cfb7dcf4322c added lib
boisy
parents:
diff changeset
427 RMB $20-*
cfb7dcf4322c added lib
boisy
parents:
diff changeset
428
cfb7dcf4322c added lib
boisy
parents:
diff changeset
429 IFEQ Level-1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
430
cfb7dcf4322c added lib
boisy
parents:
diff changeset
431 * Level 1 DP vars
cfb7dcf4322c added lib
boisy
parents:
diff changeset
432 D.FMBM: RMB 4 Free memory bit map pointers
cfb7dcf4322c added lib
boisy
parents:
diff changeset
433 D.MLIM: RMB 2 Memory limit $24
cfb7dcf4322c added lib
boisy
parents:
diff changeset
434 D.ModDir: RMB 4 Module directory $26
cfb7dcf4322c added lib
boisy
parents:
diff changeset
435 D.Init: RMB 2 Rom base address $2A
cfb7dcf4322c added lib
boisy
parents:
diff changeset
436 D.SWI3: RMB 2 Swi3 vector $2C
cfb7dcf4322c added lib
boisy
parents:
diff changeset
437 D.SWI2: RMB 2 Swi2 vector $2E
cfb7dcf4322c added lib
boisy
parents:
diff changeset
438 D.FIRQ: RMB 2 Firq vector $30
cfb7dcf4322c added lib
boisy
parents:
diff changeset
439 D.IRQ: RMB 2 Irq vector $32
cfb7dcf4322c added lib
boisy
parents:
diff changeset
440 D.SWI: RMB 2 Swi vector $34
cfb7dcf4322c added lib
boisy
parents:
diff changeset
441 D.NMI: RMB 2 Nmi vector $36
cfb7dcf4322c added lib
boisy
parents:
diff changeset
442 D.SvcIRQ: RMB 2 Interrupt service entry $38
cfb7dcf4322c added lib
boisy
parents:
diff changeset
443 D.Poll: RMB 2 Interrupt polling routine $3A
cfb7dcf4322c added lib
boisy
parents:
diff changeset
444 D.UsrIRQ: RMB 2 User irq routine $3C
cfb7dcf4322c added lib
boisy
parents:
diff changeset
445 D.SysIRQ: RMB 2 System irq routine $3E
cfb7dcf4322c added lib
boisy
parents:
diff changeset
446 D.UsrSvc: RMB 2 User service request routine $40
cfb7dcf4322c added lib
boisy
parents:
diff changeset
447 D.SysSvc: RMB 2 System service request routine $42
cfb7dcf4322c added lib
boisy
parents:
diff changeset
448 D.UsrDis: RMB 2 User service request dispatch table
cfb7dcf4322c added lib
boisy
parents:
diff changeset
449 D.SysDis: RMB 2 System service reuest dispatch table
cfb7dcf4322c added lib
boisy
parents:
diff changeset
450 D.Slice: RMB 1 Process time slice count $48
cfb7dcf4322c added lib
boisy
parents:
diff changeset
451 D.PrcDBT: RMB 2 Process descriptor block address $49
cfb7dcf4322c added lib
boisy
parents:
diff changeset
452 D.Proc: RMB 2 Process descriptor address $4B
cfb7dcf4322c added lib
boisy
parents:
diff changeset
453 D.AProcQ: RMB 2 Active process queue $4D
cfb7dcf4322c added lib
boisy
parents:
diff changeset
454 D.WProcQ: RMB 2 Waiting process queue $4F
cfb7dcf4322c added lib
boisy
parents:
diff changeset
455 D.SProcQ: RMB 2 Sleeping process queue $51
cfb7dcf4322c added lib
boisy
parents:
diff changeset
456 D.Time: EQU * Time
cfb7dcf4322c added lib
boisy
parents:
diff changeset
457 D.Year: RMB 1 $53
cfb7dcf4322c added lib
boisy
parents:
diff changeset
458 D.Month: RMB 1 $54
cfb7dcf4322c added lib
boisy
parents:
diff changeset
459 D.Day: RMB 1 $55
cfb7dcf4322c added lib
boisy
parents:
diff changeset
460 D.Hour: RMB 1 $56
cfb7dcf4322c added lib
boisy
parents:
diff changeset
461 D.Min: RMB 1 $57
cfb7dcf4322c added lib
boisy
parents:
diff changeset
462 D.Sec: RMB 1 $58
cfb7dcf4322c added lib
boisy
parents:
diff changeset
463 D.Tick: RMB 1 $59
cfb7dcf4322c added lib
boisy
parents:
diff changeset
464 D.TSec: RMB 1 Ticks / second $5A
cfb7dcf4322c added lib
boisy
parents:
diff changeset
465 D.TSlice: RMB 1 Ticks / time-slice $5B
cfb7dcf4322c added lib
boisy
parents:
diff changeset
466 D.IOML: RMB 2 I/O mgr free memory low bound $5C
cfb7dcf4322c added lib
boisy
parents:
diff changeset
467 D.IOMH: RMB 2 I/O mgr free memory hi bound $5E
cfb7dcf4322c added lib
boisy
parents:
diff changeset
468 D.DevTbl: RMB 2 Device driver table addr $60
cfb7dcf4322c added lib
boisy
parents:
diff changeset
469 D.PolTbl: RMB 2 Irq polling table addr $62
cfb7dcf4322c added lib
boisy
parents:
diff changeset
470 D.PthDBT: RMB 2 Path descriptor block table addr $64
cfb7dcf4322c added lib
boisy
parents:
diff changeset
471 D.BTLO: RMB 2 Bootstrap low address $66
cfb7dcf4322c added lib
boisy
parents:
diff changeset
472 D.BTHI: RMB 2 Bootstrap hi address $68
cfb7dcf4322c added lib
boisy
parents:
diff changeset
473 D.DMAReq: RMB 1 DMA in use flag $6A
cfb7dcf4322c added lib
boisy
parents:
diff changeset
474 D.AltIRQ: RMB 2 Alternate IRQ vector (CC) $6B
cfb7dcf4322c added lib
boisy
parents:
diff changeset
475 D.KbdSta: RMB 2 Keyboard scanner static storage (CC) $6D
cfb7dcf4322c added lib
boisy
parents:
diff changeset
476 D.DskTmr: RMB 2 Disk Motor Timer (CC) $6F
cfb7dcf4322c added lib
boisy
parents:
diff changeset
477 D.CBStrt: RMB 16 reserved for CC warmstart ($71)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
478 D.Clock: RMB 2 Address of Clock Tick Routine (CC) $81
cfb7dcf4322c added lib
boisy
parents:
diff changeset
479 D.Boot: RMB 1 Bootstrap attempted flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
480 D.URtoSs: RMB 2 address of user to system routine (VIRQ) $84
cfb7dcf4322c added lib
boisy
parents:
diff changeset
481 D.CLTb: RMB 2 Pointer to clock interrupt table (VIRQ) $86
cfb7dcf4322c added lib
boisy
parents:
diff changeset
482 D.MDREG: RMB 1 6309 MD (mode) shadow register $88 (added in V2.01.00)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
483 D.CRC: RMB 1 CRC checking mode flag $89 (added in V2.01.00)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
484 D.Clock2: RMB 2 CC Clock2 entry address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
485
cfb7dcf4322c added lib
boisy
parents:
diff changeset
486 RMB $100-*
cfb7dcf4322c added lib
boisy
parents:
diff changeset
487 D.XSWI3: RMB 3
cfb7dcf4322c added lib
boisy
parents:
diff changeset
488 D.XSWI2: RMB 3
cfb7dcf4322c added lib
boisy
parents:
diff changeset
489 D.XSWI: RMB 3
cfb7dcf4322c added lib
boisy
parents:
diff changeset
490 D.XNMI: RMB 3
cfb7dcf4322c added lib
boisy
parents:
diff changeset
491 D.XIRQ: RMB 3
cfb7dcf4322c added lib
boisy
parents:
diff changeset
492 D.XFIRQ: RMB 3
cfb7dcf4322c added lib
boisy
parents:
diff changeset
493
cfb7dcf4322c added lib
boisy
parents:
diff changeset
494 * Table Sizes
cfb7dcf4322c added lib
boisy
parents:
diff changeset
495 BMAPSZ: EQU 32 Bitmap table size
cfb7dcf4322c added lib
boisy
parents:
diff changeset
496 SVCTNM: EQU 2 Number of service request tables
cfb7dcf4322c added lib
boisy
parents:
diff changeset
497 SVCTSZ: EQU (256-BMAPSZ)/SVCTNM-2 Service request table size
cfb7dcf4322c added lib
boisy
parents:
diff changeset
498
cfb7dcf4322c added lib
boisy
parents:
diff changeset
499 ELSE
cfb7dcf4322c added lib
boisy
parents:
diff changeset
500
cfb7dcf4322c added lib
boisy
parents:
diff changeset
501 * Level 2 DP vars
cfb7dcf4322c added lib
boisy
parents:
diff changeset
502 D.Tasks: RMB 2 Task User Table
cfb7dcf4322c added lib
boisy
parents:
diff changeset
503 D.TmpDAT: RMB 2 Temporary DAT Image stack
cfb7dcf4322c added lib
boisy
parents:
diff changeset
504 D.Init: RMB 2 Initialization Module ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
505 D.Poll: RMB 2 Interrupt Polling Routine ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
506 D.Time: EQU * System Time
cfb7dcf4322c added lib
boisy
parents:
diff changeset
507 D.Year: RMB 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
508 D.Month: RMB 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
509 D.Day: RMB 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
510 D.Hour: RMB 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
511 D.Min: RMB 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
512 D.Sec: RMB 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
513 D.Tick: RMB 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
514 D.Slice: RMB 1 current slice remaining
cfb7dcf4322c added lib
boisy
parents:
diff changeset
515 D.TSlice: RMB 1 Ticks per Slice
cfb7dcf4322c added lib
boisy
parents:
diff changeset
516 D.Boot: RMB 1 Bootstrap attempted flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
517 D.MotOn: RMB 1 Floppy Disk Motor-On time out
cfb7dcf4322c added lib
boisy
parents:
diff changeset
518 D.ErrCod: RMB 1 Reset Error Code
cfb7dcf4322c added lib
boisy
parents:
diff changeset
519 D.Daywk: RMB 1 day of week, com-trol clock
cfb7dcf4322c added lib
boisy
parents:
diff changeset
520 D.TkCnt: RMB 1 Tick Counter
cfb7dcf4322c added lib
boisy
parents:
diff changeset
521 D.BtPtr: RMB 2 Address of Boot in System Address space
cfb7dcf4322c added lib
boisy
parents:
diff changeset
522 D.BtSz: RMB 2 Size of Boot
cfb7dcf4322c added lib
boisy
parents:
diff changeset
523
cfb7dcf4322c added lib
boisy
parents:
diff changeset
524 IFNE H6309
cfb7dcf4322c added lib
boisy
parents:
diff changeset
525 D.MDREG: RMB 1 6309 MD (mode) shadow register
cfb7dcf4322c added lib
boisy
parents:
diff changeset
526 ELSE
cfb7dcf4322c added lib
boisy
parents:
diff changeset
527 RMB 1 Currently unused in NitrOS-9/6809
cfb7dcf4322c added lib
boisy
parents:
diff changeset
528 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
529
cfb7dcf4322c added lib
boisy
parents:
diff changeset
530 D.CRC: RMB 1 CRC checking mode flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
531
cfb7dcf4322c added lib
boisy
parents:
diff changeset
532 D.Tenths: RMB 1 Tenths and hundredths of second for F$Xtime
cfb7dcf4322c added lib
boisy
parents:
diff changeset
533 D.Task1N: RMB 1 Map type 1 task number*2 - offset into [D.TskIPt]
cfb7dcf4322c added lib
boisy
parents:
diff changeset
534 D.Quick: RMB 1 Quick system call return flag - 0 =stack is at $FEE1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
535 D.QIRQ: RMB 1 Quick IRQ flag - 0 =IRQ wasn't clock, so quick return
cfb7dcf4322c added lib
boisy
parents:
diff changeset
536
cfb7dcf4322c added lib
boisy
parents:
diff changeset
537 RMB $40-*
cfb7dcf4322c added lib
boisy
parents:
diff changeset
538 D.BlkMap: RMB 4 Memory Block Map ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
539 D.ModDir: RMB 4 Module Directory ptrs
cfb7dcf4322c added lib
boisy
parents:
diff changeset
540 D.PrcDBT: RMB 2 Process Descriptor Block Table ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
541 D.SysPrc: RMB 2 System Process Descriptor ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
542 D.SysDAT: RMB 2 System DAT Image ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
543 D.SysMem: RMB 2 System Memory Map ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
544 D.Proc: RMB 2 Current Process ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
545 D.AProcQ: RMB 2 Active Process Queue
cfb7dcf4322c added lib
boisy
parents:
diff changeset
546 D.WProcQ: RMB 2 Waiting Process Queue
cfb7dcf4322c added lib
boisy
parents:
diff changeset
547 D.SProcQ: RMB 2 Sleeping Process Queue
cfb7dcf4322c added lib
boisy
parents:
diff changeset
548 D.ModEnd: RMB 2 Module Directory end ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
549 D.ModDAT: RMB 2 Module Dir DAT image end ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
550 D.CldRes: RMB 2 Cold Restart vector
cfb7dcf4322c added lib
boisy
parents:
diff changeset
551 D.BtBug: RMB 3 Boot debug information
cfb7dcf4322c added lib
boisy
parents:
diff changeset
552 D.Pipe: RMB 2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
553
cfb7dcf4322c added lib
boisy
parents:
diff changeset
554 RMB $6B-*
cfb7dcf4322c added lib
boisy
parents:
diff changeset
555 D.Crash: RMB 6 Pointer to CC Crash Routine
cfb7dcf4322c added lib
boisy
parents:
diff changeset
556 D.CBStrt: RMB $B Reserved for CC warmstart ($71)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
557 D.QCnt: RMB 1 Count of number of quick system calls performed
cfb7dcf4322c added lib
boisy
parents:
diff changeset
558
cfb7dcf4322c added lib
boisy
parents:
diff changeset
559 RMB $80-*
cfb7dcf4322c added lib
boisy
parents:
diff changeset
560 D.DevTbl: RMB 2 I/O Device Table
cfb7dcf4322c added lib
boisy
parents:
diff changeset
561 D.PolTbl: RMB 2 I/O Polling Table
cfb7dcf4322c added lib
boisy
parents:
diff changeset
562 RMB 4 reserved
cfb7dcf4322c added lib
boisy
parents:
diff changeset
563 D.PthDBT: RMB 2 Path Descriptor Block Table ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
564 D.DMAReq: RMB 1 DMA Request flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
565
cfb7dcf4322c added lib
boisy
parents:
diff changeset
566 ********
cfb7dcf4322c added lib
boisy
parents:
diff changeset
567 * CoCo 3 STUFF COMES NEXT
cfb7dcf4322c added lib
boisy
parents:
diff changeset
568 * This area is used for the CoCo Hardware Registers
cfb7dcf4322c added lib
boisy
parents:
diff changeset
569 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
570 RMB $90-*
cfb7dcf4322c added lib
boisy
parents:
diff changeset
571 D.HINIT: RMB 1 GIME INIT0 register (hardware setup $FF90)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
572 D.TINIT: RMB 1 GIME INIT1 register (timer/task register $FF91)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
573 D.IRQER: RMB 1 Interrupt enable regsiter ($FF92)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
574 D.FRQER: RMB 1 Fast Interrupt enable register ($FF93)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
575 D.TIMMS: RMB 1 Timer most significant nibble ($FF94)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
576 D.TIMLS: RMB 1 Timer least significant byte ($FF95)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
577 D.RESV1: RMB 1 reserved register ($FF96)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
578 D.RESV2: RMB 1 reserved register ($FF97)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
579 D.VIDMD: RMB 1 video mode register ($FF98)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
580 D.VIDRS: RMB 1 video resolution register ($FF99)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
581 D.BORDR: RMB 1 border register ($FF9A)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
582 D.RESV3: RMB 1 reserved register ($FF9B)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
583 D.VOFF2: RMB 1 vertical scroll/offset 2 register ($FF9C)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
584 D.VOFF1: RMB 1 vertical offset 1 register ($FF9D)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
585 D.VOFF0: RMB 1 vertical offset 0 register ($FF9E)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
586 D.HOFF0: RMB 1 horizontal offset 0 register ($FF9F)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
587 D.Speed: RMB 1 Speed of COCO CPU 0=slow,1=fast ($A0)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
588 D.TskIPt: RMB 2 Task image Pointer table (CC) ($A1)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
589 D.MemSz: RMB 1 128/512K memory flag (CC) ($A3)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
590 D.SSTskN: RMB 1 System State Task Number (COCO) ($A4)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
591 D.CCMem: RMB 2 Pointer to beginning of CC Memory ($A5)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
592 D.CCStk: RMB 2 Pointer to top of CC Memory ($A7)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
593 D.Flip0: RMB 2 Change to Task 0 ($A9)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
594 D.Flip1: RMB 2 Change to reserved Task 1 ($AB)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
595 D.VIRQ: RMB 2 VIRQ Polling routine ($AD)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
596 D.IRQS: RMB 1 IRQ shadow register (CC Temporary) ($AF)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
597 D.CLTb: RMB 2 VIRQ Table address ($B0)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
598 D.AltIRQ: RMB 2 Alternate IRQ Vector (CC) ($B2)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
599 D.GPoll: RMB 2 CC GIME IRQ enable/disable toggle
cfb7dcf4322c added lib
boisy
parents:
diff changeset
600 D.Clock2: RMB 2 CC Clock2 entry address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
601 RMB $C0-*
cfb7dcf4322c added lib
boisy
parents:
diff changeset
602 D.SysSvc: RMB 2 System Service Routine entry
cfb7dcf4322c added lib
boisy
parents:
diff changeset
603 D.SysDis: RMB 2 System Service Dispatch Table ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
604 D.SysIRQ: RMB 2 System IRQ Routine entry
cfb7dcf4322c added lib
boisy
parents:
diff changeset
605 D.UsrSvc: RMB 2 User Service Routine entry
cfb7dcf4322c added lib
boisy
parents:
diff changeset
606 D.UsrDis: RMB 2 User Service Dispatch Table ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
607 D.UsrIRQ: RMB 2 User IRQ Routine entry
cfb7dcf4322c added lib
boisy
parents:
diff changeset
608 D.SysStk: RMB 2 System stack
cfb7dcf4322c added lib
boisy
parents:
diff changeset
609 D.SvcIRQ: RMB 2 In-System IRQ service
cfb7dcf4322c added lib
boisy
parents:
diff changeset
610 D.SysTsk: RMB 1 System Task number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
611 RMB $E0-*
cfb7dcf4322c added lib
boisy
parents:
diff changeset
612 D.Clock: RMB 2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
613 D.XSWI3: RMB 2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
614 D.XSWI2: RMB 2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
615 D.XFIRQ: RMB 2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
616 D.XIRQ: RMB 2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
617 D.XSWI: RMB 2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
618 D.XNMI: RMB 2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
619 D.ErrRst: RMB 2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
620 D.SysVec: RMB 2 F$xxx system call vector for NitrOS-9 Level 3
cfb7dcf4322c added lib
boisy
parents:
diff changeset
621 D.SWI3: RMB 2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
622 D.SWI2: RMB 2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
623 D.FIRQ: RMB 2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
624 D.IRQ: RMB 2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
625 D.SWI: RMB 2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
626 D.NMI: RMB 2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
627
cfb7dcf4322c added lib
boisy
parents:
diff changeset
628 *************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
629 * Level 2 Block Map flags
cfb7dcf4322c added lib
boisy
parents:
diff changeset
630 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
631 NotRAM: EQU %10000000 Block Not RAM flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
632 VidRAM: EQU %00000100 Block is being used as Video RAM
cfb7dcf4322c added lib
boisy
parents:
diff changeset
633 ModBlock: EQU %00000010 Module in Block
cfb7dcf4322c added lib
boisy
parents:
diff changeset
634 RAMinUse: EQU %00000001 RAM Block in use flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
635 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
636 * Service Dispatch Table special entries
cfb7dcf4322c added lib
boisy
parents:
diff changeset
637 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
638 IOEntry: EQU 254
cfb7dcf4322c added lib
boisy
parents:
diff changeset
639
cfb7dcf4322c added lib
boisy
parents:
diff changeset
640 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
641 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
642
cfb7dcf4322c added lib
boisy
parents:
diff changeset
643 TTL Structure Formats
cfb7dcf4322c added lib
boisy
parents:
diff changeset
644 PAG
cfb7dcf4322c added lib
boisy
parents:
diff changeset
645 ************************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
646 * Module Directory Entry Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
647 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
648 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
649 IFGT Level-1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
650 MD$MPDAT: RMB 2 Module DAT Image ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
651 MD$MBSiz: RMB 2 Memory Block size
cfb7dcf4322c added lib
boisy
parents:
diff changeset
652 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
653 MD$MPtr: RMB 2 Module ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
654 MD$Link: RMB 2 Module Link count
cfb7dcf4322c added lib
boisy
parents:
diff changeset
655 MD$ESize: EQU * Module Directory Entry size
cfb7dcf4322c added lib
boisy
parents:
diff changeset
656 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
657
cfb7dcf4322c added lib
boisy
parents:
diff changeset
658 ************************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
659 * Module Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
660 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
661 * Universal Module Offsets
cfb7dcf4322c added lib
boisy
parents:
diff changeset
662 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
663 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
664 M$ID: RMB 2 ID Code
cfb7dcf4322c added lib
boisy
parents:
diff changeset
665 M$Size: RMB 2 Module Size
cfb7dcf4322c added lib
boisy
parents:
diff changeset
666 M$Name: RMB 2 Module Name
cfb7dcf4322c added lib
boisy
parents:
diff changeset
667 M$Type: RMB 1 Type / Language
cfb7dcf4322c added lib
boisy
parents:
diff changeset
668 M$Revs: RMB 1 Attributes / Revision Level
cfb7dcf4322c added lib
boisy
parents:
diff changeset
669 M$Parity: RMB 1 Header Parity
cfb7dcf4322c added lib
boisy
parents:
diff changeset
670 M$IDSize: EQU * Module ID Size
cfb7dcf4322c added lib
boisy
parents:
diff changeset
671 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
672 * Type-Dependent Module Offsets
cfb7dcf4322c added lib
boisy
parents:
diff changeset
673 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
674 * System, File Manager, Device Driver, Program Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
675 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
676 M$Exec: RMB 2 Execution Entry Offset
cfb7dcf4322c added lib
boisy
parents:
diff changeset
677 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
678 * Device Driver, Program Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
679 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
680 M$Mem: RMB 2 Stack Requirement
cfb7dcf4322c added lib
boisy
parents:
diff changeset
681 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
682 * Device Driver, Device Descriptor Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
683 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
684 M$Mode: RMB 1 Device Driver Mode Capabilities
cfb7dcf4322c added lib
boisy
parents:
diff changeset
685 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
686 * Device Descriptor Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
687 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
688
cfb7dcf4322c added lib
boisy
parents:
diff changeset
689 RMB M$IDSize-*
cfb7dcf4322c added lib
boisy
parents:
diff changeset
690 M$FMgr: RMB 2 File Manager Name Offset
cfb7dcf4322c added lib
boisy
parents:
diff changeset
691 M$PDev: RMB 2 Device Driver Name Offset
cfb7dcf4322c added lib
boisy
parents:
diff changeset
692 RMB 1 M$Mode (defined above)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
693 M$Port: RMB 3 Port Address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
694 M$Opt: RMB 1 Device Default Options
cfb7dcf4322c added lib
boisy
parents:
diff changeset
695 M$DTyp: RMB 1 Device Type
cfb7dcf4322c added lib
boisy
parents:
diff changeset
696 IT.DTP: EQU M$DTyp Descriptor type offset
cfb7dcf4322c added lib
boisy
parents:
diff changeset
697
cfb7dcf4322c added lib
boisy
parents:
diff changeset
698 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
699 * Configuration Module Entry Offsets
cfb7dcf4322c added lib
boisy
parents:
diff changeset
700 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
701 RMB M$IDSize-*
cfb7dcf4322c added lib
boisy
parents:
diff changeset
702 MaxMem: RMB 3 Maximum Free Memory
cfb7dcf4322c added lib
boisy
parents:
diff changeset
703 PollCnt: RMB 1 Entries in Interrupt Polling Table
cfb7dcf4322c added lib
boisy
parents:
diff changeset
704 DevCnt: RMB 1 Entries in Device Table
cfb7dcf4322c added lib
boisy
parents:
diff changeset
705 InitStr: RMB 2 Initial Module Name
cfb7dcf4322c added lib
boisy
parents:
diff changeset
706 SysStr: RMB 2 System Device Name
cfb7dcf4322c added lib
boisy
parents:
diff changeset
707 StdStr: RMB 2 Standard I/O Pathlist
cfb7dcf4322c added lib
boisy
parents:
diff changeset
708 BootStr: RMB 2 Bootstrap Module name
cfb7dcf4322c added lib
boisy
parents:
diff changeset
709 ProtFlag: RMB 1 Write protect enable flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
710
cfb7dcf4322c added lib
boisy
parents:
diff changeset
711 OSLevel: RMB 1 OS level
cfb7dcf4322c added lib
boisy
parents:
diff changeset
712 OSVer: RMB 1 OS version
cfb7dcf4322c added lib
boisy
parents:
diff changeset
713 OSMajor: RMB 1 OS major
cfb7dcf4322c added lib
boisy
parents:
diff changeset
714 OSMinor: RMB 1 OS minor
cfb7dcf4322c added lib
boisy
parents:
diff changeset
715 Feature1: RMB 1 feature byte 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
716 Feature2: RMB 1 feature byte 2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
717 OSName: RMB 2 OS revision name string (nul terminated)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
718 InstallName: RMB 2 installation name string (nul terminated)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
719 RMB 4 reserved for future use
cfb7dcf4322c added lib
boisy
parents:
diff changeset
720
cfb7dcf4322c added lib
boisy
parents:
diff changeset
721 IFGT Level-1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
722 * -- VTIO area -- (NitrOS-9 Level 2 and above) *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
723 MonType: RMB 1 Monitor type (0=CMP,1=RGB,2=MONO)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
724 MouseInf: RMB 2 Mouse resolution/Mouse port; was 1, major error RG.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
725 KeyRptS: RMB 1 Key repeat start constant
cfb7dcf4322c added lib
boisy
parents:
diff changeset
726 KeyRptD: RMB 1 Key repeat delay constant
cfb7dcf4322c added lib
boisy
parents:
diff changeset
727 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
728 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
729
cfb7dcf4322c added lib
boisy
parents:
diff changeset
730 * Feature1 byte definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
731 CRCOn: EQU %00000001 CRC checking on
cfb7dcf4322c added lib
boisy
parents:
diff changeset
732 CRCOff: EQU %00000000 CRC checking off
cfb7dcf4322c added lib
boisy
parents:
diff changeset
733 Proc6809: EQU %00000000 6809 procesor
cfb7dcf4322c added lib
boisy
parents:
diff changeset
734 Proc6309: EQU %00000010 6309 procesor
cfb7dcf4322c added lib
boisy
parents:
diff changeset
735
cfb7dcf4322c added lib
boisy
parents:
diff changeset
736 PAG
cfb7dcf4322c added lib
boisy
parents:
diff changeset
737 **************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
738 * Module Field Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
739 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
740 * ID Field - First two bytes of a NitrOS-9 module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
741 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
742 M$ID1: EQU $87 Module ID code byte one
cfb7dcf4322c added lib
boisy
parents:
diff changeset
743 M$ID2: EQU $CD Module ID code byte two
cfb7dcf4322c added lib
boisy
parents:
diff changeset
744 M$ID12: EQU M$ID1*256+M$ID2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
745
cfb7dcf4322c added lib
boisy
parents:
diff changeset
746 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
747 * Module Type/Language Field Masks
cfb7dcf4322c added lib
boisy
parents:
diff changeset
748 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
749 TypeMask: EQU %11110000 Type Field
cfb7dcf4322c added lib
boisy
parents:
diff changeset
750 LangMask: EQU %00001111 Language Field
cfb7dcf4322c added lib
boisy
parents:
diff changeset
751
cfb7dcf4322c added lib
boisy
parents:
diff changeset
752 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
753 * Module Type Values
cfb7dcf4322c added lib
boisy
parents:
diff changeset
754 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
755 Devic: EQU $F0 Device Descriptor Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
756 Drivr: EQU $E0 Physical Device Driver
cfb7dcf4322c added lib
boisy
parents:
diff changeset
757 FlMgr: EQU $D0 File Manager
cfb7dcf4322c added lib
boisy
parents:
diff changeset
758 Systm: EQU $C0 System Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
759 ShellSub: EQU $50 Shell+ shell sub module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
760 Data: EQU $40 Data Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
761 Multi: EQU $30 Multi-Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
762 Sbrtn: EQU $20 Subroutine Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
763 Prgrm: EQU $10 Program Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
764
cfb7dcf4322c added lib
boisy
parents:
diff changeset
765 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
766 * Module Language Values
cfb7dcf4322c added lib
boisy
parents:
diff changeset
767 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
768 Objct: EQU 1 6809 Object Code Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
769 ICode: EQU 2 Basic09 I-code
cfb7dcf4322c added lib
boisy
parents:
diff changeset
770 PCode: EQU 3 Pascal P-code
cfb7dcf4322c added lib
boisy
parents:
diff changeset
771 CCode: EQU 4 C I-code
cfb7dcf4322c added lib
boisy
parents:
diff changeset
772 CblCode: EQU 5 Cobol I-code
cfb7dcf4322c added lib
boisy
parents:
diff changeset
773 FrtnCode: EQU 6 Fortran I-code
cfb7dcf4322c added lib
boisy
parents:
diff changeset
774 Obj6309: EQU 7 6309 object code
cfb7dcf4322c added lib
boisy
parents:
diff changeset
775 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
776 * Module Attributes / Revision byte
cfb7dcf4322c added lib
boisy
parents:
diff changeset
777 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
778 * Field Masks
cfb7dcf4322c added lib
boisy
parents:
diff changeset
779 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
780 AttrMask: EQU %11110000 Attributes Field
cfb7dcf4322c added lib
boisy
parents:
diff changeset
781 RevsMask: EQU %00001111 Revision Level Field
cfb7dcf4322c added lib
boisy
parents:
diff changeset
782 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
783 * Attribute Flags
cfb7dcf4322c added lib
boisy
parents:
diff changeset
784 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
785 ReEnt: EQU %10000000 Re-Entrant Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
786 ModProt: EQU %01000000 Gimix Module protect bit (0=protected, 1=write enable)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
787 ModNat: EQU %00100000 6309 native mode attribute
cfb7dcf4322c added lib
boisy
parents:
diff changeset
788
cfb7dcf4322c added lib
boisy
parents:
diff changeset
789 ********************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
790 * Device Type Values
cfb7dcf4322c added lib
boisy
parents:
diff changeset
791 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
792 * These values define various classes of devices, which are
cfb7dcf4322c added lib
boisy
parents:
diff changeset
793 * managed by a file manager module. The Device Type is embedded
cfb7dcf4322c added lib
boisy
parents:
diff changeset
794 * in a device's device descriptor.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
795 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
796 DT.SCF: EQU 0 Sequential Character File Manager
cfb7dcf4322c added lib
boisy
parents:
diff changeset
797 DT.RBF: EQU 1 Random Block File Manager
cfb7dcf4322c added lib
boisy
parents:
diff changeset
798 DT.Pipe: EQU 2 Pipe File Manager
cfb7dcf4322c added lib
boisy
parents:
diff changeset
799 DT.SBF: EQU 3 Sequential Block File Manager
cfb7dcf4322c added lib
boisy
parents:
diff changeset
800 DT.NFM: EQU 4 Network File Manager
cfb7dcf4322c added lib
boisy
parents:
diff changeset
801 DT.CDFM: EQU 5 CD-ROM File Manager
cfb7dcf4322c added lib
boisy
parents:
diff changeset
802
cfb7dcf4322c added lib
boisy
parents:
diff changeset
803
cfb7dcf4322c added lib
boisy
parents:
diff changeset
804 *********************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
805 * CRC Result Constant
cfb7dcf4322c added lib
boisy
parents:
diff changeset
806 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
807 CRCCon1: EQU $80
cfb7dcf4322c added lib
boisy
parents:
diff changeset
808 CRCCon23: EQU $0FE3
cfb7dcf4322c added lib
boisy
parents:
diff changeset
809
cfb7dcf4322c added lib
boisy
parents:
diff changeset
810 TTL Process Information
cfb7dcf4322c added lib
boisy
parents:
diff changeset
811 PAG
cfb7dcf4322c added lib
boisy
parents:
diff changeset
812 ********************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
813 * Process Descriptor Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
814 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
815 IFEQ Level-1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
816
cfb7dcf4322c added lib
boisy
parents:
diff changeset
817 * Level 1 process descriptor defs
cfb7dcf4322c added lib
boisy
parents:
diff changeset
818 DefIOSiz: EQU 12
cfb7dcf4322c added lib
boisy
parents:
diff changeset
819 NumPaths: EQU 16 Number of Local Paths
cfb7dcf4322c added lib
boisy
parents:
diff changeset
820
cfb7dcf4322c added lib
boisy
parents:
diff changeset
821 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
822 P$ID: RMB 1 Process ID
cfb7dcf4322c added lib
boisy
parents:
diff changeset
823 P$PID: RMB 1 Parent's ID
cfb7dcf4322c added lib
boisy
parents:
diff changeset
824 P$SID: RMB 1 Sibling's ID
cfb7dcf4322c added lib
boisy
parents:
diff changeset
825 P$CID: RMB 1 Child's ID
cfb7dcf4322c added lib
boisy
parents:
diff changeset
826 P$SP: RMB 2 Stack ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
827 P$CHAP: RMB 1 process chapter number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
828 P$ADDR: RMB 1 user address beginning page number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
829 P$PagCnt: RMB 1 Memory Page Count
cfb7dcf4322c added lib
boisy
parents:
diff changeset
830 P$User: RMB 2 User Index $09
cfb7dcf4322c added lib
boisy
parents:
diff changeset
831 P$Prior: RMB 1 Priority $0B
cfb7dcf4322c added lib
boisy
parents:
diff changeset
832 P$Age: RMB 1 Age $0C
cfb7dcf4322c added lib
boisy
parents:
diff changeset
833 P$State$0D
cfb7dcf4322c added lib
boisy
parents:
diff changeset
834 P$Queue: RMB 2 Queue Link (Process ptr) $0E
cfb7dcf4322c added lib
boisy
parents:
diff changeset
835 P$IOQP: RMB 1 Previous I/O Queue Link (Process ID) $10
cfb7dcf4322c added lib
boisy
parents:
diff changeset
836 P$IOQN: RMB 1 Next I/O Queue Link (Process ID)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
837 P$PModul: RMB 2 Primary Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
838 P$SWI: RMB 2 SWI Entry Point
cfb7dcf4322c added lib
boisy
parents:
diff changeset
839 P$SWI2: RMB 2 SWI2 Entry Point
cfb7dcf4322c added lib
boisy
parents:
diff changeset
840 P$SWI3: RMB 2 SWI3 Entry Point $18
cfb7dcf4322c added lib
boisy
parents:
diff changeset
841 P$DIO: RMB DefIOSiz default I/O ptrs $1A
cfb7dcf4322c added lib
boisy
parents:
diff changeset
842 P$PATH: RMB NumPaths I/O path table $26
cfb7dcf4322c added lib
boisy
parents:
diff changeset
843 P$Signal: RMB 1 Signal Code $36
cfb7dcf4322c added lib
boisy
parents:
diff changeset
844 P$SigVec: RMB 2 Signal Intercept Vector
cfb7dcf4322c added lib
boisy
parents:
diff changeset
845 P$SigDat: RMB 2 Signal Intercept Data Address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
846 P$NIO: RMB 4 additional dio pointers for net
cfb7dcf4322c added lib
boisy
parents:
diff changeset
847 RMB $40-* unused
cfb7dcf4322c added lib
boisy
parents:
diff changeset
848 P$Size: EQU * Size of Process Descriptor
cfb7dcf4322c added lib
boisy
parents:
diff changeset
849 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
850
cfb7dcf4322c added lib
boisy
parents:
diff changeset
851 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
852 * Process State Flags
cfb7dcf4322c added lib
boisy
parents:
diff changeset
853 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
854 SysState: EQU %10000000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
855 TimSleep: EQU %01000000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
856 TimOut: EQU %00100000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
857 ImgChg: EQU %00010000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
858 Condem: EQU %00000010
cfb7dcf4322c added lib
boisy
parents:
diff changeset
859 Dead: EQU %00000001
cfb7dcf4322c added lib
boisy
parents:
diff changeset
860
cfb7dcf4322c added lib
boisy
parents:
diff changeset
861 ELSE
cfb7dcf4322c added lib
boisy
parents:
diff changeset
862
cfb7dcf4322c added lib
boisy
parents:
diff changeset
863 * Level 2 process descriptor defs
cfb7dcf4322c added lib
boisy
parents:
diff changeset
864 DefIOSiz: EQU 16 Default I/O Data Length
cfb7dcf4322c added lib
boisy
parents:
diff changeset
865 NefIOSiz: EQU 12 On-Net Default I/O Data Length
cfb7dcf4322c added lib
boisy
parents:
diff changeset
866 NumPaths: EQU 16 Number of Local Paths
cfb7dcf4322c added lib
boisy
parents:
diff changeset
867
cfb7dcf4322c added lib
boisy
parents:
diff changeset
868 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
869 P$ID: RMB 1 Process ID
cfb7dcf4322c added lib
boisy
parents:
diff changeset
870 P$PID: RMB 1 Parent's ID
cfb7dcf4322c added lib
boisy
parents:
diff changeset
871 P$SID: RMB 1 Sibling's ID
cfb7dcf4322c added lib
boisy
parents:
diff changeset
872 P$CID: RMB 1 Child's ID
cfb7dcf4322c added lib
boisy
parents:
diff changeset
873 P$SP: RMB 2 Stack ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
874 P$Task: RMB 1 Task Number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
875 P$PagCnt: RMB 1 Memory Page Count
cfb7dcf4322c added lib
boisy
parents:
diff changeset
876 P$User: RMB 2 User Index
cfb7dcf4322c added lib
boisy
parents:
diff changeset
877 P$Prior: RMB 1 Priority
cfb7dcf4322c added lib
boisy
parents:
diff changeset
878 P$Age: RMB 1 Age
cfb7dcf4322c added lib
boisy
parents:
diff changeset
879 P$State: RMB 1 Status
cfb7dcf4322c added lib
boisy
parents:
diff changeset
880 P$Queue: RMB 2 Queue Link (Process ptr)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
881 P$IOQP: RMB 1 Previous I/O Queue Link (Process ID)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
882 P$IOQN: RMB 1 Next I/O Queue Link (Process ID)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
883 P$PModul: RMB 2 Primary Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
884 P$SWI: RMB 2 SWI Entry Point
cfb7dcf4322c added lib
boisy
parents:
diff changeset
885 P$SWI2: RMB 2 SWI2 Entry Point
cfb7dcf4322c added lib
boisy
parents:
diff changeset
886 P$SWI3: RMB 2 SWI3 Entry Point
cfb7dcf4322c added lib
boisy
parents:
diff changeset
887 P$Signal: RMB 1 Signal Code
cfb7dcf4322c added lib
boisy
parents:
diff changeset
888 P$SigVec: RMB 2 Signal Intercept Vector
cfb7dcf4322c added lib
boisy
parents:
diff changeset
889 P$SigDat: RMB 2 Signal Intercept Data Address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
890 P$DeadLk: RMB 1 Dominant proc ID if I/O locked
cfb7dcf4322c added lib
boisy
parents:
diff changeset
891 RMB $20-* unused
cfb7dcf4322c added lib
boisy
parents:
diff changeset
892 P$DIO: RMB DefIOSiz Default I/O ptrs
cfb7dcf4322c added lib
boisy
parents:
diff changeset
893 P$Path: RMB NumPaths I/O Path Table
cfb7dcf4322c added lib
boisy
parents:
diff changeset
894 P$DATImg: RMB 64 DAT Image
cfb7dcf4322c added lib
boisy
parents:
diff changeset
895 P$Links: RMB 32 Block Link counts
cfb7dcf4322c added lib
boisy
parents:
diff changeset
896 P$NIO: RMB 6*2 additional DIO ptrs for net, compatible with 68k
cfb7dcf4322c added lib
boisy
parents:
diff changeset
897 P$SelP: RMB 1 Selected Path for COCO Windows (Default 0)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
898 P$UTicks: RMB 4 proc User Tick counter (L2V3)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
899 P$STicks: RMB 4 proc System Tick counter (L2V3)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
900 P$FCalls: RMB 4 proc F$ call counter (L2V3)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
901 P$ICalls: RMB 4 proc I$ call counter (L2V3)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
902 P$DatBeg: RMB 3 proc Date of creation (Y/M/D) (L2V3)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
903 P$TimBeg: RMB 3 proc Time of creation (H/M/S) (L2V3)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
904 P$Alarm: RMB 6
cfb7dcf4322c added lib
boisy
parents:
diff changeset
905 RMB $200-* Local stack
cfb7dcf4322c added lib
boisy
parents:
diff changeset
906 P$Stack: EQU * Top of Stack
cfb7dcf4322c added lib
boisy
parents:
diff changeset
907 P$Size: EQU * Size of Process Descriptor
cfb7dcf4322c added lib
boisy
parents:
diff changeset
908 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
909
cfb7dcf4322c added lib
boisy
parents:
diff changeset
910 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
911 * Process State Flags
cfb7dcf4322c added lib
boisy
parents:
diff changeset
912 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
913 SysState: EQU %10000000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
914 TimSleep: EQU %01000000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
915 TimOut: EQU %00100000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
916 ImgChg: EQU %00010000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
917 Suspend: EQU %00001000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
918 Condem: EQU %00000010
cfb7dcf4322c added lib
boisy
parents:
diff changeset
919 Dead: EQU %00000001
cfb7dcf4322c added lib
boisy
parents:
diff changeset
920
cfb7dcf4322c added lib
boisy
parents:
diff changeset
921 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
922
cfb7dcf4322c added lib
boisy
parents:
diff changeset
923 TTL NitrOS-9 I/O Symbolic Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
924 PAG
cfb7dcf4322c added lib
boisy
parents:
diff changeset
925 *************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
926 * Path Descriptor Offsets
cfb7dcf4322c added lib
boisy
parents:
diff changeset
927 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
928 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
929 PD.PD: RMB 1 Path Number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
930 PD.MOD: RMB 1 Mode (Read/Write/Update)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
931 PD.CNT: RMB 1 Number of Open Images
cfb7dcf4322c added lib
boisy
parents:
diff changeset
932 PD.DEV: RMB 2 Device Table Entry Address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
933 PD.CPR: RMB 1 Current Process
cfb7dcf4322c added lib
boisy
parents:
diff changeset
934 PD.RGS: RMB 2 Caller's Register Stack
cfb7dcf4322c added lib
boisy
parents:
diff changeset
935 PD.BUF: RMB 2 Buffer Address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
936 PD.FST: RMB 32-* File Manager's Storage
cfb7dcf4322c added lib
boisy
parents:
diff changeset
937 PD.OPT: EQU * PD GetSts(0) Options
cfb7dcf4322c added lib
boisy
parents:
diff changeset
938 PD.DTP: RMB 1 Device Type
cfb7dcf4322c added lib
boisy
parents:
diff changeset
939 RMB 64-* Path options
cfb7dcf4322c added lib
boisy
parents:
diff changeset
940 PDSIZE: EQU *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
941 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
942
cfb7dcf4322c added lib
boisy
parents:
diff changeset
943 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
944 * Pathlist Special Symbols
cfb7dcf4322c added lib
boisy
parents:
diff changeset
945 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
946 PDELIM: EQU '/ Pathlist Name Separator
cfb7dcf4322c added lib
boisy
parents:
diff changeset
947 PDIR: EQU '. Directory
cfb7dcf4322c added lib
boisy
parents:
diff changeset
948 PENTIR: EQU '@ Entire Device
cfb7dcf4322c added lib
boisy
parents:
diff changeset
949
cfb7dcf4322c added lib
boisy
parents:
diff changeset
950 PAG
cfb7dcf4322c added lib
boisy
parents:
diff changeset
951 ****************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
952 * File Manager Entry Offsets
cfb7dcf4322c added lib
boisy
parents:
diff changeset
953 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
954 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
955 FMCREA: RMB 3 Create (Open New) File
cfb7dcf4322c added lib
boisy
parents:
diff changeset
956 FMOPEN: RMB 3 Open File
cfb7dcf4322c added lib
boisy
parents:
diff changeset
957 FMMDIR: RMB 3 Make Directory
cfb7dcf4322c added lib
boisy
parents:
diff changeset
958 FMCDIR: RMB 3 Change Directory
cfb7dcf4322c added lib
boisy
parents:
diff changeset
959 FMDLET: RMB 3 Delete File
cfb7dcf4322c added lib
boisy
parents:
diff changeset
960 FMSEEK: RMB 3 Position File
cfb7dcf4322c added lib
boisy
parents:
diff changeset
961 FMREAD: RMB 3 Read from File
cfb7dcf4322c added lib
boisy
parents:
diff changeset
962 FMWRIT: RMB 3 Write to File
cfb7dcf4322c added lib
boisy
parents:
diff changeset
963 FMRDLN: RMB 3 ReadLn
cfb7dcf4322c added lib
boisy
parents:
diff changeset
964 FMWRLN: RMB 3 WritLn
cfb7dcf4322c added lib
boisy
parents:
diff changeset
965 FMGSTA: RMB 3 Get File Status
cfb7dcf4322c added lib
boisy
parents:
diff changeset
966 FMSSTA: RMB 3 Set File Status
cfb7dcf4322c added lib
boisy
parents:
diff changeset
967 FMCLOS: RMB 3 Close File
cfb7dcf4322c added lib
boisy
parents:
diff changeset
968 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
969
cfb7dcf4322c added lib
boisy
parents:
diff changeset
970 *****************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
971 * Device Driver Entry Offsets
cfb7dcf4322c added lib
boisy
parents:
diff changeset
972 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
973 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
974 D$INIT: RMB 3 Device Initialization
cfb7dcf4322c added lib
boisy
parents:
diff changeset
975 D$READ: RMB 3 Read from Device
cfb7dcf4322c added lib
boisy
parents:
diff changeset
976 D$WRIT: RMB 3 Write to Device
cfb7dcf4322c added lib
boisy
parents:
diff changeset
977 D$GSTA: RMB 3 Get Device Status
cfb7dcf4322c added lib
boisy
parents:
diff changeset
978 D$PSTA: RMB 3 Put Device Status
cfb7dcf4322c added lib
boisy
parents:
diff changeset
979 D$TERM: RMB 3 Device Termination
cfb7dcf4322c added lib
boisy
parents:
diff changeset
980 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
981
cfb7dcf4322c added lib
boisy
parents:
diff changeset
982 *********************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
983 * Device Table Format
cfb7dcf4322c added lib
boisy
parents:
diff changeset
984 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
985 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
986 V$DRIV: RMB 2 Device Driver module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
987 V$STAT: RMB 2 Device Driver Static storage
cfb7dcf4322c added lib
boisy
parents:
diff changeset
988 V$DESC: RMB 2 Device Descriptor module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
989 V$FMGR: RMB 2 File Manager module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
990 V$USRS: RMB 1 use count
cfb7dcf4322c added lib
boisy
parents:
diff changeset
991 IFGT Level-1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
992 V$DRIVEX: RMB 2 Device Driver execution address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
993 V$FMGREX: RMB 2 File Manager execution address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
994 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
995 DEVSIZ: EQU *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
996 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
997
cfb7dcf4322c added lib
boisy
parents:
diff changeset
998 *******************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
999 * Device Static Storage Offsets
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1000 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1001 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1002 V.PAGE: RMB 1 Port Extended Address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1003 V.PORT: RMB 2 Device 'Base' Port Address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1004 V.LPRC: RMB 1 Last Active Process ID
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1005 V.BUSY: RMB 1 Active Process ID (0=UnBusy)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1006 V.WAKE: RMB 1 Active PD if Driver MUST Wake-up
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1007 V.USER EQU * Driver Allocation Origin
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1008 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1009
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1010 ********************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1011 * Interrupt Polling Table Format
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1012 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1013 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1014 Q$POLL: RMB 2 Absolute Polling Address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1015 Q$FLIP: RMB 1 Flip (EOR) Byte ..normally Zero
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1016 Q$MASK: RMB 1 Polling Mask (after Flip)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1017 Q$SERV: RMB 2 Absolute Service routine Address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1018 Q$STAT: RMB 2 Static Storage Address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1019 Q$PRTY: RMB 1 Priority (Low Numbers=Top Priority)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1020 IFGT Level-1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1021 Q$MAP: RMB 2 NitrOS-9 Level 2 and above
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1022 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1023 POLSIZ: EQU *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1024 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1025
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1026 ********************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1027 * VIRQ packet format
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1028 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1029 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1030 Vi.Cnt: RMB 2 count down counter
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1031 Vi.Rst: RMB 2 reset value for counter
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1032 Vi.Stat: RMB 1 status byte
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1033 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1034
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1035 Vi.IFlag: EQU %00000001 status byte virq flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1036
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1037 PAG
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1038 *************************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1039 * Machine Characteristics Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1040 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1041 R$CC: EQU 0 Condition Codes register
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1042 R$A: EQU 1 A Accumulator
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1043 R$B: EQU 2 B Accumulator
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1044 R$D: EQU R$A Combined A:B Accumulator
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1045 IFNE H6309
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1046 R$E: EQU 3 E Accumulator
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1047 R$F: EQU 4 F Accumulator
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1048 R$W: EQU R$E Combined E:F Accumulator
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1049 R$Q: EQU R$A Combined A:B:E:F Accumulator
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1050 R$DP: EQU 5 Direct Page register
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1051 R$X: EQU 6 X Index register
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1052 R$Y: EQU 8 Y Index register
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1053 R$U: EQU 10 User Stack register
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1054 R$PC: EQU 12 Program Counter register
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1055 R$Size: EQU 14 Total register package size
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1056 ELSE
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1057 R$DP: EQU 3 Direct Page register
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1058 R$X: EQU 4 X Index register
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1059 R$Y: EQU 6 Y Index register
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1060 R$U: EQU 8 User Stack register
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1061 R$PC: EQU 10 Program Counter register
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1062 R$Size: EQU 12 Total register package size
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1063 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1064
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1065 * MD register masks
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1066 * 6309 definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1067 DIV0: EQU %10000000 division by 0 trap flag : 1 = trap occured
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1068 badinstr: EQU %01000000 illegal instruction trap flag : 1 = trap occured
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1069
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1070 Entire: EQU %10000000 Full Register Stack flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1071 FIRQMask: EQU %01000000 Fast-Interrupt Mask bit
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1072 HalfCrry: EQU %00100000 Half Carry flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1073 IRQMask: EQU %00010000 Interrupt Mask bit
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1074 Negative: EQU %00001000 Negative flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1075 Zero: EQU %00000100 Zero flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1076 TwosOvfl: EQU %00000010 Two's Comp Overflow flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1077 Carry: EQU %00000001 Carry bit
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1078 IntMasks: EQU IRQMask+FIRQMask
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1079 Sign: EQU %10000000 sign bit
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1080
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1081 TTL Error Code Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1082 PAG
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1083 ************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1084 * Error Code Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1085 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1086 * Basic09 Error Codes
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1087 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1088 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1089 E$UnkSym: RMB 1 Unknown symbol
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1090 E$ExcVrb: RMB 1 Excessive verbage
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1091 E$IllStC: RMB 1 Illegal statement construction
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1092 E$ICOvf: RMB 1 I-code overflow
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1093 E$IChRef: RMB 1 Illegal channel reference
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1094 E$IllMod: RMB 1 Illegal mode
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1095 E$IllNum: RMB 1 Illegal number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1096 E$IllPrf: RMB 1 Illegal prefix
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1097 E$IllOpd: RMB 1 Illegal operand
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1098 E$IllOpr: RMB 1 Illegal operator
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1099 E$IllRFN: RMB 1 Illegal record field name
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1100 E$IllDim: RMB 1 Illegal dimension
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1101 E$IllLit: RMB 1 Illegal literal
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1102 E$IllRet: RMB 1 Illegal relational
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1103 E$IllSfx: RMB 1 Illegal type suffix
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1104 E$DimLrg: RMB 1 Dimension too large
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1105 E$LinLrg: RMB 1 Line number too large
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1106 E$NoAssg: RMB 1 Missing assignment statement
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1107 E$NoPath: RMB 1 Missing path number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1108 E$NoComa: RMB 1 Missing coma
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1109 E$NoDim: RMB 1 Missing dimension
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1110 E$NoDO: RMB 1 Missing DO statement
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1111 E$MFull: RMB 1 Memory full
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1112 E$NoGoto: RMB 1 Missing GOTO
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1113 E$NoLPar: RMB 1 Missing left parenthesis
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1114 E$NoLRef: RMB 1 Missing line reference
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1115 E$NoOprd: RMB 1 Missing operand
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1116 E$NoRPar: RMB 1 Missing right parenthesis
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1117 E$NoTHEN: RMB 1 Missing THEN statement
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1118 E$NoTO: RMB 1 Missing TO statement
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1119 E$NoVRef: RMB 1 Missing variable reference
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1120 E$EndQou: RMB 1 Missing end quote
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1121 E$SubLrg: RMB 1 Too many subscripts
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1122 E$UnkPrc: RMB 1 Unknown procedure
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1123 E$MulPrc: RMB 1 Multiply defined procedure
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1124 E$DivZer: RMB 1 Divice by zero
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1125 E$TypMis: RMB 1 Operand type mismatch
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1126 E$StrOvf: RMB 1 String stack overflow
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1127 E$NoRout: RMB 1 Unimplemented routine
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1128 E$UndVar: RMB 1 Undefined variable
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1129 E$FltOvf: RMB 1 Floating Overflow
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1130 E$LnComp: RMB 1 Line with compiler error
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1131 E$ValRng: RMB 1 Value out of range for destination
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1132 E$SubOvf: RMB 1 Subroutine stack overflow
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1133 E$SubUnd: RMB 1 Subroutine stack underflow
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1134 E$SubRng: RMB 1 Subscript out of range
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1135 E$ParmEr: RMB 1 Paraemter error
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1136 E$SysOvf: RMB 1 System stack overflow
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1137 E$IOMism: RMB 1 I/O type mismatch
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1138 E$IONum: RMB 1 I/O numeric input format bad
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1139 E$IOConv: RMB 1 I/O conversion: number out of range
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1140 E$IllInp: RMB 1 Illegal input format
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1141 E$IOFRpt: RMB 1 I/O format repeat error
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1142 E$IOFSyn: RMB 1 I/O format syntax error
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1143 E$IllPNm: RMB 1 Illegal path number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1144 E$WrSub: RMB 1 Wrong number of subscripts
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1145 E$NonRcO: RMB 1 Non-record type operand
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1146 E$IllA: RMB 1 Illegal argument
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1147 E$IllCnt: RMB 1 Illegal control structure
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1148 E$UnmCnt: RMB 1 Unmatched control structure
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1149 E$IllFOR: RMB 1 Illegal FOR variable
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1150 E$IllExp: RMB 1 Illegal expression type
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1151 E$IllDec: RMB 1 Illegal declarative statement
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1152 E$ArrOvf: RMB 1 Array size overflow
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1153 E$UndLin: RMB 1 Undefined line number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1154 E$MltLin: RMB 1 Multiply defined line number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1155 E$MltVar: RMB 1 Multiply defined variable
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1156 E$IllIVr: RMB 1 Illegal input variable
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1157 E$SeekRg: RMB 1 Seek out of range
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1158 E$NoData: RMB 1 Missing data statement
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1159
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1160 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1161 * System Dependent Error Codes
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1162 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1163
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1164 * Level 2 windowing error codes
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1165 RMB 183-*
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1166 E$IWTyp: RMB 1 Illegal window type
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1167 E$WADef: RMB 1 Window already defined
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1168 E$NFont: RMB 1 Font not found
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1169 E$StkOvf: RMB 1 Stack overflow
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1170 E$IllArg: RMB 1 Illegal argument
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1171 RMB 1 reserved
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1172 E$ICoord: RMB 1 Illegal coordinates
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1173 E$Bug: RMB 1 Bug (should never be returned)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1174 E$BufSiz: RMB 1 Buffer size is too small
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1175 E$IllCmd: RMB 1 Illegal command
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1176 E$TblFul: RMB 1 Screen or window table is full
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1177 E$BadBuf: RMB 1 Bad/Undefined buffer number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1178 E$IWDef: RMB 1 Illegal window definition
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1179 E$WUndef: RMB 1 Window undefined
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1180
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1181 E$Up: RMB 1 Up arrow pressed on SCF I$ReadLn with PD.UP enabled
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1182 E$Dn: RMB 1 Down arrow pressed on SCF I$ReadLn with PD.DOWN enabled
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1183 E$Alias: RMB 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1184
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1185
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1186 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1187 * Standard NitrOS-9 Error Codes
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1188 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1189 RMB 200-*
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1190 E$PthFul: RMB 1 Path Table full
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1191 E$BPNum: RMB 1 Bad Path Number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1192 E$Poll: RMB 1 Polling Table Full
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1193 E$BMode: RMB 1 Bad Mode
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1194 E$DevOvf: RMB 1 Device Table Overflow
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1195 E$BMID: RMB 1 Bad Module ID
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1196 E$DirFul: RMB 1 Module Directory Full
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1197 E$MemFul: RMB 1 Process Memory Full
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1198 E$UnkSvc: RMB 1 Unknown Service Code
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1199 E$ModBsy: RMB 1 Module Busy
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1200 E$BPAddr: RMB 1 Bad Page Address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1201 E$EOF: RMB 1 End of File
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1202 RMB 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1203 E$NES: RMB 1 Non-Existing Segment
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1204 E$FNA: RMB 1 File Not Accesible
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1205 E$BPNam: RMB 1 Bad Path Name
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1206 E$PNNF: RMB 1 Path Name Not Found
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1207 E$SLF: RMB 1 Segment List Full
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1208 E$CEF: RMB 1 Creating Existing File
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1209 E$IBA: RMB 1 Illegal Block Address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1210 E$HangUp: RMB 1 Carrier Detect Lost
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1211 E$MNF: RMB 1 Module Not Found
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1212 RMB 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1213 E$DelSP: RMB 1 Deleting Stack Pointer memory
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1214 E$IPrcID: RMB 1 Illegal Process ID
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1215 E$BPrcID: EQU E$IPrcID Bad Process ID (formerly #238)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1216 RMB 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1217 E$NoChld: RMB 1 No Children
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1218 E$ISWI: RMB 1 Illegal SWI code
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1219 E$PrcAbt: RMB 1 Process Aborted
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1220 E$PrcFul: RMB 1 Process Table Full
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1221 E$IForkP: RMB 1 Illegal Fork Parameter
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1222 E$KwnMod: RMB 1 Known Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1223 E$BMCRC: RMB 1 Bad Module CRC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1224 E$USigP: RMB 1 Unprocessed Signal Pending
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1225 E$NEMod: RMB 1 Non Existing Module
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1226 E$BNam: RMB 1 Bad Name
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1227 E$BMHP: RMB 1 (bad module header parity)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1228 E$NoRAM: RMB 1 No (System) RAM Available
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1229 E$DNE: RMB 1 Directory not empty
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1230 E$NoTask: RMB 1 No available Task number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1231 RMB $F0-* reserved
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1232 E$Unit: RMB 1 Illegal Unit (drive)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1233 E$Sect: RMB 1 Bad Sector number
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1234 E$WP: RMB 1 Write Protect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1235 E$CRC: RMB 1 Bad Check Sum
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1236 E$Read: RMB 1 Read Error
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1237 E$Write: RMB 1 Write Error
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1238 E$NotRd: RMB 1 Device Not Ready
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1239 E$Seek: RMB 1 Seek Error
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1240 E$Full: RMB 1 Media Full
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1241 E$BTyp: RMB 1 Bad Type (incompatable) media
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1242 E$DevBsy: RMB 1 Device Busy
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1243 E$DIDC: RMB 1 Disk ID Change
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1244 E$Lock: RMB 1 Record is busy (locked out)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1245 E$Share: RMB 1 Non-sharable file busy
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1246 E$DeadLk: RMB 1 I/O Deadlock error
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1247 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1248
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1249
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1250 IFEQ Level-1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1251
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1252 ********************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1253 * Boot defs for NitrOS-9 Level 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1254 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1255 * These defs are not strictly for 'Boot', but are for booting the
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1256 * system.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1257 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1258 Bt.Start: EQU $EE00 Start address of the boot track in memory
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1259
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1260 * Boot area size on Dragon is only 16 sectors=4K
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1261 IFNE DRAGON
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1262 Bt.Size: EQU $1000 Max size of boot file
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1263 ELSE
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1264 Bt.Size: EQU $1080 Maximum size of bootfile
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1265 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1266
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1267 ELSE
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1268
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1269 ******************************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1270 * Boot defs for NitrOS-9 Level 2 and above
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1271 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1272 * These defs are not strictly for 'Boot', but are for booting the
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1273 * system.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1274 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1275 Bt.Block: EQU $3B Block to map in for the 'OS9BOOT' screen
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1276 Bt.Flag: EQU $8A34 Flag in Bt.Block to verify that it's unchanged
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1277 Bt.Offst: EQU 2 Offset into the screen where the current ptr is
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1278 Bt.Start: EQU $ED00 Start address of the boot track in memory
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1279
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1280 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1281
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1282 * Boot area on the Dragon starts on track 0 sector 2, imediatly
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1283 * after the blockmap.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1284 * On the CoCo, the boot track is all of track 34
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1285
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1286 IFNE DRAGON
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1287 Bt.Track: EQU 0 Boot track
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1288 Bt.Sec: EQU 2 Start LSN of boot area on boot track
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1289 ELSE
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1290 Bt.Track: EQU 34 Boot track
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1291 Bt.Sec: EQU 0 Start LSN of boot area on boot track
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1292 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1293
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1294
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1295 IFGT Level-2
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1296 ***************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1297 * Level 3 Defs
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1298 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1299 * These definitions apply to NitrOS-9 Level 3
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1300 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1301 L3.Start: EQU $2000 Start off at slot 1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1302 L3.Size: EQU $40 Go for 64 pages: 2 slots total
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1303 L3.Blks: EQU L3.Size/$20 Number of slots
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1304 L3.End: EQU L3.Start+L3.Size*$0100 end of L3 memory
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1305 L3.SCF: EQU $0660 SCF block ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1306 L3.RBF: EQU L3.SCF+1 RBF block ptr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1307 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1308
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1309 ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1310
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1311
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1312
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1313
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1314
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1315 ********************************************************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1316 * SCFDefs - Sequential Character File Manager Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1317 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1318 * $Id$
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1319 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1320 * SCF stands for 'Sequential Character Filemanager' and is a package of subroutines
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1321 * that define the logical structure of a serial device.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1322 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1323 * The data structures in this file give SCF its 'personality' and are used
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1324 * by SCF itself, as well as applications that will require disk I/O.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1325 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1326 * Edt/Rev YYYY/MM/DD Modified by
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1327 * Comment
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1328 * ------------------------------------------------------------------
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1329 * 1984/01/11 YO
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1330 * Added V.KANJI, V.KBUF, V.MODADR for new kanji input process.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1331 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1332 * 1985/04/20 Mark G. Hawkins
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1333 * Added V.PDLHd Path Descriptor List Head.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1334 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1335 * 1985/04/21 Mark G. Hawkins
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1336 * Added PD.PLP and PD.PST for modem handling.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1337 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1338 * 1987/06/23 Kevin K. Darling
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1339 * Updated with Dev Desc info.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1340 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1341 * 1998/10/03 Boisy G. Pitre
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1342 * Consolidated L1/L2 scfdefs.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1343 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1344 * 2003/01/21 Boisy G. Pitre
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1345 * Added symbolics for enhanced SCF line editing.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1346 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1347 * 2003/06/02 Boisy G. Pitre
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1348 * Updated comments for clarity.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1349 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1350 * 2004/05/17 Boisy G. Pitre
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1351 * Added higher baud rates.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1352
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1353 NAM SCFDefs
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1354 TTL Sequential File Manager Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1355
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1356 PAG
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1357 *******************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1358 * SCF Device Descriptor Offsets
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1359 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1360 * These definitions are for SCF device descriptors.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1361
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1362 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1363 RMB M$DTyp
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1364 IT.DVC: RMB 1 Device type (DT.SCF)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1365 IT.UPC: RMB 1 Uppercase flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1366 IT.BSO: RMB 1 Backspace behavior
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1367 IT.DLO: RMB 1 Delete behavior
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1368 IT.EKO: RMB 1 Echo flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1369 IT.ALF: RMB 1 Auto linefeed flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1370 IT.NUL: RMB 1 End-of-line null count
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1371 IT.PAU: RMB 1 Page pause flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1372 IT.PAG: RMB 1 Number of lines per page
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1373 IT.BSP: RMB 1 Backspace character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1374 IT.DEL: RMB 1 Delete-line character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1375 IT.EOR: RMB 1 End-of-record character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1376 IT.EOF: RMB 1 End-of-file character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1377 IT.RPR: RMB 1 Reprint-line character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1378 IT.DUP: RMB 1 Duplicate-last-line character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1379 IT.PSC: RMB 1 Pause character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1380 IT.INT: RMB 1 Interrupt character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1381 IT.QUT: RMB 1 Quit character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1382 IT.BSE: RMB 1 Backspace echo character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1383 IT.OVF: RMB 1 Bell character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1384 IT.PAR: RMB 1 Parity
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1385 IT.BAU: RMB 1 Baud rate
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1386 IT.D2P: RMB 2 Attached device name string offset
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1387 IT.XON: RMB 1 X-ON character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1388 IT.XOF: RMB 1 X-OFF character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1389 IT.COL: RMB 1 Number of columns for display
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1390 IT.ROW: RMB 1 Number of rows for display
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1391 IT.XTYP: RMB 1 Extended type (added by BRI)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1392
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1393 * IFGT Level-1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1394 * Window Descriptor Additions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1395 * For CoCo window, where IT.PAR = $80
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1396 RMB IT.ROW+1
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1397 IT.WND: RMB 1 Window number (matches device name) ($2E)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1398 IT.VAL: RMB 1 Use defaults on Init (0=no, 1=yes)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1399 IT.STY: RMB 1 Screen type default
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1400 IT.CPX: RMB 1 Column start default
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1401 IT.CPY: RMB 1 Row start default
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1402 IT.FGC: RMB 1 Foreground color default
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1403 IT.BGC: RMB 1 Background color default
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1404 IT.BDC: RMB 1 Border color default
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1405 * ENDC
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1406 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1407
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1408 PAG
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1409 ********************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1410 * SCF Static Storage
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1411 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1412 * SCF devices must reserve this space for SCF
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1413 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1414 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1415 RMB V.USER
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1416 V.TYPE: RMB 1 Device type or parity
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1417 V.LINE: RMB 1 Lines left until end of page
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1418 V.PAUS: RMB 1 Immediate Pause request
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1419 V.DEV2: RMB 2 Attached device's static
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1420 V.INTR: RMB 1 Interrupt char
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1421 V.QUIT: RMB 1 Quit char
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1422 V.PCHR: RMB 1 Pause char
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1423 V.ERR: RMB 1 Accumulated errors
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1424 V.XON: RMB 1 X-On char
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1425 V.XOFF: RMB 1 X-Off char
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1426 V.KANJI: RMB 1 Kanji mode flag
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1427 V.KBUF: RMB 2 Kana - Kanji convert routine work address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1428 V.MODADR: RMB 2 Kana - Kanji convert module address
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1429 V.PDLHd: RMB 2 Open path descriptor list head pointer
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1430 V.RSV: RMB 5 Reserve bytes for future expansion
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1431 V.SCF: EQU * Total SCF manager static overhead
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1432 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1433
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1434 PAG
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1435 ***********************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1436 * Character Definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1437 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1438 C$NULL: SET 0 Null char
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1439 C$RPET: SET $01 (CTRL-A - SOH) Repeat last input line
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1440 C$INTR: SET $03 (CTRL-C - ETX) Keyboard interrupt
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1441 C$RPRT: SET $04 (CTRL-D - EOT) Reprint current input line
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1442 C$QUIT: SET $05 (CTRL-E - ENQ) Keyboard Abort
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1443 C$BELL: SET $07 (CTRL-G - BEL) Line overflow warning
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1444 C$BSP: SET $08 (CTRL-H - BS ) Back space
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1445 C$RARR: SET $09 Right Arrow
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1446 C$EL: SET $05 Erase Line
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1447 C$LF: SET $0A Line feed
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1448 C$HOME: SET $0B Home position Code
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1449 C$Clsgr: SET $15 Graphic screen clear (use FM-11)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1450 C$Clsall: SET $16 Graphic & character clear (use FM-11)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1451 C$CR: SET $0D Carriage return
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1452 C$FORM: SET $0C (CTRL-L - FF ) Form Feed ... screen clear
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1453 C$SI: SET $0F Shift IN Code
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1454 C$SO: SET $0E Shift OUT Code
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1455 C$DELETE: SET $10 Delete char (for SCF enhanced line editing)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1456 C$XON: SET $11 (CTRL-Q - DC1) Transmit Enable
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1457 C$INSERT: SET C$XON Insert char (for SCF enhanced line editing)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1458 C$XOFF: SET $13 (CTRL-S - DC3) Transmit Disable
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1459 C$PLINE: SET C$XOFF Print remaining line (for SCF enhanced line editing)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1460 C$PAUS: SET $17 (CTRL-W - ETB) Pause character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1461 C$DEL: SET $18 (CTRL-X - CAN) Delete line
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1462 C$SHRARR: SET $19 Shift Right-Arrow
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1463 C$EOF: SET $1B (CTRL-[ - ESC) END of file
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1464 C$RGT: SET $1C Cursor right
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1465 C$LFT: SET $1D Cursor left
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1466 C$UP: SET $1E Cursor up
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1467 C$DWN: SET $1F Cursor down
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1468 C$SPAC: SET $20 Space
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1469 C$PERD: SET '.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1470 C$COMA: SET ',
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1471
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1472
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1473 PAG
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1474 *********************************************
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1475 * Sequential Character Path Descriptor Format
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1476 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1477 * A path descriptor is created for every new path that is open
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1478 * via the I$Open system call (processed by IOMan). Process
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1479 * descriptors track state information of a path.
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1480 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1481 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1482 RMB PD.FST
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1483 PD.DV2: RMB 2 Output device table pointer
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1484 PD.RAW: RMB 1 Read/Write or ReadLn/WritLn mode
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1485 PD.MAX: RMB 2 ReadLn high byte count
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1486 PD.MIN: RMB 1 Devices are "mine" if clear
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1487 PD.STS: RMB 2 Status routine module addr
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1488 PD.STM: RMB 2 Reserved for status routine
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1489 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1490
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1491 csect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1492 RMB PD.OPT
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1493 RMB 1 Device type
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1494 PD.UPC: RMB 1 Case (0=both, 1=upper only)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1495 PD.BSO: RMB 1 Backspace (0=BSE, 1=BSE,SP,BSE)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1496 PD.DLO: RMB 1 Delete (0=BSE over line, 1=CRLF)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1497 PD.EKO: RMB 1 Echo (0=No Echo)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1498 PD.ALF: RMB 1 Auto linefeed (0=No auto LF)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1499 PD.NUL: RMB 1 End of Line null count
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1500 PD.PAU: RMB 1 Page pause (0=No end of page pause)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1501 PD.PAG: RMB 1 Lines per page
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1502 PD.BSP: RMB 1 Backspace character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1503 PD.DEL: RMB 1 Delete Line character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1504 PD.EOR: RMB 1 End of Record character (read only)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1505 PD.EOF: RMB 1 End of File character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1506 PD.RPR: RMB 1 Repront Line character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1507 PD.DUP: RMB 1 Dup Last Line character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1508 PD.PSC: RMB 1 Pause character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1509 PD.INT: RMB 1 Keyboard interrupt character (CTRL-C)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1510 PD.QUT: RMB 1 Keyboard quit character (CTRL-E)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1511 PD.BSE: RMB 1 Backspace echo character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1512 PD.OVF: RMB 1 Line overflow character (BELL)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1513 PD.PAR: RMB 1 Parity code
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1514 PD.BAU: RMB 1 ACIA baud rate (Color Computer)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1515 PD.D2P: RMB 2 Offset of DEV2 name
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1516 PD.XON: RMB 1 ACIA X-ON character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1517 PD.XOFF: RMB 1 ACIA X-OFF character
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1518 OPTCNT EQU *-PD.OPT Total user settable options
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1519 PD.ERR: RMB 1 Most recent I/O error status
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1520 PD.TBL: RMB 2 Device table addr (copy)
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1521 PD.PLP: RMB 2 Path Descriptor List Pointer
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1522 PD.PST: RMB 1 Current path status
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1523 endsect
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1524
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1525 * PD.PST values Path Descriptor Status byte
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1526 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1527 PST.DCD: EQU %00000001 Set if DCD is lost on Serial port
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1528
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1529
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1530 * PD.PAR definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1531 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1532 * Parity
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1533 PARNONE: EQU %00000000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1534 PARODD: EQU %00100000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1535 PAREVEN: EQU %01100000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1536 PARMARK: EQU %10100000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1537 PARSPACE: EQU %11100000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1538
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1539 * PD.BAU definitions
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1540 *
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1541 * Baud rate
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1542 B110: EQU %00000000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1543 B300: EQU %00000001
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1544 B600: EQU %00000010
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1545 B1200: EQU %00000011
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1546 B2400: EQU %00000100
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1547 B4800: EQU %00000101
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1548 B9600: EQU %00000110
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1549 B19200: EQU %00000111
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1550 B38400: EQU %00001000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1551 B57600: EQU %00001001
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1552 B115200: EQU %00001010
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1553 * Word size
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1554 WORD8: EQU %00000000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1555 WORD7: EQU %00100000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1556 * Stop bits
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1557 STOP1: EQU %00000000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1558 STOP2: EQU %00010000
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1559
cfb7dcf4322c added lib
boisy
parents:
diff changeset
1560 endsect