annotate defs/os9defs @ 2024:e396d4f24b27

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