-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.dbg
193 lines (162 loc) · 1.8 KB
/
example.dbg
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
.org $100
bra atlar1
brpnt staa $90
stab $91
tpa
staa $93
LDX #$FB00
LOOP WAI
LDAA $FFFF
STAA 0,X
cmpa #$41
bne gox11
ldaa $90
lsra
lsra
lsra
lsra
adda #$30
inx
STAa 0,X
ldaa $90
anda #$F
inx
adda #$30
STAa 0,X
gox11 cmpa #$42
bne gox12
ldab $91
lsrb
lsrb
lsrb
lsrb
addb #$30
inx
STAb 0,X
ldab $91
andb #$F
inx
addb #$30
STAb 0,X
gox12 cmpa #$43
bne atla
ldaa $93
lsra
lsra
lsra
lsra
LDaa $FB00
adda #$2
inx
STAa 0,X
ldaa $93
anda #$F
inx
adda #$30
STAa 0,X
atla cmpa #$27
bne atla1
ldaa #$11
staa $FFF5
bra cik
atla1 cmpa #$28
bne atla2
ldaa #$10
staa $fff5
bra cik
atla2 wai
INX
INX
BRA LOOP
staa $FF00
rts
cik staa $10
atlar1 staa $10
bra atlar2
sstep staa $90
stab $91
tpa
staa $93
ldaa $fff5
cmpa #$11
bne cik2
LDX #$FB00
LOOP2 WAI
LDAA $FFFF
STAA 0,X
cmpa #$41
bne gox112
ldaa $90
lsra
lsra
lsra
lsra
adda #$30
inx
STAa 0,X
ldaa $90
anda #$F
inx
adda #$30
STAa 0,X
gox112 cmpa #$42
bne gox122
ldab $91
lsrb
lsrb
lsrb
lsrb
addb #$30
inx
STAb 0,X
ldab $91
andb #$F
inx
addb #$30
STAb 0,X
gox122 cmpa #$43
bne atla222
ldaa $93
lsra
lsra
lsra
lsra
LDaa $FB00
adda #$2
inx
STAa 0,X
ldaa $93
anda #$F
inx
adda #$30
STAa 0,X
atla222 cmpa #$27
bne atla12
bra cik2
atla12 cmpa #$28
bne atla22
ldaa #$10
staa $fff5
bra cik2
atla22 CLRA
wai
INX
INX
BRA LOOP2
rts
cik2 staa $10
atlar2 staa $10
clra
LDAA #$2
jsr brpnt
LDAB #$10
jsr sstep
staa $1
jsr sstep
stab $122
jsr brpnt
ldaa #$1
jsr sstep
staa $2
jsr sstep
.end