annotate defs/sysglobs.d @ 1764:c51d21c94682

Fixed problem in swset where query needed lbra. Converted all files to Unix EOL
author boisy
date Fri, 01 Apr 2005 17:01:46 +0000
parents 27e85b681dab
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1760
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
2 ; sysglobs - System Global Definitions
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
3 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
4 ; $Id$
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
5 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
6 ; Edt/Rev YYYY/MM/DD Modified by
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
7 ; Comment
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
8 ; ------------------------------------------------------------------
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
9 ; 2004/05/17 Boisy G. Pitre
1760
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
10 ; Created.
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
11
1760
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
12 .title System Global Definitions
1630
7af4d12008f4 Updated ChangeLogs with slight formatting differences
boisy
parents: 1627
diff changeset
13
7af4d12008f4 Updated ChangeLogs with slight formatting differences
boisy
parents: 1627
diff changeset
14 .area SYSGLOBS (ABS)
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
15
1630
7af4d12008f4 Updated ChangeLogs with slight formatting differences
boisy
parents: 1627
diff changeset
16 .ifndef Level
7af4d12008f4 Updated ChangeLogs with slight formatting differences
boisy
parents: 1627
diff changeset
17 Level == 1
7af4d12008f4 Updated ChangeLogs with slight formatting differences
boisy
parents: 1627
diff changeset
18 .endif
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
19
1630
7af4d12008f4 Updated ChangeLogs with slight formatting differences
boisy
parents: 1627
diff changeset
20 .ifeq Level-1
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
21 ; Level 1 DP vars
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
22 .org 0
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
23 D.WDAddr:: .rmb 2 ; FHL/Isted WD1002-05 interface base address
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
24 D.WDBtDr:: .rmb 1 ; FHL/Isted WD1002-05 boot physical device drive num.
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
25 .rmb 5
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
26 D.COCOXT:: .rmb 1 ; Busy flag for CoCo-XT driver (one drive at a time)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
27
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
28 .org 0h20
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
29 D.FMBM:: .rmb 4 ; Free memory bit map pointers
1627
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
30 D.MLIM:: .rmb 2 ; Memory limit
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
31 D.ModDir:: .rmb 4 ; Module directory
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
32 D.Init:: .rmb 2 ; ROM base address
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
33 D.SWI3:: .rmb 2 ; SWI3 vector
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
34 D.SWI2:: .rmb 2 ; SWI2 vector
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
35 D.FIRQ:: .rmb 2 ; FIRQ vector
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
36 D.IRQ:: .rmb 2 ; IRQ vector
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
37 D.SWI:: .rmb 2 ; SWI vector
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
38 D.NMI:: .rmb 2 ; NMI vector
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
39 D.SvcIRQ:: .rmb 2 ; Interrupt service entry
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
40 D.Poll:: .rmb 2 ; Interrupt polling routine
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
41 D.UsrIRQ:: .rmb 2 ; User IRQ routine
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
42 D.SysIRQ:: .rmb 2 ; System IRQ routine
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
43 D.UsrSvc:: .rmb 2 ; User service request routine
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
44 D.SysSvc:: .rmb 2 ; System service request routine
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
45 D.UsrDis:: .rmb 2 ; User service request dispatch table
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
46 D.SysDis:: .rmb 2 ; System service reuest dispatch table
1627
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
47 D.Slice:: .rmb 1 ; Process time slice count
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
48 D.PrcDBT:: .rmb 2 ; Process descriptor block address
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
49 D.Proc:: .rmb 2 ; Process descriptor address
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
50 D.AProcQ:: .rmb 2 ; Active process queue
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
51 D.WProcQ:: .rmb 2 ; Waiting process queue
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
52 D.SProcQ:: .rmb 2 ; Sleeping process queue
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
53 D.Time == . ; Time
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
54 D.Year:: .rmb 1 ; Year (0=1900)
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
55 D.Month:: .rmb 1 ; Month (1-12)
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
56 D.Day:: .rmb 1 ; Day (1-31)
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
57 D.Hour:: .rmb 1 ; Hour (0-23)
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
58 D.Min:: .rmb 1 ; Minute (0-59)
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
59 D.Sec:: .rmb 1 ; Second (0-59)
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
60 D.Tick:: .rmb 1 ; Current tick
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
61 D.TSec:: .rmb 1 ; Ticks per second
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
62 D.TSlice:: .rmb 1 ; Ticks per time-slice
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
63 D.IOML:: .rmb 2 ; I/O mgr free memory low bound
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
64 D.IOMH:: .rmb 2 ; I/O mgr free memory hi bound
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
65 D.DevTbl:: .rmb 2 ; Device driver table addr
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
66 D.PolTbl:: .rmb 2 ; Irq polling table addr
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
67 D.PthDBT:: .rmb 2 ; Path descriptor block table addr
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
68 D.BTLO:: .rmb 2 ; Bootstrap low address
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
69 D.BTHI:: .rmb 2 ; Bootstrap hi address
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
70 D.DMAReq:: .rmb 1 ; DMA in use flag
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
71 D.AltIRQ:: .rmb 2 ; Alternate IRQ vector (CC)
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
72 D.KbdSta:: .rmb 2 ; Keyboard scanner static storage (CC)
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
73 D.DskTmr:: .rmb 2 ; Disk Motor Timer (CC)
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
74 D.CBStrt:: .rmb 16 ; reserved for CC warmstart ($71)
1627
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
75 D.Clock:: .rmb 2 ; Address of Clock Tick Routine (CC)
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
76 D.Boot:: .rmb 1 ; Bootstrap attempted flag
1627
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
77 D.URtoSs:: .rmb 2 ; address of user to system routine (VIRQ)
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
78 D.CLTb:: .rmb 2 ; Pointer to clock interrupt table (VIRQ)
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
79 D.MDREG:: .rmb 1 ; 6309 MD (mode) shadow register (added in V2.01.00)
f7ece667f6f1 Minor updates
boisy
parents: 1626
diff changeset
80 D.CRC:: .rmb 1 ; CRC checking mode flag (added in V2.01.00)
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
81 D.Clock2:: .rmb 2 ; CC Clock2 entry address
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
82
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
83 .org 0h100
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
84 D.XSWI3:: .rmb 3
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
85 D.XSWI2:: .rmb 3
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
86 D.XSWI:: .rmb 3
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
87 D.XNMI:: .rmb 3
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
88 D.XIRQ:: .rmb 3
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
89 D.XFIRQ:: .rmb 3
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
90
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
91 ; Table Sizes
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
92 BMAPSZ == 32 ; Bitmap table size
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
93 SVCTNM == 2 ; Number of service request tables
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
94 SVCTSZ == (256-BMAPSZ)/SVCTNM-2 ; Service request table size
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
95
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
96 .else
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
97
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
98 ; Level 2 DP vars
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
99 .org 0
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
100 D.WDAddr:: .rmb 2 ; FHL/Isted WD1002-05 interface base address
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
101 D.WDBtDr:: .rmb 1 ; FHL/Isted WD1002-05 boot physical device drive num.
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
102 .rmb 5
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
103 D.COCOXT:: .rmb 1 ; Busy flag for CoCo-XT driver (one drive at a time)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
104
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
105 .org 0h20
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
106 D.Tasks:: .rmb 2 ; Task User Table
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
107 D.TmpDAT:: .rmb 2 ; Temporary DAT Image stack
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
108 D.Init:: .rmb 2 ; Initialization Module ptr
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
109 D.Poll:: .rmb 2 ; Interrupt Polling Routine ptr
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
110 D.Time == . ; System Time
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
111 D.Year:: .rmb 1
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
112 D.Month:: .rmb 1
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
113 D.Day:: .rmb 1
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
114 D.Hour:: .rmb 1
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
115 D.Min:: .rmb 1
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
116 D.Sec:: .rmb 1
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
117 D.Tick:: .rmb 1
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
118 D.Slice:: .rmb 1 ; current slice remaining
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
119 D.TSlice:: .rmb 1 ; Ticks per Slice
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
120 D.Boot:: .rmb 1 ; Bootstrap attempted flag
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
121 D.MotOn:: .rmb 1 ; Floppy Disk Motor-On time out
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
122 D.ErrCod:: .rmb 1 ; Reset Error Code
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
123 D.Daywk:: .rmb 1 ; day of week, com-trol clock
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
124 D.TkCnt:: .rmb 1 ; Tick Counter
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
125 D.BtPtr:: .rmb 2 ; Address of Boot in System Address space
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
126 D.BtSz:: .rmb 2 ; Size of Boot
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
127 .ifdef H6309
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
128 D.MDREG:: .rmb 1 ; 6309 MD (mode) shadow register
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
129 .else
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
130 .rmb 1 ; Currently unused in NitrOS-9/6809
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
131 .endif
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
132 D.CRC:: .rmb 1 ; CRC checking mode flag
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
133 D.Tenths:: .rmb 1 ; Tenths and hundredths of second for F$Xtime
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
134 D.Task1N:: .rmb 1 ; Map type 1 task number*2 - offset into [D.TskIPt]
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
135 D.Quick:: .rmb 1 ; Quick system call return flag - 0 =stack is at $FEE1
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
136 D.QIRQ:: .rmb 1 ; Quick IRQ flag - 0 =IRQ wasn't clock, so quick return
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
137
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
138 .org 0h40
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
139 D.BlkMap:: .rmb 4 ; Memory Block Map ptr
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
140 D.ModDir:: .rmb 4 ; Module Directory ptrs
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
141 D.PrcDBT:: .rmb 2 ; Process Descriptor Block Table ptr
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
142 D.SysPrc:: .rmb 2 ; System Process Descriptor ptr
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
143 D.SysDAT:: .rmb 2 ; System DAT Image ptr
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
144 D.SysMem:: .rmb 2 ; System Memory Map ptr
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
145 D.Proc:: .rmb 2 ; Current Process ptr
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
146 D.AProcQ:: .rmb 2 ; Active Process Queue
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
147 D.WProcQ:: .rmb 2 ; Waiting Process Queue
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
148 D.SProcQ:: .rmb 2 ; Sleeping Process Queue
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
149 D.ModEnd:: .rmb 2 ; Module Directory end ptr
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
150 D.ModDAT:: .rmb 2 ; Module Dir DAT image end ptr
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
151 D.CldRes:: .rmb 2 ; Cold Restart vector
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
152 D.BtBug:: .rmb 3 ; Boot debug information
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
153 D.Pipe:: .rmb 2
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
154
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
155 .org 0h6B
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
156 D.Crash:: .rmb 6 ; Pointer to CC Crash Routine
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
157 D.CBStrt:: .rmb 0hB ; Reserved for CC warmstart ($71)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
158 D.QCnt:: .rmb 1 ; Count of number of quick system calls performed
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
159
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
160 .org 0h80
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
161 D.DevTbl:: .rmb 2 ; I/O Device Table
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
162 D.PolTbl:: .rmb 2 ; I/O Polling Table
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
163 .rmb 4 ; reserved
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
164 D.PthDBT:: .rmb 2 ; Path Descriptor Block Table ptr
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
165 D.DMAReq:: .rmb 1 ; DMA Request flag
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
166
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
167 ; CoCo 3 STUFF COMES NEXT
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
168 ; This area is used for the CoCo Hardware Registers
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
169 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
170 .org 0h90
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
171 D.HINIT:: .rmb 1 ; GIME INIT0 register (hardware setup $FF90)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
172 D.TINIT:: .rmb 1 ; GIME INIT1 register (timer/task register $FF91)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
173 D.IRQER:: .rmb 1 ; Interrupt enable regsiter ($FF92)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
174 D.FRQER:: .rmb 1 ; Fast Interrupt enable register ($FF93)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
175 D.TIMMS:: .rmb 1 ; Timer most significant nibble ($FF94)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
176 D.TIMLS:: .rmb 1 ; Timer least significant byte ($FF95)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
177 D.RESV1:: .rmb 1 ; reserved register ($FF96)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
178 D.RESV2:: .rmb 1 ; reserved register ($FF97)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
179 D.VIDMD:: .rmb 1 ; video mode register ($FF98)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
180 D.VIDRS:: .rmb 1 ; video resolution register ($FF99)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
181 D.BORDR:: .rmb 1 ; border register ($FF9A)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
182 D.RESV3:: .rmb 1 ; reserved register ($FF9B)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
183 D.VOFF2:: .rmb 1 ; vertical scroll/offset 2 register ($FF9C)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
184 D.VOFF1:: .rmb 1 ; vertical offset 1 register ($FF9D)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
185 D.VOFF0:: .rmb 1 ; vertical offset 0 register ($FF9E)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
186 D.HOFF0:: .rmb 1 ; horizontal offset 0 register ($FF9F)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
187 D.Speed:: .rmb 1 ; Speed of COCO CPU 0=slow,1=fast ($A0)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
188 D.TskIPt:: .rmb 2 ; Task image Pointer table (CC) ($A1)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
189 D.MemSz:: .rmb 1 ; 128/512K memory flag (CC) ($A3)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
190 D.SSTskN:: .rmb 1 ; System State Task Number (COCO) ($A4)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
191 D.CCMem:: .rmb 2 ; Pointer to beginning of CC Memory ($A5)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
192 D.CCStk:: .rmb 2 ; Pointer to top of CC Memory ($A7)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
193 D.Flip0:: .rmb 2 ; Change to Task 0 ($A9)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
194 D.Flip1:: .rmb 2 ; Change to reserved Task 1 ($AB)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
195 D.VIRQ:: .rmb 2 ; VIRQ Polling routine ($AD)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
196 D.IRQS:: .rmb 1 ; IRQ shadow register (CC Temporary) ($AF)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
197 D.CLTb:: .rmb 2 ; VIRQ Table address ($B0)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
198 D.AltIRQ:: .rmb 2 ; Alternate IRQ Vector (CC) ($B2)
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
199 D.GPoll:: .rmb 2 ; CC GIME IRQ enable/disable toggle
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
200 D.Clock2:: .rmb 2 ; CC Clock2 entry address
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
201 .org 0hC0
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
202 D.SysSvc:: .rmb 2 ; System Service Routine entry
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
203 D.SysDis:: .rmb 2 ; System Service Dispatch Table ptr
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
204 D.SysIRQ:: .rmb 2 ; System IRQ Routine entry
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
205 D.UsrSvc:: .rmb 2 ; User Service Routine entry
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
206 D.UsrDis:: .rmb 2 ; User Service Dispatch Table ptr
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
207 D.UsrIRQ:: .rmb 2 ; User IRQ Routine entry
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
208 D.SysStk:: .rmb 2 ; System stack
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
209 D.SvcIRQ:: .rmb 2 ; In-System IRQ service
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
210 D.SysTsk:: .rmb 1 ; System Task number
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
211 .org 0hE0
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
212 D.Clock:: .rmb 2
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
213 D.XSWI3:: .rmb 2
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
214 D.XSWI2:: .rmb 2
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
215 D.XFIRQ:: .rmb 2
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
216 D.XIRQ:: .rmb 2
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
217 D.XSWI:: .rmb 2
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
218 D.XNMI:: .rmb 2
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
219 D.ErrRst:: .rmb 2
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
220 D.SysVec:: .rmb 2 ; F$xxx system call vector for NitrOS-9 Level 3
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
221 D.SWI3:: .rmb 2
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
222 D.SWI2:: .rmb 2
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
223 D.FIRQ:: .rmb 2
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
224 D.IRQ:: .rmb 2
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
225 D.SWI:: .rmb 2
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
226 D.NMI:: .rmb 2
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
227
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
228 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
229 ; Level 2 Block Map flags
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
230 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
231 NotRAM == 0b10000000 ; Block Not RAM flag
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
232 VidRAM == 0b00000100 ; Block is being used as Video RAM
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
233 ModBlock == 0b00000010 ; Module in Block
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
234 RAMinUse == 0b00000001 ; RAM Block in use flag
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
235
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
236 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
237 ; Service Dispatch Table special entries
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
238 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
239 IOEntry == 254
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
240
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
241 .endif