-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstEqu.s
More file actions
230 lines (196 loc) · 9.26 KB
/
ConstEqu.s
File metadata and controls
230 lines (196 loc) · 9.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
; Status Register Constants
IPL2 EQU 10
IPL1 EQU 9
IPL0 EQU 8
RAMconfigInit EQU $6
IWMInitMode EQU $17
powerCntl EQU $10
pMgrADBoff EQU $21 ; Turn ADB auto-poll off
xPramWrite EQU $32
timeRead EQU $38 ; Read the time from the clock chip
xPramRead EQU $3A ; Read extended PRAM
modemRead EQU $58
batteryRead EQU $68
batteryNow EQU $69
readINT EQU $78 ; Get Power Manager interrupt data
sleepReq EQU $7F
soundSet EQU $90
soundRead EQU $98 ; Read sound power state
PmgrSelfTest EQU $EC ; Run Power Manager self test
pIWM EQU 0 ; IWM power
pSCC EQU 1 ; SCC power
pHD EQU 2 ; SCSI hard drive power
pModem EQU 3 ; Modem power
pSerDrvr EQU 4
pASC EQU 5 ; Sound power
pMinus5V EQU 6
pTurnOn EQU 7
ChrgState EQU 5
soundOff EQU 0
soundOn EQU 1
sndClrLtch EQU 2
sndOnClrLtch EQU 3
bkLim EQU $0 ; Last block in zone [pointer}
SysZoneSize EQU $1800 ; Default System Zone size
dfltMasters EQU 32
vblCount EQU $A
SleepTime EQU $0 ; Copies of sleep timeout values
HDTime EQU $1 ; Hard disk timeout
SleepQHdr EQU $2 ; Sleep queue header
SlpQFlags EQU $2 ; Sleep queue flags
SlpQHead EQU $4 ; First sleep queue entry
SlpQTail EQU $8
SysTaskFlag EQU $C ; System task has been called flag
LastLevel EQU $D ; Previous normalized power level
SaveSpeedo EQU $E ; Current CPU speed
Charger EQU $F ; Charger status flag
SleepFlags EQU $10 ; Misc status flags
TOdirtyFlag EQU $11 ; Timeouts are dirtry flag
WakeVector EQU $12
LastAct EQU $1A ; Last user activity
LastHd EQU $1E ; Last hard disk activity
LowWarn EQU $22 ; Low power warning threshold
Cutoff EQU $23 ; Power manager cutoff voltage
BNmQEntry EQU $24 ; Low power alert
BatQ EQU $48 ; Battery level circular index
lpMSGvalid EQU $50 ; Low power message pending flag
IdleFlagCnt EQU $51 ; Idle flag set/clear counter
BatAvg EQU $52 ; Average of BatQ
NTSCcopy EQU $53 ; Copy of NTSC byte, only used from restart to DrawBeepScreen
BatQIndex EQU $5F ; Index into circular battery averaging queue
SleepNetHook EQU $60 ; Hook for calling pre-close ATalk
vBatInt EQU $64 ; Vector to battery interrupt handler
vEnvInt EQU $68 ; Vector to environment interrupt handler
Level4Cnt EQU $6D
BatVBLTask EQU $82 ; Battery monitor VBL task
SwVBLTask EQU $90 ; Sound Watch (SndWatch) VBL task
PmgrPramBase EQU $70
SlpTimeOut EQU $70 ; Sleep timeout, in seconds/15
HDTimeOut EQU $71 ; Hard disk timeout, in seconds/15
PmgrStatusFlags EQU $72
PmgrOtherFlags EQU $73
Brightness EQU $74 ; Brightness level
VidMode EQU $75 ; Video mode
DfltHDTime EQU 4*60/15 ; Default number of minutes before HD spin down timeout (4 min)
DfltSlpTime EQU 8*60/15 ; Default number of minutes before sleep timeout (8 min)
idlespeed EQU 1 ; Idle speed (1MHz equivalent)
CPUSpeed16MHz EQU 16 ; 16MHz CPU Speed
SndWFreq EQU 60*10 ; Sound Watch (SndWatch) VBL is called every 10 seconds
BatFreq EQU 60*1 ; Battery level monitor VBL is called every second
FBDBSize EQU 370
boxSE EQU $FF
boxPortable EQU 4
cpu68000 EQU 0
cpu68010 EQU 1
cpu68020 EQU 2
cpu68030 EQU 3
PMreq EQU 0 ; Power manager handshake request
PMack EQU 1 ; Power manager handshack acknowledge
TestJumper EQU 2 ; Test jumper
SyncM EQU 3 ; Synchronous modem support
; 0 = original Macintosh configuration
; 1 = synchronous modem support, SCC channel A
ErrROM EQU $0001
ErrRAMA EQU $0003
ErrAddr EQU $0005
ErrVIA1 EQU $0006
ErrRAMC EQU $0008
ErrSCSI EQU $000B
ErrIWM EQU $000C
ErrData EQU $000E
ErrPmgrSt EQU $0010
ErrSizeMem EQU $0011
ErrPmgrTurnOn EQU $0014
ErrVidRAM EQU $0082
ErrVidAddr EQU $0083
ErrSCCReg EQU $0084
ErrSCCLoop EQU $0085
ErrSCCTimer EQU $0086
ErrVIATest EQU $0087
ErrASCTest EQU $0089
ErrPramTest EQU $008A
BECode EQU $0100 ; Bus error exception code
ADCode EQU $0200 ; Address error exception code
ILCode EQU $0300 ; Illegal instruction error exception code
ZDCode EQU $0400 ; Zero divide error exception code
CICode EQU $0500
TPCode EQU $0600
PVCode EQU $0700
TECode EQU $0800
ATCode EQU $0900
FTCode EQU $0A00
UNCode EQU $0B00
CPCode EQU $0C00
FMCode EQU $0D00
SICode EQU $0E00
TNCode EQU $0F00
L1Code EQU $1000
L2Code EQU $1100
L3Code EQU $1200
L4Code EQU $1300
L5Code EQU $1400
L6Code EQU $1500
L7Code EQU $1600
F1Code EQU $1700
F2Code EQU $1800
F3Code EQU $1900
F4Code EQU $1A00
F5Code EQU $1B00
F6Code EQU $1C00
F7Code EQU $1D00
PCCode EQU $1E00
PICode EQU $1F00
PACode EQU $2000
sec EQU $C
MsgQ EQU 16
SCCok EQU 17
nosleep EQU 18
star EQU 19
aski EQU 20
echo EQU 21
timer EQU 22
crlf EQU 23
excp EQU 24
nmi EQU 25
test EQU 26
beok EQU 27
stop EQU 28
loop EQU 29
pram EQU 30
boot EQU 31
oneSecIntFlag EQU 27
RxCA EQU 0 ; SCC Receive Character Available
BootStackSize EQU 8*1024
ADBCount EQU 0
MaxCnt EQU ADBCount+2
Err7 EQU MaxCnt+2
Err6 EQU Err7+2
Err5 EQU Err6+2
Err4 EQU Err5+2
Err3 EQU Err4+2
Err2 EQU Err3+2
Err1 EQU Err2+2
Error EQU Err1+2
GSize EQU Error+2
TotalSize EQU GSize+8
SlimInstalled EQU 3
CmdShiftOptDel EQU $8805
qHead EQU 2
qLink EQU 0
qTail EQU 6
dqRefNum EQU $8
ioPosMode EQU $2C
ioPosOffset EQU $2E
ioBuffer EQU $20
ioByteCount EQU $24
noDriveErr EQU -64
offLinErr EQU -65
FlashEnable EQU 8
MyIOPBA6 EQU -$400
EjectCode EQU 7
csCode EQU $1A
FloppyRefNum EQU -5
BBNewMask EQU $80
BBExecMask EQU $40
MyExecMask EQU BBNewMask+BBExecMask
BBOldExecVers EQU 'D'