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