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