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