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