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