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