annotate defs/os9defs @ 1919:028161cd3535

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