-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
title.asm
319 lines (262 loc) · 3.75 KB
/
title.asm
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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
//strona tytułowa
.local tit
text dta d'GACEK'
text2 dta d'MIKER'
text1 dta d'SHANTI'
bufor1=$500
tab_e
.he 01,03,07,0f,1f,3f,7f,ff
.he ff,fe,fc,f8,f0,e0,c0,80
cls_txt
ldx #0
lda #$ff
@ sta title1b,x
dex
bne @-
rts
tab_sha
dta d'CODE GFX SFX'*
tab_mik
dta d' MUSIC '*
print_shanti
ldx #11
@ lda tab_sha,x
sta title1a+10,x
dex
bpl @-
mva #>znaki1 pom1+1
lda #$17
ldx #7
jsr pr_litera
lda #$17
dex
jsr pr_litera
inc pom1+1
dex
@ lda text1,x ;shanti77
jsr pr_litera
dex
bpl @-
stx pom0h
rts
print_miker
ldx #11
@ lda tab_mik,x
sta title1a+10,x
dex
bpl @-
mva #>(znaki1+$100) pom1+1
ldx #4
@ lda text2,x ;miker
pha
txa
asl
tax
pla
jsr pr_litera
txa
lsr
tax
dex
bpl @-
mva #0 pom0h
rts
title
jsr multi.hide_sprite
jsr multi.init_sprite2
jsr rmt_silence
lda #$00
jsr rmt_init0
mva #0 sizep0
jsr cl.przepisz_highscore
mva #>(znaki1+$100) pom+1
ldx #160
lda #0
@ sta bufor1-1,x
dex
bne @-
ldx #4
@ lda text,x
:3 asl
sta pom
ldy #6
@ lda (pom),y
jsr wpisz
dey
bpl @-
dex
bpl @-1
jsr cls_txt
jsr print_shanti
jsr wait_vbl
mwa #vblk1 vbiv
mwa #dli1 dliv
mwa #dlist_title dlptr
mva #>znaki1 chbase
sta colpf1
mva #$06 colbak
mva #$5a colpf2
mva #$00 colpf0
mva #0 licznik
mva #1 hscrol
sta pom0
sta _t0+1
mva #$30 ile_enemy
mva #$c8 ile_ptakow
mwa #title2+4 efekt.tekst
mva #226 efekt.linia
mva #$6A colpm0
mva #$4a colpm2
mva #$2a colpm1
mva #$3a colpm3
mva #1 gtiactl
t0 ldx #160
@ lda random
and #%01010101
ora bufor1-1,x
sta title1-1,x
dex
lda random
and #%10101010
ora bufor1-1,x
sta title1-1,x
dex
bne @-
jsr rmt_play0
jsr wait_vbl
mva #$39 dmactl
ldx #1
lda ile_enemy
sta hposp0
jsr efekt.print
lda ile_enemy
clc
adc #8
sta hposp2
ldx #3
jsr efekt.print
lda ile_enemy
clc
adc #1
cmp #$d0
bcc *+4
lda #$30
sta ile_enemy
ldx #2
lda ile_ptakow
sta hposp1
jsr efekt.print
lda ile_ptakow
sec
sbc #8
sta hposp3
ldx #4
jsr efekt.print
lda ile_ptakow
sec
sbc #1
cmp #$30
bcs *+4
lda #$d0
sta ile_ptakow
ldx #7
ldy #0
@ lda sprites+$4e2,x
and tab_e,x
sta sprites+$4e2,x
lda sprites+$6e2,x
and tab_e+8,x
sta sprites+$6e2,x
lda sprites+$5e2,x
and tab_e+8,y
sta sprites+$5e2,x
lda sprites+$7e2,x
and tab_e,y
sta sprites+$7e2,x
iny
dex
bpl @-
mva pom0 hscrol
lda zegar
lsr
bcc @+1
@ clc
lda pom0
_t0 adc #1
and #15
sta pom0
bne @+
lda _t0+1
eor #$fe
sta _t0+1
jmp @-
@ lda trig0
beq @+
lda zegar
bne petla
lda pom0h
bne mik
jsr cls_txt
jsr print_shanti
jmp petla
mik
jsr cls_txt
jsr print_miker
petla
jmp t0
@ jsr wait_vbl
mva #0 dmactl
mwa #dlist0 dlptr
mwa #vblk vbiv
mwa #dli dliv
rts
pr_litera
stx pom0a
sty pom0b
:3 asl
sta pom1
ldy #7
@ tya
:5 asl
adc pom0a
adc #12
tax
lda (pom1),y
eor #255
sta title1b,x
dey
bpl @-
ldx pom0a
ldy pom0b
rts
wpisz
sta pom0
stx pom0a
sty pom0b
tya
:2 asl
sta pom0c
:2 asl
adc pom0c
sta pom0c
txa
asl
adc pom0c
adc #4
tax
ldy #8
@ lda pom0
asl
rol bufor1+1,x
rol bufor1,x
lda pom0
asl
rol bufor1+1,x
rol bufor1,x
sta pom0
dey
bne @-
ldx pom0a
ldy pom0b
rts
.endl