annotate lib/os9defs.a @ 2431:4dfe474521bd

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