-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmirage.inc
173 lines (157 loc) · 5.17 KB
/
mirage.inc
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
; MirageOS Development Include File
;
; Ver. 1.0 - Last Updated: 07/15/00
; By Dan Englender and Jason Kovacs
;=================================;
;======== Ion Subroutines ========;
;=================================;
iversion: EQU $4083
irandom: EQU $4086
isprite: EQU $4089
ilsprite: EQU $408C
igetpix: EQU $408F
ifastcopy: EQU $4092
idetect: EQU $4095
idecomp: EQU $4098
;=================================;
;====== MirageOS Subroutines =====;
;=================================;
directin: EQU $409B
sendbytetios: EQU $409E
getbytetios: EQU $40A1
version: EQU $40A4
setvputs: EQU $40A7
setpixel: EQU $40AA
fastcopys: EQU $40AD
delayb: EQU $40B0
multhe: EQU $40B3
multhl: EQU $40B6
quittoshell: EQU $40B9
fastline: EQU $40BC
pixelonhl: EQU $40BF
pixeloff: EQU $40C2
pixelxor: EQU $40C5
pixeltest: EQU $40C8
pixeloffhl: EQU $40CB
pixelxorhl: EQU $40DE
pixeltesthl: EQU $40D1
fastlineb: EQU $40D4
fastlinew: EQU $40D7
fastlinex: EQU $40DA
pointonc: EQU $40DD
pointoffc: EQU $40E0
pointxorc: EQU $40E3
centertext: EQU $40E6
cphlbc: EQU $40E9
putsprite8: EQU $40EC
fastcopyb: EQU $40EF
vputsc: EQU $40F2
scrolld7: EQU $40F5
vnewline: EQU $40F8
rand127: EQU $40FB
disprle: EQU $40FE
cphlde: EQU $4101
screentopic: EQU $4104
fastlined: EQU $4107
disprlel: EQU $410A
getnextgoodprog: EQU $410D
getprevgoodprog: EQU $4110
getnext: EQU $4113
getprev: EQU $4116
compstrs: EQU $4119
nextstr: EQU $411C
getinfo: EQU $411F
fastrectangle: EQU $4122
gettext: EQU $4125
gettextv: EQU $4128
FastRectangle_Save: EQU $412B
vputa: EQU $412E
runprog: EQU $4131
isgoodprog: EQU $4134
existfold: EQU $4137
delprog: EQU $413A
filledrectangle: EQU $413D
nextfolder: EQU $4140
delfolder: EQU $4143
moveall: EQU $4149
curfoldname: EQU $4149
curfoldnamea: EQU $414C
createfolder: EQU $414F
compstrsn: EQU $4152
folder_menu_start: EQU $4155
options_screen: EQU $4158
put_folder_name_top: EQU $415B
general_key_routine: EQU $415E
find_num_good_progs: EQU $4161
put_scrollbar: EQU $4164
invert_lines: EQU $4167
invert_1_line: EQU $416A
right_align_value: EQU $416D
put_mirageos_header: EQU $4170
put_size_graphic: EQU $4173
sendprog: EQU $4176
hideprog: EQU $4179
arcprog: EQU $417C
filledrectangle_save: EQU $417F
getbytetiosw: EQU $4182
vatswap: EQU $4185
renameprog: EQU $4188
renamefolder: EQU $418B
sysmain: EQU $418E
setupint: EQU $4191
move_gui_prog: EQU $4194
largespritehl: EQU $4197
Update_Scrollbar: EQU $419A
Initial_Scrollbar: EQU $419D
sortallfolds: EQU $41A0
dofoldsort: EQU $41A3
getfoldsort: EQU $41A6
setfoldsort: EQU $41A9
Increase_Cur_Element: EQU $41AC
Decrease_Cur_Element: EQU $41AF
Increase_Max_Elements: EQU $41B2
Decrease_Max_Elements: EQU $41B5
Add_A_To_Cur_Element: EQU $41B8
Sub_A_From_Cur_Element: EQU $41BB
Add_A_To_Max_Elements: EQU $41BE
Sub_A_From_Max_Elements: EQU $41C1
Skip_Forward_B_From_Top: EQU $41C4
Get_Curgoodprog_Ptr: EQU $41C7
getchecksum: EQU $41CA
freearc: EQU $41CD
swapram: EQU $41D0
hideall: EQU $41D3
;=================================;
;====== MirageOS Ram Equates =====;
;=================================;
mlinebitmap: EQU $FFFF-399
timer1: EQU $8a3a
timer1max: EQU $8a3b
timer2: EQU $8a3c
timer2max: EQU $8a3d
timer3: EQU $8a3e
custintaddr: EQU $966F
SavesScreen: EQU 86ECh
AppBackUpScreen: EQU 9872h
TempSwapArea: EQU 82A5h
saferam1: EQU SavesScreen
saferam2: EQU AppBackUpScreen
saferam3: EQU TempSwapArea
mirflags: EQU $21
rightalign: EQU $07
lcdinstport: EQU $10
lcddataport: EQU $11
CmdShadow: EQU 966Eh
numscrollpixels: EQU CmdShadow+104
scrollbarcoords: EQU CmdShadow+105
old_element: EQU CmdShadow+107
cur_element: EQU CmdShadow+109
old_max_elem: EQU CmdShadow+111
max_elements: EQU CmdShadow+113
; =================================
; ===== Various Other Equates =====
; =================================
gbuf: EQU plotSScreen
LargeSprite: EQU ilsprite
SmallSprite: EQU isprite
FastCopy: EQU ifastcopy