aboutsummaryrefslogtreecommitdiff
path: root/tools/lsrc/junko.lsr
blob: e66f4b32dc18962113d0a6cc4b499472c348417f (plain) (blame)
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
.init					;junko's final spell card...
mov i00 0				;i00: stage counter
mov i01 0				;st1 circle counter, st1: red*28, 16, fair
mov i02 0				;st2 circle counter, st2: purple*10, 32, fair
mov i03 0				;st3 circle counter, st3: blue*60, 64, faster, random
mov i04 0				;st4 circle counter, st4: cyan*25, 8, fastest, fixed
,

.update
add		i00		1		;++i00
mov		i05		i00		;if(i00<=2560)
sub		i05		2560
elz		i05
jnz		i05		+26		;do not enter st4========================
add		i04		1		;++i04
mov		i05		i04		;if(i04<8)
sub		i05		8
ltz		i05
jnz		i05		+21		;do not shoot st4 bullets================
mov		i04		0
mov		i06		0		;for(i06=0;i06<25;++i06)
mov		i07		i06
sub		i07		25
ltz		i07
jez		i07		+15		;========================================
mov		r00		i06
mul		r00		0.251327412
add		r00		1.570796327
push	r00
push	4.0
push	200.0
push	400.0
call	createBullet
push	1
push	3
push	irt
call	setBulletPropi
add		i06		1
jmp		-17				;========================================
nop						;end of loop
mov		i05		i00		;if(i00<=1536)
sub		i05		1536
elz		i05
jnz		i05		+94		;do not enter st3========================
add		i03		1		;++i03
mov		i05		i03		;if(i03<64)
sub		i05		64
ltz		i05
jnz		i05		+89		;do not shoot st3 bullets================
mov		i03		0
push	250.0			;get random source1
push	150.0
call	randr
mov		r01		rrt
push	250.0
push	150.0
call	randr
mov		r02		rrt
push	6.28
push	0.0
call	randr
mov		r03		rrt
mov		i06		0		;for(i06=0;i06<60;++i06)
mov		i07		i06
sub		i07		60
ltz		i07
jez		i07		+27		;========================================
mov		r00		i06
mul		r00		0.104719755
sub		r00		r03
mov		r04		r02		;r02-=30*sin(r00)
push	r00
call	sin
mov		r06		rrt
mul		r06		30
sub		r04		r06
mov		r05		r01		;r01-=30*cos(r00)
push	r00
call	cos
mov		r06		rrt
mul		r06		30
sub		r05		r06
push	r00
push	2.5
push	r04
push	r05
call	createBullet
push	6
push	3
push	irt
call	setBulletPropi
add		i06		1
jmp		-29				;========================================
nop						;end of loop1
push	650.0			;get random source2
push	550.0
call	randr
mov		r01		rrt
push	250.0
push	150.0
call	randr
mov		r02		rrt
push	6.28
push	0.0
call	randr
mov		r03		rrt
mov		i06		0		;for(i06=0;i06<60;++i06)
mov		i07		i06
sub		i07		60
ltz		i07
jez		i07		+27		;========================================
mov		r00		i06
mul		r00		0.104719755
sub		r00		r03
mov		r04		r02		;r02-=30*sin(r00)
push	r00
call	sin
mov		r06		rrt
mul		r06		30
sub		r04		r06
mov		r05		r01		;r01-=30*cos(r00)
push	r00
call	cos
mov		r06		rrt
mul		r06		30
sub		r05		r06
push	r00
push	2.5
push	r04
push	r05
call	createBullet
push	6
push	3
push	irt
call	setBulletPropi
add		i06		1
jmp		-29				;========================================
nop						;end of loop2
mov		i05		i00		;if(i00<=512)
sub		i05		512
elz		i05
jnz		i05		+94		;do not enter st2========================
add		i02		1		;++i02
mov		i05		i02		;if(i02<32)
sub		i05		32
ltz		i05
jnz		i05		+89		;do not shoot st2 bullets================
mov		i02		0
push	250.0			;get random source1
push	150.0
call	randr
mov		r01		rrt
push	250.0
push	150.0
call	randr
mov		r02		rrt
push	6.28
push	0.0
call	randr
mov		r03		rrt
mov		i06		0		;for(i06=0;i06<10;++i06)
mov		i07		i06
sub		i07		10
ltz		i07
jez		i07		+27		;========================================
mov		r00		i06
mul		r00		0.628318531
sub		r00		r03
mov		r04		r02		;r02-=25*sin(r00)
push	r00
call	sin
mov		r06		rrt
mul		r06		25
sub		r04		r06
mov		r05		r01		;r01-=25*cos(r00)
push	r00
call	cos
mov		r06		rrt
mul		r06		25
sub		r05		r06
push	r00
push	2.5
push	r04
push	r05
call	createBullet
push	3
push	3
push	irt
call	setBulletPropi
add		i06		1
jmp		-29				;========================================
nop						;end of loop1
push	650.0			;get random source2
push	550.0
call	randr
mov		r01		rrt
push	220.0
push	180.0
call	randr
mov		r02		rrt
push	6.28
push	0.0
call	randr
mov		r03		rrt
mov		i06		0		;for(i06=0;i06<10;++i06)
mov		i07		i06
sub		i07		10
ltz		i07
jez		i07		+27		;========================================
mov		r00		i06
mul		r00		0.628318531
sub		r00		r03
mov		r04		r02		;r02-=25*sin(r00)
push	r00
call	sin
mov		r06		rrt
mul		r06		25
sub		r04		r06
mov		r05		r01		;r01-=25*cos(r00)
push	r00
call	cos
mov		r06		rrt
mul		r06		25
sub		r05		r06
push	r00
push	2.5
push	r04
push	r05
call	createBullet
push	3
push	3
push	irt
call	setBulletPropi
add		i06		1
jmp		-29				;========================================
nop						;end of loop2
add		i01		1		;++i01,stage 1
mov		i05		i01		;if(i01<16)
sub		i05		16
ltz		i05
jnz		i05		+45		;do not shoot st1 bullets================
mov		i01		0
push	450.0			;get random source1
push	350.0
call	randr
mov		r01		rrt
push	250.0
push	150.0
call	randr
mov		r02		rrt
push	6.28
push	0.0
call	randr
mov		r03		rrt
mov		i06		0		;for(i06=0;i06<28;++i06)
mov		i07		i06
sub		i07		28
ltz		i07
jez		i07		+27		;========================================
mov		r00		i06
mul		r00		0.224399475
sub		r00		r03
mov		r04		r02		;r02-=40*sin(r00)
push	r00
call	sin
mov		r06		rrt
mul		r06		40
sub		r04		r06
mov		r05		r01		;r01-=40*cos(r00)
push	r00
call	cos
mov		r06		rrt
mul		r06		40
sub		r05		r06
push	r00
push	2.5
push	r04
push	r05
call	createBullet
push	4
push	3
push	irt
call	setBulletPropi
add		i06		1
jmp		-29				;========================================
nop						;end of loop
,