161 push hl |
161 push hl |
162 push de |
162 push de |
163 push af |
163 push af |
164 |
164 |
165 p7Dloc_40AD: |
165 p7Dloc_40AD: |
166 pop af |
166 pop af |
167 push hl |
167 push hl |
168 push bc |
168 push bc |
169 push af |
169 push af |
170 rst 28h |
170 rst 28h |
171 ; --------------------------------------------------------------------------- |
171 ; --------------------------------------------------------------------------- |
172 .dw 8051h |
172 .dw 8051h |
173 ; --------------------------------------------------------------------------- |
173 ; --------------------------------------------------------------------------- |
174 ld b, a |
174 ld b, a |
175 pop af |
175 pop af |
176 push af |
176 push af |
177 ld a, (OP2) |
177 ld a, (OP2) |
178 rst 28h |
178 rst 28h |
179 ; --------------------------------------------------------------------------- |
179 ; --------------------------------------------------------------------------- |
180 .dw 8021h |
180 .dw 8021h |
181 ; --------------------------------------------------------------------------- |
181 ; --------------------------------------------------------------------------- |
182 pop af |
182 pop af |
183 pop bc |
183 pop bc |
184 pop hl |
184 pop hl |
185 inc hl |
185 inc hl |
186 push af |
186 push af |
187 dec bc |
187 dec bc |
188 ld a, b |
188 ld a, b |
189 or c |
189 or c |
190 jr nz, p7Dloc_40AD |
190 jr nz, p7Dloc_40AD |
191 pop af |
191 pop af |
192 pop de |
192 pop de |
193 pop hl |
193 pop hl |
194 pop bc |
194 pop bc |
195 ret |
195 ret |
196 |
196 |
197 ; =============== S U B R O U T I N E ======================================= |
197 ; =============== S U B R O U T I N E ======================================= |
198 |
198 |
199 |
199 |
200 Page7D_2B62: |
200 Page7D_2B62: |
201 ld (unk_9C20), a |
201 ld (unk_9C20), a |
202 push de |
202 push de |
203 push bc |
203 push bc |
204 push hl |
204 push hl |
205 call p7Dsub_4894 |
205 call p7Dsub_4894 |
206 call p7Dsub_4566 |
206 call p7Dsub_4566 |
207 cp 0FFh |
207 cp 0FFh |
208 jr nz, p7Dloc_40E5 |
208 jr nz, p7Dloc_40E5 |
209 ld bc, 0 |
209 ld bc, 0 |
210 ld (OP6), bc |
210 ld (OP6), bc |
211 jr p7Dloc_4105 |
211 jr p7Dloc_4105 |
212 ; --------------------------------------------------------------------------- |
212 ; --------------------------------------------------------------------------- |
213 |
213 |
214 p7Dloc_40E5: |
214 p7Dloc_40E5: |
215 ld bc, 1 |
215 ld bc, 1 |
216 ld (OP6), bc |
216 ld (OP6), bc |
217 push hl |
217 push hl |
218 call p7Dsub_4574 |
218 call p7Dsub_4574 |
219 add hl, bc |
219 add hl, bc |
220 call p7Dsub_4574 |
220 call p7Dsub_4574 |
221 add hl, bc |
221 add hl, bc |
222 pop bc |
222 pop bc |
223 sbc hl, bc |
223 sbc hl, bc |
224 push hl |
224 push hl |
225 pop bc |
225 pop bc |
226 call p7Dsub_4894 |
226 call p7Dsub_4894 |
227 ld de, 4000h |
227 ld de, 4000h |
228 push de |
228 push de |
229 push bc |
229 push bc |
230 call p7Dsub_42DF |
230 call p7Dsub_42DF |
231 |
231 |
232 p7Dloc_4105: |
232 p7Dloc_4105: |
233 call p7Dsub_4894 |
233 call p7Dsub_4894 |
234 rst 28h |
234 rst 28h |
235 ; --------------------------------------------------------------------------- |
235 ; --------------------------------------------------------------------------- |
236 .dw 8060h |
236 .dw 8060h |
237 ; --------------------------------------------------------------------------- |
237 ; --------------------------------------------------------------------------- |
238 rst 28h |
238 rst 28h |
239 ; --------------------------------------------------------------------------- |
239 ; --------------------------------------------------------------------------- |
240 .dw 8057h |
240 .dw 8057h |
241 ; --------------------------------------------------------------------------- |
241 ; --------------------------------------------------------------------------- |
242 push hl |
242 push hl |
243 push hl |
243 push hl |
244 call Page7D_2BEC |
244 call Page7D_2BEC |
245 ex de, hl |
245 ex de, hl |
246 pop hl |
246 pop hl |
247 inc de |
247 inc de |
248 inc hl |
248 inc hl |
249 |
249 |
250 p7Dloc_4117: |
250 p7Dloc_4117: |
251 ; Page7D_2B62:p7Dloc_4178j |
251 ; Page7D_2B62:p7Dloc_4178j |
252 call p7Dsub_4566 |
252 call p7Dsub_4566 |
253 cp 0 |
253 cp 0 |
254 jr z, p7Dloc_415C |
254 jr z, p7Dloc_415C |
255 cp 0FFh |
255 cp 0FFh |
256 jp z, p7Dloc_417B |
256 jp z, p7Dloc_417B |
257 push hl |
257 push hl |
258 push bc |
258 push bc |
259 push hl |
259 push hl |
260 call p7Dsub_521D |
260 call p7Dsub_521D |
261 call NZIf83Plus |
261 call NZIf83Plus |
262 jr nz, p7Dloc_4131 |
262 jr nz, p7Dloc_4131 |
263 call p7Dsub_522B |
263 call p7Dsub_522B |
264 |
264 |
265 p7Dloc_4131: |
265 p7Dloc_4131: |
266 push hl |
266 push hl |
267 pop bc |
267 pop bc |
268 pop hl |
268 pop hl |
269 sbc hl, bc |
269 sbc hl, bc |
270 jr nc, p7Dloc_417B |
270 jr nc, p7Dloc_417B |
271 pop bc |
271 pop bc |
272 pop hl |
272 pop hl |
273 push hl |
273 push hl |
274 ld (arcInfo), de |
274 ld (arcInfo), de |
275 call p7Dsub_4574 |
275 call p7Dsub_4574 |
276 pop de |
276 pop de |
277 push de |
277 push de |
278 or a |
278 or a |
279 sbc hl, de |
279 sbc hl, de |
280 ld a, l |
280 ld a, l |
281 add a, c |
281 add a, c |
282 ld c, a |
282 ld c, a |
283 jr nc, p7Dloc_414D |
283 jr nc, p7Dloc_414D |
284 inc b |
284 inc b |
285 |
285 |
286 p7Dloc_414D: |
286 p7Dloc_414D: |
287 pop hl |
287 pop hl |
288 ld de, (arcInfo) |
288 ld de, (arcInfo) |
289 call p7Dsub_4083 |
289 call p7Dsub_4083 |
290 add hl, bc |
290 add hl, bc |
291 ex de, hl |
291 ex de, hl |
292 add hl, bc |
292 add hl, bc |
293 ex de, hl |
293 ex de, hl |
294 jp p7Dloc_4117 |
294 jp p7Dloc_4117 |
295 ; --------------------------------------------------------------------------- |
295 ; --------------------------------------------------------------------------- |
296 |
296 |
297 p7Dloc_415C: |
297 p7Dloc_415C: |
298 push de |
298 push de |
299 call p7Dsub_4574 |
299 call p7Dsub_4574 |
300 pop de |
300 pop de |
301 add hl, bc |
301 add hl, bc |
302 call p7Dsub_4566 |
302 call p7Dsub_4566 |
303 cp 2 |
303 cp 2 |
304 jr nz, p7Dloc_4178 |
304 jr nz, p7Dloc_4178 |
305 push de |
305 push de |
306 push hl |
306 push hl |
307 call p7Dsub_4574 |
307 call p7Dsub_4574 |
308 pop de |
308 pop de |
309 sbc hl, de |
309 sbc hl, de |
310 adc hl, bc |
310 adc hl, bc |
311 push hl |
311 push hl |
312 pop bc |
312 pop bc |
313 ex de, hl |
313 ex de, hl |
314 pop de |
314 pop de |
315 add hl, bc |
315 add hl, bc |
316 |
316 |
317 p7Dloc_4178: |
317 p7Dloc_4178: |
318 jp p7Dloc_4117 |
318 jp p7Dloc_4117 |
319 ; --------------------------------------------------------------------------- |
319 ; --------------------------------------------------------------------------- |
320 |
320 |
321 p7Dloc_417B: |
321 p7Dloc_417B: |
322 ; Page7D_2B62+6Aj |
322 ; Page7D_2B62+6Aj |
323 call NZIf83Plus |
323 call NZIf83Plus |
324 jr nz, p7Dloc_41DF |
324 jr nz, p7Dloc_41DF |
325 ld a, (unk_9C20) |
325 ld a, (unk_9C20) |
326 or a |
326 or a |
327 jr z, p7Dloc_41DF |
327 jr z, p7Dloc_41DF |
328 cp 1 |
328 cp 1 |
329 jr z, p7Dloc_41A4 |
329 jr z, p7Dloc_41A4 |
330 cp 3 |
330 cp 3 |
331 jr z, p7Dloc_41B2 |
331 jr z, p7Dloc_41B2 |
332 cp 4 |
332 cp 4 |
333 jr z, p7Dloc_41C0 |
333 jr z, p7Dloc_41C0 |
334 cp 5 |
334 cp 5 |
335 jr z, p7Dloc_41D1 |
335 jr z, p7Dloc_41D1 |
336 call p7Dsub_427F |
336 call p7Dsub_427F |
337 call p7Dsub_4211 |
337 call p7Dsub_4211 |
338 call p7Dsub_425E |
338 call p7Dsub_425E |
339 call p7Dsub_4228 |
339 call p7Dsub_4228 |
340 jr p7Dloc_41E2 |
340 jr p7Dloc_41E2 |
341 ; --------------------------------------------------------------------------- |
341 ; --------------------------------------------------------------------------- |
342 |
342 |
343 p7Dloc_41A4: |
343 p7Dloc_41A4: |
344 call p7Dsub_4261 |
344 call p7Dsub_4261 |
345 call p7Dsub_4211 |
345 call p7Dsub_4211 |
346 call p7Dsub_427C |
346 call p7Dsub_427C |
347 call p7Dsub_4230 |
347 call p7Dsub_4230 |
348 jr p7Dloc_41E2 |
348 jr p7Dloc_41E2 |
349 ; --------------------------------------------------------------------------- |
349 ; --------------------------------------------------------------------------- |
350 |
350 |
351 p7Dloc_41B2: |
351 p7Dloc_41B2: |
352 call p7Dsub_4214 |
352 call p7Dsub_4214 |
353 call p7Dsub_425E |
353 call p7Dsub_425E |
354 call p7Dsub_427C |
354 call p7Dsub_427C |
355 call p7Dsub_4238 |
355 call p7Dsub_4238 |
356 jr p7Dloc_41E2 |
356 jr p7Dloc_41E2 |
357 ; --------------------------------------------------------------------------- |
357 ; --------------------------------------------------------------------------- |
358 |
358 |
359 p7Dloc_41C0: |
359 p7Dloc_41C0: |
360 call p7Dsub_4214 |
360 call p7Dsub_4214 |
361 call p7Dsub_42A2 |
361 call p7Dsub_42A2 |
362 call p7Dsub_4269 |
362 call p7Dsub_4269 |
363 call p7Dsub_428F |
363 call p7Dsub_428F |
364 call p7Dsub_4238 |
364 call p7Dsub_4238 |
365 jr p7Dloc_41E2 |
365 jr p7Dloc_41E2 |
366 ; --------------------------------------------------------------------------- |
366 ; --------------------------------------------------------------------------- |
367 |
367 |
368 p7Dloc_41D1: |
368 p7Dloc_41D1: |
369 call p7Dsub_42A2 |
369 call p7Dsub_42A2 |
370 call p7Dsub_425E |
370 call p7Dsub_425E |
371 call p7Dsub_428F |
371 call p7Dsub_428F |
372 call p7Dsub_4211 |
372 call p7Dsub_4211 |
373 jr p7Dloc_41E2 |
373 jr p7Dloc_41E2 |
374 ; --------------------------------------------------------------------------- |
374 ; --------------------------------------------------------------------------- |
375 |
375 |
376 p7Dloc_41DF: |
376 p7Dloc_41DF: |
377 ; Page7D_2B62+B8j |
377 ; Page7D_2B62+B8j |
378 call p7Dsub_427F |
378 call p7Dsub_427F |
379 |
379 |
380 p7Dloc_41E2: |
380 p7Dloc_41E2: |
381 ; Page7D_2B62+E4j ... |
381 ; Page7D_2B62+E4j ... |
382 call p7Dsub_4894 |
382 call p7Dsub_4894 |
383 ex de, hl |
383 ex de, hl |
384 ld b, 8Fh ; '�' |
384 ld b, 8Fh ; '�' |
385 call p7Dsub_456D |
385 call p7Dsub_456D |
386 pop hl |
386 pop hl |
387 ex de, hl |
387 ex de, hl |
388 call p7Dsub_4894 |
388 call p7Dsub_4894 |
389 ex de, hl |
389 ex de, hl |
390 push de |
390 push de |
391 call p7Dsub_457C |
391 call p7Dsub_457C |
392 pop de |
392 pop de |
393 ld b, 0 |
393 ld b, 0 |
394 call p7Dsub_456D |
394 call p7Dsub_456D |
395 ld bc, (OP6) |
395 ld bc, (OP6) |
396 ld a, c |
396 ld a, c |
397 cp 1 |
397 cp 1 |
398 jr nz, p7Dloc_420D |
398 jr nz, p7Dloc_420D |
399 call p7Dsub_4894 |
399 call p7Dsub_4894 |
400 ex de, hl |
400 ex de, hl |
401 pop bc |
401 pop bc |
402 pop hl |
402 pop hl |
403 call p7Dsub_42AE |
403 call p7Dsub_42AE |
404 |
404 |
405 p7Dloc_420D: |
405 p7Dloc_420D: |
406 pop hl |
406 pop hl |
407 pop bc |
407 pop bc |
408 pop de |
408 pop de |
409 ret |
409 ret |
410 ; End of function Page7D_2B62 |
410 ; End of function Page7D_2B62 |
411 |
411 |
412 |
412 |
413 ; =============== S U B R O U T I N E ======================================= |
413 ; =============== S U B R O U T I N E ======================================= |
758 call p7Dsub_4574 |
758 call p7Dsub_4574 |
759 push bc |
759 push bc |
760 push hl |
760 push hl |
761 call p7Dsub_4894 |
761 call p7Dsub_4894 |
762 push hl |
762 push hl |
763 pop bc |
763 pop bc |
764 pop hl |
764 pop hl |
765 sbc hl, bc |
765 sbc hl, bc |
766 push hl |
766 push hl |
767 pop bc |
767 pop bc |
768 pop hl |
768 pop hl |
769 adc hl, bc |
769 adc hl, bc |
770 push hl |
770 push hl |
771 pop bc |
771 pop bc |
772 call p7Dsub_4894 |
772 call p7Dsub_4894 |
773 rst 28h |
773 rst 28h |
774 ; --------------------------------------------------------------------------- |
774 ; --------------------------------------------------------------------------- |
775 .dw 808Dh |
775 .dw 808Dh |
776 ; --------------------------------------------------------------------------- |
776 ; --------------------------------------------------------------------------- |
777 |
777 |
778 p7Dloc_435E: |
778 p7Dloc_435E: |
779 push hl |
779 push hl |
780 push bc |
780 push bc |
781 ld bc, 1 |
781 ld bc, 1 |
782 ld de, tempSwapArea |
782 ld de, tempSwapArea |
783 call p7Dsub_424C |
783 call p7Dsub_424C |
784 ld bc, 1 |
784 ld bc, 1 |
785 ld hl, tempSwapArea |
785 ld hl, tempSwapArea |
786 rst 28h |
786 rst 28h |
787 ; --------------------------------------------------------------------------- |
787 ; --------------------------------------------------------------------------- |
788 .dw 8090h |
788 .dw 8090h |
789 ; --------------------------------------------------------------------------- |
789 ; --------------------------------------------------------------------------- |
790 pop bc |
790 pop bc |
791 pop hl |
791 pop hl |
792 inc hl |
792 inc hl |
793 dec bc |
793 dec bc |
794 ld a, b |
794 ld a, b |
795 or c |
795 or c |
796 jr nz, p7Dloc_435E |
796 jr nz, p7Dloc_435E |
797 rst 28h |
797 rst 28h |
798 ; --------------------------------------------------------------------------- |
798 ; --------------------------------------------------------------------------- |
799 .dw 8018h |
799 .dw 8018h |
800 ; --------------------------------------------------------------------------- |
800 ; --------------------------------------------------------------------------- |
801 call p7Dsub_4894 |
801 call p7Dsub_4894 |
802 call p7Dsub_7700 |
802 call p7Dsub_7700 |
803 call p7Dsub_55CE |
803 call p7Dsub_55CE |
804 jp nz, p7Dloc_43EC |
804 jp nz, p7Dloc_43EC |
805 ld hl, tempSwapArea |
805 ld hl, tempSwapArea |
806 push af |
806 push af |
807 push bc |
807 push bc |
808 push de |
808 push de |
809 push hl |
809 push hl |
810 call p7Dsub_4894 |
810 call p7Dsub_4894 |
811 inc hl |
811 inc hl |
812 call p7Dsub_4566 |
812 call p7Dsub_4566 |
813 and 0F0h ; '�' |
813 and 0F0h ; '�' |
814 ld hl, 310h |
814 ld hl, 310h |
815 cp l |
815 cp l |
816 jr nz, p7Dloc_43B9 |
816 jr nz, p7Dloc_43B9 |
817 call p7Dsub_7700 |
817 call p7Dsub_7700 |
818 call p7Dsub_762A |
818 call p7Dsub_762A |
819 call p7Dsub_4442 |
819 call p7Dsub_4442 |
820 jr nz, p7Dloc_43DA |
820 jr nz, p7Dloc_43DA |
821 adc hl, bc |
821 adc hl, bc |
822 call p7Dsub_7700 |
822 call p7Dsub_7700 |
823 ld de, 830h |
823 ld de, 830h |
824 rst 28h |
824 rst 28h |
825 ; --------------------------------------------------------------------------- |
825 ; --------------------------------------------------------------------------- |
826 .dw 8030h |
826 .dw 8030h |
827 ; --------------------------------------------------------------------------- |
827 ; --------------------------------------------------------------------------- |
828 jr nz, p7Dloc_43DA |
828 jr nz, p7Dloc_43DA |
829 jr p7Dloc_43CF |
829 jr p7Dloc_43CF |
830 ; --------------------------------------------------------------------------- |
830 ; --------------------------------------------------------------------------- |
831 |
831 |
832 p7Dloc_43B9: |
832 p7Dloc_43B9: |
833 ld hl, 320h |
833 ld hl, 320h |
834 cp l |
834 cp l |
835 jr nz, p7Dloc_43C4 |
835 jr nz, p7Dloc_43C4 |
836 rst 28h |
836 rst 28h |
837 ; --------------------------------------------------------------------------- |
837 ; --------------------------------------------------------------------------- |
838 .dw 80CCh |
838 .dw 80CCh |
839 ; --------------------------------------------------------------------------- |
839 ; --------------------------------------------------------------------------- |
840 jr p7Dloc_43DA |
840 jr p7Dloc_43DA |
841 ; --------------------------------------------------------------------------- |
841 ; --------------------------------------------------------------------------- |
842 |
842 |
843 p7Dloc_43C4: |
843 p7Dloc_43C4: |
844 ld de, 0A20h |
844 ld de, 0A20h |
845 rst 28h |
845 rst 28h |
846 ; --------------------------------------------------------------------------- |
846 ; --------------------------------------------------------------------------- |
847 .dw 8027h |
847 .dw 8027h |
848 ; --------------------------------------------------------------------------- |
848 ; --------------------------------------------------------------------------- |
849 jr nz, p7Dloc_43DA |
849 jr nz, p7Dloc_43DA |
850 call p7Dsub_4574 |
850 call p7Dsub_4574 |
851 |
851 |
852 p7Dloc_43CF: |
852 p7Dloc_43CF: |
853 dec hl |
853 dec hl |
854 inc bc |
854 inc bc |
855 call p7Dsub_7700 |
855 call p7Dsub_7700 |
856 ld de, ramStart |
856 ld de, ramStart |
857 rst 28h |
857 rst 28h |
858 ; --------------------------------------------------------------------------- |
858 ; --------------------------------------------------------------------------- |
859 .dw 8054h |
859 .dw 8054h |
860 ; --------------------------------------------------------------------------- |
860 ; --------------------------------------------------------------------------- |
861 |
861 |
862 p7Dloc_43DA: |
862 p7Dloc_43DA: |
863 pop hl |
863 pop hl |
864 pop de |
864 pop de |
865 pop bc |
865 pop bc |
866 pop af |
866 pop af |
867 rst 28h |
867 rst 28h |
868 ; --------------------------------------------------------------------------- |
868 ; --------------------------------------------------------------------------- |
869 ; START OF FUNCTION CHUNK FOR p7Dsub_4442 |
869 ; START OF FUNCTION CHUNK FOR p7Dsub_4442 |
870 .dw 801Bh |
870 .dw 801Bh |
871 ; --------------------------------------------------------------------------- |
871 ; --------------------------------------------------------------------------- |
872 ld de, OP1 |
872 ld de, OP1 |
873 ld hl, 8291h |
873 ld hl, 8291h |
874 rst 28h |
874 rst 28h |
875 ; --------------------------------------------------------------------------- |
875 ; --------------------------------------------------------------------------- |
876 .dw 801Eh |
876 .dw 801Eh |
877 ; --------------------------------------------------------------------------- |
877 ; --------------------------------------------------------------------------- |
878 jr z, p7Dloc_43F4 |
878 jr z, p7Dloc_43F4 |
879 |
879 |
880 p7Dloc_43EC: |
880 p7Dloc_43EC: |
881 push af |
881 push af |
882 call p7Dsub_4894 |
882 call p7Dsub_4894 |
883 rst 28h |
883 rst 28h |
884 ; --------------------------------------------------------------------------- |
884 ; --------------------------------------------------------------------------- |
885 .dw 8060h |
885 .dw 8060h |
886 ; --------------------------------------------------------------------------- |
886 ; --------------------------------------------------------------------------- |
887 pop af |
887 pop af |
888 |
888 |
889 p7Dloc_43F4: |
889 p7Dloc_43F4: |
890 pop hl |
890 pop hl |
891 ret |
891 ret |
892 ; END OF FUNCTION CHUNK FOR p7Dsub_4442 |
892 ; END OF FUNCTION CHUNK FOR p7Dsub_4442 |
893 |
893 |
894 ; =============== S U B R O U T I N E ======================================= |
894 ; =============== S U B R O U T I N E ======================================= |
895 |
895 |
896 |
896 |
897 p7Dsub_43F6: |
897 p7Dsub_43F6: |
898 push af |
898 push af |
899 call p7Dsub_5525 |
899 call p7Dsub_5525 |
900 jr nz, P1orAret |
900 jr nz, P1orAret |
901 push af |
901 push af |
902 inc hl |
902 inc hl |
903 rst 28h |
903 rst 28h |
904 ; --------------------------------------------------------------------------- |
904 ; --------------------------------------------------------------------------- |
905 .dw 805Ah |
905 .dw 805Ah |
906 ; --------------------------------------------------------------------------- |
906 ; --------------------------------------------------------------------------- |
907 add hl, bc |
907 add hl, bc |
908 pop af |
908 pop af |
909 push af |
909 push af |
910 rst 28h |
910 rst 28h |
911 ; --------------------------------------------------------------------------- |
911 ; --------------------------------------------------------------------------- |
912 .dw 8051h |
912 .dw 8051h |
913 ; --------------------------------------------------------------------------- |
913 ; --------------------------------------------------------------------------- |
914 ld (unk_83E6), a |
914 ld (unk_83E6), a |
915 inc hl |
915 inc hl |
916 pop af |
916 pop af |
917 rst 28h |
917 rst 28h |
918 ; --------------------------------------------------------------------------- |
918 ; --------------------------------------------------------------------------- |
919 .dw 8051h |
919 .dw 8051h |
920 ; --------------------------------------------------------------------------- |
920 ; --------------------------------------------------------------------------- |
921 ld (unk_83E7), a |
921 ld (unk_83E7), a |
922 pop af |
922 pop af |
923 rst 28h |
923 rst 28h |
924 ; --------------------------------------------------------------------------- |
924 ; --------------------------------------------------------------------------- |
925 .dw 809Fh |
925 .dw 809Fh |
926 ; --------------------------------------------------------------------------- |
926 ; --------------------------------------------------------------------------- |
927 ld hl, tempSwapArea |
927 ld hl, tempSwapArea |
928 rst 28h |
928 rst 28h |
929 ; --------------------------------------------------------------------------- |
929 ; --------------------------------------------------------------------------- |
930 .dw 80A2h |
930 .dw 80A2h |
931 ; --------------------------------------------------------------------------- |
931 ; --------------------------------------------------------------------------- |
932 rst 28h |
932 rst 28h |
933 ; --------------------------------------------------------------------------- |
933 ; --------------------------------------------------------------------------- |
934 .dw 80A5h |
934 .dw 80A5h |
935 ; --------------------------------------------------------------------------- |
935 ; --------------------------------------------------------------------------- |
936 ld de, MD5Buffer |
936 ld de, MD5Buffer |
937 ld hl, OP1 |
937 ld hl, OP1 |
938 rst 28h |
938 rst 28h |
939 ; --------------------------------------------------------------------------- |
939 ; --------------------------------------------------------------------------- |
940 .dw 801Eh |
940 .dw 801Eh |
941 ; --------------------------------------------------------------------------- |
941 ; --------------------------------------------------------------------------- |
942 ret |
942 ret |
943 ; --------------------------------------------------------------------------- |
943 ; --------------------------------------------------------------------------- |
944 |
944 |
945 P1orAret: |
945 P1orAret: |
946 pop af |
946 pop af |
947 or a |
947 or a |
948 ret |
948 ret |
949 ; End of function p7Dsub_43F6 |
949 ; End of function p7Dsub_43F6 |
950 |
950 |
951 ; --------------------------------------------------------------------------- |
951 ; --------------------------------------------------------------------------- |
952 |
952 |
953 p7Dloc_442C: |
953 p7Dloc_442C: |
954 push hl |
954 push hl |
955 push af |
955 push af |
956 ld c, a |
956 ld c, a |
957 ld de, 400h |
957 ld de, 400h |
958 rst 28h |
958 rst 28h |
959 ; --------------------------------------------------------------------------- |
959 ; --------------------------------------------------------------------------- |
960 .dw 805Dh |
960 .dw 805Dh |
961 ; --------------------------------------------------------------------------- |
961 ; --------------------------------------------------------------------------- |
962 jr nz, locret_4441 |
962 jr nz, locret_4441 |
963 inc hl |
963 inc hl |
964 ld a, c |
964 ld a, c |
965 push de |
965 push de |
966 rst 28h |
966 rst 28h |
967 ; --------------------------------------------------------------------------- |
967 ; --------------------------------------------------------------------------- |
968 .dw 805Ah |
968 .dw 805Ah |
969 ; --------------------------------------------------------------------------- |
969 ; --------------------------------------------------------------------------- |
970 pop de |
970 pop de |
971 ex de, hl |
971 ex de, hl |
972 pop af |
972 pop af |
973 pop hl |
973 pop hl |
974 |
974 |
975 locret_4441: |
975 locret_4441: |
976 ret |
976 ret |
977 |
977 |
978 ; =============== S U B R O U T I N E ======================================= |
978 ; =============== S U B R O U T I N E ======================================= |
1273 |
1273 |
1274 |
1274 |
1275 p7Dsub_457C: |
1275 p7Dsub_457C: |
1276 ; Page7D_2B62+126p ... |
1276 ; Page7D_2B62+126p ... |
1277 call p7Dsub_7700 |
1277 call p7Dsub_7700 |
1278 rst 28h |
1278 rst 28h |
1279 ; --------------------------------------------------------------------------- |
1279 ; --------------------------------------------------------------------------- |
1280 .dw 8024h |
1280 .dw 8024h |
1281 ; --------------------------------------------------------------------------- |
1281 ; --------------------------------------------------------------------------- |
1282 ret |
1282 ret |
1283 ; End of function p7Dsub_457C |
1283 ; End of function p7Dsub_457C |
1284 |
1284 |
1285 ; --------------------------------------------------------------------------- |
1285 ; --------------------------------------------------------------------------- |
1286 |
1286 |
1287 Page7D_2BD4: |
1287 Page7D_2BD4: |
1288 push af |
1288 push af |
1289 ld a, 1 |
1289 ld a, 1 |
1290 nop |
1290 nop |
1291 di |
1291 di |
1292 nop |
1292 nop |
1293 nop |
1293 nop |
1294 im 1 |
1294 im 1 |
1295 di |
1295 di |
1296 out (14h), a |
1296 out (14h), a |
1297 di |
1297 di |
1298 call checkForFlashTrickery |
1298 call checkForFlashTrickery |
1299 pop af |
1299 pop af |
1300 push bc |
1300 push bc |
1301 push de |
1301 push de |
1302 push hl |
1302 push hl |
1303 push ix |
1303 push ix |
1304 call p7Dsub_4533 |
1304 call p7Dsub_4533 |
1305 call p7Dloc_44C3 |
1305 call p7Dloc_44C3 |
1306 jr nz, p7Dloc_45D9 |
1306 jr nz, p7Dloc_45D9 |
1307 call p7Dsub_4498 |
1307 call p7Dsub_4498 |
1308 jr nz, p7Dloc_45D9 |
1308 jr nz, p7Dloc_45D9 |
1309 call p7Dsub_50A8 |
1309 call p7Dsub_50A8 |
1310 |
1310 |
1311 p7Dloc_45A9: |
1311 p7Dloc_45A9: |
1312 call p7Dsub_4C8B |
1312 call p7Dsub_4C8B |
1313 res 6, (iy+24h) |
1313 res 6, (iy+24h) |
1314 xor a |
1314 xor a |
1315 ld (unk_9C87), a |
1315 ld (unk_9C87), a |
1316 call p7Dsub_70D1 |
1316 call p7Dsub_70D1 |
1317 ld bc, 0 |
1317 ld bc, 0 |
1318 jr nz, p7Dloc_45BF |
1318 jr nz, p7Dloc_45BF |
1319 rst 28h |
1319 rst 28h |
1320 ; --------------------------------------------------------------------------- |
1320 ; --------------------------------------------------------------------------- |
1321 .dw 802Ah |
1321 .dw 802Ah |
1322 ; --------------------------------------------------------------------------- |
1322 ; --------------------------------------------------------------------------- |
1323 |
1323 |
1324 p7Dloc_45BF: |
1324 p7Dloc_45BF: |
1325 call p7Dsub_468A |
1325 call p7Dsub_468A |
1326 call p7Dsub_70D1 |
1326 call p7Dsub_70D1 |
1327 call p7Dsub_45E4 |
1327 call p7Dsub_45E4 |
1328 ld a, 0 |
1328 ld a, 0 |
1329 bit 7, a |
1329 bit 7, a |
1330 |
1330 |
1331 p7Dloc_45CC: |
1331 p7Dloc_45CC: |
1332 push af |
1332 push af |
1333 call p7Dsub_4926 |
1333 call p7Dsub_4926 |
1334 pop af |
1334 pop af |
1335 pop ix |
1335 pop ix |
1336 pop hl |
1336 pop hl |
1337 pop de |
1337 pop de |
1338 pop bc |
1338 pop bc |
1339 jp relockFlashBack |
1339 jp relockFlashBack |
1340 ; --------------------------------------------------------------------------- |
1340 ; --------------------------------------------------------------------------- |
1341 |
1341 |
1342 p7Dloc_45D9: |
1342 p7Dloc_45D9: |
1343 call p7Dsub_4894 |
1343 call p7Dsub_4894 |
1344 rst 28h |
1344 rst 28h |
1345 ; --------------------------------------------------------------------------- |
1345 ; --------------------------------------------------------------------------- |
1346 .dw 8060h |
1346 .dw 8060h |
1347 ; --------------------------------------------------------------------------- |
1347 ; --------------------------------------------------------------------------- |
1348 ld a, 0FFh |
1348 ld a, 0FFh |
1349 or a |
1349 or a |
1350 jr p7Dloc_45CC |
1350 jr p7Dloc_45CC |
1351 |
1351 |
1352 ; =============== S U B R O U T I N E ======================================= |
1352 ; =============== S U B R O U T I N E ======================================= |
1353 |
1353 |
1354 |
1354 |
1355 p7Dsub_45E4: |
1355 p7Dsub_45E4: |
1356 push bc |
1356 push bc |
1357 push de |
1357 push de |
1358 ld a, (unk_8439+1) |
1358 ld a, (unk_8439+1) |
1359 ld b, a |
1359 ld b, a |
1360 call Page7D_2B80 |
1360 call Page7D_2B80 |
1361 ex de, hl |
1361 ex de, hl |
1362 call p7Dsub_456D |
1362 call p7Dsub_456D |
1363 ld a, (unk_843B) |
1363 ld a, (unk_843B) |
1364 ld b, a |
1364 ld b, a |
1365 call p7Dsub_456D |
1365 call p7Dsub_456D |
1366 call NZIf83Plus |
1366 call NZIf83Plus |
1367 jr nz, p7Dloc_4609 |
1367 jr nz, p7Dloc_4609 |
1368 call p7Dsub_7700 |
1368 call p7Dsub_7700 |
1369 ld bc, 0Bh |
1369 ld bc, 0Bh |
1370 ld hl, 9C9Eh |
1370 ld hl, 9C9Eh |
1371 rst 28h |
1371 rst 28h |
1372 ; --------------------------------------------------------------------------- |
1372 ; --------------------------------------------------------------------------- |
1373 .dw 8087h |
1373 .dw 8087h |
1374 ; --------------------------------------------------------------------------- |
1374 ; --------------------------------------------------------------------------- |
1375 |
1375 |
1376 p7Dloc_4609: |
1376 p7Dloc_4609: |
1377 call p7Dsub_70D1 |
1377 call p7Dsub_70D1 |
1378 jr nz, p7Dloc_464B |
1378 jr nz, p7Dloc_464B |
1379 call p7Dsub_464E |
1379 call p7Dsub_464E |
1380 call p7Dsub_4574 |
1380 call p7Dsub_4574 |
1381 add hl, bc |
1381 add hl, bc |
1382 call p7Dsub_70D1 |
1382 call p7Dsub_70D1 |
1383 ld de, 800h |
1383 ld de, 800h |
1384 call p7Dsub_777E |
1384 call p7Dsub_777E |
1385 call p7Dsub_4574 |
1385 call p7Dsub_4574 |
1386 |
1386 |
1387 p7Dloc_4621: |
1387 p7Dloc_4621: |
1388 ld de, 810h |
1388 ld de, 810h |
1389 call p7Dsub_7700 |
1389 call p7Dsub_7700 |
1390 rst 28h |
1390 rst 28h |
1391 ; --------------------------------------------------------------------------- |
1391 ; --------------------------------------------------------------------------- |
1392 .dw 8030h |
1392 .dw 8030h |
1393 ; --------------------------------------------------------------------------- |
1393 ; --------------------------------------------------------------------------- |
1394 jr nz, p7Dloc_464B |
1394 jr nz, p7Dloc_464B |
1395 push hl |
1395 push hl |
1396 push bc |
1396 push bc |
1397 ld b, c |
1397 ld b, c |
1398 ld (OP2), bc |
1398 ld (OP2), bc |
1399 ld b, 0 |
1399 ld b, 0 |
1400 call p7Dsub_7700 |
1400 call p7Dsub_7700 |
1401 ld de, 8484h |
1401 ld de, 8484h |
1402 rst 28h |
1402 rst 28h |
1403 ; --------------------------------------------------------------------------- |
1403 ; --------------------------------------------------------------------------- |
1404 .dw 8054h |
1404 .dw 8054h |
1405 ; --------------------------------------------------------------------------- |
1405 ; --------------------------------------------------------------------------- |
1406 rst 28h |
1406 rst 28h |
1407 ; --------------------------------------------------------------------------- |
1407 ; --------------------------------------------------------------------------- |
1408 .dw 8066h |
1408 .dw 8066h |
1409 ; --------------------------------------------------------------------------- |
1409 ; --------------------------------------------------------------------------- |
1410 jr nz, p7Dloc_4646 |
1410 jr nz, p7Dloc_4646 |
1411 call p7Dsub_464E |
1411 call p7Dsub_464E |
1412 |
1412 |
1413 p7Dloc_4646: |
1413 p7Dloc_4646: |
1414 pop bc |
1414 pop bc |
1415 pop hl |
1415 pop hl |
1416 add hl, bc |
1416 add hl, bc |
1417 jr p7Dloc_4621 |
1417 jr p7Dloc_4621 |
1418 ; --------------------------------------------------------------------------- |
1418 ; --------------------------------------------------------------------------- |
1419 |
1419 |
1420 p7Dloc_464B: |
1420 p7Dloc_464B: |
1421 pop de |
1421 pop de |
1422 pop bc |
1422 pop bc |
1423 ret |
1423 ret |
1424 ; End of function p7Dsub_45E4 |
1424 ; End of function p7Dsub_45E4 |
1425 |
1425 |
1426 |
1426 |
1427 ; =============== S U B R O U T I N E ======================================= |
1427 ; =============== S U B R O U T I N E ======================================= |
1484 p7Dsub_468A: |
1484 p7Dsub_468A: |
1485 |
1485 |
1486 call p7Dsub_4894 |
1486 call p7Dsub_4894 |
1487 push hl |
1487 push hl |
1488 call p7Dsub_4574 |
1488 call p7Dsub_4574 |
1489 add hl, bc |
1489 add hl, bc |
1490 call p7Dsub_4574 |
1490 call p7Dsub_4574 |
1491 add hl, bc |
1491 add hl, bc |
1492 pop bc |
1492 pop bc |
1493 push bc |
1493 push bc |
1494 or a |
1494 or a |
1495 sbc hl, bc |
1495 sbc hl, bc |
1496 push hl |
1496 push hl |
1497 pop bc |
1497 pop bc |
1498 pop hl |
1498 pop hl |
1499 push bc |
1499 push bc |
1500 push hl |
1500 push hl |
1501 ld de, 4000h |
1501 ld de, 4000h |
1502 call p7Dsub_42DF |
1502 call p7Dsub_42DF |
1503 pop hl |
1503 pop hl |
1504 push hl |
1504 push hl |
1505 rst 28h |
1505 rst 28h |
1506 ; --------------------------------------------------------------------------- |
1506 ; --------------------------------------------------------------------------- |
1507 .dw 8060h |
1507 .dw 8060h |
1508 ; --------------------------------------------------------------------------- |
1508 ; --------------------------------------------------------------------------- |
1509 pop de |
1509 pop de |
1510 pop bc |
1510 pop bc |
1511 ld hl, 4000h |
1511 ld hl, 4000h |
1512 push bc |
1512 push bc |
1513 call p7Dsub_42AE |
1513 call p7Dsub_42AE |
1514 call p7Dsub_4894 |
1514 call p7Dsub_4894 |
1515 pop bc |
1515 pop bc |
1516 ex de, hl |
1516 ex de, hl |
1517 ld a, d |
1517 ld a, d |
1518 xor 20h ; ' ' |
1518 xor 20h ; ' ' |
1519 ld d, a |
1519 ld d, a |
1520 call p7Dsub_430E |
1520 call p7Dsub_430E |
1521 ret z |
1521 ret z |
1522 ; End of function p7Dsub_468A |
1522 ; End of function p7Dsub_468A |
1523 |
1523 |
1524 ; START OF FUNCTION CHUNK FOR p7Dsub_5083 |
1524 ; START OF FUNCTION CHUNK FOR p7Dsub_5083 |
1525 |
1525 |
1526 p7Dloc_46C1: |
1526 p7Dloc_46C1: |
1527 call relockFlashBack |
1527 call relockFlashBack |
1528 jp JErrorNo |
1528 jp JErrorNo |
1529 ; END OF FUNCTION CHUNK FOR p7Dsub_5083 |
1529 ; END OF FUNCTION CHUNK FOR p7Dsub_5083 |
1530 ; --------------------------------------------------------------------------- |
1530 ; --------------------------------------------------------------------------- |
1531 |
1531 |
1532 p7Dloc_46C7: |
1532 p7Dloc_46C7: |
1533 push de |
1533 push de |
1534 push bc |
1534 push bc |
1535 call p7Dsub_762A |
1535 call p7Dsub_762A |
1536 ld (OP2), bc |
1536 ld (OP2), bc |
1537 ld de, 8484h |
1537 ld de, 8484h |
1538 call p7Dsub_7700 |
1538 call p7Dsub_7700 |
1539 rst 28h |
1539 rst 28h |
1540 ; --------------------------------------------------------------------------- |
1540 ; --------------------------------------------------------------------------- |
1541 .dw 8054h |
1541 .dw 8054h |
1542 ; --------------------------------------------------------------------------- |
1542 ; --------------------------------------------------------------------------- |
1543 rst 28h |
1543 rst 28h |
1544 ; --------------------------------------------------------------------------- |
1544 ; --------------------------------------------------------------------------- |
1545 .dw 8066h |
1545 .dw 8066h |
1546 ; --------------------------------------------------------------------------- |
1546 ; --------------------------------------------------------------------------- |
1547 jr nz, p7Dloc_4715 |
1547 jr nz, p7Dloc_4715 |
1548 push hl |
1548 push hl |
1549 ld de, 100h |
1549 ld de, 100h |
1550 call p7Dsub_777E |
1550 call p7Dsub_777E |
1551 jr nz, p7Dloc_4714 |
1551 jr nz, p7Dloc_4714 |
1552 call p7Dsub_4574 |
1552 call p7Dsub_4574 |
1553 push hl |
1553 push hl |
1554 call p7Dsub_4894 |
1554 call p7Dsub_4894 |
1555 ld de, 100h |
1555 ld de, 100h |
1556 call p7Dsub_777E |
1556 call p7Dsub_777E |
1557 call p7Dsub_4574 |
1557 call p7Dsub_4574 |
1558 pop de |
1558 pop de |
1559 ex de, hl |
1559 ex de, hl |
1560 call p7Dsub_7700 |
1560 call p7Dsub_7700 |
1561 call p7Dsub_5CFF |
1561 call p7Dsub_5CFF |
1562 call p7Dsub_5D1E |
1562 call p7Dsub_5D1E |
1563 ex de, hl |
1563 ex de, hl |
1564 call p7Dsub_7700 |
1564 call p7Dsub_7700 |
1565 call p7Dsub_5CFF |
1565 call p7Dsub_5CFF |
1566 call p7Dsub_5D43 |
1566 call p7Dsub_5D43 |
1567 ex de, hl |
1567 ex de, hl |
1568 or a |
1568 or a |
1569 sbc hl, bc |
1569 sbc hl, bc |
1570 ld a, 0 |
1570 ld a, 0 |
1571 bit 7, a |
1571 bit 7, a |
1572 |
1572 |
1573 p7Dloc_4714: |
1573 p7Dloc_4714: |
1574 pop hl |
1574 pop hl |
1575 |
1575 |
1576 p7Dloc_4715: |
1576 p7Dloc_4715: |
1577 pop bc |
1577 pop bc |
1578 pop de |
1578 pop de |
1579 ret |
1579 ret |
1580 ; --------------------------------------------------------------------------- |
1580 ; --------------------------------------------------------------------------- |
1581 |
1581 |
1582 Page7D_2C04: |
1582 Page7D_2C04: |
1583 push bc |
1583 push bc |
1584 push de |
1584 push de |
1585 push hl |
1585 push hl |
1586 call p7Dsub_7634 |
1586 call p7Dsub_7634 |
1587 inc hl |
1587 inc hl |
1588 rst 28h |
1588 rst 28h |
1589 ; --------------------------------------------------------------------------- |
1589 ; --------------------------------------------------------------------------- |
1590 .dw 805Ah |
1590 .dw 805Ah |
1591 ; --------------------------------------------------------------------------- |
1591 ; --------------------------------------------------------------------------- |
1592 call p7Dsub_4490 |
1592 call p7Dsub_4490 |
1593 jp nz, p7Dloc_47A5 |
1593 jp nz, p7Dloc_47A5 |
1594 call p7Dloc_46C7 |
1594 call p7Dloc_46C7 |
1595 jr nz, p7Dloc_4746 |
1595 jr nz, p7Dloc_4746 |
1596 jp nc, p7Dloc_47A5 |
1596 jp nc, p7Dloc_47A5 |
1597 rst 28h |
1597 rst 28h |
1598 ; --------------------------------------------------------------------------- |
1598 ; --------------------------------------------------------------------------- |
1599 .dw 8066h |
1599 .dw 8066h |
1600 ; --------------------------------------------------------------------------- |
1600 ; --------------------------------------------------------------------------- |
1601 jr nz, p7Dloc_4746 |
1601 jr nz, p7Dloc_4746 |
1602 call p7Dsub_50A8 |
1602 call p7Dsub_50A8 |
1603 call p7Dloc_46C7 |
1603 call p7Dloc_46C7 |
1604 rst 28h |
1604 rst 28h |
1605 ; --------------------------------------------------------------------------- |
1605 ; --------------------------------------------------------------------------- |
1606 .dw 8066h |
1606 .dw 8066h |
1607 ; --------------------------------------------------------------------------- |
1607 ; --------------------------------------------------------------------------- |
1608 call p7Dsub_47E3 |
1608 call p7Dsub_47E3 |
1609 rst 28h |
1609 rst 28h |
1610 ; --------------------------------------------------------------------------- |
1610 ; --------------------------------------------------------------------------- |
1611 .dw 802Ah |
1611 .dw 802Ah |
1612 ; --------------------------------------------------------------------------- |
1612 ; --------------------------------------------------------------------------- |
1613 jr p7Dloc_474C |
1613 jr p7Dloc_474C |
1614 ; --------------------------------------------------------------------------- |
1614 ; --------------------------------------------------------------------------- |
1615 |
1615 |
1616 p7Dloc_4746: |
1616 p7Dloc_4746: |
1617 call p7Dsub_50A8 |
1617 call p7Dsub_50A8 |
1618 call p7Dsub_5124 |
1618 call p7Dsub_5124 |
1619 |
1619 |
1620 p7Dloc_474C: |
1620 p7Dloc_474C: |
1621 ld de, 836Dh |
1621 ld de, 836Dh |
1622 call Page7D_2B80 |
1622 call Page7D_2B80 |
1623 ld bc, 20h ; ' ' |
1623 ld bc, 20h ; ' ' |
1624 call p7Dsub_7700 |
1624 call p7Dsub_7700 |
1625 rst 28h |
1625 rst 28h |
1626 ; --------------------------------------------------------------------------- |
1626 ; --------------------------------------------------------------------------- |
1627 .dw 8054h |
1627 .dw 8054h |
1628 ; --------------------------------------------------------------------------- |
1628 ; --------------------------------------------------------------------------- |
1629 call p7Dsub_521D |
1629 call p7Dsub_521D |
1630 ld bc, 0Dh |
1630 ld bc, 0Dh |
1631 sla c |
1631 sla c |
1632 call p7Dsub_7700 |
1632 call p7Dsub_7700 |
1633 ld de, tempSwapArea |
1633 ld de, tempSwapArea |
1634 rst 28h |
1634 rst 28h |
1635 ; --------------------------------------------------------------------------- |
1635 ; --------------------------------------------------------------------------- |
1636 .dw 8054h |
1636 .dw 8054h |
1637 ; --------------------------------------------------------------------------- |
1637 ; --------------------------------------------------------------------------- |
1638 call p7Dsub_762A |
1638 call p7Dsub_762A |
1639 ld (appID), bc |
1639 ld (appID), bc |
1640 ld de, 838Eh |
1640 ld de, 838Eh |
1641 call p7Dsub_7700 |
1641 call p7Dsub_7700 |
1642 rst 28h |
1642 rst 28h |
1643 ; --------------------------------------------------------------------------- |
1643 ; --------------------------------------------------------------------------- |
1644 .dw 8054h |
1644 .dw 8054h |
1645 ; --------------------------------------------------------------------------- |
1645 ; --------------------------------------------------------------------------- |
1646 call p7Dsub_468A |
1646 call p7Dsub_468A |
1647 ld bc, (appID) |
1647 ld bc, (appID) |
1648 ld b, 0 |
1648 ld b, 0 |
1649 ld (OP2), bc |
1649 ld (OP2), bc |
1650 ld hl, 838Eh |
1650 ld hl, 838Eh |
1651 ld de, 8484h |
1651 ld de, 8484h |
1652 ldir |
1652 ldir |
1653 rst 28h |
1653 rst 28h |
1654 ; --------------------------------------------------------------------------- |
1654 ; --------------------------------------------------------------------------- |
1655 .dw 8066h |
1655 .dw 8066h |
1656 ; --------------------------------------------------------------------------- |
1656 ; --------------------------------------------------------------------------- |
1657 call p7Dsub_45E4 |
1657 call p7Dsub_45E4 |
1658 call p7Dsub_4894 |
1658 call p7Dsub_4894 |
1659 rst 28h |
1659 rst 28h |
1660 ; --------------------------------------------------------------------------- |
1660 ; --------------------------------------------------------------------------- |
1661 .dw 8060h |
1661 .dw 8060h |
1662 ; --------------------------------------------------------------------------- |
1662 ; --------------------------------------------------------------------------- |
1663 |
1663 |
1664 p7Dloc_479D: |
1664 p7Dloc_479D: |
1665 call p7Dsub_4926 |
1665 call p7Dsub_4926 |
1666 pop hl |
1666 pop hl |
1667 pop de |
1667 pop de |
1668 pop bc |
1668 pop bc |
1669 xor a |
1669 xor a |
1670 ret |
1670 ret |
1671 ; --------------------------------------------------------------------------- |
1671 ; --------------------------------------------------------------------------- |
1672 |
1672 |
1673 p7Dloc_47A5: |
1673 p7Dloc_47A5: |
1674 call p7Dsub_4894 |
1674 call p7Dsub_4894 |
1675 rst 28h |
1675 rst 28h |
1676 ; --------------------------------------------------------------------------- |
1676 ; --------------------------------------------------------------------------- |
1677 .dw 8060h |
1677 .dw 8060h |
1678 ; --------------------------------------------------------------------------- |
1678 ; --------------------------------------------------------------------------- |
1679 call p7Dsub_4926 |
1679 call p7Dsub_4926 |
1680 pop hl |
1680 pop hl |
1681 pop de |
1681 pop de |
1682 pop bc |
1682 pop bc |
1683 ld a, 0FFh |
1683 ld a, 0FFh |
1684 or a |
1684 or a |
1685 ret |
1685 ret |
1686 |
1686 |
1687 ; =============== S U B R O U T I N E ======================================= |
1687 ; =============== S U B R O U T I N E ======================================= |
1688 |
1688 |
1689 |
1689 |
1690 p7Dsub_47B5: |
1690 p7Dsub_47B5: |
1691 xor a |
1691 xor a |
1692 ; End of function p7Dsub_47B5 |
1692 ; End of function p7Dsub_47B5 |
1693 |
1693 |
1694 |
1694 |
1695 ; =============== S U B R O U T I N E ======================================= |
1695 ; =============== S U B R O U T I N E ======================================= |
1696 |
1696 |
2240 |
2240 |
2241 FindAppNumPages: |
2241 FindAppNumPages: |
2242 ; Page7D_2B56+1Cp ... |
2242 ; Page7D_2B56+1Cp ... |
2243 push hl |
2243 push hl |
2244 push af |
2244 push af |
2245 ld hl, 4000h |
2245 ld hl, 4000h |
2246 ld de, 8080h |
2246 ld de, 8080h |
2247 or a |
2247 or a |
2248 rst 28h |
2248 rst 28h |
2249 ; --------------------------------------------------------------------------- |
2249 ; --------------------------------------------------------------------------- |
2250 .dw 80ABh |
2250 .dw 80ABh |
2251 ; --------------------------------------------------------------------------- |
2251 ; --------------------------------------------------------------------------- |
2252 ld c, 0 |
2252 ld c, 0 |
2253 jr nz, p7Dloc_4A57 |
2253 jr nz, p7Dloc_4A57 |
2254 inc hl |
2254 inc hl |
2255 inc hl |
2255 inc hl |
2256 pop af |
2256 pop af |
2257 push af |
2257 push af |
2258 rst 28h |
2258 rst 28h |
2259 ; --------------------------------------------------------------------------- |
2259 ; --------------------------------------------------------------------------- |
2260 .dw 8051h |
2260 .dw 8051h |
2261 ; --------------------------------------------------------------------------- |
2261 ; --------------------------------------------------------------------------- |
2262 ld c, a |
2262 ld c, a |
2263 |
2263 |
2264 p7Dloc_4A57: |
2264 p7Dloc_4A57: |
2265 pop af |
2265 pop af |
2266 pop hl |
2266 pop hl |
2267 ret |
2267 ret |
2268 ; End of function FindAppNumPages |
2268 ; End of function FindAppNumPages |
2269 |
2269 |
2270 |
2270 |
2271 ; =============== S U B R O U T I N E ======================================= |
2271 ; =============== S U B R O U T I N E ======================================= |
2272 |
2272 |
2273 |
2273 |
2274 p7Dsub_4A5A: |
2274 p7Dsub_4A5A: |
2275 call p7Dsub_7643 |
2275 call p7Dsub_7643 |
2276 ld b, c |
2276 ld b, c |
2277 call p7Dsub_75EC |
2277 call p7Dsub_75EC |
2278 |
2278 |
2279 p7Dloc_4A61: |
2279 p7Dloc_4A61: |
2280 push af |
2280 push af |
2281 ld hl, 4000h |
2281 ld hl, 4000h |
2282 rst 28h |
2282 rst 28h |
2283 ; --------------------------------------------------------------------------- |
2283 ; --------------------------------------------------------------------------- |
2284 .dw 8051h |
2284 .dw 8051h |
2285 ; --------------------------------------------------------------------------- |
2285 ; --------------------------------------------------------------------------- |
2286 cp 0FFh |
2286 cp 0FFh |
2287 jr z, p7Dloc_4A77 |
2287 jr z, p7Dloc_4A77 |
2288 cp 0 |
2288 cp 0 |
2289 jr z, p7Dloc_4A77 |
2289 jr z, p7Dloc_4A77 |
2290 cp 80h ; '�' |
2290 cp 80h ; '�' |
2291 jr nz, p7Dloc_4A77 |
2291 jr nz, p7Dloc_4A77 |
2292 pop af |
2292 pop af |
2293 jr p7Dloc_4A80 |
2293 jr p7Dloc_4A80 |
2294 ; --------------------------------------------------------------------------- |
2294 ; --------------------------------------------------------------------------- |
2295 |
2295 |
2296 p7Dloc_4A77: |
2296 p7Dloc_4A77: |
2297 pop af |
2297 pop af |
2298 |
2298 |
2299 p7Dloc_4A78: |
2299 p7Dloc_4A78: |
2300 dec a |
2300 dec a |
2301 djnz p7Dloc_4A61 |
2301 djnz p7Dloc_4A61 |
2302 ret |
2302 ret |
2303 ; --------------------------------------------------------------------------- |
2303 ; --------------------------------------------------------------------------- |
2304 |
2304 |
2305 p7Dloc_4A7C: |
2305 p7Dloc_4A7C: |
2306 pop af |
2306 pop af |
2307 pop bc |
2307 pop bc |
2308 jr p7Dloc_4A77 |
2308 jr p7Dloc_4A77 |
2309 ; --------------------------------------------------------------------------- |
2309 ; --------------------------------------------------------------------------- |
2310 |
2310 |
2311 p7Dloc_4A80: |
2311 p7Dloc_4A80: |
2312 push af |
2312 push af |
2313 push bc |
2313 push bc |
2314 push af |
2314 push af |
2315 call Page0Call_3E31 |
2315 call Page0Call_3E31 |
2316 jr nz, p7Dloc_4A7C |
2316 jr nz, p7Dloc_4A7C |
2317 pop af |
2317 pop af |
2318 push af |
2318 push af |
2319 call p7Dsub_5E31 |
2319 call p7Dsub_5E31 |
2320 rst 28h |
2320 rst 28h |
2321 ; --------------------------------------------------------------------------- |
2321 ; --------------------------------------------------------------------------- |
2322 .dw 80A8h |
2322 .dw 80A8h |
2323 ; --------------------------------------------------------------------------- |
2323 ; --------------------------------------------------------------------------- |
2324 jr nz, p7Dloc_4AC4 |
2324 jr nz, p7Dloc_4AC4 |
2325 pop af |
2325 pop af |
2326 push af |
2326 push af |
2327 call p7Dsub_52D9 |
2327 call p7Dsub_52D9 |
2328 jr c, p7Dloc_4AC4 |
2328 jr c, p7Dloc_4AC4 |
2329 jr z, p7Dloc_4AC4 |
2329 jr z, p7Dloc_4AC4 |
2330 pop af |
2330 pop af |
2331 push af |
2331 push af |
2332 ld b, a |
2332 ld b, a |
2333 call p7Dsub_75EC |
2333 call p7Dsub_75EC |
2334 sub b |
2334 sub b |
2335 ld bc, 0 |
2335 ld bc, 0 |
2336 ld c, a |
2336 ld c, a |
2337 push bc |
2337 push bc |
2338 pop ix |
2338 pop ix |
2339 call p7Dsub_48B5 |
2339 call p7Dsub_48B5 |
2340 jr c, p7Dloc_4AC4 |
2340 jr c, p7Dloc_4AC4 |
2341 jr nz, p7Dloc_4AC4 |
2341 jr nz, p7Dloc_4AC4 |
2342 ld a, (ioFlag) |
2342 ld a, (ioFlag) |
2343 cp 0 |
2343 cp 0 |
2344 jr nz, p7Dloc_4ABF |
2344 jr nz, p7Dloc_4ABF |
2345 call Page0Call_2C7F |
2345 call Page0Call_2C7F |
2346 ld a, 0FFh |
2346 ld a, 0FFh |
2347 ld (ioFlag), a |
2347 ld (ioFlag), a |
2348 |
2348 |
2349 p7Dloc_4ABF: |
2349 p7Dloc_4ABF: |
2350 pop af |
2350 pop af |
2351 push af |
2351 push af |
2352 call Page7D_2BE6 |
2352 call Page7D_2BE6 |
2353 |
2353 |
2354 p7Dloc_4AC4: |
2354 p7Dloc_4AC4: |
2355 pop af |
2355 pop af |
2356 pop bc |
2356 pop bc |
2357 pop af |
2357 pop af |
2358 jr p7Dloc_4A78 |
2358 jr p7Dloc_4A78 |
2359 ; End of function p7Dsub_4A5A |
2359 ; End of function p7Dsub_4A5A |
2360 |
2360 |
2361 |
2361 |
2362 ; =============== S U B R O U T I N E ======================================= |
2362 ; =============== S U B R O U T I N E ======================================= |
2363 |
2363 |
2364 |
2364 |
2365 p7Dsub_4AC9: |
2365 p7Dsub_4AC9: |
2366 call p7Dsub_70D1 |
2366 call p7Dsub_70D1 |
2367 jp nz, p7Dloc_4B69 |
2367 jp nz, p7Dloc_4B69 |
2368 ld de, 700h |
2368 ld de, 700h |
2369 call p7Dsub_777E |
2369 call p7Dsub_777E |
2370 call p7Dsub_4574 |
2370 call p7Dsub_4574 |
2371 ld ix, 0 |
2371 ld ix, 0 |
2372 |
2372 |
2373 p7Dloc_4ADC: |
2373 p7Dloc_4ADC: |
2374 ld de, 710h |
2374 ld de, 710h |
2375 call p7Dsub_705E |
2375 call p7Dsub_705E |
2376 jp nz, p7Dloc_4B6E |
2376 jp nz, p7Dloc_4B6E |
2377 push hl |
2377 push hl |
2378 call p7Dsub_4574 |
2378 call p7Dsub_4574 |
2379 ld a, c |
2379 ld a, c |
2380 ld (appID+1), a |
2380 ld (appID+1), a |
2381 ld de, 838Fh |
2381 ld de, 838Fh |
2382 call p7Dsub_424C |
2382 call p7Dsub_424C |
2383 rst 28h |
2383 rst 28h |
2384 ; --------------------------------------------------------------------------- |
2384 ; --------------------------------------------------------------------------- |
2385 .dw 80A8h |
2385 .dw 80A8h |
2386 ; --------------------------------------------------------------------------- |
2386 ; --------------------------------------------------------------------------- |
2387 pop hl |
2387 pop hl |
2388 push hl |
2388 push hl |
2389 jr z, p7Dloc_4B5F |
2389 jr z, p7Dloc_4B5F |
2390 ld de, 740h |
2390 ld de, 740h |
2391 call p7Dsub_705E |
2391 call p7Dsub_705E |
2392 jr nz, p7Dloc_4B14 |
2392 jr nz, p7Dloc_4B14 |
2393 call p7Dsub_7700 |
2393 call p7Dsub_7700 |
2394 call p7Dsub_50C5 |
2394 call p7Dsub_50C5 |
2395 jr z, p7Dloc_4B14 |
2395 jr z, p7Dloc_4B14 |
2396 call p7Dsub_536F |
2396 call p7Dsub_536F |
2397 call p7Dsub_48DE |
2397 call p7Dsub_48DE |
2398 jr c, p7Dloc_4B14 |
2398 jr c, p7Dloc_4B14 |
2399 jr z, p7Dloc_4B20 |
2399 jr z, p7Dloc_4B20 |
2400 |
2400 |
2401 p7Dloc_4B14: |
2401 p7Dloc_4B14: |
2402 call p7Dsub_540C |
2402 call p7Dsub_540C |
2403 jr z, p7Dloc_4B5F |
2403 jr z, p7Dloc_4B5F |
2404 pop hl |
2404 pop hl |
2405 push hl |
2405 push hl |
2406 call p7Dsub_4992 |
2406 call p7Dsub_4992 |
2407 jr p7Dloc_4B5F |
2407 jr p7Dloc_4B5F |
2408 ; --------------------------------------------------------------------------- |
2408 ; --------------------------------------------------------------------------- |
2409 |
2409 |
2410 p7Dloc_4B20: |
2410 p7Dloc_4B20: |
2411 ld a, (ioFlag) |
2411 ld a, (ioFlag) |
2412 cp 0 |
2412 cp 0 |
2413 jr nz, p7Dloc_4B3D |
2413 jr nz, p7Dloc_4B3D |
2414 pop de |
2414 pop de |
2415 push de |
2415 push de |
2416 push hl |
2416 push hl |
2417 call p7Dsub_4B73 |
2417 call p7Dsub_4B73 |
2418 call p7Dsub_6021 |
2418 call p7Dsub_6021 |
2419 jr c, p7Dloc_4B51 |
2419 jr c, p7Dloc_4B51 |
2420 pop hl |
2420 pop hl |
2421 pop de |
2421 pop de |
2422 push de |
2422 push de |
2423 call Page0Call_2C7F |
2423 call Page0Call_2C7F |
2424 ld a, 0FFh |
2424 ld a, 0FFh |
2425 ld (ioFlag), a |
2425 ld (ioFlag), a |
2426 |
2426 |
2427 p7Dloc_4B3D: |
2427 p7Dloc_4B3D: |
2428 pop de |
2428 pop de |
2429 push de |
2429 push de |
2430 push hl |
2430 push hl |
2431 call p7Dsub_4B73 |
2431 call p7Dsub_4B73 |
2432 call p7Dsub_6021 |
2432 call p7Dsub_6021 |
2433 jr c, p7Dloc_4B51 |
2433 jr c, p7Dloc_4B51 |
2434 call Page0Call_2C8B |
2434 call Page0Call_2C8B |
2435 call Page0Call_3CD5 |
2435 call Page0Call_3CD5 |
2436 call Page7D_2BE6 |
2436 call Page7D_2BE6 |
2437 |
2437 |
2438 p7Dloc_4B51: |
2438 p7Dloc_4B51: |
2439 pop hl |
2439 pop hl |
2440 pop de |
2440 pop de |
2441 ex de, hl |
2441 ex de, hl |
2442 push de |
2442 push de |
2443 call p7Dsub_4574 |
2443 call p7Dsub_4574 |
2444 pop de |
2444 pop de |
2445 add hl, bc |
2445 add hl, bc |
2446 inc ix |
2446 inc ix |
2447 jp p7Dloc_4ADC |
2447 jp p7Dloc_4ADC |
2448 ; --------------------------------------------------------------------------- |
2448 ; --------------------------------------------------------------------------- |
2449 |
2449 |
2450 p7Dloc_4B5F: |
2450 p7Dloc_4B5F: |
2451 pop hl |
2451 pop hl |
2452 call p7Dsub_4574 |
2452 call p7Dsub_4574 |
2453 add hl, bc |
2453 add hl, bc |
2454 inc ix |
2454 inc ix |
2455 jp p7Dloc_4ADC |
2455 jp p7Dloc_4ADC |
2456 ; --------------------------------------------------------------------------- |
2456 ; --------------------------------------------------------------------------- |
2457 |
2457 |
2458 p7Dloc_4B69: |
2458 p7Dloc_4B69: |
2459 ld a, 0FFh |
2459 ld a, 0FFh |
2460 bit 7, a |
2460 bit 7, a |
2461 ret |
2461 ret |
2462 ; --------------------------------------------------------------------------- |
2462 ; --------------------------------------------------------------------------- |
2463 |
2463 |
2464 p7Dloc_4B6E: |
2464 p7Dloc_4B6E: |
2465 ld a, 0 |
2465 ld a, 0 |
2466 bit 7, a |
2466 bit 7, a |
2467 ret |
2467 ret |
2468 ; End of function p7Dsub_4AC9 |
2468 ; End of function p7Dsub_4AC9 |
2469 |
2469 |
2470 |
2470 |
2471 ; =============== S U B R O U T I N E ======================================= |
2471 ; =============== S U B R O U T I N E ======================================= |
2472 |
2472 |
2473 |
2473 |
2474 p7Dsub_4B73: |
2474 p7Dsub_4B73: |
2475 ex de, hl |
2475 ex de, hl |
2476 call p7Dsub_4574 |
2476 call p7Dsub_4574 |
2477 ld a, c |
2477 ld a, c |
2478 ld (appID), a |
2478 ld (appID), a |
2479 ld de, 838Eh |
2479 ld de, 838Eh |
2480 call p7Dsub_424C |
2480 call p7Dsub_424C |
2481 ret |
2481 ret |
2482 ; End of function p7Dsub_4B73 |
2482 ; End of function p7Dsub_4B73 |
2483 |
2483 |
2484 ; --------------------------------------------------------------------------- |
2484 ; --------------------------------------------------------------------------- |
2485 |
2485 |
2486 p7Dloc_4B82: |
2486 p7Dloc_4B82: |
2487 call p7Dsub_70D1 |
2487 call p7Dsub_70D1 |
2488 ld de, 800h |
2488 ld de, 800h |
2489 call p7Dsub_777E |
2489 call p7Dsub_777E |
2490 call p7Dsub_4574 |
2490 call p7Dsub_4574 |
2491 |
2491 |
2492 p7Dloc_4B8E: |
2492 p7Dloc_4B8E: |
2493 ld de, 810h |
2493 ld de, 810h |
2494 call p7Dsub_705E |
2494 call p7Dsub_705E |
2495 jp nz, locret_4C0B |
2495 jp nz, locret_4C0B |
2496 push hl |
2496 push hl |
2497 ld de, 840h |
2497 ld de, 840h |
2498 call p7Dsub_705E |
2498 call p7Dsub_705E |
2499 jr nz, p7Dloc_4BC9 |
2499 jr nz, p7Dloc_4BC9 |
2500 call p7Dsub_7700 |
2500 call p7Dsub_7700 |
2501 call p7Dsub_50C5 |
2501 call p7Dsub_50C5 |
2502 jr z, p7Dloc_4BE4 |
2502 jr z, p7Dloc_4BE4 |
2503 call p7Dsub_536F |
2503 call p7Dsub_536F |
2504 call p7Dsub_48DE |
2504 call p7Dsub_48DE |
2505 jr c, p7Dloc_4BC9 |
2505 jr c, p7Dloc_4BC9 |
2506 jr nz, p7Dloc_4BE4 |
2506 jr nz, p7Dloc_4BE4 |
2507 ld a, (ioFlag) |
2507 ld a, (ioFlag) |
2508 cp 0 |
2508 cp 0 |
2509 jr nz, p7Dloc_4BC9 |
2509 jr nz, p7Dloc_4BC9 |
2510 call Page0Call_2C7F |
2510 call Page0Call_2C7F |
2511 ld a, 0FFh |
2511 ld a, 0FFh |
2512 ld (ioFlag), a |
2512 ld (ioFlag), a |
2513 pop de |
2513 pop de |
2514 push de |
2514 push de |
2515 call Page0Call_2C85 |
2515 call Page0Call_2C85 |
2516 call Page0Call_3CD5 |
2516 call Page0Call_3CD5 |
2517 |
2517 |
2518 p7Dloc_4BC9: |
2518 p7Dloc_4BC9: |
2519 pop de |
2519 pop de |
2520 ex de, hl |
2520 ex de, hl |
2521 push hl |
2521 push hl |
2522 call p7Dsub_4574 |
2522 call p7Dsub_4574 |
2523 ld de, 8484h |
2523 ld de, 8484h |
2524 ld (OP2), bc |
2524 ld (OP2), bc |
2525 call p7Dsub_7700 |
2525 call p7Dsub_7700 |
2526 rst 28h |
2526 rst 28h |
2527 ; --------------------------------------------------------------------------- |
2527 ; --------------------------------------------------------------------------- |
2528 .dw 8054h |
2528 .dw 8054h |
2529 ; --------------------------------------------------------------------------- |
2529 ; --------------------------------------------------------------------------- |
2530 rst 28h |
2530 rst 28h |
2531 ; --------------------------------------------------------------------------- |
2531 ; --------------------------------------------------------------------------- |
2532 .dw 8066h |
2532 .dw 8066h |
2533 ; --------------------------------------------------------------------------- |
2533 ; --------------------------------------------------------------------------- |
2534 jr nz, p7Dloc_4BE4 |
2534 jr nz, p7Dloc_4BE4 |
2535 rst 28h |
2535 rst 28h |
2536 ; --------------------------------------------------------------------------- |
2536 ; --------------------------------------------------------------------------- |
2537 .dw 802Ah |
2537 .dw 802Ah |
2538 ; --------------------------------------------------------------------------- |
2538 ; --------------------------------------------------------------------------- |
2539 |
2539 |
2540 p7Dloc_4BE4: |
2540 p7Dloc_4BE4: |
2541 pop de |
2541 pop de |
2542 ex de, hl |
2542 ex de, hl |
2543 push hl |
2543 push hl |
2544 call p7Dsub_4574 |
2544 call p7Dsub_4574 |
2545 ld de, 8484h |
2545 ld de, 8484h |
2546 ld (OP2), bc |
2546 ld (OP2), bc |
2547 call p7Dsub_7700 |
2547 call p7Dsub_7700 |
2548 rst 28h |
2548 rst 28h |
2549 ; --------------------------------------------------------------------------- |
2549 ; --------------------------------------------------------------------------- |
2550 .dw 8054h |
2550 .dw 8054h |
2551 ; --------------------------------------------------------------------------- |
2551 ; --------------------------------------------------------------------------- |
2552 rst 28h |
2552 rst 28h |
2553 ; --------------------------------------------------------------------------- |
2553 ; --------------------------------------------------------------------------- |
2554 .dw 8066h |
2554 .dw 8066h |
2555 ; --------------------------------------------------------------------------- |
2555 ; --------------------------------------------------------------------------- |
2556 jr nz, p7Dloc_4C01 |
2556 jr nz, p7Dloc_4C01 |
2557 inc ix |
2557 inc ix |
2558 call p7Dsub_4C0C |
2558 call p7Dsub_4C0C |
2559 |
2559 |
2560 p7Dloc_4C01: |
2560 p7Dloc_4C01: |
2561 pop hl |
2561 pop hl |
2562 call p7Dsub_4574 |
2562 call p7Dsub_4574 |
2563 add hl, bc |
2563 add hl, bc |
2564 inc ix |
2564 inc ix |
2565 jp p7Dloc_4B8E |
2565 jp p7Dloc_4B8E |
2566 ; --------------------------------------------------------------------------- |
2566 ; --------------------------------------------------------------------------- |
2567 |
2567 |
2568 locret_4C0B: |
2568 locret_4C0B: |
2569 ret |
2569 ret |
2570 |
2570 |
2571 ; =============== S U B R O U T I N E ======================================= |
2571 ; =============== S U B R O U T I N E ======================================= |
2572 |
2572 |
2573 |
2573 |
2574 p7Dsub_4C0C: |
2574 p7Dsub_4C0C: |
2575 ld de, 700h |
2575 ld de, 700h |
2576 call p7Dsub_777E |
2576 call p7Dsub_777E |
2577 call p7Dsub_4574 |
2577 call p7Dsub_4574 |
2578 |
2578 |
2579 p7Dloc_4C15: |
2579 p7Dloc_4C15: |
2580 ld de, 710h |
2580 ld de, 710h |
2581 call p7Dsub_705E |
2581 call p7Dsub_705E |
2582 jr nz, p7Dloc_4C70 |
2582 jr nz, p7Dloc_4C70 |
2583 push hl |
2583 push hl |
2584 ld de, 740h |
2584 ld de, 740h |
2585 call p7Dsub_705E |
2585 call p7Dsub_705E |
2586 jr nz, p7Dloc_4C38 |
2586 jr nz, p7Dloc_4C38 |
2587 call p7Dsub_7700 |
2587 call p7Dsub_7700 |
2588 call p7Dsub_50C5 |
2588 call p7Dsub_50C5 |
2589 jr z, p7Dloc_4C38 |
2589 jr z, p7Dloc_4C38 |
2590 call p7Dsub_536F |
2590 call p7Dsub_536F |
2591 call p7Dsub_48DE |
2591 call p7Dsub_48DE |
2592 jr c, p7Dloc_4C38 |
2592 jr c, p7Dloc_4C38 |
2593 jr z, p7Dloc_4C3B |
2593 jr z, p7Dloc_4C3B |
2594 |
2594 |
2595 p7Dloc_4C38: |
2595 p7Dloc_4C38: |
2596 pop hl |
2596 pop hl |
2597 jr p7Dloc_4C68 |
2597 jr p7Dloc_4C68 |
2598 ; --------------------------------------------------------------------------- |
2598 ; --------------------------------------------------------------------------- |
2599 |
2599 |
2600 p7Dloc_4C3B: |
2600 p7Dloc_4C3B: |
2601 ld a, (ioFlag) |
2601 ld a, (ioFlag) |
2602 cp 0 |
2602 cp 0 |
2603 jr nz, p7Dloc_4C55 |
2603 jr nz, p7Dloc_4C55 |
2604 pop de |
2604 pop de |
2605 push de |
2605 push de |
2606 push hl |
2606 push hl |
2607 call p7Dsub_6021 |
2607 call p7Dsub_6021 |
2608 jr c, p7Dloc_4C66 |
2608 jr c, p7Dloc_4C66 |
2609 pop hl |
2609 pop hl |
2610 pop de |
2610 pop de |
2611 push de |
2611 push de |
2612 call Page0Call_2C7F |
2612 call Page0Call_2C7F |
2613 ld a, 0FFh |
2613 ld a, 0FFh |
2614 ld (ioFlag), a |
2614 ld (ioFlag), a |
2615 |
2615 |
2616 p7Dloc_4C55: |
2616 p7Dloc_4C55: |
2617 pop de |
2617 pop de |
2618 push de |
2618 push de |
2619 push hl |
2619 push hl |
2620 call p7Dsub_6021 |
2620 call p7Dsub_6021 |
2621 jr c, p7Dloc_4C66 |
2621 jr c, p7Dloc_4C66 |
2622 call Page0Call_2C8B |
2622 call Page0Call_2C8B |
2623 call Page0Call_3CD5 |
2623 call Page0Call_3CD5 |
2624 call Page7D_2BE6 |
2624 call Page7D_2BE6 |
2625 |
2625 |
2626 p7Dloc_4C66: |
2626 p7Dloc_4C66: |
2627 pop hl |
2627 pop hl |
2628 pop de |
2628 pop de |
2629 |
2629 |
2630 p7Dloc_4C68: |
2630 p7Dloc_4C68: |
2631 call p7Dsub_4574 |
2631 call p7Dsub_4574 |
2632 add hl, bc |
2632 add hl, bc |
2633 inc ix |
2633 inc ix |
2634 jr p7Dloc_4C15 |
2634 jr p7Dloc_4C15 |
2635 ; --------------------------------------------------------------------------- |
2635 ; --------------------------------------------------------------------------- |
2636 |
2636 |
2637 p7Dloc_4C70: |
2637 p7Dloc_4C70: |
2638 dec ix |
2638 dec ix |
2639 ret |
2639 ret |
2640 ; End of function p7Dsub_4C0C |
2640 ; End of function p7Dsub_4C0C |
2641 |
2641 |
2642 |
2642 |
2643 ; =============== S U B R O U T I N E ======================================= |
2643 ; =============== S U B R O U T I N E ======================================= |
3386 push hl |
3386 push hl |
3387 push bc |
3387 push bc |
3388 push af |
3388 push af |
3389 push hl |
3389 push hl |
3390 push af |
3390 push af |
3391 inc hl |
3391 inc hl |
3392 rst 28h |
3392 rst 28h |
3393 ; --------------------------------------------------------------------------- |
3393 ; --------------------------------------------------------------------------- |
3394 .dw 805Ah |
3394 .dw 805Ah |
3395 ; --------------------------------------------------------------------------- |
3395 ; --------------------------------------------------------------------------- |
3396 or a |
3396 or a |
3397 adc hl, bc |
3397 adc hl, bc |
3398 pop af |
3398 pop af |
3399 inc hl |
3399 inc hl |
3400 rst 28h |
3400 rst 28h |
3401 ; --------------------------------------------------------------------------- |
3401 ; --------------------------------------------------------------------------- |
3402 .dw 805Ah |
3402 .dw 805Ah |
3403 ; --------------------------------------------------------------------------- |
3403 ; --------------------------------------------------------------------------- |
3404 or a |
3404 or a |
3405 adc hl, bc |
3405 adc hl, bc |
3406 pop de |
3406 pop de |
3407 or a |
3407 or a |
3408 sbc hl, de |
3408 sbc hl, de |
3409 push hl |
3409 push hl |
3410 pop bc |
3410 pop bc |
3411 ex de, hl |
3411 ex de, hl |
3412 pop af |
3412 pop af |
3413 ld de, tempSwapArea |
3413 ld de, tempSwapArea |
3414 push bc |
3414 push bc |
3415 rst 28h |
3415 rst 28h |
3416 ; --------------------------------------------------------------------------- |
3416 ; --------------------------------------------------------------------------- |
3417 .dw 8054h |
3417 .dw 8054h |
3418 ; --------------------------------------------------------------------------- |
3418 ; --------------------------------------------------------------------------- |
3419 pop bc |
3419 pop bc |
3420 ld a, 7Eh ; '~' |
3420 ld a, 7Eh ; '~' |
3421 call p7Dsub_4894 |
3421 call p7Dsub_4894 |
3422 push hl |
3422 push hl |
3423 push hl |
3423 push hl |
3424 rst 28h |
3424 rst 28h |
3425 ; --------------------------------------------------------------------------- |
3425 ; --------------------------------------------------------------------------- |
3426 .dw 8060h |
3426 .dw 8060h |
3427 ; --------------------------------------------------------------------------- |
3427 ; --------------------------------------------------------------------------- |
3428 pop hl |
3428 pop hl |
3429 ex de, hl |
3429 ex de, hl |
3430 ld hl, tempSwapArea |
3430 ld hl, tempSwapArea |
3431 ld a, 7Eh ; '~' |
3431 ld a, 7Eh ; '~' |
3432 rst 28h |
3432 rst 28h |
3433 ; --------------------------------------------------------------------------- |
3433 ; --------------------------------------------------------------------------- |
3434 .dw 8087h |
3434 .dw 8087h |
3435 ; --------------------------------------------------------------------------- |
3435 ; --------------------------------------------------------------------------- |
3436 ld de, 320h |
3436 ld de, 320h |
3437 rst 28h |
3437 rst 28h |
3438 ; --------------------------------------------------------------------------- |
3438 ; --------------------------------------------------------------------------- |
3439 .dw 8027h |
3439 .dw 8027h |
3440 ; --------------------------------------------------------------------------- |
3440 ; --------------------------------------------------------------------------- |
3441 jr nz, p7Dloc_503E |
3441 jr nz, p7Dloc_503E |
3442 rst 28h |
3442 rst 28h |
3443 ; --------------------------------------------------------------------------- |
3443 ; --------------------------------------------------------------------------- |
3444 .dw 802Ah |
3444 .dw 802Ah |
3445 ; --------------------------------------------------------------------------- |
3445 ; --------------------------------------------------------------------------- |
3446 |
3446 |
3447 p7Dloc_503E: |
3447 p7Dloc_503E: |
3448 pop hl |
3448 pop hl |
3449 ; START OF FUNCTION CHUNK FOR p7Dsub_5083 |
3449 ; START OF FUNCTION CHUNK FOR p7Dsub_5083 |
3450 |
3450 |
3451 p7Dloc_503F: |
3451 p7Dloc_503F: |
3452 scf |
3452 scf |
3453 |
3453 |
3454 p7Dloc_5040: |
3454 p7Dloc_5040: |
3455 ld a, 7Eh ; '~' |
3455 ld a, 7Eh ; '~' |
3456 push af |
3456 push af |
3457 push af |
3457 push af |
3458 push hl |
3458 push hl |
3459 push hl |
3459 push hl |
3460 push af |
3460 push af |
3461 inc hl |
3461 inc hl |
3462 rst 28h |
3462 rst 28h |
3463 ; --------------------------------------------------------------------------- |
3463 ; --------------------------------------------------------------------------- |
3464 .dw 805Ah |
3464 .dw 805Ah |
3465 ; --------------------------------------------------------------------------- |
3465 ; --------------------------------------------------------------------------- |
3466 or a |
3466 or a |
3467 adc hl, bc |
3467 adc hl, bc |
3468 pop af |
3468 pop af |
3469 inc hl |
3469 inc hl |
3470 rst 28h |
3470 rst 28h |
3471 ; --------------------------------------------------------------------------- |
3471 ; --------------------------------------------------------------------------- |
3472 .dw 805Ah |
3472 .dw 805Ah |
3473 ; --------------------------------------------------------------------------- |
3473 ; --------------------------------------------------------------------------- |
3474 or a |
3474 or a |
3475 adc hl, bc |
3475 adc hl, bc |
3476 pop de |
3476 pop de |
3477 or a |
3477 or a |
3478 sbc hl, de |
3478 sbc hl, de |
3479 push hl |
3479 push hl |
3480 pop bc |
3480 pop bc |
3481 pop hl |
3481 pop hl |
3482 pop af |
3482 pop af |
3483 push bc |
3483 push bc |
3484 push hl |
3484 push hl |
3485 call p7Dsub_521D |
3485 call p7Dsub_521D |
3486 ld bc, 0E8h ; '�' |
3486 ld bc, 0E8h ; '�' |
3487 ld a, 7Eh ; '~' |
3487 ld a, 7Eh ; '~' |
3488 ld de, tempSwapArea |
3488 ld de, tempSwapArea |
3489 rst 28h |
3489 rst 28h |
3490 ; --------------------------------------------------------------------------- |
3490 ; --------------------------------------------------------------------------- |
3491 .dw 8054h |
3491 .dw 8054h |
3492 ; --------------------------------------------------------------------------- |
3492 ; --------------------------------------------------------------------------- |
3493 pop de |
3493 pop de |
3494 pop bc |
3494 pop bc |
3495 ld a, d |
3495 ld a, d |
3496 xor 20h ; ' ' |
3496 xor 20h ; ' ' |
3497 ld d, a |
3497 ld d, a |
3498 call p7Dsub_430E |
3498 call p7Dsub_430E |
3499 jp nz, p7Dloc_46C1 |
3499 jp nz, p7Dloc_46C1 |
3500 pop af |
3500 pop af |
3501 call c, p7Dsub_4926 |
3501 call c, p7Dsub_4926 |
3502 pop bc |
3502 pop bc |
3503 pop hl |
3503 pop hl |
3504 pop de |
3504 pop de |
3505 pop af |
3505 pop af |
3506 ret |
3506 ret |
3507 ; END OF FUNCTION CHUNK FOR p7Dsub_5083 |
3507 ; END OF FUNCTION CHUNK FOR p7Dsub_5083 |
3508 |
3508 |
3509 ; =============== S U B R O U T I N E ======================================= |
3509 ; =============== S U B R O U T I N E ======================================= |
3510 |
3510 |
3813 push bc |
3813 push bc |
3814 push hl |
3814 push hl |
3815 call p7Dsub_51DB |
3815 call p7Dsub_51DB |
3816 call p7Dsub_7BCC |
3816 call p7Dsub_7BCC |
3817 cpl |
3817 cpl |
3818 ld c, a |
3818 ld c, a |
3819 call p7Dsub_4566 |
3819 call p7Dsub_4566 |
3820 and c |
3820 and c |
3821 ld b, a |
3821 ld b, a |
3822 ex de, hl |
3822 ex de, hl |
3823 call p7Dsub_456D |
3823 call p7Dsub_456D |
3824 pop hl |
3824 pop hl |
3825 pop bc |
3825 pop bc |
3826 pop af |
3826 pop af |
3827 ret |
3827 ret |
3828 ; End of function p7Dsub_51C3 |
3828 ; End of function p7Dsub_51C3 |
3829 |
3829 |
3830 |
3830 |
3831 ; =============== S U B R O U T I N E ======================================= |
3831 ; =============== S U B R O U T I N E ======================================= |
3832 |
3832 |
3833 |
3833 |
3834 p7Dsub_51DB: |
3834 p7Dsub_51DB: |
3835 push de |
3835 push de |
3836 push af |
3836 push af |
3837 ld b, a |
3837 ld b, a |
3838 rst 28h |
3838 rst 28h |
3839 ; --------------------------------------------------------------------------- |
3839 ; --------------------------------------------------------------------------- |
3840 .dw 80A8h |
3840 .dw 80A8h |
3841 ; --------------------------------------------------------------------------- |
3841 ; --------------------------------------------------------------------------- |
3842 jr nz, p7Dloc_51ED |
3842 jr nz, p7Dloc_51ED |
3843 call p7Dsub_75EC |
3843 call p7Dsub_75EC |
3844 sub b |
3844 sub b |
3845 inc a |
3845 inc a |
3846 ld c, a |
3846 ld c, a |
3847 ld b, 0 |
3847 ld b, 0 |
3848 jr p7Dloc_5202 |
3848 jr p7Dloc_5202 |
3849 ; --------------------------------------------------------------------------- |
3849 ; --------------------------------------------------------------------------- |
3850 |
3850 |
3851 p7Dloc_51ED: |
3851 p7Dloc_51ED: |
3852 push hl |
3852 push hl |
3853 ld hl, OP6 |
3853 ld hl, OP6 |
3854 ld (hl), 0 |
3854 ld (hl), 0 |
3855 pop hl |
3855 pop hl |
3856 rst 28h |
3856 rst 28h |
3857 ; --------------------------------------------------------------------------- |
3857 ; --------------------------------------------------------------------------- |
3858 .dw 8069h |
3858 .dw 8069h |
3859 ; --------------------------------------------------------------------------- |
3859 ; --------------------------------------------------------------------------- |
3860 inc ix |
3860 inc ix |
3861 push ix |
3861 push ix |
3862 pop hl |
3862 pop hl |
3863 call p7Dsub_7643 |
3863 call p7Dsub_7643 |
3864 add hl, bc |
3864 add hl, bc |
3865 push hl |
3865 push hl |
3866 pop bc |
3866 pop bc |
3867 |
3867 |
3868 p7Dloc_5202: |
3868 p7Dloc_5202: |
3869 push bc |
3869 push bc |
3870 call Page7D_2B80 |
3870 call Page7D_2B80 |
3871 sra c |
3871 sra c |
3872 sra c |
3872 sra c |
3873 sra c |
3873 sra c |
3874 or a |
3874 or a |
3875 adc hl, bc |
3875 adc hl, bc |
3876 pop bc |
3876 pop bc |
3877 ld a, c |
3877 ld a, c |
3878 and 7 |
3878 and 7 |
3879 ld c, a |
3879 ld c, a |
3880 pop af |
3880 pop af |
3881 pop de |
3881 pop de |
3882 ret |
3882 ret |
3883 ; End of function p7Dsub_51DB |
3883 ; End of function p7Dsub_51DB |
3884 |
3884 |
3885 |
3885 |
3886 ; =============== S U B R O U T I N E ======================================= |
3886 ; =============== S U B R O U T I N E ======================================= |
3887 |
3887 |
3888 |
3888 |
3889 Page7D_2B80: |
3889 Page7D_2B80: |
3890 push bc |
3890 push bc |
3891 ld bc, 1FE0h |
3891 ld bc, 1FE0h |
3892 jr p7Dloc_5221 |
3892 jr p7Dloc_5221 |
3893 ; End of function Page7D_2B80 |
3893 ; End of function Page7D_2B80 |
3894 |
3894 |
3895 |
3895 |
3896 ; =============== S U B R O U T I N E ======================================= |
3896 ; =============== S U B R O U T I N E ======================================= |
3897 |
3897 |
3898 |
3898 |
3899 p7Dsub_521D: |
3899 p7Dsub_521D: |
3900 push bc |
3900 push bc |
3901 ld bc, 1F18h |
3901 ld bc, 1F18h |
3902 |
3902 |
3903 p7Dloc_5221: |
3903 p7Dloc_5221: |
3904 ; p7Dsub_522B+4j ... |
3904 ; p7Dsub_522B+4j ... |
3905 push ix |
3905 push ix |
3906 rst 28h |
3906 rst 28h |
3907 ; --------------------------------------------------------------------------- |
3907 ; --------------------------------------------------------------------------- |
3908 .dw 8057h |
3908 .dw 8057h |
3909 ; --------------------------------------------------------------------------- |
3909 ; --------------------------------------------------------------------------- |
3910 add hl, bc |
3910 add hl, bc |
3911 pop ix |
3911 pop ix |
3912 pop bc |
3912 pop bc |
3913 ret |
3913 ret |
3914 ; End of function p7Dsub_521D |
3914 ; End of function p7Dsub_521D |
3915 |
3915 |
3916 |
3916 |
3917 ; =============== S U B R O U T I N E ======================================= |
3917 ; =============== S U B R O U T I N E ======================================= |
3918 |
3918 |
3919 |
3919 |
3920 p7Dsub_522B: |
3920 p7Dsub_522B: |
3921 push bc |
3921 push bc |
3922 ld bc, 1DEAh |
3922 ld bc, 1DEAh |
3923 jr p7Dloc_5221 |
3923 jr p7Dloc_5221 |
3924 ; End of function p7Dsub_522B |
3924 ; End of function p7Dsub_522B |
3925 |
3925 |
3926 |
3926 |
3927 ; =============== S U B R O U T I N E ======================================= |
3927 ; =============== S U B R O U T I N E ======================================= |
3928 |
3928 |
3929 |
3929 |
3930 Page7D_2B68: |
3930 Page7D_2B68: |
3931 call NZIf83Plus |
3931 call NZIf83Plus |
3932 jr nz, p7Dsub_521D |
3932 jr nz, p7Dsub_521D |
3933 ; End of function Page7D_2B68 |
3933 ; End of function Page7D_2B68 |
3934 |
3934 |
3935 |
3935 |
3936 ; =============== S U B R O U T I N E ======================================= |
3936 ; =============== S U B R O U T I N E ======================================= |
3937 |
3937 |
3938 |
3938 |
3939 p7Dsub_5236: |
3939 p7Dsub_5236: |
3940 push bc |
3940 push bc |
3941 ld bc, 1E50h |
3941 ld bc, 1E50h |
3942 jr p7Dloc_5221 |
3942 jr p7Dloc_5221 |
3943 ; End of function p7Dsub_5236 |
3943 ; End of function p7Dsub_5236 |
3944 |
3944 |
3945 |
3945 |
3946 ; =============== S U B R O U T I N E ======================================= |
3946 ; =============== S U B R O U T I N E ======================================= |
3947 |
3947 |
3948 |
3948 |
3949 p7Dsub_523C: |
3949 p7Dsub_523C: |
3950 push bc |
3950 push bc |
3951 ld bc, 1FE0h |
3951 ld bc, 1FE0h |
3952 jr p7Dloc_5221 |
3952 jr p7Dloc_5221 |
3953 ; End of function p7Dsub_523C |
3953 ; End of function p7Dsub_523C |
3954 |
3954 |
3955 |
3955 |
3956 ; =============== S U B R O U T I N E ======================================= |
3956 ; =============== S U B R O U T I N E ======================================= |
3957 |
3957 |
3958 |
3958 |
3959 FindSwapSector: |
3959 FindSwapSector: |
3960 push hl |
3960 push hl |
3961 push bc |
3961 push bc |
3962 push ix |
3962 push ix |
3963 ld a, (OP1) |
3963 ld a, (OP1) |
3964 push af |
3964 push af |
3965 ld a, 8 |
3965 ld a, 8 |
3966 |
3966 |
3967 p7Dloc_524C: |
3967 p7Dloc_524C: |
3968 push af |
3968 push af |
3969 ld hl, 4000h |
3969 ld hl, 4000h |
3970 rst 28h |
3970 rst 28h |
3971 ; --------------------------------------------------------------------------- |
3971 ; --------------------------------------------------------------------------- |
3972 .dw 8051h |
3972 .dw 8051h |
3973 ; --------------------------------------------------------------------------- |
3973 ; --------------------------------------------------------------------------- |
3974 cp 0FEh ; '�' |
3974 cp 0FEh ; '�' |
3975 jr z, p7Dloc_527B |
3975 jr z, p7Dloc_527B |
3976 pop af |
3976 pop af |
3977 add a, 4 |
3977 add a, 4 |
3978 call p7Dsub_75E1 |
3978 call p7Dsub_75E1 |
3979 jr c, p7Dloc_524C |
3979 jr c, p7Dloc_524C |
3980 ld a, 8 |
3980 ld a, 8 |
3981 |
3981 |
3982 p7Dloc_5261: |
3982 p7Dloc_5261: |
3983 push af |
3983 push af |
3984 ld hl, 4000h |
3984 ld hl, 4000h |
3985 rst 28h |
3985 rst 28h |
3986 ; --------------------------------------------------------------------------- |
3986 ; --------------------------------------------------------------------------- |
3987 .dw 8051h |
3987 .dw 8051h |
3988 ; --------------------------------------------------------------------------- |
3988 ; --------------------------------------------------------------------------- |
3989 cp 0FFh |
3989 cp 0FFh |
3990 jr z, p7Dloc_5278 |
3990 jr z, p7Dloc_5278 |
3991 pop af |
3991 pop af |
3992 add a, 4 |
3992 add a, 4 |
3993 call p7Dsub_75E1 |
3993 call p7Dsub_75E1 |
3994 jr c, p7Dloc_5261 |
3994 jr c, p7Dloc_5261 |
3995 ld a, 8 |
3995 ld a, 8 |
3996 jr p7Dloc_5279 |
3996 jr p7Dloc_5279 |
3997 ; --------------------------------------------------------------------------- |
3997 ; --------------------------------------------------------------------------- |
3998 |
3998 |
3999 p7Dloc_5278: |
3999 p7Dloc_5278: |
4000 pop af |
4000 pop af |
4001 |
4001 |
4002 p7Dloc_5279: |
4002 p7Dloc_5279: |
4003 jr p7Dloc_527C |
4003 jr p7Dloc_527C |
4004 ; --------------------------------------------------------------------------- |
4004 ; --------------------------------------------------------------------------- |
4005 |
4005 |
4006 p7Dloc_527B: |
4006 p7Dloc_527B: |
4007 pop af |
4007 pop af |
4008 |
4008 |
4009 p7Dloc_527C: |
4009 p7Dloc_527C: |
4010 ld b, a |
4010 ld b, a |
4011 pop af |
4011 pop af |
4012 ld (OP1), a |
4012 ld (OP1), a |
4013 ld a, b |
4013 ld a, b |
4014 pop ix |
4014 pop ix |
4015 pop bc |
4015 pop bc |
4016 pop hl |
4016 pop hl |
4017 ret |
4017 ret |
4018 ; End of function FindSwapSector |
4018 ; End of function FindSwapSector |
4019 |
4019 |
4020 |
4020 |
4021 ; =============== S U B R O U T I N E ======================================= |
4021 ; =============== S U B R O U T I N E ======================================= |
4024 Page7D_2C40: |
4024 Page7D_2C40: |
4025 push af |
4025 push af |
4026 push hl |
4026 push hl |
4027 push bc |
4027 push bc |
4028 push de |
4028 push de |
4029 ld b, 0FEh ; '�' |
4029 ld b, 0FEh ; '�' |
4030 ld de, 4000h |
4030 ld de, 4000h |
4031 rst 28h |
4031 rst 28h |
4032 ; --------------------------------------------------------------------------- |
4032 ; --------------------------------------------------------------------------- |
4033 .dw 8021h |
4033 .dw 8021h |
4034 ; --------------------------------------------------------------------------- |
4034 ; --------------------------------------------------------------------------- |
4035 pop de |
4035 pop de |
4036 pop bc |
4036 pop bc |
4037 pop hl |
4037 pop hl |
4038 pop af |
4038 pop af |
4039 ret |
4039 ret |
4040 ; End of function Page7D_2C40 |
4040 ; End of function Page7D_2C40 |
4041 |
4041 |
4042 ; --------------------------------------------------------------------------- |
4042 ; --------------------------------------------------------------------------- |
4043 |
4043 |
4044 Page7D_2C22: |
4044 Page7D_2C22: |
4045 rst 28h |
4045 rst 28h |
4046 ; --------------------------------------------------------------------------- |
4046 ; --------------------------------------------------------------------------- |
4047 .dw 8066h |
4047 .dw 8066h |
4048 ; --------------------------------------------------------------------------- |
4048 ; --------------------------------------------------------------------------- |
4049 jr nz, locret_52D8 |
4049 jr nz, locret_52D8 |
4050 ld a, 7Eh ; '~' |
4050 ld a, 7Eh ; '~' |
4051 |
4051 |
4052 p7Dloc_529F: |
4052 p7Dloc_529F: |
4053 ld (appSearchPage), a |
4053 ld (appSearchPage), a |
4054 push hl |
4054 push hl |
4055 push hl |
4055 push hl |
4056 ld a, (appSearchPage) |
4056 ld a, (appSearchPage) |
4057 inc hl |
4057 inc hl |
4058 rst 28h |
4058 rst 28h |
4059 ; --------------------------------------------------------------------------- |
4059 ; --------------------------------------------------------------------------- |
4060 .dw 805Ah |
4060 .dw 805Ah |
4061 ; --------------------------------------------------------------------------- |
4061 ; --------------------------------------------------------------------------- |
4062 or a |
4062 or a |
4063 adc hl, bc |
4063 adc hl, bc |
4064 inc hl |
4064 inc hl |
4065 ld a, (appSearchPage) |
4065 ld a, (appSearchPage) |
4066 rst 28h |
4066 rst 28h |
4067 ; --------------------------------------------------------------------------- |
4067 ; --------------------------------------------------------------------------- |
4068 .dw 805Ah |
4068 .dw 805Ah |
4069 ; --------------------------------------------------------------------------- |
4069 ; --------------------------------------------------------------------------- |
4070 or a |
4070 or a |
4071 adc hl, bc |
4071 adc hl, bc |
4072 pop de |
4072 pop de |
4073 sbc hl, de |
4073 sbc hl, de |
4074 push hl |
4074 push hl |
4075 pop bc |
4075 pop bc |
4076 call p7Dsub_4894 |
4076 call p7Dsub_4894 |
4077 ex de, hl |
4077 ex de, hl |
4078 pop hl |
4078 pop hl |
4079 |
4079 |
4080 p7Dloc_52C2: |
4080 p7Dloc_52C2: |
4081 push bc |
4081 push bc |
4082 ld a, (appSearchPage) |
4082 ld a, (appSearchPage) |
4083 rst 28h |
4083 rst 28h |
4084 ; --------------------------------------------------------------------------- |
4084 ; --------------------------------------------------------------------------- |
4085 .dw 8051h |
4085 .dw 8051h |
4086 ; --------------------------------------------------------------------------- |
4086 ; --------------------------------------------------------------------------- |
4087 ld b, a |
4087 ld b, a |
4088 push hl |
4088 push hl |
4089 call p7Dsub_456D |
4089 call p7Dsub_456D |
4090 pop hl |
4090 pop hl |
4091 pop bc |
4091 pop bc |
4092 dec bc |
4092 dec bc |
4093 ld a, b |
4093 ld a, b |
4094 or c |
4094 or c |
4095 jr z, locret_52D8 |
4095 jr z, locret_52D8 |
4096 inc hl |
4096 inc hl |
4097 jr p7Dloc_52C2 |
4097 jr p7Dloc_52C2 |
4098 ; --------------------------------------------------------------------------- |
4098 ; --------------------------------------------------------------------------- |
4099 |
4099 |
4100 locret_52D8: |
4100 locret_52D8: |
4101 ret |
4101 ret |
4102 |
4102 |
4103 ; =============== S U B R O U T I N E ======================================= |
4103 ; =============== S U B R O U T I N E ======================================= |
4104 |
4104 |
4105 |
4105 |
4106 p7Dsub_52D9: |
4106 p7Dsub_52D9: |
4107 ld de, 8050h |
4107 ld de, 8050h |
4108 ld hl, 4000h |
4108 ld hl, 4000h |
4109 push af |
4109 push af |
4110 or a |
4110 or a |
4111 rst 28h |
4111 rst 28h |
4112 ; --------------------------------------------------------------------------- |
4112 ; --------------------------------------------------------------------------- |
4113 .dw 8075h |
4113 .dw 8075h |
4114 ; --------------------------------------------------------------------------- |
4114 ; --------------------------------------------------------------------------- |
4115 jr nz, p7Dloc_52ED |
4115 jr nz, p7Dloc_52ED |
4116 pop af |
4116 pop af |
4117 call p7Dsub_50C5 |
4117 call p7Dsub_50C5 |
4118 scf |
4118 scf |
4119 ccf |
4119 ccf |
4120 ret |
4120 ret |
4121 ; --------------------------------------------------------------------------- |
4121 ; --------------------------------------------------------------------------- |
4122 |
4122 |
4123 p7Dloc_52ED: |
4123 p7Dloc_52ED: |
4124 pop af |
4124 pop af |
4125 scf |
4125 scf |
4126 ret |
4126 ret |
4127 ; End of function p7Dsub_52D9 |
4127 ; End of function p7Dsub_52D9 |
4128 |
4128 |
4129 ; --------------------------------------------------------------------------- |
4129 ; --------------------------------------------------------------------------- |
4130 |
4130 |
4131 Page7D_2CA0: |
4131 Page7D_2CA0: |
4132 ld de, 8050h |
4132 ld de, 8050h |
4133 push de |
4133 push de |
4134 jp p7Dloc_52F7 |
4134 jp p7Dloc_52F7 |
4135 |
4135 |
4136 p7Dloc_52F7: |
4136 p7Dloc_52F7: |
4137 ld hl, 4000h |
4137 ld hl, 4000h |
4138 pop de |
4138 pop de |
4139 push af |
4139 push af |
4140 or a |
4140 or a |
4141 rst 28h |
4141 rst 28h |
4142 ; --------------------------------------------------------------------------- |
4142 ; --------------------------------------------------------------------------- |
4143 .dw 8075h |
4143 .dw 8075h |
4144 ; --------------------------------------------------------------------------- |
4144 ; --------------------------------------------------------------------------- |
4145 jr nz, p7Dloc_5338 |
4145 jr nz, p7Dloc_5338 |
4146 pop af |
4146 pop af |
4147 ld (Abackup), a |
4147 ld (Abackup), a |
4148 ld a, i |
4148 ld a, i |
4149 di |
4149 di |
4150 push af |
4150 push af |
4151 ld a, (Abackup) |
4151 ld a, (Abackup) |
4152 push af |
4152 push af |
4153 ld a, 1 |
4153 ld a, 1 |
4154 nop |
4154 nop |
4155 di |
4155 di |
4156 nop |
4156 nop |
4157 nop |
4157 nop |
4158 im 1 |
4158 im 1 |
4159 di |
4159 di |
4160 out (14h), a |
4160 out (14h), a |
4161 di |
4161 di |
4162 call checkForFlashTrickery |
4162 call checkForFlashTrickery |
4163 pop af |
4163 pop af |
4164 call p7Dsub_50C5 |
4164 call p7Dsub_50C5 |
4165 call p7Dsub_6006 |
4165 call p7Dsub_6006 |
4166 call relockFlashBack |
4166 call relockFlashBack |
4167 ld (Abackup), a |
4167 ld (Abackup), a |
4168 pop af |
4168 pop af |
4169 jp po, p7Dloc_532F |
4169 jp po, p7Dloc_532F |
4170 ei |
4170 ei |
4171 |
4171 |
4172 p7Dloc_532F: |
4172 p7Dloc_532F: |
4173 ld a, (Abackup) |
4173 ld a, (Abackup) |
4174 call p7Dsub_6011 |
4174 call p7Dsub_6011 |
4175 scf |
4175 scf |
4176 ccf |
4176 ccf |
4177 ret |
4177 ret |
4178 ; --------------------------------------------------------------------------- |
4178 ; --------------------------------------------------------------------------- |
4179 ; START OF FUNCTION CHUNK FOR p7Dsub_533B |
4179 ; START OF FUNCTION CHUNK FOR p7Dsub_533B |
4180 |
4180 |
4181 p7Dloc_5338: |
4181 p7Dloc_5338: |
4182 pop af |
4182 pop af |
4183 scf |
4183 scf |
4184 ret |
4184 ret |
4185 ; END OF FUNCTION CHUNK FOR p7Dsub_533B |
4185 ; END OF FUNCTION CHUNK FOR p7Dsub_533B |
4186 |
4186 |
4187 ; =============== S U B R O U T I N E ======================================= |
4187 ; =============== S U B R O U T I N E ======================================= |
4381 push hl |
4381 push hl |
4382 push bc |
4382 push bc |
4383 push ix |
4383 push ix |
4384 |
4384 |
4385 p7Dloc_5411: |
4385 p7Dloc_5411: |
4386 inc ix |
4386 inc ix |
4387 push ix |
4387 push ix |
4388 pop hl |
4388 pop hl |
4389 call p7Dsub_7643 |
4389 call p7Dsub_7643 |
4390 or a |
4390 or a |
4391 adc hl, bc |
4391 adc hl, bc |
4392 push hl |
4392 push hl |
4393 pop bc |
4393 pop bc |
4394 |
4394 |
4395 p7Dloc_541E: |
4395 p7Dloc_541E: |
4396 push bc |
4396 push bc |
4397 call Page7D_2B80 |
4397 call Page7D_2B80 |
4398 sra c |
4398 sra c |
4399 sra c |
4399 sra c |
4400 sra c |
4400 sra c |
4401 or a |
4401 or a |
4402 adc hl, bc |
4402 adc hl, bc |
4403 pop bc |
4403 pop bc |
4404 ld a, c |
4404 ld a, c |
4405 and 7 |
4405 and 7 |
4406 call p7Dsub_7BCC |
4406 call p7Dsub_7BCC |
4407 ld c, a |
4407 ld c, a |
4408 call p7Dsub_4566 |
4408 call p7Dsub_4566 |
4409 and c |
4409 and c |
4410 pop ix |
4410 pop ix |
4411 pop bc |
4411 pop bc |
4412 pop hl |
4412 pop hl |
4413 pop de |
4413 pop de |
4414 ret |
4414 ret |
4415 ; End of function p7Dsub_540C |
4415 ; End of function p7Dsub_540C |
4416 |
4416 |
4417 ; --------------------------------------------------------------------------- |
4417 ; --------------------------------------------------------------------------- |
4418 |
4418 |
4419 p7Dloc_543D: |
4419 p7Dloc_543D: |
4420 push af |
4420 push af |
4421 ld a, 1 |
4421 ld a, 1 |
4422 nop |
4422 nop |
4423 di |
4423 di |
4424 nop |
4424 nop |
4425 nop |
4425 nop |
4426 im 1 |
4426 im 1 |
4427 di |
4427 di |
4428 out (14h), a |
4428 out (14h), a |
4429 di |
4429 di |
4430 call checkForFlashTrickery |
4430 call checkForFlashTrickery |
4431 pop af |
4431 pop af |
4432 ld b, a |
4432 ld b, a |
4433 ld de, 8060h |
4433 ld de, 8060h |
4434 ld hl, 4000h |
4434 ld hl, 4000h |
4435 or a |
4435 or a |
4436 rst 28h |
4436 rst 28h |
4437 ; --------------------------------------------------------------------------- |
4437 ; --------------------------------------------------------------------------- |
4438 .dw 8075h |
4438 .dw 8075h |
4439 ; --------------------------------------------------------------------------- |
4439 ; --------------------------------------------------------------------------- |
4440 jr nz, p7Dloc_549D |
4440 jr nz, p7Dloc_549D |
4441 call p7Dsub_75EC |
4441 call p7Dsub_75EC |
4442 ld c, b |
4442 ld c, b |
4443 sub c |
4443 sub c |
4444 ld bc, 0 |
4444 ld bc, 0 |
4445 ld c, a |
4445 ld c, a |
4446 sla c |
4446 sla c |
4447 call Page7D_2B68 |
4447 call Page7D_2B68 |
4448 or a |
4448 or a |
4449 adc hl, bc |
4449 adc hl, bc |
4450 ld a, 7Eh ; '~' |
4450 ld a, 7Eh ; '~' |
4451 ld de, OP1 |
4451 ld de, OP1 |
4452 ld bc, 2 |
4452 ld bc, 2 |
4453 rst 28h |
4453 rst 28h |
4454 ; --------------------------------------------------------------------------- |
4454 ; --------------------------------------------------------------------------- |
4455 .dw 8054h |
4455 .dw 8054h |
4456 ; --------------------------------------------------------------------------- |
4456 ; --------------------------------------------------------------------------- |
4457 ld a, (OP1) |
4457 ld a, (OP1) |
4458 ld bc, 0 |
4458 ld bc, 0 |
4459 |
4459 |
4460 p7Dloc_547D: |
4460 p7Dloc_547D: |
4461 cp 0 |
4461 cp 0 |
4462 jr z, p7Dloc_5486 |
4462 jr z, p7Dloc_5486 |
4463 srl a |
4463 srl a |
4464 inc c |
4464 inc c |
4465 jr p7Dloc_547D |
4465 jr p7Dloc_547D |
4466 ; --------------------------------------------------------------------------- |
4466 ; --------------------------------------------------------------------------- |
4467 |
4467 |
4468 p7Dloc_5486: |
4468 p7Dloc_5486: |
4469 ld a, (OP1+1) |
4469 ld a, (OP1+1) |
4470 |
4470 |
4471 p7Dloc_5489: |
4471 p7Dloc_5489: |
4472 cp 0 |
4472 cp 0 |
4473 jr z, p7Dloc_5492 |
4473 jr z, p7Dloc_5492 |
4474 srl a |
4474 srl a |
4475 inc c |
4475 inc c |
4476 jr p7Dloc_5489 |
4476 jr p7Dloc_5489 |
4477 ; --------------------------------------------------------------------------- |
4477 ; --------------------------------------------------------------------------- |
4478 |
4478 |
4479 p7Dloc_5492: |
4479 p7Dloc_5492: |
4480 ld a, c |
4480 ld a, c |
4481 ld (OP1), a |
4481 ld (OP1), a |
4482 ld a, 0 |
4482 ld a, 0 |
4483 ld (OP1+1), a |
4483 ld (OP1+1), a |
4484 bit 7, a |
4484 bit 7, a |
4485 |
4485 |
4486 p7Dloc_549D: |
4486 p7Dloc_549D: |
4487 jp relockFlashBack |
4487 jp relockFlashBack |
4488 ; --------------------------------------------------------------------------- |
4488 ; --------------------------------------------------------------------------- |
4489 |
4489 |
4490 p7Dloc_54A0: |
4490 p7Dloc_54A0: |
4491 ld b, a |
4491 ld b, a |
4492 ld de, 8050h |
4492 ld de, 8050h |
4493 ld hl, 4000h |
4493 ld hl, 4000h |
4494 or a |
4494 or a |
4495 rst 28h |
4495 rst 28h |
4496 ; --------------------------------------------------------------------------- |
4496 ; --------------------------------------------------------------------------- |
4497 .dw 8075h |
4497 .dw 8075h |
4498 ; --------------------------------------------------------------------------- |
4498 ; --------------------------------------------------------------------------- |
4499 jr nz, locret_54BE |
4499 jr nz, locret_54BE |
4500 ld a, b |
4500 ld a, b |
4501 push af |
4501 push af |
4502 inc hl |
4502 inc hl |
4503 rst 28h |
4503 rst 28h |
4504 ; --------------------------------------------------------------------------- |
4504 ; --------------------------------------------------------------------------- |
4505 .dw 805Ah |
4505 .dw 805Ah |
4506 ; --------------------------------------------------------------------------- |
4506 ; --------------------------------------------------------------------------- |
4507 pop af |
4507 pop af |
4508 ld de, OP1 |
4508 ld de, OP1 |
4509 rst 28h |
4509 rst 28h |
4510 ; --------------------------------------------------------------------------- |
4510 ; --------------------------------------------------------------------------- |
4511 .dw 8054h |
4511 .dw 8054h |
4512 ; --------------------------------------------------------------------------- |
4512 ; --------------------------------------------------------------------------- |
4513 ld a, 0 |
4513 ld a, 0 |
4514 bit 7, a |
4514 bit 7, a |
4515 |
4515 |
4516 locret_54BE: |
4516 locret_54BE: |
4517 ret |
4517 ret |
4518 ; --------------------------------------------------------------------------- |
4518 ; --------------------------------------------------------------------------- |
4519 push hl |
4519 push hl |
4520 ld de, 8020h |
4520 ld de, 8020h |
4521 ld hl, 4000h |
4521 ld hl, 4000h |
4522 ld a, 7Ah ; 'z' |
4522 ld a, 7Ah ; 'z' |
4523 or a |
4523 or a |
4524 rst 28h |
4524 rst 28h |
4525 ; --------------------------------------------------------------------------- |
4525 ; --------------------------------------------------------------------------- |
4526 .dw 8075h |
4526 .dw 8075h |
4527 ; --------------------------------------------------------------------------- |
4527 ; --------------------------------------------------------------------------- |
4528 ld a, 7Ah ; 'z' |
4528 ld a, 7Ah ; 'z' |
4529 rst 28h |
4529 rst 28h |
4530 ; --------------------------------------------------------------------------- |
4530 ; --------------------------------------------------------------------------- |
4531 .dw 8051h |
4531 .dw 8051h |
4532 ; --------------------------------------------------------------------------- |
4532 ; --------------------------------------------------------------------------- |
4533 ld d, a |
4533 ld d, a |
4534 ld a, 7Ah ; 'z' |
4534 ld a, 7Ah ; 'z' |
4535 rst 28h |
4535 rst 28h |
4536 ; --------------------------------------------------------------------------- |
4536 ; --------------------------------------------------------------------------- |
4537 .dw 8051h |
4537 .dw 8051h |
4538 ; --------------------------------------------------------------------------- |
4538 ; --------------------------------------------------------------------------- |
4539 ld e, a |
4539 ld e, a |
4540 pop hl |
4540 pop hl |
4541 ret |
4541 ret |
4542 ; --------------------------------------------------------------------------- |
4542 ; --------------------------------------------------------------------------- |
4543 |
4543 |
4544 Page7D_3C66: |
4544 Page7D_3C66: |
4545 ld (Abackup), a |
4545 ld (Abackup), a |
4546 ld a, i |
4546 ld a, i |
4547 di |
4547 di |
4548 push af |
4548 push af |
4549 ld a, (Abackup) |
4549 ld a, (Abackup) |
4550 push hl |
4550 push hl |
4551 push de |
4551 push de |
4552 push af |
4552 push af |
4553 ld a, 1 |
4553 ld a, 1 |
4554 nop |
4554 nop |
4555 di |
4555 di |
4556 nop |
4556 nop |
4557 nop |
4557 nop |
4558 im 1 |
4558 im 1 |
4559 di |
4559 di |
4560 out (14h), a |
4560 out (14h), a |
4561 di |
4561 di |
4562 call checkForFlashTrickery |
4562 call checkForFlashTrickery |
4563 pop af |
4563 pop af |
4564 ld de, 510h |
4564 ld de, 510h |
4565 push de |
4565 push de |
4566 jr p7Dloc_54FD |
4566 jr p7Dloc_54FD |
4567 |
4567 |
4568 p7Dloc_54FD: |
4568 p7Dloc_54FD: |
4569 call p7Dsub_70D1 |
4569 call p7Dsub_70D1 |
4570 jr nz, p7Dloc_551F |
4570 jr nz, p7Dloc_551F |
4571 ld de, 500h |
4571 ld de, 500h |
4572 call p7Dsub_777E |
4572 call p7Dsub_777E |
4573 jr nz, p7Dloc_551F |
4573 jr nz, p7Dloc_551F |
4574 call p7Dsub_4574 |
4574 call p7Dsub_4574 |
4575 ld a, 7Eh ; '~' |
4575 ld a, 7Eh ; '~' |
4576 pop de |
4576 pop de |
4577 rst 28h |
4577 rst 28h |
4578 ; --------------------------------------------------------------------------- |
4578 ; --------------------------------------------------------------------------- |
4579 .dw 8030h |
4579 .dw 8030h |
4580 ; --------------------------------------------------------------------------- |
4580 ; --------------------------------------------------------------------------- |
4581 jr nz, p7Dloc_5520 |
4581 jr nz, p7Dloc_5520 |
4582 ld de, tempSwapArea |
4582 ld de, tempSwapArea |
4583 ld b, c |
4583 ld b, c |
4584 push bc |
4584 push bc |
4585 ld a, 7Eh ; '~' |
4585 ld a, 7Eh ; '~' |
4586 call p7Dsub_761F |
4586 call p7Dsub_761F |
4587 |
4587 |
4588 p7Dloc_551F: |
4588 p7Dloc_551F: |
4589 pop bc |
4589 pop bc |
4590 |
4590 |
4591 p7Dloc_5520: |
4591 p7Dloc_5520: |
4592 pop de |
4592 pop de |
4593 pop hl |
4593 pop hl |
4594 jp p7Dloc_53D1 |
4594 jp p7Dloc_53D1 |
4595 |
4595 |
4596 ; =============== S U B R O U T I N E ======================================= |
4596 ; =============== S U B R O U T I N E ======================================= |
4597 |
4597 |
4598 |
4598 |
4599 p7Dsub_5525: |
4599 p7Dsub_5525: |
4600 push af |
4600 push af |
4601 ld hl, 4000h |
4601 ld hl, 4000h |
4602 inc hl |
4602 inc hl |
4603 rst 28h |
4603 rst 28h |
4604 ; --------------------------------------------------------------------------- |
4604 ; --------------------------------------------------------------------------- |
4605 .dw _LoadAIndPaged |
4605 .dw _LoadAIndPaged |
4606 ; --------------------------------------------------------------------------- |
4606 ; --------------------------------------------------------------------------- |
4607 call p7Dsub_75FD |
4607 call p7Dsub_75FD |
4608 jp nz, p7Dloc_55C8 |
4608 jp nz, p7Dloc_55C8 |
4609 inc hl |
4609 inc hl |
4610 pop af |
4610 pop af |
4611 call p7Dsub_761F |
4611 call p7Dsub_761F |
4612 ld bc, 4000h |
4612 ld bc, 4000h |
4613 or a |
4613 or a |
4614 sbc hl, bc |
4614 sbc hl, bc |
4615 push hl |
4615 push hl |
4616 push af |
4616 push af |
4617 ld hl, 4000h |
4617 ld hl, 4000h |
4618 ld de, 8080h |
4618 ld de, 8080h |
4619 or a |
4619 or a |
4620 rst 28h |
4620 rst 28h |
4621 ; --------------------------------------------------------------------------- |
4621 ; --------------------------------------------------------------------------- |
4622 .dw 8075h |
4622 .dw 8075h |
4623 ; --------------------------------------------------------------------------- |
4623 ; --------------------------------------------------------------------------- |
4624 inc hl |
4624 inc hl |
4625 pop af |
4625 pop af |
4626 push af |
4626 push af |
4627 rst 28h |
4627 rst 28h |
4628 ; --------------------------------------------------------------------------- |
4628 ; --------------------------------------------------------------------------- |
4629 .dw 805Ah |
4629 .dw 805Ah |
4630 ; --------------------------------------------------------------------------- |
4630 ; --------------------------------------------------------------------------- |
4631 pop af |
4631 pop af |
4632 push af |
4632 push af |
4633 rst 28h |
4633 rst 28h |
4634 ; --------------------------------------------------------------------------- |
4634 ; --------------------------------------------------------------------------- |
4635 .dw 8051h |
4635 .dw 8051h |
4636 ; --------------------------------------------------------------------------- |
4636 ; --------------------------------------------------------------------------- |
4637 |
4637 |
4638 p7Dloc_5555: ; DATA XREF: seg001:76C0w |
4638 p7Dloc_5555: ; DATA XREF: seg001:76C0w |
4639 dec a |
4639 dec a |
4640 or a |
4640 or a |
4641 jr z, p7Dloc_5574 |
4641 jr z, p7Dloc_5574 |
4642 ld c, a |
4642 ld c, a |
4643 pop af |
4643 pop af |
4644 sub c |
4644 sub c |
4645 push af |
4645 push af |
4646 ld hl, (unk_83A1) |
4646 ld hl, (unk_83A1) |
4647 call p7Dsub_57C5 |
4647 call p7Dsub_57C5 |
4648 ld b, c |
4648 ld b, c |
4649 |
4649 |
4650 p7Dloc_5564: |
4650 p7Dloc_5564: |
4651 push bc |
4651 push bc |
4652 ld bc, 4000h |
4652 ld bc, 4000h |
4653 or a |
4653 or a |
4654 sbc hl, bc |
4654 sbc hl, bc |
4655 pop bc |
4655 pop bc |
4656 djnz p7Dloc_5564 |
4656 djnz p7Dloc_5564 |
4657 call p7Dsub_57C5 |
4657 call p7Dsub_57C5 |
4658 ld (unk_83A1), hl |
4658 ld (unk_83A1), hl |
4659 |
4659 |
4660 p7Dloc_5574: |
4660 p7Dloc_5574: |
4661 ld hl, (unk_83A1) |
4661 ld hl, (unk_83A1) |
4662 call p7Dsub_57C5 |
4662 call p7Dsub_57C5 |
4663 push hl |
4663 push hl |
4664 pop bc |
4664 pop bc |
4665 ld hl, 4000h |
4665 ld hl, 4000h |
4666 or a |
4666 or a |
4667 adc hl, bc |
4667 adc hl, bc |
4668 pop af |
4668 pop af |
4669 pop bc |
4669 pop bc |
4670 or a |
4670 or a |
4671 adc hl, bc |
4671 adc hl, bc |
4672 push af |
4672 push af |
4673 |
4673 |
4674 p7Dloc_5588: |
4674 p7Dloc_5588: |
4675 rst 28h |
4675 rst 28h |
4676 ; --------------------------------------------------------------------------- |
4676 ; --------------------------------------------------------------------------- |
4677 .dw 8051h |
4677 .dw 8051h |
4678 ; --------------------------------------------------------------------------- |
4678 ; --------------------------------------------------------------------------- |
4679 cp 2 |
4679 cp 2 |
4680 jr nz, p7Dloc_55C8 |
4680 jr nz, p7Dloc_55C8 |
4681 pop af |
4681 pop af |
4682 push hl |
4682 push hl |
4683 push af |
4683 push af |
4684 inc hl |
4684 inc hl |
4685 rst 28h |
4685 rst 28h |
4686 ; --------------------------------------------------------------------------- |
4686 ; --------------------------------------------------------------------------- |
4687 .dw 8051h |
4687 .dw 8051h |
4688 ; --------------------------------------------------------------------------- |
4688 ; --------------------------------------------------------------------------- |
4689 and 0F0h ; '�' |
4689 and 0F0h ; '�' |
4690 cp 20h ; ' ' |
4690 cp 20h ; ' ' |
4691 jr z, p7Dloc_55A8 |
4691 jr z, p7Dloc_55A8 |
4692 pop af |
4692 pop af |
4693 pop hl |
4693 pop hl |
4694 push af |
4694 push af |
4695 inc hl |
4695 inc hl |
4696 rst 28h |
4696 rst 28h |
4697 ; --------------------------------------------------------------------------- |
4697 ; --------------------------------------------------------------------------- |
4698 .dw 805Ah |
4698 .dw 805Ah |
4699 ; --------------------------------------------------------------------------- |
4699 ; --------------------------------------------------------------------------- |
4700 or a |
4700 or a |
4701 adc hl, bc |
4701 adc hl, bc |
4702 jr p7Dloc_5588 |
4702 jr p7Dloc_5588 |
4703 ; --------------------------------------------------------------------------- |
4703 ; --------------------------------------------------------------------------- |
4704 |
4704 |
4705 p7Dloc_55A8: |
4705 p7Dloc_55A8: |
4706 pop af |
4706 pop af |
4707 push af |
4707 push af |
4708 rst 28h |
4708 rst 28h |
4709 ; --------------------------------------------------------------------------- |
4709 ; --------------------------------------------------------------------------- |
4710 .dw 805Ah |
4710 .dw 805Ah |
4711 ; --------------------------------------------------------------------------- |
4711 ; --------------------------------------------------------------------------- |
4712 dec hl |
4712 dec hl |
4713 inc bc |
4713 inc bc |
4714 ld de, tempSwapArea |
4714 ld de, tempSwapArea |
4715 |
4715 |
4716 p7Dloc_55B2: |
4716 p7Dloc_55B2: |
4717 pop af |
4717 pop af |
4718 push af |
4718 push af |
4719 rst 28h |
4719 rst 28h |
4720 ; --------------------------------------------------------------------------- |
4720 ; --------------------------------------------------------------------------- |
4721 .dw 8051h |
4721 .dw 8051h |
4722 ; --------------------------------------------------------------------------- |
4722 ; --------------------------------------------------------------------------- |
4723 ld (de), a |
4723 ld (de), a |
4724 inc hl |
4724 inc hl |
4725 inc de |
4725 inc de |
4726 dec bc |
4726 dec bc |
4727 ld a, c |
4727 ld a, c |
4728 or b |
4728 or b |
4729 jr nz, p7Dloc_55B2 |
4729 jr nz, p7Dloc_55B2 |
4730 pop af |
4730 pop af |
4731 pop hl |
4731 pop hl |
4732 ld b, a |
4732 ld b, a |
4733 ld a, 0 |
4733 ld a, 0 |
4734 bit 7, a |
4734 bit 7, a |
4735 ld a, b |
4735 ld a, b |
4736 ret |
4736 ret |
4737 ; --------------------------------------------------------------------------- |
4737 ; --------------------------------------------------------------------------- |
4738 |
4738 |
4739 p7Dloc_55C8: |
4739 p7Dloc_55C8: |
4740 pop af |
4740 pop af |
4741 ld a, 0FFh |
4741 ld a, 0FFh |
4742 bit 7, a |
4742 bit 7, a |
4743 ret |
4743 ret |
4744 ; End of function p7Dsub_5525 |
4744 ; End of function p7Dsub_5525 |
4745 |
4745 |
4746 |
4746 |
4747 ; =============== S U B R O U T I N E ======================================= |
4747 ; =============== S U B R O U T I N E ======================================= |
4748 |
4748 |
4749 |
4749 |
4750 p7Dsub_55CE: |
4750 p7Dsub_55CE: |
4751 inc hl |
4751 inc hl |
4752 push af |
4752 push af |
4753 rst 28h |
4753 rst 28h |
4754 ; --------------------------------------------------------------------------- |
4754 ; --------------------------------------------------------------------------- |
4755 .dw 805Ah |
4755 .dw 805Ah |
4756 ; --------------------------------------------------------------------------- |
4756 ; --------------------------------------------------------------------------- |
4757 or a |
4757 or a |
4758 adc hl, bc |
4758 adc hl, bc |
4759 |
4759 |
4760 p7Dloc_55D6: |
4760 p7Dloc_55D6: |
4761 pop af |
4761 pop af |
4762 push af |
4762 push af |
4763 rst 28h |
4763 rst 28h |
4764 ; --------------------------------------------------------------------------- |
4764 ; --------------------------------------------------------------------------- |
4765 .dw 8051h |
4765 .dw 8051h |
4766 ; --------------------------------------------------------------------------- |
4766 ; --------------------------------------------------------------------------- |
4767 cp 2 |
4767 cp 2 |
4768 jr nz, p7Dloc_5609 |
4768 jr nz, p7Dloc_5609 |
4769 inc hl |
4769 inc hl |
4770 pop af |
4770 pop af |
4771 push af |
4771 push af |
4772 rst 28h |
4772 rst 28h |
4773 ; --------------------------------------------------------------------------- |
4773 ; --------------------------------------------------------------------------- |
4774 .dw 8051h |
4774 .dw 8051h |
4775 ; --------------------------------------------------------------------------- |
4775 ; --------------------------------------------------------------------------- |
4776 and 0F0h ; '�' |
4776 and 0F0h ; '�' |
4777 cp 0 |
4777 cp 0 |
4778 jr z, p7Dloc_55F5 |
4778 jr z, p7Dloc_55F5 |
4779 pop af |
4779 pop af |
4780 push af |
4780 push af |
4781 rst 28h |
4781 rst 28h |
4782 ; --------------------------------------------------------------------------- |
4782 ; --------------------------------------------------------------------------- |
4783 .dw 805Ah |
4783 .dw 805Ah |
4784 ; --------------------------------------------------------------------------- |
4784 ; --------------------------------------------------------------------------- |
4785 or a |
4785 or a |
4786 adc hl, bc |
4786 adc hl, bc |
4787 jr p7Dloc_55D6 |
4787 jr p7Dloc_55D6 |
4788 ; --------------------------------------------------------------------------- |
4788 ; --------------------------------------------------------------------------- |
4789 |
4789 |
4790 p7Dloc_55F5: |
4790 p7Dloc_55F5: |
4791 pop af |
4791 pop af |
4792 rst 28h |
4792 rst 28h |
4793 ; --------------------------------------------------------------------------- |
4793 ; --------------------------------------------------------------------------- |
4794 .dw 805Ah |
4794 .dw 805Ah |
4795 ; --------------------------------------------------------------------------- |
4795 ; --------------------------------------------------------------------------- |
4796 dec hl |
4796 dec hl |
4797 inc bc |
4797 inc bc |
4798 ld de, tempSwapArea |
4798 ld de, tempSwapArea |
4799 rst 28h |
4799 rst 28h |
4800 ; --------------------------------------------------------------------------- |
4800 ; --------------------------------------------------------------------------- |
4801 .dw 8054h |
4801 .dw 8054h |
4802 ; --------------------------------------------------------------------------- |
4802 ; --------------------------------------------------------------------------- |
4803 ld b, c |
4803 ld b, c |
4804 ld c, 0 |
4804 ld c, 0 |
4805 ld a, 0 |
4805 ld a, 0 |
4806 bit 7, a |
4806 bit 7, a |
4807 ret |
4807 ret |
4808 ; --------------------------------------------------------------------------- |
4808 ; --------------------------------------------------------------------------- |
4809 |
4809 |
4810 p7Dloc_5609: |
4810 p7Dloc_5609: |
4811 pop af |
4811 pop af |
4812 ret |
4812 ret |
4813 ; End of function p7Dsub_55CE |
4813 ; End of function p7Dsub_55CE |
4814 |
4814 |
4815 ; --------------------------------------------------------------------------- |
4815 ; --------------------------------------------------------------------------- |
4816 |
4816 |
4817 p7Dloc_560B: |
4817 p7Dloc_560B: |
4818 |
4818 |
4819 push de |
4819 push de |
4820 push hl |
4820 push hl |
4821 push bc |
4821 push bc |
4822 rst 28h |
4822 rst 28h |
4823 ; --------------------------------------------------------------------------- |
4823 ; --------------------------------------------------------------------------- |
4824 .dw 807Eh |
4824 .dw 807Eh |
4825 ; --------------------------------------------------------------------------- |
4825 ; --------------------------------------------------------------------------- |
4826 jr nz, p7Dloc_5640 |
4826 jr nz, p7Dloc_5640 |
4827 push af |
4827 push af |
4828 ld a, 1 |
4828 ld a, 1 |
4829 nop |
4829 nop |
4830 di |
4830 di |
4831 nop |
4831 nop |
4832 nop |
4832 nop |
4833 im 1 |
4833 im 1 |
4834 di |
4834 di |
4835 out (14h), a |
4835 out (14h), a |
4836 di |
4836 di |
4837 call checkForFlashTrickery |
4837 call checkForFlashTrickery |
4838 pop af |
4838 pop af |
4839 rst 28h |
4839 rst 28h |
4840 ; --------------------------------------------------------------------------- |
4840 ; --------------------------------------------------------------------------- |
4841 .dw 8057h |
4841 .dw 8057h |
4842 ; --------------------------------------------------------------------------- |
4842 ; --------------------------------------------------------------------------- |
4843 ld a, 7Eh ; '~' |
4843 ld a, 7Eh ; '~' |
4844 ld de, 410h |
4844 ld de, 410h |
4845 rst 28h |
4845 rst 28h |
4846 ; --------------------------------------------------------------------------- |
4846 ; --------------------------------------------------------------------------- |
4847 .dw 8027h |
4847 .dw 8027h |
4848 ; --------------------------------------------------------------------------- |
4848 ; --------------------------------------------------------------------------- |
4849 jr nz, p7Dloc_5640 |
4849 jr nz, p7Dloc_5640 |
4850 call p7Dsub_4574 |
4850 call p7Dsub_4574 |
4851 ld a, 7Eh ; '~' |
4851 ld a, 7Eh ; '~' |
4852 ld de, 849Eh |
4852 ld de, 849Eh |
4853 rst 28h |
4853 rst 28h |
4854 ; --------------------------------------------------------------------------- |
4854 ; --------------------------------------------------------------------------- |
4855 .dw 8054h |
4855 .dw 8054h |
4856 ; --------------------------------------------------------------------------- |
4856 ; --------------------------------------------------------------------------- |
4857 ld a, 0 |
4857 ld a, 0 |
4858 bit 7, a |
4858 bit 7, a |
4859 |
4859 |
4860 p7Dloc_5640: |
4860 p7Dloc_5640: |
4861 pop bc |
4861 pop bc |
4862 pop hl |
4862 pop hl |
4863 pop de |
4863 pop de |
4864 jp relockFlashBack |
4864 jp relockFlashBack |
4865 ; --------------------------------------------------------------------------- |
4865 ; --------------------------------------------------------------------------- |
4866 |
4866 |
4867 Page7D_2B98: |
4867 Page7D_2B98: |
4868 call Page0Call_23DE |
4868 call Page0Call_23DE |
4869 jr nc, p7Dloc_5650 |
4869 jr nc, p7Dloc_5650 |
4870 call Page0Call_23E3 |
4870 call Page0Call_23E3 |
4871 jr p7Dloc_565A |
4871 jr p7Dloc_565A |
4872 ; --------------------------------------------------------------------------- |
4872 ; --------------------------------------------------------------------------- |
4873 |
4873 |
4874 p7Dloc_5650: |
4874 p7Dloc_5650: |
4875 call p7Dloc_560B |
4875 call p7Dloc_560B |
4876 jr nz, p7Dloc_5695 |
4876 jr nz, p7Dloc_5695 |
4877 call Page7D_2C34 |
4877 call Page7D_2C34 |
4878 jr nz, p7Dloc_5695 |
4878 jr nz, p7Dloc_5695 |
4879 |
4879 |
4880 p7Dloc_565A: |
4880 p7Dloc_565A: |
4881 ld a, 1 |
4881 ld a, 1 |
4882 call Page0Call_38EB |
4882 call Page0Call_38EB |
4883 push de |
4883 push de |
4884 push hl |
4884 push hl |
4885 call p7Dloc_560B |
4885 call p7Dloc_560B |
4886 jr nz, p7Dloc_5689 |
4886 jr nz, p7Dloc_5689 |
4887 call OP1Set0 |
4887 call OP1Set0 |
4888 ld de, OP1M |
4888 ld de, OP1M |
4889 ld hl, OP4 |
4889 ld hl, OP4 |
4890 ld c, 7 |
4890 ld c, 7 |
4891 ld b, 0 |
4891 ld b, 0 |
4892 ldir |
4892 ldir |
4893 pop hl |
4893 pop hl |
4894 pop de |
4894 pop de |
4895 push de |
4895 push de |
4896 call Page0Call_3AE9 |
4896 call Page0Call_3AE9 |
4897 ex de, hl |
4897 ex de, hl |
4898 ld hl, OP1 |
4898 ld hl, OP1 |
4899 ld a, (hl) |
4899 ld a, (hl) |
4900 call mov9B2 |
4900 call mov9B2 |
4901 pop hl |
4901 pop hl |
4902 ld a, 0 |
4902 ld a, 0 |
4903 bit 7, a |
4903 bit 7, a |
4904 ret |
4904 ret |
4905 ; --------------------------------------------------------------------------- |
4905 ; --------------------------------------------------------------------------- |
4906 |
4906 |
4907 p7Dloc_5689: |
4907 p7Dloc_5689: |
4908 pop hl |
4908 pop hl |
4909 pop hl |
4909 pop hl |
4910 push bc |
4910 push bc |
4911 push de |
4911 push de |
4912 push hl |
4912 push hl |
4913 rst 28h |
4913 rst 28h |
4914 ; --------------------------------------------------------------------------- |
4914 ; --------------------------------------------------------------------------- |
4915 .dw 807Eh |
4915 .dw 807Eh |
4916 ; --------------------------------------------------------------------------- |
4916 ; --------------------------------------------------------------------------- |
4917 pop hl |
4917 pop hl |
4918 pop de |
4918 pop de |
4919 pop bc |
4919 pop bc |
4920 ret |
4920 ret |
4921 ; --------------------------------------------------------------------------- |
4921 ; --------------------------------------------------------------------------- |
4922 |
4922 |
4923 p7Dloc_5695: |
4923 p7Dloc_5695: |
4924 push bc |
4924 push bc |
4925 push de |
4925 push de |
4926 push hl |
4926 push hl |
4927 rst 28h |
4927 rst 28h |
4928 ; --------------------------------------------------------------------------- |
4928 ; --------------------------------------------------------------------------- |
4929 .dw 807Eh |
4929 .dw 807Eh |
4930 ; --------------------------------------------------------------------------- |
4930 ; --------------------------------------------------------------------------- |
4931 pop hl |
4931 pop hl |
4932 pop de |
4932 pop de |
4933 pop bc |
4933 pop bc |
4934 ex de, hl |
4934 ex de, hl |
4935 ret |
4935 ret |
4936 |
4936 |
4937 ; =============== S U B R O U T I N E ======================================= |
4937 ; =============== S U B R O U T I N E ======================================= |
4938 |
4938 |
4939 |
4939 |
4940 Page7D_2C34: |
4940 Page7D_2C34: |
4941 push bc |
4941 push bc |
4942 push hl |
4942 push hl |
4943 push de |
4943 push de |
4944 call Page0Call_23DE |
4944 call Page0Call_23DE |
4945 ex de, hl |
4945 ex de, hl |
4946 ld c, (hl) |
4946 ld c, (hl) |
4947 inc hl |
4947 inc hl |
4948 ld b, (hl) |
4948 ld b, (hl) |
4949 dec hl |
4949 dec hl |
4950 ex de, hl |
4950 ex de, hl |
4951 ld a, b |
4951 ld a, b |
4952 or c |
4952 or c |
4953 jr z, p7Dloc_56D6 |
4953 jr z, p7Dloc_56D6 |
4954 ld hl, 1 |
4954 ld hl, 1 |
4955 |
4955 |
4956 p7Dloc_56B3: |
4956 p7Dloc_56B3: |
4957 push de |
4957 push de |
4958 push hl |
4958 push hl |
4959 push bc |
4959 push bc |
4960 call Page0Call_3B07 |
4960 call Page0Call_3B07 |
4961 ld de, OP4 |
4961 ld de, OP4 |
4962 ld hl, OP2M |
4962 ld hl, OP2M |
4963 ld b, 7 |
4963 ld b, 7 |
4964 |
4964 |
4965 p7Dloc_56C1: |
4965 p7Dloc_56C1: |
4966 ld a, (de) |
4966 ld a, (de) |
4967 cp (hl) |
4967 cp (hl) |
4968 jr nz, p7Dloc_56CB |
4968 jr nz, p7Dloc_56CB |
4969 inc de |
4969 inc de |
4970 inc hl |
4970 inc hl |
4971 djnz p7Dloc_56C1 |
4971 djnz p7Dloc_56C1 |
4972 jr p7Dloc_56DA |
4972 jr p7Dloc_56DA |
4973 ; --------------------------------------------------------------------------- |
4973 ; --------------------------------------------------------------------------- |
4974 |
4974 |
4975 p7Dloc_56CB: |
4975 p7Dloc_56CB: |
4976 pop bc |
4976 pop bc |
4977 pop hl |
4977 pop hl |
4978 pop de |
4978 pop de |
4979 inc hl |
4979 inc hl |
4980 dec bc |
4980 dec bc |
4981 ld a, c |
4981 ld a, c |
4982 or b |
4982 or b |
4983 jr z, p7Dloc_56D6 |
4983 jr z, p7Dloc_56D6 |
4984 jr p7Dloc_56B3 |
4984 jr p7Dloc_56B3 |
4985 ; --------------------------------------------------------------------------- |
4985 ; --------------------------------------------------------------------------- |
4986 |
4986 |
4987 p7Dloc_56D6: |
4987 p7Dloc_56D6: |
4988 ; Page7D_2C34+32j |
4988 ; Page7D_2C34+32j |
4989 pop de |
4989 pop de |
4990 pop hl |
4990 pop hl |
4991 pop bc |
4991 pop bc |
4992 ret |
4992 ret |
4993 ; --------------------------------------------------------------------------- |
4993 ; --------------------------------------------------------------------------- |
4994 |
4994 |
4995 p7Dloc_56DA: |
4995 p7Dloc_56DA: |
4996 ld a, 0FFh |
4996 ld a, 0FFh |
4997 bit 7, a |
4997 bit 7, a |
4998 pop bc |
4998 pop bc |
4999 pop hl |
4999 pop hl |
5000 pop hl |
5000 pop hl |
5001 pop de |
5001 pop de |
5002 pop hl |
5002 pop hl |
5003 pop bc |
5003 pop bc |
5004 ret |
5004 ret |
5005 ; End of function Page7D_2C34 |
5005 ; End of function Page7D_2C34 |
5006 |
5006 |
5007 ; --------------------------------------------------------------------------- |
5007 ; --------------------------------------------------------------------------- |
5008 |
5008 |
5009 Page7D_2C2E: |
5009 Page7D_2C2E: |
5010 push hl |
5010 push hl |
5011 push de |
5011 push de |
5012 push bc |
5012 push bc |
5013 push af |
5013 push af |
5014 ld hl, 4000h |
5014 ld hl, 4000h |
5015 inc hl |
5015 inc hl |
5016 rst 28h |
5016 rst 28h |
5017 ; --------------------------------------------------------------------------- |
5017 ; --------------------------------------------------------------------------- |
5018 .dw 8051h |
5018 .dw 8051h |
5019 ; --------------------------------------------------------------------------- |
5019 ; --------------------------------------------------------------------------- |
5020 call p7Dsub_75FD |
5020 call p7Dsub_75FD |
5021 jr nz, p7Dloc_5737 |
5021 jr nz, p7Dloc_5737 |
5022 inc hl |
5022 inc hl |
5023 pop af |
5023 pop af |
5024 call p7Dsub_761F |
5024 call p7Dsub_761F |
5025 ld hl, (unk_839F) |
5025 ld hl, (unk_839F) |
5026 push hl |
5026 push hl |
5027 ld hl, (unk_83A1) |
5027 ld hl, (unk_83A1) |
5028 push hl |
5028 push hl |
5029 push af |
5029 push af |
5030 call p7Dsub_5525 |
5030 call p7Dsub_5525 |
5031 push hl |
5031 push hl |
5032 inc hl |
5032 inc hl |
5033 rst 28h |
5033 rst 28h |
5034 ; --------------------------------------------------------------------------- |
5034 ; --------------------------------------------------------------------------- |
5035 .dw 805Ah |
5035 .dw 805Ah |
5036 ; --------------------------------------------------------------------------- |
5036 ; --------------------------------------------------------------------------- |
5037 or a |
5037 or a |
5038 adc hl, bc |
5038 adc hl, bc |
5039 pop bc |
5039 pop bc |
5040 or a |
5040 or a |
5041 sbc hl, bc |
5041 sbc hl, bc |
5042 pop af |
5042 pop af |
5043 pop bc |
5043 pop bc |
5044 ld (unk_83A1), bc |
5044 ld (unk_83A1), bc |
5045 pop bc |
5045 pop bc |
5046 ld (unk_839F), bc |
5046 ld (unk_839F), bc |
5047 push af |
5047 push af |
5048 push hl |
5048 push hl |
5049 ld hl, 4000h |
5049 ld hl, 4000h |
5050 inc hl |
5050 inc hl |
5051 rst 28h |
5051 rst 28h |
5052 ; --------------------------------------------------------------------------- |
5052 ; --------------------------------------------------------------------------- |
5053 .dw 805Ah |
5053 .dw 805Ah |
5054 ; --------------------------------------------------------------------------- |
5054 ; --------------------------------------------------------------------------- |
5055 ld bc, 4000h |
5055 ld bc, 4000h |
5056 or a |
5056 or a |
5057 sbc hl, bc |
5057 sbc hl, bc |
5058 push hl |
5058 push hl |
5059 pop bc |
5059 pop bc |
5060 call p7Dsub_573C |
5060 call p7Dsub_573C |
5061 pop bc |
5061 pop bc |
5062 inc bc |
5062 inc bc |
5063 inc bc |
5063 inc bc |
5064 call p7Dsub_573C |
5064 call p7Dsub_573C |
5065 |
5065 |
5066 p7Dloc_5737: |
5066 p7Dloc_5737: |
5067 pop af |
5067 pop af |
5068 pop bc |
5068 pop bc |
5069 pop de |
5069 pop de |
5070 pop hl |
5070 pop hl |
5071 ret |
5071 ret |
5072 |
5072 |
5073 ; =============== S U B R O U T I N E ======================================= |
5073 ; =============== S U B R O U T I N E ======================================= |
5074 |
5074 |
5075 |
5075 |
5076 p7Dsub_573C: |
5076 p7Dsub_573C: |
5077 ld hl, (unk_83A1) |
5077 ld hl, (unk_83A1) |
5078 call p7Dsub_57C5 |
5078 call p7Dsub_57C5 |
5079 or a |
5079 or a |
5080 adc hl, bc |
5080 adc hl, bc |
5081 call p7Dsub_57C5 |
5081 call p7Dsub_57C5 |
5082 ld (unk_83A1), hl |
5082 ld (unk_83A1), hl |
5083 ret nc |
5083 ret nc |
5084 ld hl, (unk_839F) |
5084 ld hl, (unk_839F) |
5085 inc h |
5085 inc h |
5086 jr nz, p7Dloc_5753 |
5086 jr nz, p7Dloc_5753 |
5087 inc l |
5087 inc l |
5088 |
5088 |
5089 p7Dloc_5753: |
5089 p7Dloc_5753: |
5090 ld (unk_839F), hl |
5090 ld (unk_839F), hl |
5091 ret |
5091 ret |
5092 ; End of function p7Dsub_573C |
5092 ; End of function p7Dsub_573C |
5093 |
5093 |
5094 |
5094 |
5095 ; =============== S U B R O U T I N E ======================================= |
5095 ; =============== S U B R O U T I N E ======================================= |
5098 p7Dsub_5757: |
5098 p7Dsub_5757: |
5099 push hl |
5099 push hl |
5100 push de |
5100 push de |
5101 push bc |
5101 push bc |
5102 push af |
5102 push af |
5103 inc hl |
5103 inc hl |
5104 ld a, (hl) |
5104 ld a, (hl) |
5105 call p7Dsub_75FD |
5105 call p7Dsub_75FD |
5106 jr nz, p7Dloc_5768 |
5106 jr nz, p7Dloc_5768 |
5107 |
5107 |
5108 p7Dloc_5762: |
5108 p7Dloc_5762: |
5109 inc hl |
5109 inc hl |
5110 ld a, (hl) |
5110 ld a, (hl) |
5111 ld (de), a |
5111 ld (de), a |
5112 inc de |
5112 inc de |
5113 djnz p7Dloc_5762 |
5113 djnz p7Dloc_5762 |
5114 |
5114 |
5115 p7Dloc_5768: |
5115 p7Dloc_5768: |
5116 pop af |
5116 pop af |
5117 pop bc |
5117 pop bc |
5118 pop de |
5118 pop de |
5119 pop hl |
5119 pop hl |
5120 ret |
5120 ret |
5121 ; End of function p7Dsub_5757 |
5121 ; End of function p7Dsub_5757 |
5122 |
5122 |
5123 |
5123 |
5124 ; =============== S U B R O U T I N E ======================================= |
5124 ; =============== S U B R O U T I N E ======================================= |
5125 |
5125 |
5126 |
5126 |
5127 p7Dsub_576D: |
5127 p7Dsub_576D: |
5128 push af |
5128 push af |
5129 ld a, 1 |
5129 ld a, 1 |
5130 call Page7D_2B86 |
5130 call Page7D_2B86 |
5131 ld b, a |
5131 ld b, a |
5132 call p7Dsub_75EC |
5132 call p7Dsub_75EC |
5133 sub b |
5133 sub b |
5134 ld b, 0 |
5134 ld b, 0 |
5135 ld c, a |
5135 ld c, a |
5136 ld hl, tempSwapArea |
5136 ld hl, tempSwapArea |
5137 sla c |
5137 sla c |
5138 add hl, bc |
5138 add hl, bc |
5139 ld a, 0FFh |
5139 ld a, 0FFh |
5140 ld (hl), a |
5140 ld (hl), a |
5141 inc hl |
5141 inc hl |
5142 ld (hl), a |
5142 ld (hl), a |
5143 ld a, 1 |
5143 ld a, 1 |
5144 call Page7D_2B62 |
5144 call Page7D_2B62 |
5145 pop af |
5145 pop af |
5146 ret |
5146 ret |
5147 ; End of function p7Dsub_576D |
5147 ; End of function p7Dsub_576D |
5148 |
5148 |
5149 |
5149 |
5150 ; =============== S U B R O U T I N E ======================================= |
5150 ; =============== S U B R O U T I N E ======================================= |
5151 |
5151 |
5152 |
5152 |
5153 p7Dsub_578D: |
5153 p7Dsub_578D: |
5154 push af |
5154 push af |
5155 ld a, (unk_83A4) |
5155 ld a, (unk_83A4) |
5156 or a |
5156 or a |
5157 jr z, p7Dloc_57C3 |
5157 jr z, p7Dloc_57C3 |
5158 ld hl, (unk_83A1) |
5158 ld hl, (unk_83A1) |
5159 call p7Dsub_57C5 |
5159 call p7Dsub_57C5 |
5160 ld a, h |
5160 ld a, h |
5161 or l |
5161 or l |
5162 jr nz, p7Dloc_57B2 |
5162 jr nz, p7Dloc_57B2 |
5163 ld hl, (unk_839F) |
5163 ld hl, (unk_839F) |
5164 ld a, h |
5164 ld a, h |
5165 or l |
5165 or l |
5166 jr z, p7Dloc_57C3 |
5166 jr z, p7Dloc_57C3 |
5167 call p7Dsub_57C5 |
5167 call p7Dsub_57C5 |
5168 dec hl |
5168 dec hl |
5169 call p7Dsub_57C5 |
5169 call p7Dsub_57C5 |
5170 ld (unk_839F), hl |
5170 ld (unk_839F), hl |
5171 ld hl, 0 |
5171 ld hl, 0 |
5172 |
5172 |
5173 p7Dloc_57B2: |
5173 p7Dloc_57B2: |
5174 dec hl |
5174 dec hl |
5175 call p7Dsub_57C5 |
5175 call p7Dsub_57C5 |
5176 ld (unk_83A1), hl |
5176 ld (unk_83A1), hl |
5177 ld hl, (unk_839F) |
5177 ld hl, (unk_839F) |
5178 ld a, l |
5178 ld a, l |
5179 or h |
5179 or h |
5180 jr nz, p7Dloc_57C3 |
5180 jr nz, p7Dloc_57C3 |
5181 ld hl, (unk_83A1) |
5181 ld hl, (unk_83A1) |
5182 |
5182 |
5183 p7Dloc_57C3: |
5183 p7Dloc_57C3: |
5184 pop af |
5184 pop af |
5185 ret |
5185 ret |
5186 ; End of function p7Dsub_578D |
5186 ; End of function p7Dsub_578D |
5187 |
5187 |
5188 |
5188 |
5189 ; =============== S U B R O U T I N E ======================================= |
5189 ; =============== S U B R O U T I N E ======================================= |
5190 |
5190 |
5191 |
5191 |
5192 p7Dsub_57C5: |
5192 p7Dsub_57C5: |
5193 push af |
5193 push af |
5194 ld a, l |
5194 ld a, l |
5195 ld l, h |
5195 ld l, h |
5196 ld h, a |
5196 ld h, a |
5197 pop af |
5197 pop af |
5198 ret |
5198 ret |
5199 ; End of function p7Dsub_57C5 |
5199 ; End of function p7Dsub_57C5 |
5200 |
5200 |
5201 ; --------------------------------------------------------------------------- |
5201 ; --------------------------------------------------------------------------- |
5202 |
5202 |
5203 Page7D_2B9E: |
5203 Page7D_2B9E: |
5204 push bc |
5204 push bc |
5205 push de |
5205 push de |
5206 call p7Dsub_5980 |
5206 call p7Dsub_5980 |
5207 jp z, p7Dloc_5973 |
5207 jp z, p7Dloc_5973 |
5208 rst 28h |
5208 rst 28h |
5209 ; --------------------------------------------------------------------------- |
5209 ; --------------------------------------------------------------------------- |
5210 .dw 8057h |
5210 .dw 8057h |
5211 ; --------------------------------------------------------------------------- |
5211 ; --------------------------------------------------------------------------- |
5212 push hl |
5212 push hl |
5213 push hl |
5213 push hl |
5214 pop bc |
5214 pop bc |
5215 rst 28h |
5215 rst 28h |
5216 ; --------------------------------------------------------------------------- |
5216 ; --------------------------------------------------------------------------- |
5217 .dw 802Dh |
5217 .dw 802Dh |
5218 ; --------------------------------------------------------------------------- |
5218 ; --------------------------------------------------------------------------- |
5219 or a |
5219 or a |
5220 sbc hl, bc |
5220 sbc hl, bc |
5221 dec hl |
5221 dec hl |
5222 ld (appInfo), hl |
5222 ld (appInfo), hl |
5223 push hl |
5223 push hl |
5224 pop bc |
5224 pop bc |
5225 pop hl |
5225 pop hl |
5226 push hl |
5226 push hl |
5227 call p7Dsub_4565 |
5227 call p7Dsub_4565 |
5228 dec hl |
5228 dec hl |
5229 cp 0FFh |
5229 cp 0FFh |
5230 jp z, p7Dloc_5972 |
5230 jp z, p7Dloc_5972 |
5231 cp 0 |
5231 cp 0 |
5232 jp z, JErrorNo |
5232 jp z, JErrorNo |
5233 call p7Dsub_42D3 |
5233 call p7Dsub_42D3 |
5234 call p7Dsub_5980 |
5234 call p7Dsub_5980 |
5235 jp z, p7Dloc_5972 |
5235 jp z, p7Dloc_5972 |
5236 pop de |
5236 pop de |
5237 inc de |
5237 inc de |
5238 ex de, hl |
5238 ex de, hl |
5239 call p7Dsub_597A |
5239 call p7Dsub_597A |
5240 ld (OP2), a |
5240 ld (OP2), a |
5241 call p7Dsub_40A6 |
5241 call p7Dsub_40A6 |
5242 or a |
5242 or a |
5243 ex de, hl |
5243 ex de, hl |
5244 adc hl, bc |
5244 adc hl, bc |
5245 push hl |
5245 push hl |
5246 ld de, 0A20h |
5246 ld de, 0A20h |
5247 rst 28h |
5247 rst 28h |
5248 ; --------------------------------------------------------------------------- |
5248 ; --------------------------------------------------------------------------- |
5249 .dw 8027h |
5249 .dw 8027h |
5250 ; --------------------------------------------------------------------------- |
5250 ; --------------------------------------------------------------------------- |
5251 jr nz, p7Dloc_5832 |
5251 jr nz, p7Dloc_5832 |
5252 ld a, h |
5252 ld a, h |
5253 and 0Fh |
5253 and 0Fh |
5254 or 40h ; '@' |
5254 or 40h ; '@' |
5255 ld h, a |
5255 ld h, a |
5256 call p7Dsub_597A |
5256 call p7Dsub_597A |
5257 rst 28h |
5257 rst 28h |
5258 ; --------------------------------------------------------------------------- |
5258 ; --------------------------------------------------------------------------- |
5259 .dw 805Ah |
5259 .dw 805Ah |
5260 ; --------------------------------------------------------------------------- |
5260 ; --------------------------------------------------------------------------- |
5261 |
5261 |
5262 p7Dloc_5823: |
5262 p7Dloc_5823: |
5263 ld b, 0 |
5263 ld b, 0 |
5264 push bc |
5264 push bc |
5265 call p7Dsub_597A |
5265 call p7Dsub_597A |
5266 ex de, hl |
5266 ex de, hl |
5267 rst 28h |
5267 rst 28h |
5268 ; --------------------------------------------------------------------------- |
5268 ; --------------------------------------------------------------------------- |
5269 .dw 8021h |
5269 .dw 8021h |
5270 ; --------------------------------------------------------------------------- |
5270 ; --------------------------------------------------------------------------- |
5271 ex de, hl |
5271 ex de, hl |
5272 pop bc |
5272 pop bc |
5273 dec c |
5273 dec c |
5274 jr nz, p7Dloc_5823 |
5274 jr nz, p7Dloc_5823 |
5275 |
5275 |
5276 p7Dloc_5832: |
5276 p7Dloc_5832: |
5277 call p7Dsub_5980 |
5277 call p7Dsub_5980 |
5278 jp z, p7Dloc_5972 |
5278 jp z, p7Dloc_5972 |
5279 ld hl, 4000h |
5279 ld hl, 4000h |
5280 ld a, 7Ah ; 'z' |
5280 ld a, 7Ah ; 'z' |
5281 ld de, 8070h |
5281 ld de, 8070h |
5282 rst 28h |
5282 rst 28h |
5283 ; --------------------------------------------------------------------------- |
5283 ; --------------------------------------------------------------------------- |
5284 .dw 8075h |
5284 .dw 8075h |
5285 ; --------------------------------------------------------------------------- |
5285 ; --------------------------------------------------------------------------- |
5286 inc hl |
5286 inc hl |
5287 ld a, 7Ah ; 'z' |
5287 ld a, 7Ah ; 'z' |
5288 rst 28h |
5288 rst 28h |
5289 ; --------------------------------------------------------------------------- |
5289 ; --------------------------------------------------------------------------- |
5290 .dw 805Ah |
5290 .dw 805Ah |
5291 ; --------------------------------------------------------------------------- |
5291 ; --------------------------------------------------------------------------- |
5292 ld bc, 4000h |
5292 ld bc, 4000h |
5293 or a |
5293 or a |
5294 sbc hl, bc |
5294 sbc hl, bc |
5295 push hl |
5295 push hl |
5296 pop bc |
5296 pop bc |
5297 ld de, ramStart |
5297 ld de, ramStart |
5298 ld hl, 4000h |
5298 ld hl, 4000h |
5299 ld a, 7Ah ; 'z' |
5299 ld a, 7Ah ; 'z' |
5300 push bc |
5300 push bc |
5301 rst 28h |
5301 rst 28h |
5302 ; --------------------------------------------------------------------------- |
5302 ; --------------------------------------------------------------------------- |
5303 .dw 8054h |
5303 .dw 8054h |
5304 ; --------------------------------------------------------------------------- |
5304 ; --------------------------------------------------------------------------- |
5305 pop bc |
5305 pop bc |
5306 pop de |
5306 pop de |
5307 ld hl, ramStart |
5307 ld hl, ramStart |
5308 call p7Dsub_597A |
5308 call p7Dsub_597A |
5309 push bc |
5309 push bc |
5310 rst 28h |
5310 rst 28h |
5311 ; --------------------------------------------------------------------------- |
5311 ; --------------------------------------------------------------------------- |
5312 .dw 8087h |
5312 .dw 8087h |
5313 ; --------------------------------------------------------------------------- |
5313 ; --------------------------------------------------------------------------- |
5314 pop bc |
5314 pop bc |
5315 push de |
5315 push de |
5316 ld hl, (appInfo) |
5316 ld hl, (appInfo) |
5317 or a |
5317 or a |
5318 adc hl, bc |
5318 adc hl, bc |
5319 ld (appInfo), hl |
5319 ld (appInfo), hl |
5320 call p7Dsub_75F5 |
5320 call p7Dsub_75F5 |
5321 |
5321 |
5322 p7Dloc_5877: |
5322 p7Dloc_5877: |
5323 call ZeroOP1 |
5323 call ZeroOP1 |
5324 call p7Dsub_638B |
5324 call p7Dsub_638B |
5325 call OP2ToOP1 |
5325 call OP2ToOP1 |
5326 jr c, p7Dloc_58AD |
5326 jr c, p7Dloc_58AD |
5327 call p7Dloc_61A4 |
5327 call p7Dloc_61A4 |
5328 pop de |
5328 pop de |
5329 ld bc, 4000h |
5329 ld bc, 4000h |
5330 or a |
5330 or a |
5331 sbc hl, bc |
5331 sbc hl, bc |
5332 push hl |
5332 push hl |
5333 pop bc |
5333 pop bc |
5334 or a |
5334 or a |
5335 ld hl, (appInfo) |
5335 ld hl, (appInfo) |
5336 adc hl, bc |
5336 adc hl, bc |
5337 ld (appInfo), hl |
5337 ld (appInfo), hl |
5338 ld hl, 4000h |
5338 ld hl, 4000h |
5339 push af |
5339 push af |
5340 call p7Dsub_597A |
5340 call p7Dsub_597A |
5341 ld (OP2), a |
5341 ld (OP2), a |
5342 pop af |
5342 pop af |
5343 call p7Dloc_40A9 |
5343 call p7Dloc_40A9 |
5344 or a |
5344 or a |
5345 ex de, hl |
5345 ex de, hl |
5346 adc hl, bc |
5346 adc hl, bc |
5347 ex de, hl |
5347 ex de, hl |
5348 push de |
5348 push de |
5349 jr p7Dloc_5877 |
5349 jr p7Dloc_5877 |
5350 ; --------------------------------------------------------------------------- |
5350 ; --------------------------------------------------------------------------- |
5351 |
5351 |
5352 p7Dloc_58AD: |
5352 p7Dloc_58AD: |
5353 pop de |
5353 pop de |
5354 rst 28h |
5354 rst 28h |
5355 ; --------------------------------------------------------------------------- |
5355 ; --------------------------------------------------------------------------- |
5356 .dw 808Dh |
5356 .dw 808Dh |
5357 ; --------------------------------------------------------------------------- |
5357 ; --------------------------------------------------------------------------- |
5358 ld hl, 4000h |
5358 ld hl, 4000h |
5359 push hl |
5359 push hl |
5360 ld hl, 0 |
5360 ld hl, 0 |
5361 ld (unk_839F), hl |
5361 ld (unk_839F), hl |
5362 ld hl, (appInfo) |
5362 ld hl, (appInfo) |
5363 call p7Dsub_57C5 |
5363 call p7Dsub_57C5 |
5364 ld (unk_83A1), hl |
5364 ld (unk_83A1), hl |
5365 pop hl |
5365 pop hl |
5366 ld a, 1 |
5366 ld a, 1 |
5367 ld (unk_83A4), a |
5367 ld (unk_83A4), a |
5368 |
5368 |
5369 p7Dloc_58CA: |
5369 p7Dloc_58CA: |
5370 ld a, 1 |
5370 ld a, 1 |
5371 ld (unk_83A3), a |
5371 ld (unk_83A3), a |
5372 call p7Dsub_597A |
5372 call p7Dsub_597A |
5373 ld de, ramStart |
5373 ld de, ramStart |
5374 ld bc, 1 |
5374 ld bc, 1 |
5375 push hl |
5375 push hl |
5376 call FlashToRam |
5376 call FlashToRam |
5377 call p7Dsub_5E0A |
5377 call p7Dsub_5E0A |
5378 call p7Dsub_578D |
5378 call p7Dsub_578D |
5379 ld a, h |
5379 ld a, h |
5380 or l |
5380 or l |
5381 pop hl |
5381 pop hl |
5382 inc hl |
5382 inc hl |
5383 jr nz, p7Dloc_58CA |
5383 jr nz, p7Dloc_58CA |
5384 inc hl |
5384 inc hl |
5385 inc hl |
5385 inc hl |
5386 push hl |
5386 push hl |
5387 rst 28h |
5387 rst 28h |
5388 ; --------------------------------------------------------------------------- |
5388 ; --------------------------------------------------------------------------- |
5389 .dw 8018h |
5389 .dw 8018h |
5390 ; --------------------------------------------------------------------------- |
5390 ; --------------------------------------------------------------------------- |
5391 ld hl, 0D02h |
5391 ld hl, 0D02h |
5392 ld (OP1), hl |
5392 ld (OP1), hl |
5393 ld hl, OP1 |
5393 ld hl, OP1 |
5394 pop de |
5394 pop de |
5395 push de |
5395 push de |
5396 dec de |
5396 dec de |
5397 dec de |
5397 dec de |
5398 ld bc, 2 |
5398 ld bc, 2 |
5399 call p7Dsub_597A |
5399 call p7Dsub_597A |
5400 rst 28h |
5400 rst 28h |
5401 ; --------------------------------------------------------------------------- |
5401 ; --------------------------------------------------------------------------- |
5402 .dw 8087h |
5402 .dw 8087h |
5403 ; --------------------------------------------------------------------------- |
5403 ; --------------------------------------------------------------------------- |
5404 call p7Dsub_5980 |
5404 call p7Dsub_5980 |
5405 jp z, p7Dloc_5972 |
5405 jp z, p7Dloc_5972 |
5406 ld de, 0A20h |
5406 ld de, 0A20h |
5407 rst 28h |
5407 rst 28h |
5408 ; --------------------------------------------------------------------------- |
5408 ; --------------------------------------------------------------------------- |
5409 .dw 8027h |
5409 .dw 8027h |
5410 ; --------------------------------------------------------------------------- |
5410 ; --------------------------------------------------------------------------- |
5411 call p7Dsub_4574 |
5411 call p7Dsub_4574 |
5412 inc bc |
5412 inc bc |
5413 dec hl |
5413 dec hl |
5414 ld de, ramStart |
5414 ld de, ramStart |
5415 rst 28h |
5415 rst 28h |
5416 ; --------------------------------------------------------------------------- |
5416 ; --------------------------------------------------------------------------- |
5417 .dw 8054h |
5417 .dw 8054h |
5418 ; --------------------------------------------------------------------------- |
5418 ; --------------------------------------------------------------------------- |
5419 ld de, bigInteger1 |
5419 ld de, bigInteger1 |
5420 ld b, 0 |
5420 ld b, 0 |
5421 ld a, (unk_8291) |
5421 ld a, (unk_8291) |
5422 ld c, a |
5422 ld c, a |
5423 ld hl, 8291h |
5423 ld hl, 8291h |
5424 inc bc |
5424 inc bc |
5425 ldir |
5425 ldir |
5426 rst 28h |
5426 rst 28h |
5427 ; --------------------------------------------------------------------------- |
5427 ; --------------------------------------------------------------------------- |
5428 .dw 80C0h |
5428 .dw 80C0h |
5429 ; --------------------------------------------------------------------------- |
5429 ; --------------------------------------------------------------------------- |
5430 pop de |
5430 pop de |
5431 ld hl, OP1 |
5431 ld hl, OP1 |
5432 ld b, 0 |
5432 ld b, 0 |
5433 ld a, (hl) |
5433 ld a, (hl) |
5434 ld c, a |
5434 ld c, a |
5435 inc bc |
5435 inc bc |
5436 call p7Dsub_597A |
5436 call p7Dsub_597A |
5437 push bc |
5437 push bc |
5438 rst 28h |
5438 rst 28h |
5439 ; --------------------------------------------------------------------------- |
5439 ; --------------------------------------------------------------------------- |
5440 .dw 8087h |
5440 .dw 8087h |
5441 ; --------------------------------------------------------------------------- |
5441 ; --------------------------------------------------------------------------- |
5442 ld hl, (appInfo) |
5442 ld hl, (appInfo) |
5443 pop bc |
5443 pop bc |
5444 inc bc |
5444 inc bc |
5445 inc bc |
5445 inc bc |
5446 or a |
5446 or a |
5447 adc hl, bc |
5447 adc hl, bc |
5448 ld (unk_839F), hl |
5448 ld (unk_839F), hl |
5449 call p7Dsub_597A |
5449 call p7Dsub_597A |
5450 ld (OP2), a |
5450 ld (OP2), a |
5451 call p7Dsub_7700 |
5451 call p7Dsub_7700 |
5452 push de |
5452 push de |
5453 rst 28h |
5453 rst 28h |
5454 ; --------------------------------------------------------------------------- |
5454 ; --------------------------------------------------------------------------- |
5455 .dw 8057h |
5455 .dw 8057h |
5456 ; --------------------------------------------------------------------------- |
5456 ; --------------------------------------------------------------------------- |
5457 ld bc, 1D00h |
5457 ld bc, 1D00h |
5458 add hl, bc |
5458 add hl, bc |
5459 pop de |
5459 pop de |
5460 ld bc, 300h |
5460 ld bc, 300h |
5461 call p7Dsub_40A6 |
5461 call p7Dsub_40A6 |
5462 ld hl, (unk_839F) |
5462 ld hl, (unk_839F) |
5463 ld bc, 300h |
5463 ld bc, 300h |
5464 add hl, bc |
5464 add hl, bc |
5465 ld (unk_839F), hl |
5465 ld (unk_839F), hl |
5466 ld hl, 4000h |
5466 ld hl, 4000h |
5467 xor a |
5467 xor a |
5468 pop de |
5468 pop de |
5469 pop bc |
5469 pop bc |
5470 ret |
5470 ret |
5471 ; --------------------------------------------------------------------------- |
5471 ; --------------------------------------------------------------------------- |
5472 |
5472 |
5473 p7Dloc_5972: |
5473 p7Dloc_5972: |
5474 pop hl |
5474 pop hl |
5475 |
5475 |
5476 p7Dloc_5973: |
5476 p7Dloc_5973: |
5477 pop de |
5477 pop de |
5478 pop bc |
5478 pop bc |
5479 ld a, 0FFh |
5479 ld a, 0FFh |
5480 bit 7, a |
5480 bit 7, a |
5481 ret |
5481 ret |
5482 |
5482 |
5483 ; =============== S U B R O U T I N E ======================================= |
5483 ; =============== S U B R O U T I N E ======================================= |
5484 |
5484 |
5485 |
5485 |
5486 p7Dsub_597A: |
5486 p7Dsub_597A: |
5487 call FindSwapSector |
5487 call FindSwapSector |
5488 inc a |
5488 inc a |
5489 inc a |
5489 inc a |
5490 ret |
5490 ret |
5491 ; End of function p7Dsub_597A |
5491 ; End of function p7Dsub_597A |
5492 |
5492 |
5493 |
5493 |
5494 ; =============== S U B R O U T I N E ======================================= |
5494 ; =============== S U B R O U T I N E ======================================= |
5495 |
5495 |
5496 |
5496 |
5497 p7Dsub_5980: |
5497 p7Dsub_5980: |
5498 set 2, (iy+16h) |
5498 set 2, (iy+16h) |
5499 in a, (2) |
5499 in a, (2) |
5500 bit 0, a |
5500 bit 0, a |
5501 ret nz |
5501 ret nz |
5502 res 2, (iy+16h) |
5502 res 2, (iy+16h) |
5503 ret |
5503 ret |
5504 ; End of function p7Dsub_5980 |
5504 ; End of function p7Dsub_5980 |
5505 |
5505 |
5506 |
5506 |
5507 ; =============== S U B R O U T I N E ======================================= |
5507 ; =============== S U B R O U T I N E ======================================= |
5508 |
5508 |
5509 |
5509 |
5510 p7Dsub_598E: |
5510 p7Dsub_598E: |
5511 push bc |
5511 push bc |
5512 ld de, 847Ch |
5512 ld de, 847Ch |
5513 ld b, 5 |
5513 ld b, 5 |
5514 |
5514 |
5515 p7Dloc_5994: |
5515 p7Dloc_5994: |
5516 call DivHLBy10 |
5516 call DivHLBy10 |
5517 add a, 30h ; '0' |
5517 add a, 30h ; '0' |
5518 ld (de), a |
5518 ld (de), a |
5519 dec de |
5519 dec de |
5520 djnz p7Dloc_5994 |
5520 djnz p7Dloc_5994 |
5521 sub a |
5521 sub a |
5522 ld (unk_847C+1), a |
5522 ld (unk_847C+1), a |
5523 ex de, hl |
5523 ex de, hl |
5524 ld a, 30h ; '0' |
5524 ld a, 30h ; '0' |
5525 ld b, 4 |
5525 ld b, 4 |
5526 |
5526 |
5527 p7Dloc_59A6: |
5527 p7Dloc_59A6: |
5528 inc hl |
5528 inc hl |
5529 cp (hl) |
5529 cp (hl) |
5530 jr nz, p7Dloc_59AE |
5530 jr nz, p7Dloc_59AE |
5531 ld (hl), 20h ; ' ' |
5531 ld (hl), 20h ; ' ' |
5532 djnz p7Dloc_59A6 |
5532 djnz p7Dloc_59A6 |
5533 |
5533 |
5534 p7Dloc_59AE: |
5534 p7Dloc_59AE: |
5535 pop bc |
5535 pop bc |
5536 call Page0Call_3D4D |
5536 call Page0Call_3D4D |
5537 ret |
5537 ret |
5538 ; End of function p7Dsub_598E |
5538 ; End of function p7Dsub_598E |
5539 |
5539 |
5540 ; --------------------------------------------------------------------------- |
5540 ; --------------------------------------------------------------------------- |
5541 |
5541 |
5542 p7Dloc_59B3: |
5542 p7Dloc_59B3: |
5543 push af |
5543 push af |
5544 ld de, 0E10h |
5544 ld de, 0E10h |
5545 rst 28h |
5545 rst 28h |
5546 ; --------------------------------------------------------------------------- |
5546 ; --------------------------------------------------------------------------- |
5547 .dw 80B1h |
5547 .dw 80B1h |
5548 ; --------------------------------------------------------------------------- |
5548 ; --------------------------------------------------------------------------- |
5549 ld de, 18h |
5549 ld de, 18h |
5550 rst 28h |
5550 rst 28h |
5551 ; --------------------------------------------------------------------------- |
5551 ; --------------------------------------------------------------------------- |
5552 .dw 80B1h |
5552 .dw 80B1h |
5553 ; --------------------------------------------------------------------------- |
5553 ; --------------------------------------------------------------------------- |
5554 ld hl, (OP1M) |
5554 ld hl, (OP1M) |
5555 call p7Dsub_57C5 |
5555 call p7Dsub_57C5 |
5556 ld de, 16Dh |
5556 ld de, 16Dh |
5557 rst 28h |
5557 rst 28h |
5558 ; --------------------------------------------------------------------------- |
5558 ; --------------------------------------------------------------------------- |
5559 .dw 804Bh |
5559 .dw 804Bh |
5560 ; --------------------------------------------------------------------------- |
5560 ; --------------------------------------------------------------------------- |
5561 push de |
5561 push de |
5562 pop hl |
5562 pop hl |
5563 ld bc, 7CDh |
5563 ld bc, 7CDh |
5564 or a |
5564 or a |
5565 adc hl, bc |
5565 adc hl, bc |
5566 call p7Dsub_5A68 |
5566 call p7Dsub_5A68 |
5567 or a |
5567 or a |
5568 ld hl, (OP1M) |
5568 ld hl, (OP1M) |
5569 call p7Dsub_57C5 |
5569 call p7Dsub_57C5 |
5570 sbc hl, bc |
5570 sbc hl, bc |
5571 call p7Dsub_57C5 |
5571 call p7Dsub_57C5 |
5572 ld (OP1M), hl |
5572 ld (OP1M), hl |
5573 call p7Dsub_57C5 |
5573 call p7Dsub_57C5 |
5574 ld de, 16Dh |
5574 ld de, 16Dh |
5575 rst 28h |
5575 rst 28h |
5576 ; --------------------------------------------------------------------------- |
5576 ; --------------------------------------------------------------------------- |
5577 .dw 804Bh |
5577 .dw 804Bh |
5578 ; --------------------------------------------------------------------------- |
5578 ; --------------------------------------------------------------------------- |
5579 push de |
5579 push de |
5580 pop hl |
5580 pop hl |
5581 ld bc, 7CDh |
5581 ld bc, 7CDh |
5582 or a |
5582 or a |
5583 adc hl, bc |
5583 adc hl, bc |
5584 push hl |
5584 push hl |
5585 ld (tempSwapArea), hl |
5585 ld (tempSwapArea), hl |
5586 ld a, e |
5586 ld a, e |
5587 ld de, 16Dh |
5587 ld de, 16Dh |
5588 rst 28h |
5588 rst 28h |
5589 ; --------------------------------------------------------------------------- |
5589 ; --------------------------------------------------------------------------- |
5590 .dw 8045h |
5590 .dw 8045h |
5591 ; --------------------------------------------------------------------------- |
5591 ; --------------------------------------------------------------------------- |
5592 push hl |
5592 push hl |
5593 pop bc |
5593 pop bc |
5594 ld hl, (OP1M) |
5594 ld hl, (OP1M) |
5595 call p7Dsub_57C5 |
5595 call p7Dsub_57C5 |
5596 or a |
5596 or a |
5597 sbc hl, bc |
5597 sbc hl, bc |
5598 ld bc, 0 |
5598 ld bc, 0 |
5599 |
5599 |
5600 p7Dloc_5A10: |
5600 p7Dloc_5A10: |
5601 push hl |
5601 push hl |
5602 ld a, 2 |
5602 ld a, 2 |
5603 cp c |
5603 cp c |
5604 jr nz, p7Dloc_5A26 |
5604 jr nz, p7Dloc_5A26 |
5605 ld hl, (tempSwapArea) |
5605 ld hl, (tempSwapArea) |
5606 call p7Dsub_5AA5 |
5606 call p7Dsub_5AA5 |
5607 jr nz, p7Dloc_5A26 |
5607 jr nz, p7Dloc_5A26 |
5608 ld hl, end_of_7D_table |
5608 ld hl, end_of_7D_table |
5609 ld e, (hl) |
5609 ld e, (hl) |
5610 inc hl |
5610 inc hl |
5611 ld d, (hl) |
5611 ld d, (hl) |
5612 jr p7Dloc_5A31 |
5612 jr p7Dloc_5A31 |
5613 ; --------------------------------------------------------------------------- |
5613 ; --------------------------------------------------------------------------- |
5614 |
5614 |
5615 p7Dloc_5A26: |
5615 p7Dloc_5A26: |
5616 or a |
5616 or a |
5617 ld hl, start_of_7D_table |
5617 ld hl, start_of_7D_table |
5618 adc hl, bc |
5618 adc hl, bc |
5619 adc hl, bc |
5619 adc hl, bc |
5620 ld e, (hl) |
5620 ld e, (hl) |
5621 inc hl |
5621 inc hl |
5622 ld d, (hl) |
5622 ld d, (hl) |
5623 |
5623 |
5624 p7Dloc_5A31: |
5624 p7Dloc_5A31: |
5625 or a |
5625 or a |
5626 pop hl |
5626 pop hl |
5627 push hl |
5627 push hl |
5628 sbc hl, de |
5628 sbc hl, de |
5629 jr c, p7Dloc_5A3C |
5629 jr c, p7Dloc_5A3C |
5630 pop hl |
5630 pop hl |
5631 inc bc |
5631 inc bc |
5632 jr p7Dloc_5A10 |
5632 jr p7Dloc_5A10 |
5633 ; --------------------------------------------------------------------------- |
5633 ; --------------------------------------------------------------------------- |
5634 |
5634 |
5635 p7Dloc_5A3C: |
5635 p7Dloc_5A3C: |
5636 pop hl |
5636 pop hl |
5637 push hl |
5637 push hl |
5638 dec bc |
5638 dec bc |
5639 ld a, 2 |
5639 ld a, 2 |
5640 cp c |
5640 cp c |
5641 jr nz, p7Dloc_5A54 |
5641 jr nz, p7Dloc_5A54 |
5642 ld hl, (tempSwapArea) |
5642 ld hl, (tempSwapArea) |
5643 call p7Dsub_5AA5 |
5643 call p7Dsub_5AA5 |
5644 jr nz, p7Dloc_5A54 |
5644 jr nz, p7Dloc_5A54 |
5645 ld hl, end_of_7D_table |
5645 ld hl, end_of_7D_table |
5646 ld e, (hl) |
5646 ld e, (hl) |
5647 inc hl |
5647 inc hl |
5648 ld d, (hl) |
5648 ld d, (hl) |
5649 jr p7Dloc_5A5F |
5649 jr p7Dloc_5A5F |
5650 ; --------------------------------------------------------------------------- |
5650 ; --------------------------------------------------------------------------- |
5651 |
5651 |
5652 p7Dloc_5A54: |
5652 p7Dloc_5A54: |
5653 ld hl, start_of_7D_table |
5653 ld hl, start_of_7D_table |
5654 or a |
5654 or a |
5655 adc hl, bc |
5655 adc hl, bc |
5656 adc hl, bc |
5656 adc hl, bc |
5657 ld e, (hl) |
5657 ld e, (hl) |
5658 inc hl |
5658 inc hl |
5659 ld d, (hl) |
5659 ld d, (hl) |
5660 |
5660 |
5661 p7Dloc_5A5F: |
5661 p7Dloc_5A5F: |
5662 pop hl |
5662 pop hl |
5663 or a |
5663 or a |
5664 sbc hl, de |
5664 sbc hl, de |
5665 pop de |
5665 pop de |
5666 inc hl |
5666 inc hl |
5667 inc bc |
5667 inc bc |
5668 pop af |
5668 pop af |
5669 ret |
5669 ret |
5670 |
5670 |
5671 ; =============== S U B R O U T I N E ======================================= |
5671 ; =============== S U B R O U T I N E ======================================= |
5672 |
5672 |
5673 |
5673 |
5674 p7Dsub_5A68: |
5674 p7Dsub_5A68: |
5675 push af |
5675 push af |
5676 push hl |
5676 push hl |
5677 push de |
5677 push de |
5678 push hl |
5678 push hl |
5679 ld bc, 7CDh |
5679 ld bc, 7CDh |
5680 or a |
5680 or a |
5681 sbc hl, bc |
5681 sbc hl, bc |
5682 pop hl |
5682 pop hl |
5683 ret c |
5683 ret c |
5684 jr z, p7Dloc_5A77 |
5684 jr z, p7Dloc_5A77 |
5685 dec hl |
5685 dec hl |
5686 |
5686 |
5687 p7Dloc_5A77: |
5687 p7Dloc_5A77: |
5688 push hl |
5688 push hl |
5689 ld de, 4 |
5689 ld de, 4 |
5690 rst 28h |
5690 rst 28h |
5691 ; --------------------------------------------------------------------------- |
5691 ; --------------------------------------------------------------------------- |
5692 .dw 804Bh |
5692 .dw 804Bh |
5693 ; --------------------------------------------------------------------------- |
5693 ; --------------------------------------------------------------------------- |
5694 pop hl |
5694 pop hl |
5695 push de |
5695 push de |
5696 push hl |
5696 push hl |
5697 ld de, 64h ; 'd' |
5697 ld de, 64h ; 'd' |
5698 rst 28h |
5698 rst 28h |
5699 ; --------------------------------------------------------------------------- |
5699 ; --------------------------------------------------------------------------- |
5700 .dw 804Bh |
5700 .dw 804Bh |
5701 ; --------------------------------------------------------------------------- |
5701 ; --------------------------------------------------------------------------- |
5702 pop hl |
5702 pop hl |
5703 push de |
5703 push de |
5704 ld de, 190h |
5704 ld de, 190h |
5705 rst 28h |
5705 rst 28h |
5706 ; --------------------------------------------------------------------------- |
5706 ; --------------------------------------------------------------------------- |
5707 .dw 804Bh |
5707 .dw 804Bh |
5708 ; --------------------------------------------------------------------------- |
5708 ; --------------------------------------------------------------------------- |
5709 pop bc |
5709 pop bc |
5710 pop hl |
5710 pop hl |
5711 push de |
5711 push de |
5712 or a |
5712 or a |
5713 sbc hl, bc |
5713 sbc hl, bc |
5714 pop bc |
5714 pop bc |
5715 or a |
5715 or a |
5716 adc hl, bc |
5716 adc hl, bc |
5717 ld bc, 1E4h |
5717 ld bc, 1E4h |
5718 or a |
5718 or a |
5719 sbc hl, bc |
5719 sbc hl, bc |
5720 push hl |
5720 push hl |
5721 pop bc |
5721 pop bc |
5722 pop de |
5722 pop de |
5723 pop hl |
5723 pop hl |
5724 pop af |
5724 pop af |
5725 ret |
5725 ret |
5726 ; End of function p7Dsub_5A68 |
5726 ; End of function p7Dsub_5A68 |
5727 |
5727 |
5728 |
5728 |
5729 ; =============== S U B R O U T I N E ======================================= |
5729 ; =============== S U B R O U T I N E ======================================= |
5730 |
5730 |
5731 |
5731 |
5732 p7Dsub_5AA5: |
5732 p7Dsub_5AA5: |
5733 push hl |
5733 push hl |
5734 ld de, 4 |
5734 ld de, 4 |
5735 rst 28h |
5735 rst 28h |
5736 ; --------------------------------------------------------------------------- |
5736 ; --------------------------------------------------------------------------- |
5737 .dw 804Bh |
5737 .dw 804Bh |
5738 ; --------------------------------------------------------------------------- |
5738 ; --------------------------------------------------------------------------- |
5739 ld a, l |
5739 ld a, l |
5740 or h |
5740 or h |
5741 jr nz, p7Dloc_5ACA |
5741 jr nz, p7Dloc_5ACA |
5742 pop hl |
5742 pop hl |
5743 push hl |
5743 push hl |
5744 ld de, 64h ; 'd' |
5744 ld de, 64h ; 'd' |
5745 rst 28h |
5745 rst 28h |
5746 ; --------------------------------------------------------------------------- |
5746 ; --------------------------------------------------------------------------- |
5747 .dw 804Bh |
5747 .dw 804Bh |
5748 ; --------------------------------------------------------------------------- |
5748 ; --------------------------------------------------------------------------- |
5749 ld a, l |
5749 ld a, l |
5750 or h |
5750 or h |
5751 jr nz, p7Dloc_5AC6 |
5751 jr nz, p7Dloc_5AC6 |
5752 pop hl |
5752 pop hl |
5753 push hl |
5753 push hl |
5754 ld de, 190h |
5754 ld de, 190h |
5755 rst 28h |
5755 rst 28h |
5756 ; --------------------------------------------------------------------------- |
5756 ; --------------------------------------------------------------------------- |
5757 .dw 804Bh |
5757 .dw 804Bh |
5758 ; --------------------------------------------------------------------------- |
5758 ; --------------------------------------------------------------------------- |
5759 jr nz, p7Dloc_5ACA |
5759 jr nz, p7Dloc_5ACA |
5760 |
5760 |
5761 p7Dloc_5AC6: |
5761 p7Dloc_5AC6: |
5762 ld a, 0 |
5762 ld a, 0 |
5763 bit 7, a |
5763 bit 7, a |
5764 |
5764 |
5765 p7Dloc_5ACA: |
5765 p7Dloc_5ACA: |
5766 pop hl |
5766 pop hl |
5767 ret |
5767 ret |
5768 ; End of function p7Dsub_5AA5 |
5768 ; End of function p7Dsub_5AA5 |
5769 |
5769 |
5770 ; --------------------------------------------------------------------------- |
5770 ; --------------------------------------------------------------------------- |
5771 |
5771 |
5772 Page7D_2BAA: |
5772 Page7D_2BAA: |
5773 push hl |
5773 push hl |
5774 push bc |
5774 push bc |
5775 push de |
5775 push de |
5776 push af |
5776 push af |
5777 ld de, ramStart |
5777 ld de, ramStart |
5778 ld bc, 100h |
5778 ld bc, 100h |
5779 rst 28h |
5779 rst 28h |
5780 ; --------------------------------------------------------------------------- |
5780 ; --------------------------------------------------------------------------- |
5781 .dw 8054h |
5781 .dw 8054h |
5782 ; --------------------------------------------------------------------------- |
5782 ; --------------------------------------------------------------------------- |
5783 pop af |
5783 pop af |
5784 pop de |
5784 pop de |
5785 pop bc |
5785 pop bc |
5786 pop hl |
5786 pop hl |
5787 ret |
5787 ret |
5788 ; --------------------------------------------------------------------------- |
5788 ; --------------------------------------------------------------------------- |
5789 |
5789 |
5790 Page7D_2C0A: |
5790 Page7D_2C0A: |
5791 push hl |
5791 push hl |
5792 push bc |
5792 push bc |
5793 push af |
5793 push af |
5794 call Page0Call_3D0B |
5794 call Page0Call_3D0B |
5795 call Page0Call_3D2F |
5795 call Page0Call_3D2F |
5796 ld hl, aIdlist |
5796 ld hl, aIdlist |
5797 ld a, 3Dh ; '=' |
5797 ld a, 3Dh ; '=' |
5798 bit 1, (iy+35h) |
5798 bit 1, (iy+35h) |
5799 call nz, Page0Call_3C45 |
5799 call nz, Page0Call_3C45 |
5800 call p7Dsub_7045 |
5800 call p7Dsub_7045 |
5801 call Page0Call_23DE |
5801 call Page0Call_23DE |
5802 jr c, p7Dloc_5B0D |
5802 jr c, p7Dloc_5B0D |
5803 ld a, (de) |
5803 ld a, (de) |
5804 ld hl, (curRow+1) |
5804 ld hl, (curRow+1) |
5805 ld bc, 5 |
5805 ld bc, 5 |
5806 adc hl, bc |
5806 adc hl, bc |
5807 ld (curRow+1), hl |
5807 ld (curRow+1), hl |
5808 ld l, a |
5808 ld l, a |
5809 ld h, 0 |
5809 ld h, 0 |
5810 call Page0Call_3C7B |
5810 call Page0Call_3C7B |
5811 |
5811 |
5812 p7Dloc_5B0D: |
5812 p7Dloc_5B0D: |
5813 pop af |
5813 pop af |
5814 pop bc |
5814 pop bc |
5815 pop hl |
5815 pop hl |
5816 ret |
5816 ret |
5817 ; --------------------------------------------------------------------------- |
5817 ; --------------------------------------------------------------------------- |
5818 |
5818 |
5819 Page7D_2E56: |
5819 Page7D_2E56: |
5820 call Page0Call_23DE |
5820 call Page0Call_23DE |
5821 jr c, locret_5B2E |
5821 jr c, locret_5B2E |
5822 push af |
5822 push af |
5823 ld a, (de) |
5823 ld a, (de) |
5824 ld l, a |
5824 ld l, a |
5825 inc de |
5825 inc de |
5826 ld a, (de) |
5826 ld a, (de) |
5827 ld h, a |
5827 ld h, a |
5828 dec de |
5828 dec de |
5829 ld a, l |
5829 ld a, l |
5830 or h |
5830 or h |
5831 jr z, p7Dloc_5B2A |
5831 jr z, p7Dloc_5B2A |
5832 pop af |
5832 pop af |
5833 ld bc, 1 |
5833 ld bc, 1 |
5834 call Page0Call_31D7 |
5834 call Page0Call_31D7 |
5835 jr Page7D_2E56 |
5835 jr Page7D_2E56 |
5836 ; --------------------------------------------------------------------------- |
5836 ; --------------------------------------------------------------------------- |
5837 |
5837 |
5838 p7Dloc_5B2A: |
5838 p7Dloc_5B2A: |
5839 pop af |
5839 pop af |
5840 call Page0Call_23D4 |
5840 call Page0Call_23D4 |
5841 |
5841 |
5842 locret_5B2E: |
5842 locret_5B2E: |
5843 ret |
5843 ret |
5844 ; --------------------------------------------------------------------------- |
5844 ; --------------------------------------------------------------------------- |
5845 |
5845 |
5846 Page7D_2BC2: |
5846 Page7D_2BC2: |
5847 push af |
5847 push af |
5848 ld de, 0A10h |
5848 ld de, 0A10h |
5849 rst 28h |
5849 rst 28h |
5850 ; --------------------------------------------------------------------------- |
5850 ; --------------------------------------------------------------------------- |
5851 .dw 8027h |
5851 .dw 8027h |
5852 ; --------------------------------------------------------------------------- |
5852 ; --------------------------------------------------------------------------- |
5853 jr nz, p7Dloc_5B49 |
5853 jr nz, p7Dloc_5B49 |
5854 call p7Dsub_4574 |
5854 call p7Dsub_4574 |
5855 ld de, OP2 |
5855 ld de, OP2 |
5856 ld b, c |
5856 ld b, c |
5857 ld a, 7Eh ; '~' |
5857 ld a, 7Eh ; '~' |
5858 call p7Dsub_761F |
5858 call p7Dsub_761F |
5859 pop af |
5859 pop af |
5860 call p7Dsub_5B4D |
5860 call p7Dsub_5B4D |
5861 ret |
5861 ret |
5862 ; --------------------------------------------------------------------------- |
5862 ; --------------------------------------------------------------------------- |
5863 |
5863 |
5864 p7Dloc_5B49: |
5864 p7Dloc_5B49: |
5865 pop af |
5865 pop af |
5866 scf |
5866 scf |
5867 ccf |
5867 ccf |
5868 ret |
5868 ret |
5869 |
5869 |
5870 ; =============== S U B R O U T I N E ======================================= |
5870 ; =============== S U B R O U T I N E ======================================= |
5872 |
5872 |
5873 p7Dsub_5B4D: |
5873 p7Dsub_5B4D: |
5874 push bc |
5874 push bc |
5875 push de |
5875 push de |
5876 call p7Dsub_7656 |
5876 call p7Dsub_7656 |
5877 ld hl, 4003h |
5877 ld hl, 4003h |
5878 ld (appSearchPage), a |
5878 ld (appSearchPage), a |
5879 |
5879 |
5880 p7Dloc_5B58: |
5880 p7Dloc_5B58: |
5881 push hl |
5881 push hl |
5882 rst 28h |
5882 rst 28h |
5883 ; --------------------------------------------------------------------------- |
5883 ; --------------------------------------------------------------------------- |
5884 .dw 8051h |
5884 .dw 8051h |
5885 ; --------------------------------------------------------------------------- |
5885 ; --------------------------------------------------------------------------- |
5886 cp 3 |
5886 cp 3 |
5887 jr z, p7Dloc_5B67 |
5887 jr z, p7Dloc_5B67 |
5888 cp 0FFh |
5888 cp 0FFh |
5889 jr z, p7Dloc_5BA8 |
5889 jr z, p7Dloc_5BA8 |
5890 pop hl |
5890 pop hl |
5891 jr p7Dloc_5BC2 |
5891 jr p7Dloc_5BC2 |
5892 ; --------------------------------------------------------------------------- |
5892 ; --------------------------------------------------------------------------- |
5893 |
5893 |
5894 p7Dloc_5B67: |
5894 p7Dloc_5B67: |
5895 ld a, (appSearchPage) |
5895 ld a, (appSearchPage) |
5896 call p7Dloc_442C |
5896 call p7Dloc_442C |
5897 push bc |
5897 push bc |
5898 push de |
5898 push de |
5899 ld hl, OP2 |
5899 ld hl, OP2 |
5900 pop de |
5900 pop de |
5901 pop bc |
5901 pop bc |
5902 jr nz, p7Dloc_5BC2 |
5902 jr nz, p7Dloc_5BC2 |
5903 ld b, c |
5903 ld b, c |
5904 |
5904 |
5905 p7Dloc_5B77: |
5905 p7Dloc_5B77: |
5906 ld a, (hl) |
5906 ld a, (hl) |
5907 ld c, a |
5907 ld c, a |
5908 ex de, hl |
5908 ex de, hl |
5909 ld a, (appSearchPage) |
5909 ld a, (appSearchPage) |
5910 rst 28h |
5910 rst 28h |
5911 ; --------------------------------------------------------------------------- |
5911 ; --------------------------------------------------------------------------- |
5912 .dw 8051h |
5912 .dw 8051h |
5913 ; --------------------------------------------------------------------------- |
5913 ; --------------------------------------------------------------------------- |
5914 ex de, hl |
5914 ex de, hl |
5915 cp c |
5915 cp c |
5916 jr nz, p7Dloc_5B8E |
5916 jr nz, p7Dloc_5B8E |
5917 inc de |
5917 inc de |
5918 inc hl |
5918 inc hl |
5919 djnz p7Dloc_5B77 |
5919 djnz p7Dloc_5B77 |
5920 pop hl |
5920 pop hl |
5921 ld a, (appSearchPage) |
5921 ld a, (appSearchPage) |
5922 jr p7Dloc_5BC6 |
5922 jr p7Dloc_5BC6 |
5923 ; --------------------------------------------------------------------------- |
5923 ; --------------------------------------------------------------------------- |
5924 |
5924 |
5925 p7Dloc_5B8E: |
5925 p7Dloc_5B8E: |
5926 pop hl |
5926 pop hl |
5927 inc hl |
5927 inc hl |
5928 ld a, (appSearchPage) |
5928 ld a, (appSearchPage) |
5929 push de |
5929 push de |
5930 rst 28h |
5930 rst 28h |
5931 ; --------------------------------------------------------------------------- |
5931 ; --------------------------------------------------------------------------- |
5932 .dw 805Ah |
5932 .dw 805Ah |
5933 ; --------------------------------------------------------------------------- |
5933 ; --------------------------------------------------------------------------- |
5934 pop de |
5934 pop de |
5935 or a |
5935 or a |
5936 adc hl, bc |
5936 adc hl, bc |
5937 inc hl |
5937 inc hl |
5938 ld a, (appSearchPage) |
5938 ld a, (appSearchPage) |
5939 push de |
5939 push de |
5940 rst 28h |
5940 rst 28h |
5941 ; --------------------------------------------------------------------------- |
5941 ; --------------------------------------------------------------------------- |
5942 .dw 805Ah |
5942 .dw 805Ah |
5943 ; --------------------------------------------------------------------------- |
5943 ; --------------------------------------------------------------------------- |
5944 pop de |
5944 pop de |
5945 adc hl, bc |
5945 adc hl, bc |
5946 jr p7Dloc_5B58 |
5946 jr p7Dloc_5B58 |
5947 ; --------------------------------------------------------------------------- |
5947 ; --------------------------------------------------------------------------- |
5948 |
5948 |
5949 p7Dloc_5BA8: |
5949 p7Dloc_5BA8: |
5950 pop hl |
5950 pop hl |
5951 ld a, (appSearchPage) |
5951 ld a, (appSearchPage) |
5952 inc a |
5952 inc a |
5953 ld (appSearchPage), a |
5953 ld (appSearchPage), a |
5954 call NZIf83Plus |
5954 call NZIf83Plus |
5955 jr nz, p7Dloc_5BB9 |
5955 jr nz, p7Dloc_5BB9 |
5956 cp 6Ch ; 'l' |
5956 cp 6Ch ; 'l' |
5957 jr p7Dloc_5BBB |
5957 jr p7Dloc_5BBB |
5958 ; --------------------------------------------------------------------------- |
5958 ; --------------------------------------------------------------------------- |
5959 |
5959 |
5960 p7Dloc_5BB9: |
5960 p7Dloc_5BB9: |
5961 cp 18h |
5961 cp 18h |
5962 |
5962 |
5963 p7Dloc_5BBB: |
5963 p7Dloc_5BBB: |
5964 jr z, p7Dloc_5BC2 |
5964 jr z, p7Dloc_5BC2 |
5965 ld hl, 4000h |
5965 ld hl, 4000h |
5966 jr p7Dloc_5B58 |
5966 jr p7Dloc_5B58 |
5967 ; --------------------------------------------------------------------------- |
5967 ; --------------------------------------------------------------------------- |
5968 |
5968 |
5969 p7Dloc_5BC2: |
5969 p7Dloc_5BC2: |
5970 scf |
5970 scf |
5971 ccf |
5971 ccf |
5972 jr p7Dloc_5BC7 |
5972 jr p7Dloc_5BC7 |
5973 ; --------------------------------------------------------------------------- |
5973 ; --------------------------------------------------------------------------- |
5974 |
5974 |
5975 p7Dloc_5BC6: |
5975 p7Dloc_5BC6: |
5976 scf |
5976 scf |
5977 |
5977 |
5978 p7Dloc_5BC7: |
5978 p7Dloc_5BC7: |
5979 pop de |
5979 pop de |
5980 pop bc |
5980 pop bc |
5981 ret |
5981 ret |
5982 ; End of function p7Dsub_5B4D |
5982 ; End of function p7Dsub_5B4D |
5983 |
5983 |
5984 ; --------------------------------------------------------------------------- |
5984 ; --------------------------------------------------------------------------- |
5985 |
5985 |
5986 Page7D_2BC8: |
5986 Page7D_2BC8: |
5987 push de |
5987 push de |
5988 push bc |
5988 push bc |
5989 push hl |
5989 push hl |
5990 ld (appSearchPage), a |
5990 ld (appSearchPage), a |
5991 call p7Dsub_4894 |
5991 call p7Dsub_4894 |
5992 call p7Dsub_457C |
5992 call p7Dsub_457C |
5993 ld a, (appSearchPage) |
5993 ld a, (appSearchPage) |
5994 pop hl |
5994 pop hl |
5995 call p7Dloc_529F |
5995 call p7Dloc_529F |
5996 pop bc |
5996 pop bc |
5997 pop de |
5997 pop de |
5998 ret |
5998 ret |
5999 ; --------------------------------------------------------------------------- |
5999 ; --------------------------------------------------------------------------- |
6000 |
6000 |
6001 Page7D_3C54: |
6001 Page7D_3C54: |
6002 ld (Abackup), a |
6002 ld (Abackup), a |
6003 ld a, i |
6003 ld a, i |
6004 di |
6004 di |
6005 push af |
6005 push af |
6006 ld a, (Abackup) |
6006 ld a, (Abackup) |
6007 push af |
6007 push af |
6008 ld a, 1 |
6008 ld a, 1 |
6009 nop |
6009 nop |
6010 di |
6010 di |
6011 nop |
6011 nop |
6012 nop |
6012 nop |
6013 im 1 |
6013 im 1 |
6014 di |
6014 di |
6015 out (14h), a |
6015 out (14h), a |
6016 di |
6016 di |
6017 call checkForFlashTrickery |
6017 call checkForFlashTrickery |
6018 pop af |
6018 pop af |
6019 push de |
6019 push de |
6020 push bc |
6020 push bc |
6021 |
6021 |
6022 p7Dloc_5BFD: |
6022 p7Dloc_5BFD: |
6023 ld de, 410h |
6023 ld de, 410h |
6024 rst 28h |
6024 rst 28h |
6025 ; --------------------------------------------------------------------------- |
6025 ; --------------------------------------------------------------------------- |
6026 .dw 8027h |
6026 .dw 8027h |
6027 ; --------------------------------------------------------------------------- |
6027 ; --------------------------------------------------------------------------- |
6028 jr z, p7Dloc_5C0A |
6028 jr z, p7Dloc_5C0A |
6029 rst 28h |
6029 rst 28h |
6030 ; --------------------------------------------------------------------------- |
6030 ; --------------------------------------------------------------------------- |
6031 .dw 80AEh |
6031 .dw 80AEh |
6032 ; --------------------------------------------------------------------------- |
6032 ; --------------------------------------------------------------------------- |
6033 jr p7Dloc_5BFD |
6033 jr p7Dloc_5BFD |
6034 ; --------------------------------------------------------------------------- |
6034 ; --------------------------------------------------------------------------- |
6035 |
6035 |
6036 p7Dloc_5C0A: |
6036 p7Dloc_5C0A: |
6037 call p7Dsub_4574 |
6037 call p7Dsub_4574 |
6038 ld de, OP2 |
6038 ld de, OP2 |
6039 rst 28h |
6039 rst 28h |
6040 ; --------------------------------------------------------------------------- |
6040 ; --------------------------------------------------------------------------- |
6041 .dw 8051h |
6041 .dw 8051h |
6042 ; --------------------------------------------------------------------------- |
6042 ; --------------------------------------------------------------------------- |
6043 ld (de), a |
6043 ld (de), a |
6044 inc de |
6044 inc de |
6045 call p7Dsub_4565 |
6045 call p7Dsub_4565 |
6046 ld (de), a |
6046 ld (de), a |
6047 ld hl, OP2 |
6047 ld hl, OP2 |
6048 pop bc |
6048 pop bc |
6049 pop de |
6049 pop de |
6050 call relockFlashBack |
6050 call relockFlashBack |
6051 ld (Abackup), a |
6051 ld (Abackup), a |
6052 pop af |
6052 pop af |
6053 jp po, p7Dloc_5C29 |
6053 jp po, p7Dloc_5C29 |
6054 ei |
6054 ei |
6055 |
6055 |
6056 p7Dloc_5C29: |
6056 p7Dloc_5C29: |
6057 ld a, (Abackup) |
6057 ld a, (Abackup) |
6058 ret |
6058 ret |
6059 ; --------------------------------------------------------------------------- |
6059 ; --------------------------------------------------------------------------- |
6060 |
6060 |
6061 p7Dloc_5C2D: |
6061 p7Dloc_5C2D: |
6062 ld hl, 4000h |
6062 ld hl, 4000h |
6063 ld de, 8090h |
6063 ld de, 8090h |
6064 rst 28h |
6064 rst 28h |
6065 ; --------------------------------------------------------------------------- |
6065 ; --------------------------------------------------------------------------- |
6066 .dw 8075h |
6066 .dw 8075h |
6067 ; --------------------------------------------------------------------------- |
6067 ; --------------------------------------------------------------------------- |
6068 ret |
6068 ret |
6069 ; --------------------------------------------------------------------------- |
6069 ; --------------------------------------------------------------------------- |
6070 |
6070 |
6071 Page7D_2C1C: |
6071 Page7D_2C1C: |
6072 push hl |
6072 push hl |
6073 call p7Dsub_7656 |
6073 call p7Dsub_7656 |
6074 ld hl, 4000h |
6074 ld hl, 4000h |
6075 rst 28h |
6075 rst 28h |
6076 ; --------------------------------------------------------------------------- |
6076 ; --------------------------------------------------------------------------- |
6077 .dw 8051h |
6077 .dw 8051h |
6078 ; --------------------------------------------------------------------------- |
6078 ; --------------------------------------------------------------------------- |
6079 cp 0 |
6079 cp 0 |
6080 pop hl |
6080 pop hl |
6081 ret |
6081 ret |
6082 ; --------------------------------------------------------------------------- |
6082 ; --------------------------------------------------------------------------- |
6083 |
6083 |
6084 Page7D_2BDA: |
6084 Page7D_2BDA: |
6085 push de |
6085 push de |
6086 push bc |
6086 push bc |
6087 push af |
6087 push af |
6088 push hl |
6088 push hl |
6089 push af |
6089 push af |
6090 ld a, 1 |
6090 ld a, 1 |
6091 nop |
6091 nop |
6092 di |
6092 di |
6093 nop |
6093 nop |
6094 nop |
6094 nop |
6095 im 1 |
6095 im 1 |
6096 di |
6096 di |
6097 out (14h), a |
6097 out (14h), a |
6098 di |
6098 di |
6099 call checkForFlashTrickery |
6099 call checkForFlashTrickery |
6100 pop af |
6100 pop af |
6101 ld de, 4000h |
6101 ld de, 4000h |
6102 ld b, 0 |
6102 ld b, 0 |
6103 call p7Dsub_7656 |
6103 call p7Dsub_7656 |
6104 rst 28h |
6104 rst 28h |
6105 ; --------------------------------------------------------------------------- |
6105 ; --------------------------------------------------------------------------- |
6106 .dw 80C6h |
6106 .dw 80C6h |
6107 ; --------------------------------------------------------------------------- |
6107 ; --------------------------------------------------------------------------- |
6108 pop hl |
6108 pop hl |
6109 push hl |
6109 push hl |
6110 ld b, l |
6110 ld b, l |
6111 call p7Dsub_7656 |
6111 call p7Dsub_7656 |
6112 rst 28h |
6112 rst 28h |
6113 ; --------------------------------------------------------------------------- |
6113 ; --------------------------------------------------------------------------- |
6114 .dw 80C6h |
6114 .dw 80C6h |
6115 ; --------------------------------------------------------------------------- |
6115 ; --------------------------------------------------------------------------- |
6116 pop hl |
6116 pop hl |
6117 ld b, h |
6117 ld b, h |
6118 call p7Dsub_7656 |
6118 call p7Dsub_7656 |
6119 rst 28h |
6119 rst 28h |
6120 ; --------------------------------------------------------------------------- |
6120 ; --------------------------------------------------------------------------- |
6121 .dw 80C6h |
6121 .dw 80C6h |
6122 ; --------------------------------------------------------------------------- |
6122 ; --------------------------------------------------------------------------- |
6123 pop af |
6123 pop af |
6124 pop bc |
6124 pop bc |
6125 pop de |
6125 pop de |
6126 jp relockFlashBack |
6126 jp relockFlashBack |
6127 ; --------------------------------------------------------------------------- |
6127 ; --------------------------------------------------------------------------- |
6128 |
6128 |
6129 Page7D_3C4E: |
6129 Page7D_3C4E: |
6130 push hl |
6130 push hl |
6131 |
6131 |
6132 p7Dloc_5C7D: |
6132 p7Dloc_5C7D: |
6133 ld a, (ix+0) |
6133 ld a, (ix+0) |
6134 push bc |
6134 push bc |
6135 call p7Dsub_5C8E |
6135 call p7Dsub_5C8E |
6136 pop bc |
6136 pop bc |
6137 inc ix |
6137 inc ix |
6138 djnz p7Dloc_5C7D |
6138 djnz p7Dloc_5C7D |
6139 call p7Dsub_6503 |
6139 call p7Dsub_6503 |
6140 pop hl |
6140 pop hl |
6141 ret |
6141 ret |
6142 |
6142 |
6143 ; =============== S U B R O U T I N E ======================================= |
6143 ; =============== S U B R O U T I N E ======================================= |
6144 |
6144 |
6145 |
6145 |
6146 p7Dsub_5C8E: |
6146 p7Dsub_5C8E: |
6147 ld a, (ix+0) |
6147 ld a, (ix+0) |
6148 push af |
6148 push af |
6149 and 0F0h ; '�' |
6149 and 0F0h ; '�' |
6150 srl a |
6150 srl a |
6151 srl a |
6151 srl a |
6152 srl a |
6152 srl a |
6153 srl a |
6153 srl a |
6154 ld b, 2 |
6154 ld b, 2 |
6155 |
6155 |
6156 p7Dloc_5C9E: |
6156 p7Dloc_5C9E: |
6157 push af |
6157 push af |
6158 sub 0Ah |
6158 sub 0Ah |
6159 jr c, p7Dloc_5CB2 |
6159 jr c, p7Dloc_5CB2 |
6160 pop af |
6160 pop af |
6161 add a, 37h ; '7' |
6161 add a, 37h ; '7' |
6162 ld (hl), a |
6162 ld (hl), a |
6163 inc hl |
6163 inc hl |
6164 dec b |
6164 dec b |
6165 ld a, b |
6165 ld a, b |
6166 or b |
6166 or b |
6167 jr z, p7Dloc_5CC1 |
6167 jr z, p7Dloc_5CC1 |
6168 pop af |
6168 pop af |
6169 and 0Fh |
6169 and 0Fh |
6170 jr p7Dloc_5C9E |
6170 jr p7Dloc_5C9E |
6171 ; --------------------------------------------------------------------------- |
6171 ; --------------------------------------------------------------------------- |
6172 |
6172 |
6173 p7Dloc_5CB2: |
6173 p7Dloc_5CB2: |
6174 pop af |
6174 pop af |
6175 add a, 30h ; '0' |
6175 add a, 30h ; '0' |
6176 ld (hl), a |
6176 ld (hl), a |
6177 inc hl |
6177 inc hl |
6178 dec b |
6178 dec b |
6179 ld a, b |
6179 ld a, b |
6180 or b |
6180 or b |
6181 jr z, p7Dloc_5CC1 |
6181 jr z, p7Dloc_5CC1 |
6182 pop af |
6182 pop af |
6183 and 0Fh |
6183 and 0Fh |
6184 jr p7Dloc_5C9E |
6184 jr p7Dloc_5C9E |
6185 ; --------------------------------------------------------------------------- |
6185 ; --------------------------------------------------------------------------- |
6186 |
6186 |
6187 p7Dloc_5CC1: |
6187 p7Dloc_5CC1: |
6188 ld a, 0 |
6188 ld a, 0 |
6189 ld (hl), a |
6189 ld (hl), a |
6190 ret |
6190 ret |
6191 ; End of function p7Dsub_5C8E |
6191 ; End of function p7Dsub_5C8E |
6192 |
6192 |
6193 ; --------------------------------------------------------------------------- |
6193 ; --------------------------------------------------------------------------- |
6194 |
6194 |
6195 Page7D_3C5A: |
6195 Page7D_3C5A: |
6196 push hl |
6196 push hl |
6197 push bc |
6197 push bc |
6198 push de |
6198 push de |
6199 ld a, (hl) |
6199 ld a, (hl) |
6200 push af |
6200 push af |
6201 and 0F0h ; '�' |
6201 and 0F0h ; '�' |
6202 srl a |
6202 srl a |
6203 srl a |
6203 srl a |
6204 srl a |
6204 srl a |
6205 srl a |
6205 srl a |
6206 ld b, 2 |
6206 ld b, 2 |
6207 |
6207 |
6208 p7Dloc_5CD6: |
6208 p7Dloc_5CD6: |
6209 push af |
6209 push af |
6210 sub 0Ah |
6210 sub 0Ah |
6211 jr c, p7Dloc_5CEB |
6211 jr c, p7Dloc_5CEB |
6212 pop af |
6212 pop af |
6213 add a, 37h ; '7' |
6213 add a, 37h ; '7' |
6214 call Page0Call_3D47 |
6214 call Page0Call_3D47 |
6215 dec b |
6215 dec b |
6216 ld a, b |
6216 ld a, b |
6217 or b |
6217 or b |
6218 jr z, p7Dloc_5CFB |
6218 jr z, p7Dloc_5CFB |
6219 pop af |
6219 pop af |
6220 and 0Fh |
6220 and 0Fh |
6221 jr p7Dloc_5CD6 |
6221 jr p7Dloc_5CD6 |
6222 ; --------------------------------------------------------------------------- |
6222 ; --------------------------------------------------------------------------- |
6223 |
6223 |
6224 p7Dloc_5CEB: |
6224 p7Dloc_5CEB: |
6225 pop af |
6225 pop af |
6226 add a, 30h ; '0' |
6226 add a, 30h ; '0' |
6227 call Page0Call_3D47 |
6227 call Page0Call_3D47 |
6228 dec b |
6228 dec b |
6229 ld a, b |
6229 ld a, b |
6230 or b |
6230 or b |
6231 jr z, p7Dloc_5CFB |
6231 jr z, p7Dloc_5CFB |
6232 pop af |
6232 pop af |
6233 and 0Fh |
6233 and 0Fh |
6234 jr p7Dloc_5CD6 |
6234 jr p7Dloc_5CD6 |
6235 ; --------------------------------------------------------------------------- |
6235 ; --------------------------------------------------------------------------- |
6236 |
6236 |
6237 p7Dloc_5CFB: |
6237 p7Dloc_5CFB: |
6238 pop de |
6238 pop de |
6239 pop bc |
6239 pop bc |
6240 pop hl |
6240 pop hl |
6241 ret |
6241 ret |
6242 |
6242 |
6243 ; =============== S U B R O U T I N E ======================================= |
6243 ; =============== S U B R O U T I N E ======================================= |
6244 |
6244 |
6245 |
6245 |
6366 |
6366 |
6367 Page7D_2E44: |
6367 Page7D_2E44: |
6368 push af |
6368 push af |
6369 push hl |
6369 push hl |
6370 call Page7D_2B56 |
6370 call Page7D_2B56 |
6371 ld e, b |
6371 ld e, b |
6372 ld d, 0 |
6372 ld d, 0 |
6373 push de |
6373 push de |
6374 inc b |
6374 inc b |
6375 ld c, 0 |
6375 ld c, 0 |
6376 ld a, 8 |
6376 ld a, 8 |
6377 |
6377 |
6378 p7Dloc_5D76: |
6378 p7Dloc_5D76: |
6379 cp b |
6379 cp b |
6380 jr z, p7Dloc_5DC2 |
6380 jr z, p7Dloc_5DC2 |
6381 jr nc, p7Dloc_5DC0 |
6381 jr nc, p7Dloc_5DC0 |
6382 push bc |
6382 push bc |
6383 ld hl, 4000h |
6383 ld hl, 4000h |
6384 push af |
6384 push af |
6385 call Page7D_2CD0 |
6385 call Page7D_2CD0 |
6386 cp 0FEh ; '�' |
6386 cp 0FEh ; '�' |
6387 jr nz, p7Dloc_5D8D |
6387 jr nz, p7Dloc_5D8D |
6388 pop af |
6388 pop af |
6389 add a, 4 |
6389 add a, 4 |
6390 |
6390 |
6391 p7Dloc_5D8A: |
6391 p7Dloc_5D8A: |
6392 pop bc |
6392 pop bc |
6393 jr p7Dloc_5D76 |
6393 jr p7Dloc_5D76 |
6394 ; --------------------------------------------------------------------------- |
6394 ; --------------------------------------------------------------------------- |
6395 |
6395 |
6396 p7Dloc_5D8D: |
6396 p7Dloc_5D8D: |
6397 cp 0FFh |
6397 cp 0FFh |
6398 jr z, p7Dloc_5D9F |
6398 jr z, p7Dloc_5D9F |
6399 pop af |
6399 pop af |
6400 pop bc |
6400 pop bc |
6401 pop de |
6401 pop de |
6402 push af |
6402 push af |
6403 ld a, c |
6403 ld a, c |
6404 add a, d |
6404 add a, d |
6405 ld d, a |
6405 ld d, a |
6406 pop af |
6406 pop af |
6407 push de |
6407 push de |
6408 ld c, 0 |
6408 ld c, 0 |
6409 push bc |
6409 push bc |
6410 push af |
6410 push af |
6411 inc hl |
6411 inc hl |
6412 |
6412 |
6413 p7Dloc_5D9F: |
6413 p7Dloc_5D9F: |
6414 pop af |
6414 pop af |
6415 ld c, 0FFh |
6415 ld c, 0FFh |
6416 call Page7D_2B6E |
6416 call Page7D_2B6E |
6417 ld bc, 4000h |
6417 ld bc, 4000h |
6418 or a |
6418 or a |
6419 sbc hl, bc |
6419 sbc hl, bc |
6420 jr nz, p7Dloc_5DB0 |
6420 jr nz, p7Dloc_5DB0 |
6421 pop bc |
6421 pop bc |
6422 inc c |
6422 inc c |
6423 push bc |
6423 push bc |
6424 |
6424 |
6425 p7Dloc_5DB0: |
6425 p7Dloc_5DB0: |
6426 ; Page7D_2E44+56j |
6426 ; Page7D_2E44+56j |
6427 inc a |
6427 inc a |
6428 pop bc |
6428 pop bc |
6429 cp b |
6429 cp b |
6430 jr z, p7Dloc_5DC2 |
6430 jr z, p7Dloc_5DC2 |
6431 push bc |
6431 push bc |
6432 call p7Dsub_67EC |
6432 call p7Dsub_67EC |
6433 jr z, p7Dloc_5D8A |
6433 jr z, p7Dloc_5D8A |
6434 pop bc |
6434 pop bc |
6435 inc c |
6435 inc c |
6436 push bc |
6436 push bc |
6437 jr p7Dloc_5DB0 |
6437 jr p7Dloc_5DB0 |
6438 ; --------------------------------------------------------------------------- |
6438 ; --------------------------------------------------------------------------- |
6439 |
6439 |
6440 p7Dloc_5DC0: |
6440 p7Dloc_5DC0: |
6441 xor a |
6441 xor a |
6442 ld c, a |
6442 ld c, a |
6443 |
6443 |
6444 p7Dloc_5DC2: |
6444 p7Dloc_5DC2: |
6445 ; Page7D_2E44+4Bj |
6445 ; Page7D_2E44+4Bj |
6446 ld b, c |
6446 ld b, c |
6447 pop de |
6447 pop de |
6448 pop hl |
6448 pop hl |
6449 pop af |
6449 pop af |
6450 ret |
6450 ret |
6451 ; End of function Page7D_2E44 |
6451 ; End of function Page7D_2E44 |
6452 |
6452 |
6453 |
6453 |
6454 ; =============== S U B R O U T I N E ======================================= |
6454 ; =============== S U B R O U T I N E ======================================= |
6455 |
6455 |
6456 |
6456 |
6457 p7Dsub_5DC7: |
6457 p7Dsub_5DC7: |
6458 call Page7D_2E44 |
6458 call Page7D_2E44 |
6459 ld c, e |
6459 ld c, e |
6460 push bc |
6460 push bc |
6461 push de |
6461 push de |
6462 ld a, 1 |
6462 ld a, 1 |
6463 ld hl, ramStart |
6463 ld hl, ramStart |
6464 ld de, 8080h |
6464 ld de, 8080h |
6465 rst 28h |
6465 rst 28h |
6466 ; --------------------------------------------------------------------------- |
6466 ; --------------------------------------------------------------------------- |
6467 .dw 8075h |
6467 .dw 8075h |
6468 ; --------------------------------------------------------------------------- |
6468 ; --------------------------------------------------------------------------- |
6469 inc hl |
6469 inc hl |
6470 ld a, 1 |
6470 ld a, 1 |
6471 rst 28h |
6471 rst 28h |
6472 ; --------------------------------------------------------------------------- |
6472 ; --------------------------------------------------------------------------- |
6473 .dw 805Ah |
6473 .dw 805Ah |
6474 ; --------------------------------------------------------------------------- |
6474 ; --------------------------------------------------------------------------- |
6475 ld a, (hl) |
6475 ld a, (hl) |
6476 pop de |
6476 pop de |
6477 ld e, d |
6477 ld e, d |
6478 ld d, a |
6478 ld d, a |
6479 pop bc |
6479 pop bc |
6480 sub b |
6480 sub b |
6481 ret |
6481 ret |
6482 ; End of function p7Dsub_5DC7 |
6482 ; End of function p7Dsub_5DC7 |
6483 |
6483 |
6484 ; --------------------------------------------------------------------------- |
6484 ; --------------------------------------------------------------------------- |
6485 |
6485 |
6486 Page7D_2BF2: |
6486 Page7D_2BF2: |
6487 push hl |
6487 push hl |
6488 push bc |
6488 push bc |
6489 push de |
6489 push de |
6490 push hl |
6490 push hl |
6491 rst 28h |
6491 rst 28h |
6492 ; --------------------------------------------------------------------------- |
6492 ; --------------------------------------------------------------------------- |
6493 .dw 802Dh |
6493 .dw 802Dh |
6494 ; --------------------------------------------------------------------------- |
6494 ; --------------------------------------------------------------------------- |
6495 ex de, hl |
6495 ex de, hl |
6496 rst 28h |
6496 rst 28h |
6497 ; --------------------------------------------------------------------------- |
6497 ; --------------------------------------------------------------------------- |
6498 .dw 8057h |
6498 .dw 8057h |
6499 ; --------------------------------------------------------------------------- |
6499 ; --------------------------------------------------------------------------- |
6500 ex de, hl |
6500 ex de, hl |
6501 or a |
6501 or a |
6502 sbc hl, de |
6502 sbc hl, de |
6503 ex de, hl |
6503 ex de, hl |
6504 ld hl, 1F18h |
6504 ld hl, 1F18h |
6505 call NZIf83Plus |
6505 call NZIf83Plus |
6506 jr nz, p7Dloc_5E00 |
6506 jr nz, p7Dloc_5E00 |
6507 ld hl, 1DEAh |
6507 ld hl, 1DEAh |
6508 |
6508 |
6509 p7Dloc_5E00: |
6509 p7Dloc_5E00: |
6510 or a |
6510 or a |
6511 sbc hl, de |
6511 sbc hl, de |
6512 pop bc |
6512 pop bc |
6513 sbc hl, bc |
6513 sbc hl, bc |
6514 pop de |
6514 pop de |
6515 pop bc |
6515 pop bc |
6516 pop hl |
6516 pop hl |
6517 ret |
6517 ret |
6518 |
6518 |
6519 ; =============== S U B R O U T I N E ======================================= |
6519 ; =============== S U B R O U T I N E ======================================= |
6520 |
6520 |
6521 |
6521 |
6522 p7Dsub_5E0A: |
6522 p7Dsub_5E0A: |
6523 ; p7Dsub_7240:p7Dloc_739Bp |
6523 ; p7Dsub_7240:p7Dloc_739Bp |
6524 ld a, (unk_83A3) |
6524 ld a, (unk_83A3) |
6525 ld b, a |
6525 ld b, a |
6526 ld c, 0 |
6526 ld c, 0 |
6527 or c |
6527 or c |
6528 jr z, p7Dloc_5E23 |
6528 jr z, p7Dloc_5E23 |
6529 ld hl, ramStart |
6529 ld hl, ramStart |
6530 |
6530 |
6531 p7Dloc_5E16: |
6531 p7Dloc_5E16: |
6532 push bc |
6532 push bc |
6533 push hl |
6533 push hl |
6534 ld bc, 1 |
6534 ld bc, 1 |
6535 rst 28h |
6535 rst 28h |
6536 ; --------------------------------------------------------------------------- |
6536 ; --------------------------------------------------------------------------- |
6537 .dw 8090h |
6537 .dw 8090h |
6538 ; --------------------------------------------------------------------------- |
6538 ; --------------------------------------------------------------------------- |
6539 pop hl |
6539 pop hl |
6540 inc hl |
6540 inc hl |
6541 pop bc |
6541 pop bc |
6542 djnz p7Dloc_5E16 |
6542 djnz p7Dloc_5E16 |
6543 |
6543 |
6544 p7Dloc_5E23: |
6544 p7Dloc_5E23: |
6545 ld a, 0 |
6545 ld a, 0 |
6546 ld (unk_83A3), a |
6546 ld (unk_83A3), a |
6547 ret |
6547 ret |
6548 ; End of function p7Dsub_5E0A |
6548 ; End of function p7Dsub_5E0A |
6549 |
6549 |
6550 ; --------------------------------------------------------------------------- |
6550 ; --------------------------------------------------------------------------- |
6551 ; START OF FUNCTION CHUNK FOR Page7D_2C9A |
6551 ; START OF FUNCTION CHUNK FOR Page7D_2C9A |
6552 |
6552 |
6553 p7Dloc_5E29: |
6553 p7Dloc_5E29: |
6554 ; p7Dsub_5E59+9j |
6554 ; p7Dsub_5E59+9j |
6555 ld a, 0Ch |
6555 ld a, 0Ch |
6556 call Page0Call_2C49 |
6556 call Page0Call_2C49 |
6557 jp JErrorNo |
6557 jp JErrorNo |
6558 ; END OF FUNCTION CHUNK FOR Page7D_2C9A |
6558 ; END OF FUNCTION CHUNK FOR Page7D_2C9A |
6559 |
6559 |
6560 ; =============== S U B R O U T I N E ======================================= |
6560 ; =============== S U B R O U T I N E ======================================= |
6561 |
6561 |
6562 |
6562 |
6563 p7Dsub_5E31: |
6563 p7Dsub_5E31: |
6564 ld hl, 4000h |
6564 ld hl, 4000h |
6565 ; End of function p7Dsub_5E31 |
6565 ; End of function p7Dsub_5E31 |
6566 |
6566 |
6567 |
6567 |
6568 ; =============== S U B R O U T I N E ======================================= |
6568 ; =============== S U B R O U T I N E ======================================= |
6569 |
6569 |
6753 p7Dsub_5EFC: |
6753 p7Dsub_5EFC: |
6754 push hl |
6754 push hl |
6755 push bc |
6755 push bc |
6756 push de |
6756 push de |
6757 push hl |
6757 push hl |
6758 pop de |
6758 pop de |
6759 ld b, a |
6759 ld b, a |
6760 ld c, 8 |
6760 ld c, 8 |
6761 sub c |
6761 sub c |
6762 jr c, p7Dloc_5F25 |
6762 jr c, p7Dloc_5F25 |
6763 call p7Dsub_75EC |
6763 call p7Dsub_75EC |
6764 inc a |
6764 inc a |
6765 ld c, a |
6765 ld c, a |
6766 ld a, b |
6766 ld a, b |
6767 sub c |
6767 sub c |
6768 jr nc, p7Dloc_5F25 |
6768 jr nc, p7Dloc_5F25 |
6769 ld bc, 4000h |
6769 ld bc, 4000h |
6770 or a |
6770 or a |
6771 sbc hl, bc |
6771 sbc hl, bc |
6772 jr c, p7Dloc_5F25 |
6772 jr c, p7Dloc_5F25 |
6773 push de |
6773 push de |
6774 pop hl |
6774 pop hl |
6775 or a |
6775 or a |
6776 ld bc, ramStart |
6776 ld bc, ramStart |
6777 sbc hl, bc |
6777 sbc hl, bc |
6778 jr nc, p7Dloc_5F25 |
6778 jr nc, p7Dloc_5F25 |
6779 or a |
6779 or a |
6780 jr p7Dloc_5F26 |
6780 jr p7Dloc_5F26 |
6781 ; --------------------------------------------------------------------------- |
6781 ; --------------------------------------------------------------------------- |
6782 |
6782 |
6783 p7Dloc_5F25: |
6783 p7Dloc_5F25: |
6784 scf |
6784 scf |
6785 |
6785 |
6786 p7Dloc_5F26: |
6786 p7Dloc_5F26: |
6787 pop de |
6787 pop de |
6788 pop bc |
6788 pop bc |
6789 pop hl |
6789 pop hl |
6790 ret |
6790 ret |
6791 ; End of function p7Dsub_5EFC |
6791 ; End of function p7Dsub_5EFC |
6792 |
6792 |
6793 ; --------------------------------------------------------------------------- |
6793 ; --------------------------------------------------------------------------- |
6794 |
6794 |
6795 Page7D_2BF8: |
6795 Page7D_2BF8: |
6796 push hl |
6796 push hl |
6797 rst 28h |
6797 rst 28h |
6798 ; --------------------------------------------------------------------------- |
6798 ; --------------------------------------------------------------------------- |
6799 .dw 8057h |
6799 .dw 8057h |
6800 ; --------------------------------------------------------------------------- |
6800 ; --------------------------------------------------------------------------- |
6801 ld de, 0A10h |
6801 ld de, 0A10h |
6802 call p7Dsub_777E |
6802 call p7Dsub_777E |
6803 jp z, JError |
6803 jp z, JError |
6804 pop hl |
6804 pop hl |
6805 ld de, 0A10h |
6805 ld de, 0A10h |
6806 call p7Dsub_777E |
6806 call p7Dsub_777E |
6807 jp nz, JError |
6807 jp nz, JError |
6808 ex de, hl |
6808 ex de, hl |
6809 push de |
6809 push de |
6810 rst 28h |
6810 rst 28h |
6811 ; --------------------------------------------------------------------------- |
6811 ; --------------------------------------------------------------------------- |
6812 .dw 802Dh |
6812 .dw 802Dh |
6813 ; --------------------------------------------------------------------------- |
6813 ; --------------------------------------------------------------------------- |
6814 pop de |
6814 pop de |
6815 ld bc, 2 |
6815 ld bc, 2 |
6816 ex de, hl |
6816 ex de, hl |
6817 |
6817 |
6818 p7Dloc_5F4B: |
6818 p7Dloc_5F4B: |
6819 push bc |
6819 push bc |
6820 call p7Dsub_4566 |
6820 call p7Dsub_4566 |
6821 ld b, a |
6821 ld b, a |
6822 push hl |
6822 push hl |
6823 call p7Dsub_456D |
6823 call p7Dsub_456D |
6824 pop hl |
6824 pop hl |
6825 call p7Dsub_4565 |
6825 call p7Dsub_4565 |
6826 ld b, a |
6826 ld b, a |
6827 push hl |
6827 push hl |
6828 call p7Dsub_456D |
6828 call p7Dsub_456D |
6829 pop hl |
6829 pop hl |
6830 push de |
6830 push de |
6831 push hl |
6831 push hl |
6832 call p7Dloc_4575 |
6832 call p7Dloc_4575 |
6833 pop de |
6833 pop de |
6834 push bc |
6834 push bc |
6835 push hl |
6835 push hl |
6836 sbc hl, de |
6836 sbc hl, de |
6837 ld b, l |
6837 ld b, l |
6838 dec b |
6838 dec b |
6839 pop hl |
6839 pop hl |
6840 ld a, 0 |
6840 ld a, 0 |
6841 cp b |
6841 cp b |
6842 jr z, p7Dloc_5F74 |
6842 jr z, p7Dloc_5F74 |
6843 |
6843 |
6844 p7Dloc_5F70: |
6844 p7Dloc_5F70: |
6845 inc a |
6845 inc a |
6846 dec hl |
6846 dec hl |
6847 djnz p7Dloc_5F70 |
6847 djnz p7Dloc_5F70 |
6848 |
6848 |
6849 p7Dloc_5F74: |
6849 p7Dloc_5F74: |
6850 pop bc |
6850 pop bc |
6851 pop de |
6851 pop de |
6852 or a |
6852 or a |
6853 adc a, c |
6853 adc a, c |
6854 ld c, a |
6854 ld c, a |
6855 ld a, 7Eh ; '~' |
6855 ld a, 7Eh ; '~' |
6856 push de |
6856 push de |
6857 push bc |
6857 push bc |
6858 ld de, MD5Buffer |
6858 ld de, MD5Buffer |
6859 rst 28h |
6859 rst 28h |
6860 ; --------------------------------------------------------------------------- |
6860 ; --------------------------------------------------------------------------- |
6861 .dw 8054h |
6861 .dw 8054h |
6862 ; --------------------------------------------------------------------------- |
6862 ; --------------------------------------------------------------------------- |
6863 push hl |
6863 push hl |
6864 ld hl, MD5Buffer |
6864 ld hl, MD5Buffer |
6865 call p7Dsub_5F9F |
6865 call p7Dsub_5F9F |
6866 pop hl |
6866 pop hl |
6867 pop bc |
6867 pop bc |
6868 pop de |
6868 pop de |
6869 push hl |
6869 push hl |
6870 ld hl, MD5Buffer |
6870 ld hl, MD5Buffer |
6871 ld a, 7Eh ; '~' |
6871 ld a, 7Eh ; '~' |
6872 rst 28h |
6872 rst 28h |
6873 ; --------------------------------------------------------------------------- |
6873 ; --------------------------------------------------------------------------- |
6874 .dw 8087h |
6874 .dw 8087h |
6875 ; --------------------------------------------------------------------------- |
6875 ; --------------------------------------------------------------------------- |
6876 pop hl |
6876 pop hl |
6877 pop bc |
6877 pop bc |
6878 dec c |
6878 dec c |
6879 ld a, c |
6879 ld a, c |
6880 cp 0 |
6880 cp 0 |
6881 jr nz, p7Dloc_5F4B |
6881 jr nz, p7Dloc_5F4B |
6882 ret |
6882 ret |
6883 |
6883 |
6884 ; =============== S U B R O U T I N E ======================================= |
6884 ; =============== S U B R O U T I N E ======================================= |
6885 |
6885 |
6886 |
6886 |
6887 p7Dsub_5F9F: |
6887 p7Dsub_5F9F: |
6888 push hl |
6888 push hl |
6889 ld a, (hl) |
6889 ld a, (hl) |
6890 cp 0 |
6890 cp 0 |
6891 jr nz, p7Dloc_5FBD |
6891 jr nz, p7Dloc_5FBD |
6892 push hl |
6892 push hl |
6893 ld d, (hl) |
6893 ld d, (hl) |
6894 inc hl |
6894 inc hl |
6895 ld e, (hl) |
6895 ld e, (hl) |
6896 push de |
6896 push de |
6897 rst 28h |
6897 rst 28h |
6898 ; --------------------------------------------------------------------------- |
6898 ; --------------------------------------------------------------------------- |
6899 .dw 80C3h |
6899 .dw 80C3h |
6900 ; --------------------------------------------------------------------------- |
6900 ; --------------------------------------------------------------------------- |
6901 push de |
6901 push de |
6902 pop bc |
6902 pop bc |
6903 pop de |
6903 pop de |
6904 ex de, hl |
6904 ex de, hl |
6905 ld h, b |
6905 ld h, b |
6906 ld a, l |
6906 ld a, l |
6907 and 0Fh |
6907 and 0Fh |
6908 or a |
6908 or a |
6909 adc a, c |
6909 adc a, c |
6910 ld l, a |
6910 ld l, a |
6911 ex de, hl |
6911 ex de, hl |
6912 pop hl |
6912 pop hl |
6913 ld (hl), e |
6913 ld (hl), e |
6914 inc hl |
6914 inc hl |
6915 ld (hl), d |
6915 ld (hl), d |
6916 |
6916 |
6917 p7Dloc_5FBD: |
6917 p7Dloc_5FBD: |
6918 pop hl |
6918 pop hl |
6919 ret |
6919 ret |
6920 ; End of function p7Dsub_5F9F |
6920 ; End of function p7Dsub_5F9F |
6921 |
6921 |
6922 ; --------------------------------------------------------------------------- |
6922 ; --------------------------------------------------------------------------- |
6923 start_of_7D_table: |
6923 start_of_7D_table: |
6924 .db 0 |
6924 .db 0 |
6925 .db 0 |
6925 .db 0 |
6926 .db 1Fh |
6926 .db 1Fh |
6927 .db 0 |
6927 .db 0 |
6928 .db 3Bh ; ; |
6928 .db 3Bh ; ; |
6929 .db 0 |
6929 .db 0 |
6930 .db 5Ah ; Z |
6930 .db 5Ah ; Z |
6931 .db 0 |
6931 .db 0 |
6932 .db 78h ; x |
6932 .db 78h ; x |
6933 .db 0 |
6933 .db 0 |
6934 .db 97h ; � |
6934 .db 97h ; � |
6935 .db 0 |
6935 .db 0 |
6936 .db 0B5h ; � |
6936 .db 0B5h ; � |
6937 .db 0 |
6937 .db 0 |
6938 .db 0D4h ; � |
6938 .db 0D4h ; � |
6939 .db 0 |
6939 .db 0 |
6940 .db 0F3h ; � |
6940 .db 0F3h ; � |
6941 .db 0 |
6941 .db 0 |
6942 .db 11h |
6942 .db 11h |
6943 .db 1 |
6943 .db 1 |
6944 .db 30h ; 0 |
6944 .db 30h ; 0 |
6945 .db 1 |
6945 .db 1 |
6946 .db 4Eh ; N |
6946 .db 4Eh ; N |
6947 .db 1 |
6947 .db 1 |
6948 .db 0FFh |
6948 .db 0FFh |
6949 .db 0FFh |
6949 .db 0FFh |
6950 end_of_7D_table: |
6950 end_of_7D_table: |
6951 .db 3Ch ; < |
6951 .db 3Ch ; < |
6952 .db 0 |
6952 .db 0 |
6953 |
6953 |
6954 ; =============== S U B R O U T I N E ======================================= |
6954 ; =============== S U B R O U T I N E ======================================= |
6955 |
6955 |
6956 |
6956 |
6957 relockFlashBack: |
6957 relockFlashBack: |
6958 push af |
6958 push af |
6959 xor a |
6959 xor a |
6960 nop |
6960 nop |
6961 di |
6961 di |
6962 nop |
6962 nop |
6963 nop |
6963 nop |
6964 im 1 |
6964 im 1 |
6965 di |
6965 di |
6966 out (14h), a |
6966 out (14h), a |
6967 di |
6967 di |
6968 or a |
6968 or a |
6969 jp nz, 0 |
6969 jp nz, 0 |
6970 pop af |
6970 pop af |
6971 ret |
6971 ret |
6972 ; End of function relockFlashBack |
6972 ; End of function relockFlashBack |
6973 |
6973 |
6974 |
6974 |
6975 ; =============== S U B R O U T I N E ======================================= |
6975 ; =============== S U B R O U T I N E ======================================= |
6976 |
6976 |
6977 |
6977 |
6978 Page7D_3E10: |
6978 Page7D_3E10: |
6979 ld (Abackup), a |
6979 ld (Abackup), a |
6980 ld a, i |
6980 ld a, i |
6981 di |
6981 di |
6982 push af |
6982 push af |
6983 ld a, (Abackup) |
6983 ld a, (Abackup) |
6984 call relockFlashBack |
6984 call relockFlashBack |
6985 ld (Abackup), a |
6985 ld (Abackup), a |
6986 pop af |
6986 pop af |
6987 jp po, p7Dloc_6002 |
6987 jp po, p7Dloc_6002 |
6988 ei |
6988 ei |
6989 |
6989 |
6990 p7Dloc_6002: |
6990 p7Dloc_6002: |
6991 ld a, (Abackup) |
6991 ld a, (Abackup) |
6992 ret |
6992 ret |
6993 ; End of function Page7D_3E10 |
6993 ; End of function Page7D_3E10 |
6994 |
6994 |
6995 |
6995 |
6996 ; =============== S U B R O U T I N E ======================================= |
6996 ; =============== S U B R O U T I N E ======================================= |
7032 |
7032 |
7033 p7Dsub_6021: |
7033 p7Dsub_6021: |
7034 call p7Dsub_75F5 |
7034 call p7Dsub_75F5 |
7035 |
7035 |
7036 p7Dloc_6024: |
7036 p7Dloc_6024: |
7037 ld a, (appID) |
7037 ld a, (appID) |
7038 ld c, a |
7038 ld c, a |
7039 ld b, 0 |
7039 ld b, 0 |
7040 ld hl, 838Eh |
7040 ld hl, 838Eh |
7041 ld de, ramStart |
7041 ld de, ramStart |
7042 ld (de), a |
7042 ld (de), a |
7043 inc de |
7043 inc de |
7044 ldir |
7044 ldir |
7045 call p7Dsub_607A |
7045 call p7Dsub_607A |
7046 push af |
7046 push af |
7047 ld a, (ramStart) |
7047 ld a, (ramStart) |
7048 ld c, a |
7048 ld c, a |
7049 ld b, 0 |
7049 ld b, 0 |
7050 ld hl, 8001h |
7050 ld hl, 8001h |
7051 ld de, appID |
7051 ld de, appID |
7052 ld (de), a |
7052 ld (de), a |
7053 inc de |
7053 inc de |
7054 ldir |
7054 ldir |
7055 pop af |
7055 pop af |
7056 ret c |
7056 ret c |
7057 call p7Dsub_6067 |
7057 call p7Dsub_6067 |
7058 jr nz, p7Dloc_6053 |
7058 jr nz, p7Dloc_6053 |
7059 or a |
7059 or a |
7060 jp p7Dloc_61A4 |
7060 jp p7Dloc_61A4 |
7061 ; --------------------------------------------------------------------------- |
7061 ; --------------------------------------------------------------------------- |
7062 |
7062 |
7063 p7Dloc_6053: |
7063 p7Dloc_6053: |
7064 push af |
7064 push af |
7065 ld a, (ramStart) |
7065 ld a, (ramStart) |
7066 ld c, a |
7066 ld c, a |
7067 ld b, 0 |
7067 ld b, 0 |
7068 ld hl, 8001h |
7068 ld hl, 8001h |
7069 ld de, appID |
7069 ld de, appID |
7070 ld (de), a |
7070 ld (de), a |
7071 inc de |
7071 inc de |
7072 ldir |
7072 ldir |
7073 pop af |
7073 pop af |
7074 jr p7Dloc_6024 |
7074 jr p7Dloc_6024 |
7075 ; End of function p7Dsub_6021 |
7075 ; End of function p7Dsub_6021 |
7076 |
7076 |
7077 |
7077 |
7078 ; =============== S U B R O U T I N E ======================================= |
7078 ; =============== S U B R O U T I N E ======================================= |
7079 |
7079 |
7080 |
7080 |
7081 p7Dsub_6067: |
7081 p7Dsub_6067: |
7082 ld de, OP2 |
7082 ld de, OP2 |
7083 ld hl, appID |
7083 ld hl, appID |
7084 ld a, (de) |
7084 ld a, (de) |
7085 ld c, (hl) |
7085 ld c, (hl) |
7086 cp c |
7086 cp c |
7087 ret nz |
7087 ret nz |
7088 ld b, c |
7088 ld b, c |
7089 |
7089 |
7090 p7Dloc_6072: |
7090 p7Dloc_6072: |
7091 inc hl |
7091 inc hl |
7092 inc de |
7092 inc de |
7093 ld a, (de) |
7093 ld a, (de) |
7094 cp (hl) |
7094 cp (hl) |
7095 ret nz |
7095 ret nz |
7096 djnz p7Dloc_6072 |
7096 djnz p7Dloc_6072 |
7097 ret |
7097 ret |
7098 ; End of function p7Dsub_6067 |
7098 ; End of function p7Dsub_6067 |
7099 |
7099 |
7100 |
7100 |
7101 ; =============== S U B R O U T I N E ======================================= |
7101 ; =============== S U B R O U T I N E ======================================= |
7102 |
7102 |
7103 |
7103 |
7104 p7Dsub_607A: |
7104 p7Dsub_607A: |
7105 ld de, appSearchPage |
7105 ld de, appSearchPage |
7106 ld a, (de) |
7106 ld a, (de) |
7107 or a |
7107 or a |
7108 jr z, locret_60E4 |
7108 jr z, locret_60E4 |
7109 dec a |
7109 dec a |
7110 ld (de), a |
7110 ld (de), a |
7111 cp 7 |
7111 cp 7 |
7112 jr nz, p7Dloc_608A |
7112 jr nz, p7Dloc_608A |
7113 scf |
7113 scf |
7114 jr locret_60E4 |
7114 jr locret_60E4 |
7115 ; --------------------------------------------------------------------------- |
7115 ; --------------------------------------------------------------------------- |
7116 |
7116 |
7117 p7Dloc_608A: |
7117 p7Dloc_608A: |
7118 ld a, (appSearchPage) |
7118 ld a, (appSearchPage) |
7119 ld hl, 4000h |
7119 ld hl, 4000h |
7120 call Page0Call_3E31 |
7120 call Page0Call_3E31 |
7121 jr nz, p7Dsub_607A |
7121 jr nz, p7Dsub_607A |
7122 ld de, 8010h |
7122 ld de, 8010h |
7123 or a |
7123 or a |
7124 rst 28h |
7124 rst 28h |
7125 ; --------------------------------------------------------------------------- |
7125 ; --------------------------------------------------------------------------- |
7126 .dw 8075h |
7126 .dw 8075h |
7127 ; --------------------------------------------------------------------------- |
7127 ; --------------------------------------------------------------------------- |
7128 jr nz, p7Dsub_607A |
7128 jr nz, p7Dsub_607A |
7129 ld a, (appSearchPage) |
7129 ld a, (appSearchPage) |
7130 inc hl |
7130 inc hl |
7131 rst 28h |
7131 rst 28h |
7132 ; --------------------------------------------------------------------------- |
7132 ; --------------------------------------------------------------------------- |
7133 .dw 805Ah |
7133 .dw 805Ah |
7134 ; --------------------------------------------------------------------------- |
7134 ; --------------------------------------------------------------------------- |
7135 ld a, (appSearchPage) |
7135 ld a, (appSearchPage) |
7136 rst 28h |
7136 rst 28h |
7137 ; --------------------------------------------------------------------------- |
7137 ; --------------------------------------------------------------------------- |
7138 .dw 8051h |
7138 .dw 8051h |
7139 ; --------------------------------------------------------------------------- |
7139 ; --------------------------------------------------------------------------- |
7140 or a |
7140 or a |
7141 jr z, p7Dsub_607A |
7141 jr z, p7Dsub_607A |
7142 inc a |
7142 inc a |
7143 jr z, p7Dsub_607A |
7143 jr z, p7Dsub_607A |
7144 ld a, (appSearchPage) |
7144 ld a, (appSearchPage) |
7145 push hl |
7145 push hl |
7146 push bc |
7146 push bc |
7147 call p7Dsub_5E31 |
7147 call p7Dsub_5E31 |
7148 call Page7D_2B5C |
7148 call Page7D_2B5C |
7149 jr z, p7Dloc_60C2 |
7149 jr z, p7Dloc_60C2 |
7150 pop bc |
7150 pop bc |
7151 pop hl |
7151 pop hl |
7152 jr p7Dsub_607A |
7152 jr p7Dsub_607A |
7153 ; --------------------------------------------------------------------------- |
7153 ; --------------------------------------------------------------------------- |
7154 |
7154 |
7155 p7Dloc_60C2: |
7155 p7Dloc_60C2: |
7156 call ZeroOP2 |
7156 call ZeroOP2 |
7157 pop bc |
7157 pop bc |
7158 pop hl |
7158 pop hl |
7159 ld a, b |
7159 ld a, b |
7160 or a |
7160 or a |
7161 jr nz, p7Dloc_60D2 |
7161 jr nz, p7Dloc_60D2 |
7162 xor a |
7162 xor a |
7163 ld a, c |
7163 ld a, c |
7164 ld e, 9 |
7164 ld e, 9 |
7165 sub e |
7165 sub e |
7166 jr c, p7Dloc_60D5 |
7166 jr c, p7Dloc_60D5 |
7167 |
7167 |
7168 p7Dloc_60D2: |
7168 p7Dloc_60D2: |
7169 ld bc, 8 |
7169 ld bc, 8 |
7170 |
7170 |
7171 p7Dloc_60D5: |
7171 p7Dloc_60D5: |
7172 ld a, c |
7172 ld a, c |
7173 ld (OP2), a |
7173 ld (OP2), a |
7174 ld a, (appSearchPage) |
7174 ld a, (appSearchPage) |
7175 ld de, 8484h |
7175 ld de, 8484h |
7176 rst 28h |
7176 rst 28h |
7177 ; --------------------------------------------------------------------------- |
7177 ; --------------------------------------------------------------------------- |
7178 .dw 8054h |
7178 .dw 8054h |
7179 ; --------------------------------------------------------------------------- |
7179 ; --------------------------------------------------------------------------- |
7180 scf |
7180 scf |
7181 ccf |
7181 ccf |
7182 |
7182 |
7183 locret_60E4: |
7183 locret_60E4: |
7308 p7Dsub_6186: |
7308 p7Dsub_6186: |
7309 call p7Dsub_75F5 |
7309 call p7Dsub_75F5 |
7310 |
7310 |
7311 p7Dloc_6189: |
7311 p7Dloc_6189: |
7312 call p7Dsub_638B |
7312 call p7Dsub_638B |
7313 ret c |
7313 ret c |
7314 call p7Dsub_6172 |
7314 call p7Dsub_6172 |
7315 bit 3, c |
7315 bit 3, c |
7316 jr z, p7Dloc_6189 |
7316 jr z, p7Dloc_6189 |
7317 jr p7Dloc_61A4 |
7317 jr p7Dloc_61A4 |
7318 ; --------------------------------------------------------------------------- |
7318 ; --------------------------------------------------------------------------- |
7319 |
7319 |
7320 FindApp: |
7320 FindApp: |
7321 call p7Dsub_75F5 |
7321 call p7Dsub_75F5 |
7322 |
7322 |
7323 p7Dloc_6199: |
7323 p7Dloc_6199: |
7324 call p7Dsub_6388 |
7324 call p7Dsub_6388 |
7325 ret c |
7325 ret c |
7326 call p7Dsub_6172 |
7326 call p7Dsub_6172 |
7327 bit 3, c |
7327 bit 3, c |
7328 jr z, p7Dloc_6199 |
7328 jr z, p7Dloc_6199 |
7329 |
7329 |
7330 p7Dloc_61A4: |
7330 p7Dloc_61A4: |
7331 ld a, (appSearchPage) |
7331 ld a, (appSearchPage) |
7332 or a |
7332 or a |
7333 push bc |
7333 push bc |
7334 ld de, 8070h |
7334 ld de, 8070h |
7335 ld hl, 4000h |
7335 ld hl, 4000h |
7336 push af |
7336 push af |
7337 rst 28h |
7337 rst 28h |
7338 ; --------------------------------------------------------------------------- |
7338 ; --------------------------------------------------------------------------- |
7339 .dw 8075h |
7339 .dw 8075h |
7340 ; --------------------------------------------------------------------------- |
7340 ; --------------------------------------------------------------------------- |
7341 pop af |
7341 pop af |
7342 inc hl |
7342 inc hl |
7343 push af |
7343 push af |
7344 rst 28h |
7344 rst 28h |
7345 ; --------------------------------------------------------------------------- |
7345 ; --------------------------------------------------------------------------- |
7346 .dw 805Ah |
7346 .dw 805Ah |
7347 ; --------------------------------------------------------------------------- |
7347 ; --------------------------------------------------------------------------- |
7348 pop af |
7348 pop af |
7349 pop bc |
7349 pop bc |
7350 ret |
7350 ret |
7351 ; End of function p7Dsub_6186 |
7351 ; End of function p7Dsub_6186 |
7352 |
7352 |
7353 ; --------------------------------------------------------------------------- |
7353 ; --------------------------------------------------------------------------- |
7354 |
7354 |
7355 p7Dloc_61BC: |
7355 p7Dloc_61BC: |
7356 call Page0Call_2D2D |
7356 call Page0Call_2D2D |
7357 res 1, (iy+5) |
7357 res 1, (iy+5) |
7358 push af |
7358 push af |
7359 call Page0Call_3CFF |
7359 call Page0Call_3CFF |
7360 pop af |
7360 pop af |
7361 push af |
7361 push af |
7362 ld hl, 4000h |
7362 ld hl, 4000h |
7363 ld de, 8040h |
7363 ld de, 8040h |
7364 rst 28h |
7364 rst 28h |
7365 ; --------------------------------------------------------------------------- |
7365 ; --------------------------------------------------------------------------- |
7366 .dw 8075h |
7366 .dw 8075h |
7367 ; --------------------------------------------------------------------------- |
7367 ; --------------------------------------------------------------------------- |
7368 inc hl |
7368 inc hl |
7369 pop af |
7369 pop af |
7370 push af |
7370 push af |
7371 rst 28h |
7371 rst 28h |
7372 ; --------------------------------------------------------------------------- |
7372 ; --------------------------------------------------------------------------- |
7373 .dw 805Ah |
7373 .dw 805Ah |
7374 ; --------------------------------------------------------------------------- |
7374 ; --------------------------------------------------------------------------- |
7375 pop af |
7375 pop af |
7376 push af |
7376 push af |
7377 call p7Dsub_5CFF |
7377 call p7Dsub_5CFF |
7378 ld hl, MD5Buffer |
7378 ld hl, MD5Buffer |
7379 or a |
7379 or a |
7380 adc hl, bc |
7380 adc hl, bc |
7381 ld (hl), 0 |
7381 ld (hl), 0 |
7382 ld a, 24h ; '$' |
7382 ld a, 24h ; '$' |
7383 sub c |
7383 sub c |
7384 ld l, a |
7384 ld l, a |
7385 ld h, 5 |
7385 ld h, 5 |
7386 ld (penCol), hl |
7386 ld (penCol), hl |
7387 ld hl, MD5Buffer |
7387 ld hl, MD5Buffer |
7388 call Page0Call_3D4D |
7388 call Page0Call_3D4D |
7389 bit 1, (iy+35h) |
7389 bit 1, (iy+35h) |
7390 jr z, p7Dloc_6201 |
7390 jr z, p7Dloc_6201 |
7391 ld a, 50h ; 'P' |
7391 ld a, 50h ; 'P' |
7392 call Page0Call_3C45 |
7392 call Page0Call_3C45 |
7393 jr z, p7Dloc_620C |
7393 jr z, p7Dloc_620C |
7394 |
7394 |
7395 p7Dloc_6201: |
7395 p7Dloc_6201: |
7396 ld hl, aCCopyright1998-2 |
7396 ld hl, aCCopyright1998-2 |
7397 ld de, tempSwapArea |
7397 ld de, tempSwapArea |
7398 ld bc, 19h |
7398 ld bc, 19h |
7399 ldir |
7399 ldir |
7400 |
7400 |
7401 p7Dloc_620C: |
7401 p7Dloc_620C: |
7402 ld hl, tempSwapArea |
7402 ld hl, tempSwapArea |
7403 call p7Dsub_62B3 |
7403 call p7Dsub_62B3 |
7404 ld hl, aTexasInstrumentsInc-2 |
7404 ld hl, aTexasInstrumentsInc-2 |
7405 call p7Dsub_62B3 |
7405 call p7Dsub_62B3 |
7406 pop af |
7406 pop af |
7407 push af |
7407 push af |
7408 call p7Dloc_54A0 |
7408 call p7Dloc_54A0 |
7409 jr nz, p7Dloc_6270 |
7409 jr nz, p7Dloc_6270 |
7410 pop af |
7410 pop af |
7411 push af |
7411 push af |
7412 call Page7D_2CA0 |
7412 call Page7D_2CA0 |
7413 jr z, p7Dloc_6237 |
7413 jr z, p7Dloc_6237 |
7414 ld hl, aExpiredOn-2 |
7414 ld hl, aExpiredOn-2 |
7415 ld a, 51h ; 'Q' |
7415 ld a, 51h ; 'Q' |
7416 bit 1, (iy+35h) |
7416 bit 1, (iy+35h) |
7417 call nz, Page0Call_3C45 |
7417 call nz, Page0Call_3C45 |
7418 call p7Dsub_62B3 |
7418 call p7Dsub_62B3 |
7419 jr p7Dloc_6246 |
7419 jr p7Dloc_6246 |
7420 ; --------------------------------------------------------------------------- |
7420 ; --------------------------------------------------------------------------- |
7421 |
7421 |
7422 p7Dloc_6237: |
7422 p7Dloc_6237: |
7423 ld hl, aExpirationDate-2 |
7423 ld hl, aExpirationDate-2 |
7424 ld a, 52h ; 'R' |
7424 ld a, 52h ; 'R' |
7425 bit 1, (iy+35h) |
7425 bit 1, (iy+35h) |
7426 call nz, Page0Call_3C45 |
7426 call nz, Page0Call_3C45 |
7427 call p7Dsub_62B3 |
7427 call p7Dsub_62B3 |
7428 |
7428 |
7429 p7Dloc_6246: |
7429 p7Dloc_6246: |
7430 pop af |
7430 pop af |
7431 push af |
7431 push af |
7432 call p7Dloc_54A0 |
7432 call p7Dloc_54A0 |
7433 call p7Dloc_59B3 |
7433 call p7Dloc_59B3 |
7434 push de |
7434 push de |
7435 push hl |
7435 push hl |
7436 push bc |
7436 push bc |
7437 pop hl |
7437 pop hl |
7438 call p7Dsub_598E |
7438 call p7Dsub_598E |
7439 ld a, (p7Dloc_6385) |
7439 ld a, (p7Dloc_6385) |
7440 call Page0Call_3D47 |
7440 call Page0Call_3D47 |
7441 pop hl |
7441 pop hl |
7442 call p7Dsub_598E |
7442 call p7Dsub_598E |
7443 ld a, (p7Dloc_6385) |
7443 ld a, (p7Dloc_6385) |
7444 call Page0Call_3D47 |
7444 call Page0Call_3D47 |
7445 pop hl |
7445 pop hl |
7446 call p7Dsub_598E |
7446 call p7Dsub_598E |
7447 pop af |
7447 pop af |
7448 push af |
7448 push af |
7449 call Page7D_2CA0 |
7449 call Page7D_2CA0 |
7450 jr z, p7Dloc_629B |
7450 jr z, p7Dloc_629B |
7451 |
7451 |
7452 p7Dloc_6270: |
7452 p7Dloc_6270: |
7453 pop af |
7453 pop af |
7454 push af |
7454 push af |
7455 call p7Dloc_543D |
7455 call p7Dloc_543D |
7456 jr nz, p7Dloc_629B |
7456 jr nz, p7Dloc_629B |
7457 ld hl, aTrialsRemaining-2 |
7457 ld hl, aTrialsRemaining-2 |
7458 ld a, 53h ; 'S' |
7458 ld a, 53h ; 'S' |
7459 bit 1, (iy+35h) |
7459 bit 1, (iy+35h) |
7460 call nz, Page0Call_3C45 |
7460 call nz, Page0Call_3C45 |
7461 call p7Dsub_62B3 |
7461 call p7Dsub_62B3 |
7462 ld a, (OP1) |
7462 ld a, (OP1) |
7463 ld hl, OP1 |
7463 ld hl, OP1 |
7464 call p7Dsub_650D |
7464 call p7Dsub_650D |
7465 ld a, (OP1) |
7465 ld a, (OP1) |
7466 call Page0Call_3D47 |
7466 call Page0Call_3D47 |
7467 ld a, (OP1+1) |
7467 ld a, (OP1+1) |
7468 call Page0Call_3D47 |
7468 call Page0Call_3D47 |
7469 |
7469 |
7470 p7Dloc_629B: |
7470 p7Dloc_629B: |
7471 pop af |
7471 pop af |
7472 ld hl, aPressAnyKey___-2 |
7472 ld hl, aPressAnyKey___-2 |
7473 ld a, 54h ; 'T' |
7473 ld a, 54h ; 'T' |
7474 bit 1, (iy+35h) |
7474 bit 1, (iy+35h) |
7475 call nz, Page0Call_3C45 |
7475 call nz, Page0Call_3C45 |
7476 call p7Dsub_62B3 |
7476 call p7Dsub_62B3 |
7477 ei |
7477 ei |
7478 call Page0Call_3F21 |
7478 call Page0Call_3F21 |
7479 call Page0Call_3837 |
7479 call Page0Call_3837 |
7641 |
7641 |
7642 p7Dloc_638D: |
7642 p7Dloc_638D: |
7643 push af |
7643 push af |
7644 |
7644 |
7645 p7Dloc_638E: |
7645 p7Dloc_638E: |
7646 ld de, appSearchPage |
7646 ld de, appSearchPage |
7647 ld a, (de) |
7647 ld a, (de) |
7648 dec a |
7648 dec a |
7649 ld (de), a |
7649 ld (de), a |
7650 cp 7 |
7650 cp 7 |
7651 jr nz, p7Dloc_639B |
7651 jr nz, p7Dloc_639B |
7652 pop af |
7652 pop af |
7653 scf |
7653 scf |
7654 ret |
7654 ret |
7655 ; --------------------------------------------------------------------------- |
7655 ; --------------------------------------------------------------------------- |
7656 |
7656 |
7657 p7Dloc_639B: |
7657 p7Dloc_639B: |
7658 ld a, (unk_9C87) |
7658 ld a, (unk_9C87) |
7659 cp 69h ; 'i' |
7659 cp 69h ; 'i' |
7660 jr nz, p7Dloc_63C8 |
7660 jr nz, p7Dloc_63C8 |
7661 ld a, (appSearchPage) |
7661 ld a, (appSearchPage) |
7662 call p7Dsub_7BB5 |
7662 call p7Dsub_7BB5 |
7663 jr z, p7Dloc_638E |
7663 jr z, p7Dloc_638E |
7664 ld a, (appSearchPage) |
7664 ld a, (appSearchPage) |
7665 ld hl, 4000h |
7665 ld hl, 4000h |
7666 |
7666 |
7667 p7Dloc_63B0: |
7667 p7Dloc_63B0: |
7668 ld de, 8040h |
7668 ld de, 8040h |
7669 rst 28h |
7669 rst 28h |
7670 ; --------------------------------------------------------------------------- |
7670 ; --------------------------------------------------------------------------- |
7671 .dw 8075h |
7671 .dw 8075h |
7672 ; --------------------------------------------------------------------------- |
7672 ; --------------------------------------------------------------------------- |
7673 jr z, p7Dloc_63BF |
7673 jr z, p7Dloc_63BF |
7674 |
7674 |
7675 p7Dloc_63B8: |
7675 p7Dloc_63B8: |
7676 ld a, 1 |
7676 ld a, 1 |
7677 ld (unk_9C87), a |
7677 ld (unk_9C87), a |
7678 jr p7Dloc_638E |
7678 jr p7Dloc_638E |
7679 ; --------------------------------------------------------------------------- |
7679 ; --------------------------------------------------------------------------- |
7680 |
7680 |
7681 p7Dloc_63BF: |
7681 p7Dloc_63BF: |
7682 inc hl |
7682 inc hl |
7683 ld a, (appSearchPage) |
7683 ld a, (appSearchPage) |
7684 rst 28h |
7684 rst 28h |
7685 ; --------------------------------------------------------------------------- |
7685 ; --------------------------------------------------------------------------- |
7686 .dw 805Ah |
7686 .dw 805Ah |
7687 ; --------------------------------------------------------------------------- |
7687 ; --------------------------------------------------------------------------- |
7688 jr p7Dloc_6407 |
7688 jr p7Dloc_6407 |
7689 ; --------------------------------------------------------------------------- |
7689 ; --------------------------------------------------------------------------- |
7690 |
7690 |
7691 p7Dloc_63C8: |
7691 p7Dloc_63C8: |
7692 ld a, (de) |
7692 ld a, (de) |
7693 ld hl, 4000h |
7693 ld hl, 4000h |
7694 call Page0Call_3E31 |
7694 call Page0Call_3E31 |
7695 jr nz, p7Dloc_638E |
7695 jr nz, p7Dloc_638E |
7696 ld de, 8040h |
7696 ld de, 8040h |
7697 or a |
7697 or a |
7698 rst 28h |
7698 rst 28h |
7699 ; --------------------------------------------------------------------------- |
7699 ; --------------------------------------------------------------------------- |
7700 .dw 8075h |
7700 .dw 8075h |
7701 ; --------------------------------------------------------------------------- |
7701 ; --------------------------------------------------------------------------- |
7702 jr nz, p7Dloc_638E |
7702 jr nz, p7Dloc_638E |
7703 inc hl |
7703 inc hl |
7704 ld a, (appSearchPage) |
7704 ld a, (appSearchPage) |
7705 push af |
7705 push af |
7706 rst 28h |
7706 rst 28h |
7707 ; --------------------------------------------------------------------------- |
7707 ; --------------------------------------------------------------------------- |
7708 .dw 805Ah |
7708 .dw 805Ah |
7709 ; --------------------------------------------------------------------------- |
7709 ; --------------------------------------------------------------------------- |
7710 pop af |
7710 pop af |
7711 rst 28h |
7711 rst 28h |
7712 ; --------------------------------------------------------------------------- |
7712 ; --------------------------------------------------------------------------- |
7713 .dw 8051h |
7713 .dw 8051h |
7714 ; --------------------------------------------------------------------------- |
7714 ; --------------------------------------------------------------------------- |
7715 or a |
7715 or a |
7716 jr z, p7Dloc_638E |
7716 jr z, p7Dloc_638E |
7717 inc a |
7717 inc a |
7718 jr z, p7Dloc_638E |
7718 jr z, p7Dloc_638E |
7719 ld a, (appSearchPage) |
7719 ld a, (appSearchPage) |
7720 push hl |
7720 push hl |
7721 push bc |
7721 push bc |
7722 call p7Dsub_5E31 |
7722 call p7Dsub_5E31 |
7723 pop bc |
7723 pop bc |
7724 pop hl |
7724 pop hl |
7725 pop af |
7725 pop af |
7726 push af |
7726 push af |
7727 ld a, (appSearchPage) |
7727 ld a, (appSearchPage) |
7728 jr nc, p7Dloc_6402 |
7728 jr nc, p7Dloc_6402 |
7729 call p7Dsub_53B3 |
7729 call p7Dsub_53B3 |
7730 jr p7Dloc_6405 |
7730 jr p7Dloc_6405 |
7731 ; --------------------------------------------------------------------------- |
7731 ; --------------------------------------------------------------------------- |
7732 |
7732 |
7733 p7Dloc_6402: |
7733 p7Dloc_6402: |
7734 call Page7D_2B5C |
7734 call Page7D_2B5C |
7735 |
7735 |
7736 p7Dloc_6405: |
7736 p7Dloc_6405: |
7737 jr nz, p7Dloc_638E |
7737 jr nz, p7Dloc_638E |
7738 |
7738 |
7739 p7Dloc_6407: |
7739 p7Dloc_6407: |
7740 pop af |
7740 pop af |
7741 push hl |
7741 push hl |
7742 push bc |
7742 push bc |
7743 call ZeroOP2 |
7743 call ZeroOP2 |
7744 pop bc |
7744 pop bc |
7745 pop hl |
7745 pop hl |
7746 ld a, b |
7746 ld a, b |
7747 or a |
7747 or a |
7748 jr nz, p7Dloc_6419 |
7748 jr nz, p7Dloc_6419 |
7749 ld a, c |
7749 ld a, c |
7750 ld e, 9 |
7750 ld e, 9 |
7751 sub e |
7751 sub e |
7752 jr c, p7Dloc_641C |
7752 jr c, p7Dloc_641C |
7753 |
7753 |
7754 p7Dloc_6419: |
7754 p7Dloc_6419: |
7755 ld bc, 8 |
7755 ld bc, 8 |
7756 |
7756 |
7757 p7Dloc_641C: |
7757 p7Dloc_641C: |
7758 ld de, 8484h |
7758 ld de, 8484h |
7759 ld a, (appSearchPage) |
7759 ld a, (appSearchPage) |
7760 rst 28h |
7760 rst 28h |
7761 ; --------------------------------------------------------------------------- |
7761 ; --------------------------------------------------------------------------- |
7762 .dw 8054h |
7762 .dw 8054h |
7763 ; --------------------------------------------------------------------------- |
7763 ; --------------------------------------------------------------------------- |
7764 scf |
7764 scf |
7765 ccf |
7765 ccf |
7766 ret |
7766 ret |
7767 ; End of function p7Dsub_638B |
7767 ; End of function p7Dsub_638B |
8086 |
8086 |
8087 p7Dsub_6598: |
8087 p7Dsub_6598: |
8088 push af |
8088 push af |
8089 push bc |
8089 push bc |
8090 push hl |
8090 push hl |
8091 ld hl, arcPage |
8091 ld hl, arcPage |
8092 jr p7Dloc_65A6 |
8092 jr p7Dloc_65A6 |
8093 ; --------------------------------------------------------------------------- |
8093 ; --------------------------------------------------------------------------- |
8094 |
8094 |
8095 p7Dloc_65A0: |
8095 p7Dloc_65A0: |
8096 push af |
8096 push af |
8097 push bc |
8097 push bc |
8098 push hl |
8098 push hl |
8099 ld hl, 839Fh |
8099 ld hl, 839Fh |
8100 |
8100 |
8101 p7Dloc_65A6: |
8101 p7Dloc_65A6: |
8102 xor a |
8102 xor a |
8103 ld b, 4 |
8103 ld b, 4 |
8104 |
8104 |
8105 p7Dloc_65A9: |
8105 p7Dloc_65A9: |
8106 ld (hl), a |
8106 ld (hl), a |
8107 inc hl |
8107 inc hl |
8108 djnz p7Dloc_65A9 |
8108 djnz p7Dloc_65A9 |
8109 pop hl |
8109 pop hl |
8110 pop bc |
8110 pop bc |
8111 pop af |
8111 pop af |
8112 ret |
8112 ret |
8113 ; End of function p7Dsub_6598 |
8113 ; End of function p7Dsub_6598 |
8114 |
8114 |
8115 ; --------------------------------------------------------------------------- |
8115 ; --------------------------------------------------------------------------- |
8116 |
8116 |
8117 ArcChk: |
8117 ArcChk: |
8118 push af |
8118 push af |
8119 push hl |
8119 push hl |
8120 bit 6, (iy+24h) |
8120 bit 6, (iy+24h) |
8121 jr nz, p7Dloc_65F2 |
8121 jr nz, p7Dloc_65F2 |
8122 call p7Dloc_65A0 |
8122 call p7Dloc_65A0 |
8123 ld (Abackup), a |
8123 ld (Abackup), a |
8124 ld a, i |
8124 ld a, i |
8125 di |
8125 di |
8126 push af |
8126 push af |
8127 ld a, (Abackup) |
8127 ld a, (Abackup) |
8128 push af |
8128 push af |
8129 ld a, 1 |
8129 ld a, 1 |
8130 nop |
8130 nop |
8131 di |
8131 di |
8132 nop |
8132 nop |
8133 nop |
8133 nop |
8134 im 1 |
8134 im 1 |
8135 di |
8135 di |
8136 out (14h), a |
8136 out (14h), a |
8137 di |
8137 di |
8138 call checkForFlashTrickery |
8138 call checkForFlashTrickery |
8139 pop af |
8139 pop af |
8140 call Page7D_2C10 |
8140 call Page7D_2C10 |
8141 call relockFlashBack |
8141 call relockFlashBack |
8142 ld (Abackup), a |
8142 ld (Abackup), a |
8143 pop af |
8143 pop af |
8144 jp po, p7Dloc_65E5 |
8144 jp po, p7Dloc_65E5 |
8145 ei |
8145 ei |
8146 |
8146 |
8147 p7Dloc_65E5: |
8147 p7Dloc_65E5: |
8148 ld a, (Abackup) |
8148 ld a, (Abackup) |
8149 ld de, 9C96h |
8149 ld de, 9C96h |
8150 call p7Dsub_6621 |
8150 call p7Dsub_6621 |
8151 set 6, (iy+24h) |
8151 set 6, (iy+24h) |
8152 |
8152 |
8153 p7Dloc_65F2: |
8153 p7Dloc_65F2: |
8154 bit 7, (iy+24h) |
8154 bit 7, (iy+24h) |
8155 jr nz, p7Dloc_6608 |
8155 jr nz, p7Dloc_6608 |
8156 call p7Dloc_65A0 |
8156 call p7Dloc_65A0 |
8157 call p7Dsub_662F |
8157 call p7Dsub_662F |
8158 ld de, 9C9Ah |
8158 ld de, 9C9Ah |
8159 call p7Dsub_6621 |
8159 call p7Dsub_6621 |
8160 set 7, (iy+24h) |
8160 set 7, (iy+24h) |
8161 |
8161 |
8162 p7Dloc_6608: |
8162 p7Dloc_6608: |
8163 ld hl, 9C9Ah |
8163 ld hl, 9C9Ah |
8164 call p7Dsub_6626 |
8164 call p7Dsub_6626 |
8165 ld de, 83A2h |
8165 ld de, 83A2h |
8166 ld hl, 9C99h |
8166 ld hl, 9C99h |
8167 ld b, 4 |
8167 ld b, 4 |
8168 or a |
8168 or a |
8169 |
8169 |
8170 p7Dloc_6617: |
8170 p7Dloc_6617: |
8171 ld a, (de) |
8171 ld a, (de) |
8172 adc a, (hl) |
8172 adc a, (hl) |
8173 ld (de), a |
8173 ld (de), a |
8174 dec hl |
8174 dec hl |
8175 dec de |
8175 dec de |
8176 djnz p7Dloc_6617 |
8176 djnz p7Dloc_6617 |
8177 pop hl |
8177 pop hl |
8178 pop af |
8178 pop af |
8179 ret |
8179 ret |
8180 |
8180 |
8181 ; =============== S U B R O U T I N E ======================================= |
8181 ; =============== S U B R O U T I N E ======================================= |
8182 |
8182 |
8183 |
8183 |
8184 p7Dsub_6621: |
8184 p7Dsub_6621: |
8185 ld hl, 839Fh |
8185 ld hl, 839Fh |
8186 jr p7Dloc_6629 |
8186 jr p7Dloc_6629 |
8187 ; End of function p7Dsub_6621 |
8187 ; End of function p7Dsub_6621 |
8188 |
8188 |
8189 |
8189 |
8190 ; =============== S U B R O U T I N E ======================================= |
8190 ; =============== S U B R O U T I N E ======================================= |
8191 |
8191 |
8192 |
8192 |
8193 p7Dsub_6626: |
8193 p7Dsub_6626: |
8194 ld de, 839Fh |
8194 ld de, 839Fh |
8195 |
8195 |
8196 p7Dloc_6629: |
8196 p7Dloc_6629: |
8197 ld bc, 4 |
8197 ld bc, 4 |
8198 ldir |
8198 ldir |
8199 ret |
8199 ret |
8200 ; End of function p7Dsub_6626 |
8200 ; End of function p7Dsub_6626 |
8201 |
8201 |
8202 |
8202 |
8203 ; =============== S U B R O U T I N E ======================================= |
8203 ; =============== S U B R O U T I N E ======================================= |
8204 |
8204 |
8205 |
8205 |
8206 p7Dsub_662F: |
8206 p7Dsub_662F: |
8207 call Page7D_2B56 |
8207 call Page7D_2B56 |
8208 inc b |
8208 inc b |
8209 ld a, 8 |
8209 ld a, 8 |
8210 ld de, 0 |
8210 ld de, 0 |
8211 |
8211 |
8212 p7Dloc_6638: |
8212 p7Dloc_6638: |
8213 call p7Dsub_7BD4 |
8213 call p7Dsub_7BD4 |
8214 cp b |
8214 cp b |
8215 ret nc |
8215 ret nc |
8216 ld hl, 4000h |
8216 ld hl, 4000h |
8217 push af |
8217 push af |
8218 call Page7D_2CD0 |
8218 call Page7D_2CD0 |
8219 cp 0FEh ; '�' |
8219 cp 0FEh ; '�' |
8220 jr z, p7Dloc_6664 |
8220 jr z, p7Dloc_6664 |
8221 cp 0FFh |
8221 cp 0FFh |
8222 jr nz, p7Dloc_665C |
8222 jr nz, p7Dloc_665C |
8223 pop af |
8223 pop af |
8224 push af |
8224 push af |
8225 call Page7D_2B74 |
8225 call Page7D_2B74 |
8226 call p7Dsub_652E |
8226 call p7Dsub_652E |
8227 ld de, 1 |
8227 ld de, 1 |
8228 call p7Dsub_652E |
8228 call p7Dsub_652E |
8229 jr p7Dloc_6664 |
8229 jr p7Dloc_6664 |
8230 ; --------------------------------------------------------------------------- |
8230 ; --------------------------------------------------------------------------- |
8231 |
8231 |
8232 p7Dloc_665C: |
8232 p7Dloc_665C: |
8233 cp 0F0h ; '�' |
8233 cp 0F0h ; '�' |
8234 jr z, p7Dloc_6669 |
8234 jr z, p7Dloc_6669 |
8235 pop af |
8235 pop af |
8236 inc a |
8236 inc a |
8237 jr p7Dloc_6638 |
8237 jr p7Dloc_6638 |
8238 ; --------------------------------------------------------------------------- |
8238 ; --------------------------------------------------------------------------- |
8239 |
8239 |
8240 p7Dloc_6664: |
8240 p7Dloc_6664: |
8241 pop af |
8241 pop af |
8242 add a, 4 |
8242 add a, 4 |
8243 jr p7Dloc_6638 |
8243 jr p7Dloc_6638 |
8244 ; --------------------------------------------------------------------------- |
8244 ; --------------------------------------------------------------------------- |
8245 |
8245 |
8246 p7Dloc_6669: |
8246 p7Dloc_6669: |
8247 inc hl |
8247 inc hl |
8248 pop af |
8248 pop af |
8249 push af |
8249 push af |
8250 |
8250 |
8251 p7Dloc_666C: |
8251 p7Dloc_666C: |
8252 push af |
8252 push af |
8253 push hl |
8253 push hl |
8254 ld c, 0F0h ; '�' |
8254 ld c, 0F0h ; '�' |
8255 push bc |
8255 push bc |
8256 call Page7D_2B6E |
8256 call Page7D_2B6E |
8257 push bc |
8257 push bc |
8258 pop de |
8258 pop de |
8259 pop bc |
8259 pop bc |
8260 jr z, p7Dloc_6696 |
8260 jr z, p7Dloc_6696 |
8261 inc sp |
8261 inc sp |
8262 inc sp |
8262 inc sp |
8263 inc sp |
8263 inc sp |
8264 inc sp |
8264 inc sp |
8265 ld (arcPage), a |
8265 ld (arcPage), a |
8266 ld (arcPtr), hl |
8266 ld (arcPtr), hl |
8267 inc de |
8267 inc de |
8268 inc de |
8268 inc de |
8269 inc de |
8269 inc de |
8270 push de |
8270 push de |
8271 call Page7D_2CCA |
8271 call Page7D_2CCA |
8272 pop de |
8272 pop de |
8273 call p7Dsub_652E |
8273 call p7Dsub_652E |
8274 ld a, (arcPage) |
8274 ld a, (arcPage) |
8275 ld hl, (arcPtr) |
8275 ld hl, (arcPtr) |
8276 jr p7Dloc_666C |
8276 jr p7Dloc_666C |
8277 ; --------------------------------------------------------------------------- |
8277 ; --------------------------------------------------------------------------- |
8278 |
8278 |
8279 p7Dloc_6696: |
8279 p7Dloc_6696: |
8280 pop hl |
8280 pop hl |
8281 pop af |
8281 pop af |
8282 ld c, 0FFh |
8282 ld c, 0FFh |
8283 push bc |
8283 push bc |
8284 call Page7D_2B6E |
8284 call Page7D_2B6E |
8285 pop bc |
8285 pop bc |
8286 jr z, p7Dloc_66A7 |
8286 jr z, p7Dloc_66A7 |
8287 call Page7D_2B74 |
8287 call Page7D_2B74 |
8288 call p7Dsub_652E |
8288 call p7Dsub_652E |
8289 |
8289 |
8290 p7Dloc_66A7: |
8290 p7Dloc_66A7: |
8291 jr p7Dloc_6664 |
8291 jr p7Dloc_6664 |
8292 ; End of function p7Dsub_662F |
8292 ; End of function p7Dsub_662F |
8293 |
8293 |
8294 |
8294 |
8295 ; =============== S U B R O U T I N E ======================================= |
8295 ; =============== S U B R O U T I N E ======================================= |
8296 |
8296 |
8297 |
8297 |
8298 p7Dsub_66A9: |
8298 p7Dsub_66A9: |
8299 push af |
8299 push af |
8300 push bc |
8300 push bc |
8301 push hl |
8301 push hl |
8302 ld bc, (freeArcBlock) |
8302 ld bc, (freeArcBlock) |
8303 or a |
8303 or a |
8304 sbc hl, bc |
8304 sbc hl, bc |
8305 jr c, p7Dloc_66BB |
8305 jr c, p7Dloc_66BB |
8306 or a |
8306 or a |
8307 adc hl, bc |
8307 adc hl, bc |
8308 ld (freeArcBlock), hl |
8308 ld (freeArcBlock), hl |
8309 |
8309 |
8310 p7Dloc_66BB: |
8310 p7Dloc_66BB: |
8311 pop hl |
8311 pop hl |
8312 pop bc |
8312 pop bc |
8313 pop af |
8313 pop af |
8314 ret |
8314 ret |
8315 ; End of function p7Dsub_66A9 |
8315 ; End of function p7Dsub_66A9 |
8316 |
8316 |
8317 ; --------------------------------------------------------------------------- |
8317 ; --------------------------------------------------------------------------- |
8318 |
8318 |
8319 Page7D_2EB6: |
8319 Page7D_2EB6: |
8320 push bc |
8320 push bc |
8321 push de |
8321 push de |
8322 ld a, (OP1) |
8322 ld a, (OP1) |
8323 push af |
8323 push af |
8324 push bc |
8324 push bc |
8325 ld bc, 0 |
8325 ld bc, 0 |
8326 ld (freeArcBlock), bc |
8326 ld (freeArcBlock), bc |
8327 call Page7D_2B56 |
8327 call Page7D_2B56 |
8328 ld a, b |
8328 ld a, b |
8329 ld (unk_83FF), a |
8329 ld (unk_83FF), a |
8330 pop bc |
8330 pop bc |
8331 ld a, 8 |
8331 ld a, 8 |
8332 |
8332 |
8333 p7Dloc_66D7: |
8333 p7Dloc_66D7: |
8334 push af |
8334 push af |
8335 ld hl, 4000h |
8335 ld hl, 4000h |
8336 call Page7D_2CD0 |
8336 call Page7D_2CD0 |
8337 cp 0FEh ; '�' |
8337 cp 0FEh ; '�' |
8338 jr nz, p7Dloc_66E7 |
8338 jr nz, p7Dloc_66E7 |
8339 |
8339 |
8340 p7Dloc_66E2: |
8340 p7Dloc_66E2: |
8341 pop af |
8341 pop af |
8342 add a, 3 |
8342 add a, 3 |
8343 jr p7Dloc_66F0 |
8343 jr p7Dloc_66F0 |
8344 ; --------------------------------------------------------------------------- |
8344 ; --------------------------------------------------------------------------- |
8345 |
8345 |
8346 p7Dloc_66E7: |
8346 p7Dloc_66E7: |
8347 cp 0F0h ; '�' |
8347 cp 0F0h ; '�' |
8348 jr z, p7Dloc_66FB |
8348 jr z, p7Dloc_66FB |
8349 cp 0FFh |
8349 cp 0FFh |
8350 jr z, p7Dloc_6711 |
8350 jr z, p7Dloc_6711 |
8351 pop af |
8351 pop af |
8352 |
8352 |
8353 p7Dloc_66F0: |
8353 p7Dloc_66F0: |
8354 push hl |
8354 push hl |
8355 ld hl, 83FFh |
8355 ld hl, 83FFh |
8356 cp (hl) |
8356 cp (hl) |
8357 pop hl |
8357 pop hl |
8358 jr nc, p7Dloc_672F |
8358 jr nc, p7Dloc_672F |
8359 inc a |
8359 inc a |
8360 jr p7Dloc_66D7 |
8360 jr p7Dloc_66D7 |
8361 ; --------------------------------------------------------------------------- |
8361 ; --------------------------------------------------------------------------- |
8362 |
8362 |
8363 p7Dloc_66FB: |
8363 p7Dloc_66FB: |
8364 pop af |
8364 pop af |
8365 push af |
8365 push af |
8366 push bc |
8366 push bc |
8367 ld c, 0FFh |
8367 ld c, 0FFh |
8368 ld (arcPage), a |
8368 ld (arcPage), a |
8369 ld (arcPtr), hl |
8369 ld (arcPtr), hl |
8370 call Page7D_2CE2 |
8370 call Page7D_2CE2 |
8371 call Page7D_2B6E |
8371 call Page7D_2B6E |
8372 pop bc |
8372 pop bc |
8373 jr z, p7Dloc_66E2 |
8373 jr z, p7Dloc_66E2 |
8374 pop de |
8374 pop de |
8375 push af |
8375 push af |
8376 |
8376 |
8377 p7Dloc_6711: |
8377 p7Dloc_6711: |
8378 pop af |
8378 pop af |
8379 ld (tempSwapArea), hl |
8379 ld (tempSwapArea), hl |
8380 push bc |
8380 push bc |
8381 push af |
8381 push af |
8382 ld a, (unk_83FF) |
8382 ld a, (unk_83FF) |
8383 ld b, a |
8383 ld b, a |
8384 inc b |
8384 inc b |
8385 pop af |
8385 pop af |
8386 call Page7D_2B74 |
8386 call Page7D_2B74 |
8387 ex de, hl |
8387 ex de, hl |
8388 pop bc |
8388 pop bc |
8389 or a |
8389 or a |
8390 call p7Dsub_66A9 |
8390 call p7Dsub_66A9 |
8391 sbc hl, bc |
8391 sbc hl, bc |
8392 ld hl, (tempSwapArea) |
8392 ld hl, (tempSwapArea) |
8393 jr nc, p7Dloc_6733 |
8393 jr nc, p7Dloc_6733 |
8394 jr p7Dloc_66F0 |
8394 jr p7Dloc_66F0 |
8395 ; --------------------------------------------------------------------------- |
8395 ; --------------------------------------------------------------------------- |
8396 |
8396 |
8397 p7Dloc_672F: |
8397 p7Dloc_672F: |
8398 ld a, 0FFh |
8398 ld a, 0FFh |
8399 add a, 10h |
8399 add a, 10h |
8400 |
8400 |
8401 p7Dloc_6733: |
8401 p7Dloc_6733: |
8402 pop bc |
8402 pop bc |
8403 ld c, a |
8403 ld c, a |
8404 ld a, b |
8404 ld a, b |
8405 ld (OP1), a |
8405 ld (OP1), a |
8406 ld a, c |
8406 ld a, c |
8407 pop de |
8407 pop de |
8408 pop bc |
8408 pop bc |
8409 ret |
8409 ret |
8410 |
8410 |
8411 ; =============== S U B R O U T I N E ======================================= |
8411 ; =============== S U B R O U T I N E ======================================= |
8412 |
8412 |
8413 |
8413 |
8414 Page7D_2B74: |
8414 Page7D_2B74: |
8415 push hl |
8415 push hl |
8416 push bc |
8416 push bc |
8417 push af |
8417 push af |
8418 push hl |
8418 push hl |
8419 pop de |
8419 pop de |
8420 ld hl, 7FFFh |
8420 ld hl, 7FFFh |
8421 or a |
8421 or a |
8422 sbc hl, de |
8422 sbc hl, de |
8423 |
8423 |
8424 p7Dloc_6748: |
8424 p7Dloc_6748: |
8425 ex de, hl |
8425 ex de, hl |
8426 inc a |
8426 inc a |
8427 call p7Dsub_67EC |
8427 call p7Dsub_67EC |
8428 jr z, p7Dloc_6765 |
8428 jr z, p7Dloc_6765 |
8429 cp b |
8429 cp b |
8430 jr nc, p7Dloc_6765 |
8430 jr nc, p7Dloc_6765 |
8431 ld hl, 4000h |
8431 ld hl, 4000h |
8432 push af |
8432 push af |
8433 call Page7D_2CD0 |
8433 call Page7D_2CD0 |
8434 cp 0FFh |
8434 cp 0FFh |
8435 jr nz, p7Dloc_6764 |
8435 jr nz, p7Dloc_6764 |
8436 ld hl, 4000h |
8436 ld hl, 4000h |
8437 add hl, de |
8437 add hl, de |
8438 pop af |
8438 pop af |
8439 jr p7Dloc_6748 |
8439 jr p7Dloc_6748 |
8440 ; --------------------------------------------------------------------------- |
8440 ; --------------------------------------------------------------------------- |
8441 |
8441 |
8442 p7Dloc_6764: |
8442 p7Dloc_6764: |
8443 pop af |
8443 pop af |
8444 |
8444 |
8445 p7Dloc_6765: |
8445 p7Dloc_6765: |
8446 ; Page7D_2B74+13j |
8446 ; Page7D_2B74+13j |
8447 pop af |
8447 pop af |
8448 pop bc |
8448 pop bc |
8449 pop hl |
8449 pop hl |
8450 ret |
8450 ret |
8451 ; End of function Page7D_2B74 |
8451 ; End of function Page7D_2B74 |
8452 |
8452 |
8453 |
8453 |
8454 ; =============== S U B R O U T I N E ======================================= |
8454 ; =============== S U B R O U T I N E ======================================= |
8455 |
8455 |
8456 |
8456 |
8457 Page7D_2B6E: |
8457 Page7D_2B6E: |
8458 ; p7Dsub_662F+42p ... |
8458 ; p7Dsub_662F+42p ... |
8459 call p7Dsub_6598 |
8459 call p7Dsub_6598 |
8460 ld (arcPage), a |
8460 ld (arcPage), a |
8461 ld (arcPtr), hl |
8461 ld (arcPtr), hl |
8462 push bc |
8462 push bc |
8463 push hl |
8463 push hl |
8464 push af |
8464 push af |
8465 or 3 |
8465 or 3 |
8466 ld b, 15h |
8466 ld b, 15h |
8467 call NZIf83Plus |
8467 call NZIf83Plus |
8468 jr nz, p7Dloc_6780 |
8468 jr nz, p7Dloc_6780 |
8469 ld b, 69h ; 'i' |
8469 ld b, 69h ; 'i' |
8470 |
8470 |
8471 p7Dloc_6780: |
8471 p7Dloc_6780: |
8472 cp b |
8472 cp b |
8473 jr c, p7Dloc_6784 |
8473 jr c, p7Dloc_6784 |
8474 ld a, b |
8474 ld a, b |
8475 |
8475 |
8476 p7Dloc_6784: |
8476 p7Dloc_6784: |
8477 ld (unk_8390), a |
8477 ld (unk_8390), a |
8478 pop af |
8478 pop af |
8479 pop hl |
8479 pop hl |
8480 pop bc |
8480 pop bc |
8481 |
8481 |
8482 p7Dloc_678A: |
8482 p7Dloc_678A: |
8483 push bc |
8483 push bc |
8484 ld a, (arcPage) |
8484 ld a, (arcPage) |
8485 call Page7D_2CD0 |
8485 call Page7D_2CD0 |
8486 cp c |
8486 cp c |
8487 jr z, p7Dloc_67C8 |
8487 jr z, p7Dloc_67C8 |
8488 cp 0FFh |
8488 cp 0FFh |
8489 jr z, p7Dloc_67C2 |
8489 jr z, p7Dloc_67C2 |
8490 ld (arcPtr), hl |
8490 ld (arcPtr), hl |
8491 call Page7D_2CE2 |
8491 call Page7D_2CE2 |
8492 ld a, (arcPage) |
8492 ld a, (arcPage) |
8493 call Page7D_2CD0 |
8493 call Page7D_2CD0 |
8494 ld e, a |
8494 ld e, a |
8495 call Page7D_2CE2 |
8495 call Page7D_2CE2 |
8496 ld a, (arcPage) |
8496 ld a, (arcPage) |
8497 call Page7D_2CD0 |
8497 call Page7D_2CD0 |
8498 ld d, a |
8498 ld d, a |
8499 inc de |
8499 inc de |
8500 call Page7D_2CCA |
8500 call Page7D_2CCA |
8501 ld a, (unk_8390) |
8501 ld a, (unk_8390) |
8502 ld b, a |
8502 ld b, a |
8503 ld a, (arcPage) |
8503 ld a, (arcPage) |
8504 cp b |
8504 cp b |
8505 jr c, p7Dloc_67BF |
8505 jr c, p7Dloc_67BF |
8506 jr nz, p7Dloc_67C2 |
8506 jr nz, p7Dloc_67C2 |
8507 |
8507 |
8508 p7Dloc_67BF: |
8508 p7Dloc_67BF: |
8509 pop bc |
8509 pop bc |
8510 jr p7Dloc_678A |
8510 jr p7Dloc_678A |
8511 ; --------------------------------------------------------------------------- |
8511 ; --------------------------------------------------------------------------- |
8512 |
8512 |
8513 p7Dloc_67C2: |
8513 p7Dloc_67C2: |
8514 ; Page7D_2B6E+54j |
8514 ; Page7D_2B6E+54j |
8515 xor a |
8515 xor a |
8516 ld a, (arcPage) |
8516 ld a, (arcPage) |
8517 pop bc |
8517 pop bc |
8518 ret |
8518 ret |
8519 ; --------------------------------------------------------------------------- |
8519 ; --------------------------------------------------------------------------- |
8520 |
8520 |
8521 p7Dloc_67C8: |
8521 p7Dloc_67C8: |
8522 pop bc |
8522 pop bc |
8523 ld a, (arcPage) |
8523 ld a, (arcPage) |
8524 push af |
8524 push af |
8525 push hl |
8525 push hl |
8526 ld (arcPtr), hl |
8526 ld (arcPtr), hl |
8527 call Page7D_2CE2 |
8527 call Page7D_2CE2 |
8528 ld a, (arcPage) |
8528 ld a, (arcPage) |
8529 call Page7D_2CD0 |
8529 call Page7D_2CD0 |
8530 ld c, a |
8530 ld c, a |
8531 ld a, (arcPage) |
8531 ld a, (arcPage) |
8532 call Page7D_2CE2 |
8532 call Page7D_2CE2 |
8533 ld a, (arcPage) |
8533 ld a, (arcPage) |
8534 call Page7D_2CD0 |
8534 call Page7D_2CD0 |
8535 ld b, a |
8535 ld b, a |
8536 pop hl |
8536 pop hl |
8537 pop af |
8537 pop af |
8538 or a |
8538 or a |
8539 ret |
8539 ret |
8540 ; End of function Page7D_2B6E |
8540 ; End of function Page7D_2B6E |
8541 |
8541 |
8542 |
8542 |
8543 ; =============== S U B R O U T I N E ======================================= |
8543 ; =============== S U B R O U T I N E ======================================= |
8544 |
8544 |
8545 |
8545 |
8546 p7Dsub_67EC: |
8546 p7Dsub_67EC: |
8547 ; Page7D_2B74+Dp |
8547 ; Page7D_2B74+Dp |
8548 push bc |
8548 push bc |
8549 ld b, a |
8549 ld b, a |
8550 and 3 |
8550 and 3 |
8551 ld a, b |
8551 ld a, b |
8552 jr z, p7Dloc_67FE |
8552 jr z, p7Dloc_67FE |
8553 call NZIf83Plus |
8553 call NZIf83Plus |
8554 jr nz, p7Dloc_67FC |
8554 jr nz, p7Dloc_67FC |
8555 cp 6Ah ; 'j' |
8555 cp 6Ah ; 'j' |
8556 jr p7Dloc_67FE |
8556 jr p7Dloc_67FE |
8557 ; --------------------------------------------------------------------------- |
8557 ; --------------------------------------------------------------------------- |
8558 |
8558 |
8559 p7Dloc_67FC: |
8559 p7Dloc_67FC: |
8560 cp 16h |
8560 cp 16h |
8561 |
8561 |
8562 p7Dloc_67FE: |
8562 p7Dloc_67FE: |
8563 pop bc |
8563 pop bc |
8564 ret |
8564 ret |
8565 ; End of function p7Dsub_67EC |
8565 ; End of function p7Dsub_67EC |
8566 |
8566 |
8567 |
8567 |
8568 ; =============== S U B R O U T I N E ======================================= |
8568 ; =============== S U B R O U T I N E ======================================= |
8572 ; Page7D_2E44+2p ... |
8572 ; Page7D_2E44+2p ... |
8573 push af |
8573 push af |
8574 push hl |
8574 push hl |
8575 push de |
8575 push de |
8576 call p7Dsub_75EC |
8576 call p7Dsub_75EC |
8577 ld hl, 4000h |
8577 ld hl, 4000h |
8578 |
8578 |
8579 p7Dloc_6809: |
8579 p7Dloc_6809: |
8580 push af |
8580 push af |
8581 call Page7D_2CD0 |
8581 call Page7D_2CD0 |
8582 cp 80h ; '�' |
8582 cp 80h ; '�' |
8583 jr z, p7Dloc_6815 |
8583 jr z, p7Dloc_6815 |
8584 cp 0 |
8584 cp 0 |
8585 jr nz, p7Dloc_6827 |
8585 jr nz, p7Dloc_6827 |
8586 |
8586 |
8587 p7Dloc_6815: |
8587 p7Dloc_6815: |
8588 pop af |
8588 pop af |
8589 push af |
8589 push af |
8590 call Page0Call_3E31 |
8590 call Page0Call_3E31 |
8591 jr nz, p7Dloc_6827 |
8591 jr nz, p7Dloc_6827 |
8592 call FindAppNumPages |
8592 call FindAppNumPages |
8593 ld a, c |
8593 ld a, c |
8594 or c |
8594 or c |
8595 jr z, p7Dloc_6827 |
8595 jr z, p7Dloc_6827 |
8596 pop af |
8596 pop af |
8597 sub c |
8597 sub c |
8598 jr p7Dloc_6809 |
8598 jr p7Dloc_6809 |
8599 ; --------------------------------------------------------------------------- |
8599 ; --------------------------------------------------------------------------- |
8600 |
8600 |
8601 p7Dloc_6827: |
8601 p7Dloc_6827: |
8602 ; Page7D_2B56+1Aj ... |
8602 ; Page7D_2B56+1Aj ... |
8603 pop af |
8603 pop af |
8604 ld b, a |
8604 ld b, a |
8605 pop de |
8605 pop de |
8606 pop hl |
8606 pop hl |
8607 pop af |
8607 pop af |
8608 ret |
8608 ret |
8609 ; End of function Page7D_2B56 |
8609 ; End of function Page7D_2B56 |
8610 |
8610 |
8611 ; --------------------------------------------------------------------------- |
8611 ; --------------------------------------------------------------------------- |
8612 |
8612 |
8613 Page7D_2EC2: |
8613 Page7D_2EC2: |
8614 res 7, (iy+24h) |
8614 res 7, (iy+24h) |
8615 push af |
8615 push af |
8616 ld a, 1 |
8616 ld a, 1 |
8617 nop |
8617 nop |
8618 di |
8618 di |
8619 nop |
8619 nop |
8620 nop |
8620 nop |
8621 im 1 |
8621 im 1 |
8622 di |
8622 di |
8623 out (14h), a |
8623 out (14h), a |
8624 di |
8624 di |
8625 call checkForFlashTrickery |
8625 call checkForFlashTrickery |
8626 pop af |
8626 pop af |
8627 ld a, (arcInfo) |
8627 ld a, (arcInfo) |
8628 ld hl, (arcInfo+1) |
8628 ld hl, (arcInfo+1) |
8629 call p7Dsub_69E8 |
8629 call p7Dsub_69E8 |
8630 ld de, (unk_83F3) |
8630 ld de, (unk_83F3) |
8631 ld bc, (unk_83F9) |
8631 ld bc, (unk_83F9) |
8632 call Page7D_2C46 |
8632 call Page7D_2C46 |
8633 jp c, Page0Call_2541 |
8633 jp c, Page0Call_2541 |
8634 rst 28h |
8634 rst 28h |
8635 ; --------------------------------------------------------------------------- |
8635 ; --------------------------------------------------------------------------- |
8636 .dw 8054h |
8636 .dw 8054h |
8637 ; --------------------------------------------------------------------------- |
8637 ; --------------------------------------------------------------------------- |
8638 ld de, (arcInfo+1) |
8638 ld de, (arcInfo+1) |
8639 ld a, (arcInfo) |
8639 ld a, (arcInfo) |
8640 ld b, 0F0h ; '�' |
8640 ld b, 0F0h ; '�' |
8641 rst 28h |
8641 rst 28h |
8642 ; --------------------------------------------------------------------------- |
8642 ; --------------------------------------------------------------------------- |
8643 .dw 8021h |
8643 .dw 8021h |
8644 ; --------------------------------------------------------------------------- |
8644 ; --------------------------------------------------------------------------- |
8645 ld de, (unk_83F3) |
8645 ld de, (unk_83F3) |
8646 ld (arcInfo+1), de |
8646 ld (arcInfo+1), de |
8647 ld a, 0 |
8647 ld a, 0 |
8648 ld (arcInfo), a |
8648 ld (arcInfo), a |
8649 ld hl, (unk_83F1) |
8649 ld hl, (unk_83F1) |
8650 call Page0Call_2EDD |
8650 call Page0Call_2EDD |
8651 jp relockFlashBack |
8651 jp relockFlashBack |
8652 ; --------------------------------------------------------------------------- |
8652 ; --------------------------------------------------------------------------- |
8653 |
8653 |
8654 Page7D_2D06: |
8654 Page7D_2D06: |
8655 res 7, (iy+24h) |
8655 res 7, (iy+24h) |
8656 push af |
8656 push af |
8657 ld a, 1 |
8657 ld a, 1 |
8658 nop |
8658 nop |
8659 di |
8659 di |
8660 nop |
8660 nop |
8661 nop |
8661 nop |
8662 im 1 |
8662 im 1 |
8663 di |
8663 di |
8664 out (14h), a |
8664 out (14h), a |
8665 di |
8665 di |
8666 call checkForFlashTrickery |
8666 call checkForFlashTrickery |
8667 pop af |
8667 pop af |
8668 ex de, hl |
8668 ex de, hl |
8669 jp p7Dloc_692E |
8669 jp p7Dloc_692E |
8670 |
8670 |
8671 ; =============== S U B R O U T I N E ======================================= |
8671 ; =============== S U B R O U T I N E ======================================= |
8672 |
8672 |
8673 |
8673 |
8674 Page7D_2EB0: |
8674 Page7D_2EB0: |
8675 res 7, (iy+24h) |
8675 res 7, (iy+24h) |
8676 push af |
8676 push af |
8677 ld a, 1 |
8677 ld a, 1 |
8678 nop |
8678 nop |
8679 di |
8679 di |
8680 nop |
8680 nop |
8681 nop |
8681 nop |
8682 im 1 |
8682 im 1 |
8683 di |
8683 di |
8684 out (14h), a |
8684 out (14h), a |
8685 di |
8685 di |
8686 call checkForFlashTrickery |
8686 call checkForFlashTrickery |
8687 pop af |
8687 pop af |
8688 ld a, (arcInfo) |
8688 ld a, (arcInfo) |
8689 ld hl, (arcInfo+1) |
8689 ld hl, (arcInfo+1) |
8690 call p7Dsub_69D4 |
8690 call p7Dsub_69D4 |
8691 jr nz, p7Dloc_68D2 |
8691 jr nz, p7Dloc_68D2 |
8692 ld b, 0F0h ; '�' |
8692 ld b, 0F0h ; '�' |
8693 ld a, (arcInfo) |
8693 ld a, (arcInfo) |
8694 ld de, (arcInfo+1) |
8694 ld de, (arcInfo+1) |
8695 call p7Dsub_6F82 |
8695 call p7Dsub_6F82 |
8696 jp c, Page0Call_2541 |
8696 jp c, Page0Call_2541 |
8697 rst 28h |
8697 rst 28h |
8698 ; --------------------------------------------------------------------------- |
8698 ; --------------------------------------------------------------------------- |
8699 .dw 8021h |
8699 .dw 8021h |
8700 ; --------------------------------------------------------------------------- |
8700 ; --------------------------------------------------------------------------- |
8701 ld hl, (arcInfo+1) |
8701 ld hl, (arcInfo+1) |
8702 inc hl |
8702 inc hl |
8703 ld (arcInfo+1), hl |
8703 ld (arcInfo+1), hl |
8704 jr p7Dloc_68D6 |
8704 jr p7Dloc_68D6 |
8705 ; --------------------------------------------------------------------------- |
8705 ; --------------------------------------------------------------------------- |
8706 |
8706 |
8707 p7Dloc_68D2: |
8707 p7Dloc_68D2: |
8708 ld de, (arcInfo+1) |
8708 ld de, (arcInfo+1) |
8709 |
8709 |
8710 p7Dloc_68D6: |
8710 p7Dloc_68D6: |
8711 ld b, 0FEh ; '�' |
8711 ld b, 0FEh ; '�' |
8712 ld a, (arcInfo) |
8712 ld a, (arcInfo) |
8713 ld (unk_8404), a |
8713 ld (unk_8404), a |
8714 ld (unk_8402), de |
8714 ld (unk_8402), de |
8715 call p7Dsub_6F82 |
8715 call p7Dsub_6F82 |
8716 jp c, Page0Call_2541 |
8716 jp c, Page0Call_2541 |
8717 rst 28h |
8717 rst 28h |
8718 ; --------------------------------------------------------------------------- |
8718 ; --------------------------------------------------------------------------- |
8719 .dw 8021h |
8719 .dw 8021h |
8720 ; --------------------------------------------------------------------------- |
8720 ; --------------------------------------------------------------------------- |
8721 ld a, (arcInfo) |
8721 ld a, (arcInfo) |
8722 ld de, (unk_8402) |
8722 ld de, (unk_8402) |
8723 ld (arcPage), a |
8723 ld (arcPage), a |
8724 ld (arcPtr), de |
8724 ld (arcPtr), de |
8725 call Page7D_2CE2 |
8725 call Page7D_2CE2 |
8726 ld a, (arcPage) |
8726 ld a, (arcPage) |
8727 ld de, (arcPtr) |
8727 ld de, (arcPtr) |
8728 ld hl, 83F9h |
8728 ld hl, 83F9h |
8729 ld bc, 2 |
8729 ld bc, 2 |
8730 call Page7D_2C46 |
8730 call Page7D_2C46 |
8731 jp c, Page0Call_2541 |
8731 jp c, Page0Call_2541 |
8732 rst 28h |
8732 rst 28h |
8733 ; --------------------------------------------------------------------------- |
8733 ; --------------------------------------------------------------------------- |
8734 .dw 8087h |
8734 .dw 8087h |
8735 ; --------------------------------------------------------------------------- |
8735 ; --------------------------------------------------------------------------- |
8736 ld de, 2 |
8736 ld de, 2 |
8737 call Page7D_2CCA |
8737 call Page7D_2CCA |
8738 ld a, (unk_8404) |
8738 ld a, (unk_8404) |
8739 ld (arcInfo), a |
8739 ld (arcInfo), a |
8740 ld de, (arcPtr) |
8740 ld de, (arcPtr) |
8741 ld hl, (unk_83F1) |
8741 ld hl, (unk_83F1) |
8742 call Page0Call_2EDD |
8742 call Page0Call_2EDD |
8743 ld a, (arcPage) |
8743 ld a, (arcPage) |
8744 ld (arcInfo), a |
8744 ld (arcInfo), a |
8745 |
8745 |
8746 p7Dloc_692E: |
8746 p7Dloc_692E: |
8747 ld hl, (unk_83F1) |
8747 ld hl, (unk_83F1) |
8748 ld bc, (unk_83F5) |
8748 ld bc, (unk_83F5) |
8749 push de |
8749 push de |
8750 ld de, OP1 |
8750 ld de, OP1 |
8751 ld b, c |
8751 ld b, c |
8752 |
8752 |
8753 p7Dloc_693A: |
8753 p7Dloc_693A: |
8754 ld a, (hl) |
8754 ld a, (hl) |
8755 ld (de), a |
8755 ld (de), a |
8756 inc de |
8756 inc de |
8757 dec hl |
8757 dec hl |
8758 djnz p7Dloc_693A |
8758 djnz p7Dloc_693A |
8759 pop de |
8759 pop de |
8760 ld a, (arcInfo) |
8760 ld a, (arcInfo) |
8761 ld bc, (unk_83F5) |
8761 ld bc, (unk_83F5) |
8762 ld hl, OP1 |
8762 ld hl, OP1 |
8763 res 7, (hl) |
8763 res 7, (hl) |
8764 ld (arcPtr), de |
8764 ld (arcPtr), de |
8765 ld (arcPage), a |
8765 ld (arcPage), a |
8766 call Page7D_2C46 |
8766 call Page7D_2C46 |
8767 jp c, Page0Call_2541 |
8767 jp c, Page0Call_2541 |
8768 rst 28h |
8768 rst 28h |
8769 ; --------------------------------------------------------------------------- |
8769 ; --------------------------------------------------------------------------- |
8770 .dw 8087h |
8770 .dw 8087h |
8771 ; --------------------------------------------------------------------------- |
8771 ; --------------------------------------------------------------------------- |
8772 ld de, (unk_83F5) |
8772 ld de, (unk_83F5) |
8773 call Page7D_2CCA |
8773 call Page7D_2CCA |
8774 ld a, (arcPage) |
8774 ld a, (arcPage) |
8775 ld (arcInfo), a |
8775 ld (arcInfo), a |
8776 ld de, (arcPtr) |
8776 ld de, (arcPtr) |
8777 ld (unk_83FB), de |
8777 ld (unk_83FB), de |
8778 bit 3, (iy+26h) |
8778 bit 3, (iy+26h) |
8779 res 3, (iy+26h) |
8779 res 3, (iy+26h) |
8780 jr nz, p7Dloc_69D1 |
8780 jr nz, p7Dloc_69D1 |
8781 ld a, (arcInfo) |
8781 ld a, (arcInfo) |
8782 ld hl, (unk_83F3) |
8782 ld hl, (unk_83F3) |
8783 bit 5, (iy+26h) |
8783 bit 5, (iy+26h) |
8784 ld bc, 2 |
8784 ld bc, 2 |
8785 jr nz, p7Dloc_698F |
8785 jr nz, p7Dloc_698F |
8786 ld bc, (unk_83F7) |
8786 ld bc, (unk_83F7) |
8787 |
8787 |
8788 p7Dloc_698F: |
8788 p7Dloc_698F: |
8789 ld (arcPtr), de |
8789 ld (arcPtr), de |
8790 ld (arcPage), a |
8790 ld (arcPage), a |
8791 call Page7D_2C46 |
8791 call Page7D_2C46 |
8792 jp c, Page0Call_2541 |
8792 jp c, Page0Call_2541 |
8793 call p7Dsub_7666 |
8793 call p7Dsub_7666 |
8794 bit 5, (iy+26h) |
8794 bit 5, (iy+26h) |
8795 ld de, 2 |
8795 ld de, 2 |
8796 jr nz, p7Dloc_69AC |
8796 jr nz, p7Dloc_69AC |
8797 ld de, (unk_83F7) |
8797 ld de, (unk_83F7) |
8798 |
8798 |
8799 p7Dloc_69AC: |
8799 p7Dloc_69AC: |
8800 call Page7D_2CCA |
8800 call Page7D_2CCA |
8801 ld a, (arcPage) |
8801 ld a, (arcPage) |
8802 ld (arcInfo), a |
8802 ld (arcInfo), a |
8803 ld de, (arcPtr) |
8803 ld de, (arcPtr) |
8804 bit 2, (iy+26h) |
8804 bit 2, (iy+26h) |
8805 jr nz, p7Dloc_69D1 |
8805 jr nz, p7Dloc_69D1 |
8806 ld de, (unk_8402) |
8806 ld de, (unk_8402) |
8807 ld b, 0FCh ; '�' |
8807 ld b, 0FCh ; '�' |
8808 ld a, (unk_8404) |
8808 ld a, (unk_8404) |
8809 call p7Dsub_6F82 |
8809 call p7Dsub_6F82 |
8810 jp c, Page0Call_2541 |
8810 jp c, Page0Call_2541 |
8811 rst 28h |
8811 rst 28h |
8812 ; --------------------------------------------------------------------------- |
8812 ; --------------------------------------------------------------------------- |
8813 .dw 8021h |
8813 .dw 8021h |
8814 ; --------------------------------------------------------------------------- |
8814 ; --------------------------------------------------------------------------- |
8815 |
8815 |
8816 p7Dloc_69D1: |
8816 p7Dloc_69D1: |
8817 ; Page7D_2EB0+126j |
8817 ; Page7D_2EB0+126j |
8818 jp relockFlashBack |
8818 jp relockFlashBack |
8819 ; End of function Page7D_2EB0 |
8819 ; End of function Page7D_2EB0 |
8820 |
8820 |
8821 |
8821 |
8822 ; =============== S U B R O U T I N E ======================================= |
8822 ; =============== S U B R O U T I N E ======================================= |
8823 |
8823 |
8824 |
8824 |
8825 p7Dsub_69D4: |
8825 p7Dsub_69D4: |
8826 ; p7Dsub_7CDA+39p |
8826 ; p7Dsub_7CDA+39p |
8827 push hl |
8827 push hl |
8828 ld bc, 4000h |
8828 ld bc, 4000h |
8829 or a |
8829 or a |
8830 sbc hl, bc |
8830 sbc hl, bc |
8831 pop hl |
8831 pop hl |
8832 jr z, p7Dloc_69DF |
8832 jr z, p7Dloc_69DF |
8833 ret nc |
8833 ret nc |
8834 |
8834 |
8835 p7Dloc_69DF: |
8835 p7Dloc_69DF: |
8836 ld b, a |
8836 ld b, a |
8837 and 3 |
8837 and 3 |
8838 ld a, b |
8838 ld a, b |
8839 ret |
8839 ret |
8840 ; End of function p7Dsub_69D4 |
8840 ; End of function p7Dsub_69D4 |
8841 |
8841 |
8842 ; --------------------------------------------------------------------------- |
8842 ; --------------------------------------------------------------------------- |
8843 |
8843 |
9462 Page7D_2B7A: |
9462 Page7D_2B7A: |
9463 push bc |
9463 push bc |
9464 push hl |
9464 push hl |
9465 push de |
9465 push de |
9466 push af |
9466 push af |
9467 ld (arcInfo), a |
9467 ld (arcInfo), a |
9468 ld (arcInfo+1), hl |
9468 ld (arcInfo+1), hl |
9469 ld a, b |
9469 ld a, b |
9470 ld (unk_83F1), a |
9470 ld (unk_83F1), a |
9471 ld (unk_83F1+1), de |
9471 ld (unk_83F1+1), de |
9472 ld (unk_8404), a |
9472 ld (unk_8404), a |
9473 ld (unk_8402), de |
9473 ld (unk_8402), de |
9474 ld a, (arcInfo) |
9474 ld a, (arcInfo) |
9475 ld hl, (arcInfo+1) |
9475 ld hl, (arcInfo+1) |
9476 call p7Dsub_6CCB |
9476 call p7Dsub_6CCB |
9477 ld a, (OP1) |
9477 ld a, (OP1) |
9478 and 1Fh |
9478 and 1Fh |
9479 push af |
9479 push af |
9480 ld a, (arcInfo) |
9480 ld a, (arcInfo) |
9481 ld hl, (arcInfo+1) |
9481 ld hl, (arcInfo+1) |
9482 ld (arcPage), a |
9482 ld (arcPage), a |
9483 ld (arcPtr), hl |
9483 ld (arcPtr), hl |
9484 call Page7D_2CE2 |
9484 call Page7D_2CE2 |
9485 ld a, (arcPage) |
9485 ld a, (arcPage) |
9486 call Page7D_2CD0 |
9486 call Page7D_2CD0 |
9487 ld c, a |
9487 ld c, a |
9488 call Page7D_2CE2 |
9488 call Page7D_2CE2 |
9489 ld a, (arcPage) |
9489 ld a, (arcPage) |
9490 call Page7D_2CD0 |
9490 call Page7D_2CD0 |
9491 ld b, a |
9491 ld b, a |
9492 call Page7D_2CE2 |
9492 call Page7D_2CE2 |
9493 push bc |
9493 push bc |
9494 ld a, (arcPage) |
9494 ld a, (arcPage) |
9495 ld (arcInfo), a |
9495 ld (arcInfo), a |
9496 ld (arcInfo+1), hl |
9496 ld (arcInfo+1), hl |
9497 ld a, (unk_83F1) |
9497 ld a, (unk_83F1) |
9498 ld de, (unk_83F1+1) |
9498 ld de, (unk_83F1+1) |
9499 ld (arcPage), a |
9499 ld (arcPage), a |
9500 ld (arcPtr), de |
9500 ld (arcPtr), de |
9501 ld b, 0FEh ; '�' |
9501 ld b, 0FEh ; '�' |
9502 rst 28h |
9502 rst 28h |
9503 ; --------------------------------------------------------------------------- |
9503 ; --------------------------------------------------------------------------- |
9504 .dw 8021h |
9504 .dw 8021h |
9505 ; --------------------------------------------------------------------------- |
9505 ; --------------------------------------------------------------------------- |
9506 call Page7D_2CE2 |
9506 call Page7D_2CE2 |
9507 ld a, (arcPage) |
9507 ld a, (arcPage) |
9508 ld de, (arcPtr) |
9508 ld de, (arcPtr) |
9509 pop bc |
9509 pop bc |
9510 push bc |
9510 push bc |
9511 ld b, c |
9511 ld b, c |
9512 rst 28h |
9512 rst 28h |
9513 ; --------------------------------------------------------------------------- |
9513 ; --------------------------------------------------------------------------- |
9514 .dw 8021h |
9514 .dw 8021h |
9515 ; --------------------------------------------------------------------------- |
9515 ; --------------------------------------------------------------------------- |
9516 call Page7D_2CE2 |
9516 call Page7D_2CE2 |
9517 ld a, (arcPage) |
9517 ld a, (arcPage) |
9518 ld de, (arcPtr) |
9518 ld de, (arcPtr) |
9519 pop bc |
9519 pop bc |
9520 push bc |
9520 push bc |
9521 rst 28h |
9521 rst 28h |
9522 ; --------------------------------------------------------------------------- |
9522 ; --------------------------------------------------------------------------- |
9523 .dw 8021h |
9523 .dw 8021h |
9524 ; --------------------------------------------------------------------------- |
9524 ; --------------------------------------------------------------------------- |
9525 call Page7D_2CE2 |
9525 call Page7D_2CE2 |
9526 ld a, (arcPage) |
9526 ld a, (arcPage) |
9527 ld de, (arcPtr) |
9527 ld de, (arcPtr) |
9528 ld (unk_83F1), a |
9528 ld (unk_83F1), a |
9529 ld (unk_83F1+1), de |
9529 ld (unk_83F1+1), de |
9530 ld a, (arcInfo) |
9530 ld a, (arcInfo) |
9531 ld hl, (arcInfo+1) |
9531 ld hl, (arcInfo+1) |
9532 ld (arcPage), a |
9532 ld (arcPage), a |
9533 ld (arcPtr), hl |
9533 ld (arcPtr), hl |
9534 ld de, 83FDh |
9534 ld de, 83FDh |
9535 ld bc, 3 |
9535 ld bc, 3 |
9536 call FlashToRam |
9536 call FlashToRam |
9537 ld de, 6 |
9537 ld de, 6 |
9538 call Page7D_2CCA |
9538 call Page7D_2CCA |
9539 ld a, (arcPage) |
9539 ld a, (arcPage) |
9540 ld hl, (arcPtr) |
9540 ld hl, (arcPtr) |
9541 ld (arcInfo), a |
9541 ld (arcInfo), a |
9542 ld (arcInfo+1), hl |
9542 ld (arcInfo+1), hl |
9543 ld a, (unk_83F1) |
9543 ld a, (unk_83F1) |
9544 ld de, (unk_83F1+1) |
9544 ld de, (unk_83F1+1) |
9545 ld (arcPage), a |
9545 ld (arcPage), a |
9546 ld (arcPtr), de |
9546 ld (arcPtr), de |
9547 ld hl, 83FDh |
9547 ld hl, 83FDh |
9548 ld bc, 3 |
9548 ld bc, 3 |
9549 rst 28h |
9549 rst 28h |
9550 ; --------------------------------------------------------------------------- |
9550 ; --------------------------------------------------------------------------- |
9551 .dw 8087h |
9551 .dw 8087h |
9552 ; --------------------------------------------------------------------------- |
9552 ; --------------------------------------------------------------------------- |
9553 ld de, 3 |
9553 ld de, 3 |
9554 call Page7D_2CCA |
9554 call Page7D_2CCA |
9555 ld a, (arcPage) |
9555 ld a, (arcPage) |
9556 ld de, (arcPtr) |
9556 ld de, (arcPtr) |
9557 ld hl, 8402h |
9557 ld hl, 8402h |
9558 ld bc, 3 |
9558 ld bc, 3 |
9559 rst 28h |
9559 rst 28h |
9560 ; --------------------------------------------------------------------------- |
9560 ; --------------------------------------------------------------------------- |
9561 .dw 8087h |
9561 .dw 8087h |
9562 ; --------------------------------------------------------------------------- |
9562 ; --------------------------------------------------------------------------- |
9563 ld de, 3 |
9563 ld de, 3 |
9564 call Page7D_2CCA |
9564 call Page7D_2CCA |
9565 ld a, (arcPage) |
9565 ld a, (arcPage) |
9566 ld de, (arcPtr) |
9566 ld de, (arcPtr) |
9567 ld (unk_83F1), a |
9567 ld (unk_83F1), a |
9568 ld (unk_83F1+1), de |
9568 ld (unk_83F1+1), de |
9569 pop hl |
9569 pop hl |
9570 ld bc, 6 |
9570 ld bc, 6 |
9571 or a |
9571 or a |
9572 sbc hl, bc |
9572 sbc hl, bc |
9573 push hl |
9573 push hl |
9574 pop bc |
9574 pop bc |
9575 |
9575 |
9576 p7Dloc_6E40: |
9576 p7Dloc_6E40: |
9577 ld hl, 0 |
9577 ld hl, 0 |
9578 ld (unk_83F3+1), hl |
9578 ld (unk_83F3+1), hl |
9579 ld de, ramStart |
9579 ld de, ramStart |
9580 |
9580 |
9581 p7Dloc_6E49: |
9581 p7Dloc_6E49: |
9582 push bc |
9582 push bc |
9583 ld a, (arcInfo) |
9583 ld a, (arcInfo) |
9584 ld b, a |
9584 ld b, a |
9585 ld hl, (arcInfo+1) |
9585 ld hl, (arcInfo+1) |
9586 call LoadCIndPaged |
9586 call LoadCIndPaged |
9587 ld a, c |
9587 ld a, c |
9588 ld (de), a |
9588 ld (de), a |
9589 inc de |
9589 inc de |
9590 inc hl |
9590 inc hl |
9591 bit 7, h |
9591 bit 7, h |
9592 jr z, p7Dloc_6E60 |
9592 jr z, p7Dloc_6E60 |
9593 inc b |
9593 inc b |
9594 ld hl, 4000h |
9594 ld hl, 4000h |
9595 |
9595 |
9596 p7Dloc_6E60: |
9596 p7Dloc_6E60: |
9597 call p7Dsub_6ECE |
9597 call p7Dsub_6ECE |
9598 ld a, b |
9598 ld a, b |
9599 ld (arcInfo), a |
9599 ld (arcInfo), a |
9600 ld (arcInfo+1), hl |
9600 ld (arcInfo+1), hl |
9601 pop bc |
9601 pop bc |
9602 dec bc |
9602 dec bc |
9603 ld a, b |
9603 ld a, b |
9604 or c |
9604 or c |
9605 jr z, p7Dloc_6EA7 |
9605 jr z, p7Dloc_6EA7 |
9606 call p7Dsub_6ED5 |
9606 call p7Dsub_6ED5 |
9607 jr z, p7Dloc_6E77 |
9607 jr z, p7Dloc_6E77 |
9608 jr p7Dloc_6E49 |
9608 jr p7Dloc_6E49 |
9609 ; --------------------------------------------------------------------------- |
9609 ; --------------------------------------------------------------------------- |
9610 |
9610 |
9611 p7Dloc_6E77: |
9611 p7Dloc_6E77: |
9612 push bc |
9612 push bc |
9613 ld hl, ramStart |
9613 ld hl, ramStart |
9614 ld de, (unk_83F1+1) |
9614 ld de, (unk_83F1+1) |
9615 ld a, (unk_83F1) |
9615 ld a, (unk_83F1) |
9616 ld (arcPtr), de |
9616 ld (arcPtr), de |
9617 ld (arcPage), a |
9617 ld (arcPage), a |
9618 ld bc, (unk_83F3+1) |
9618 ld bc, (unk_83F3+1) |
9619 rst 28h |
9619 rst 28h |
9620 ; --------------------------------------------------------------------------- |
9620 ; --------------------------------------------------------------------------- |
9621 .dw 8087h |
9621 .dw 8087h |
9622 ; --------------------------------------------------------------------------- |
9622 ; --------------------------------------------------------------------------- |
9623 ld de, (unk_83F3+1) |
9623 ld de, (unk_83F3+1) |
9624 call Page7D_2CCA |
9624 call Page7D_2CCA |
9625 ld a, (arcPage) |
9625 ld a, (arcPage) |
9626 ld hl, (arcPtr) |
9626 ld hl, (arcPtr) |
9627 ld (unk_83F1), a |
9627 ld (unk_83F1), a |
9628 ld (unk_83F1+1), hl |
9628 ld (unk_83F1+1), hl |
9629 pop bc |
9629 pop bc |
9630 jp p7Dloc_6E40 |
9630 jp p7Dloc_6E40 |
9631 ; --------------------------------------------------------------------------- |
9631 ; --------------------------------------------------------------------------- |
9632 |
9632 |
9633 p7Dloc_6EA7: |
9633 p7Dloc_6EA7: |
9634 ld hl, ramStart |
9634 ld hl, ramStart |
9635 ld de, (unk_83F1+1) |
9635 ld de, (unk_83F1+1) |
9636 ld a, (unk_83F1) |
9636 ld a, (unk_83F1) |
9637 ld bc, (unk_83F3+1) |
9637 ld bc, (unk_83F3+1) |
9638 rst 28h |
9638 rst 28h |
9639 ; --------------------------------------------------------------------------- |
9639 ; --------------------------------------------------------------------------- |
9640 .dw 8087h |
9640 .dw 8087h |
9641 ; --------------------------------------------------------------------------- |
9641 ; --------------------------------------------------------------------------- |
9642 ld a, (unk_8404) |
9642 ld a, (unk_8404) |
9643 ld de, (unk_8402) |
9643 ld de, (unk_8402) |
9644 ld b, 0FCh ; '�' |
9644 ld b, 0FCh ; '�' |
9645 rst 28h |
9645 rst 28h |
9646 ; --------------------------------------------------------------------------- |
9646 ; --------------------------------------------------------------------------- |
9647 .dw 8021h |
9647 .dw 8021h |
9648 ; --------------------------------------------------------------------------- |
9648 ; --------------------------------------------------------------------------- |
9649 pop af |
9649 pop af |
9650 ld (OP1), a |
9650 ld (OP1), a |
9651 pop af |
9651 pop af |
9652 pop de |
9652 pop de |
9653 pop hl |
9653 pop hl |
9654 pop bc |
9654 pop bc |
9655 ret |
9655 ret |
9656 ; --------------------------------------------------------------------------- |
9656 ; --------------------------------------------------------------------------- |
9657 ret |
9657 ret |
9658 |
9658 |
9659 ; =============== S U B R O U T I N E ======================================= |
9659 ; =============== S U B R O U T I N E ======================================= |
9660 |
9660 |
9661 |
9661 |
9662 p7Dsub_6ECE: |
9662 p7Dsub_6ECE: |
9663 push hl |
9663 push hl |
9664 ld hl, 83F4h |
9664 ld hl, 83F4h |
9665 inc (hl) |
9665 inc (hl) |
9666 pop hl |
9666 pop hl |
9667 ret |
9667 ret |
9668 ; End of function p7Dsub_6ECE |
9668 ; End of function p7Dsub_6ECE |
9669 |
9669 |
9670 |
9670 |
9671 ; =============== S U B R O U T I N E ======================================= |
9671 ; =============== S U B R O U T I N E ======================================= |
9672 |
9672 |
9673 |
9673 |
9674 p7Dsub_6ED5: |
9674 p7Dsub_6ED5: |
9675 ld a, (unk_83F3+1) |
9675 ld a, (unk_83F3+1) |
9676 cp 0FFh |
9676 cp 0FFh |
9677 ret |
9677 ret |
9678 ; End of function p7Dsub_6ED5 |
9678 ; End of function p7Dsub_6ED5 |
9679 |
9679 |
9680 |
9680 |
9681 ; =============== S U B R O U T I N E ======================================= |
9681 ; =============== S U B R O U T I N E ======================================= |
10034 |
10034 |
10035 push ix |
10035 push ix |
10036 |
10036 |
10037 p7Dloc_7062: |
10037 p7Dloc_7062: |
10038 push af |
10038 push af |
10039 rst 28h |
10039 rst 28h |
10040 ; --------------------------------------------------------------------------- |
10040 ; --------------------------------------------------------------------------- |
10041 .dw 8051h |
10041 .dw 8051h |
10042 ; --------------------------------------------------------------------------- |
10042 ; --------------------------------------------------------------------------- |
10043 cp d |
10043 cp d |
10044 jr nz, p7Dloc_709E |
10044 jr nz, p7Dloc_709E |
10045 inc hl |
10045 inc hl |
10046 pop af |
10046 pop af |
10047 push af |
10047 push af |
10048 rst 28h |
10048 rst 28h |
10049 ; --------------------------------------------------------------------------- |
10049 ; --------------------------------------------------------------------------- |
10050 .dw 8051h |
10050 .dw 8051h |
10051 ; --------------------------------------------------------------------------- |
10051 ; --------------------------------------------------------------------------- |
10052 and 0F0h ; '�' |
10052 and 0F0h ; '�' |
10053 cp e |
10053 cp e |
10054 jr nz, p7Dloc_7078 |
10054 jr nz, p7Dloc_7078 |
10055 pop af |
10055 pop af |
10056 dec hl |
10056 dec hl |
10057 jr p7Dloc_70A2 |
10057 jr p7Dloc_70A2 |
10058 ; --------------------------------------------------------------------------- |
10058 ; --------------------------------------------------------------------------- |
10059 |
10059 |
10060 p7Dloc_7078: |
10060 p7Dloc_7078: |
10061 pop af |
10061 pop af |
10062 push af |
10062 push af |
10063 push de |
10063 push de |
10064 rst 28h |
10064 rst 28h |
10065 ; --------------------------------------------------------------------------- |
10065 ; --------------------------------------------------------------------------- |
10066 .dw 805Ah |
10066 .dw 805Ah |
10067 ; --------------------------------------------------------------------------- |
10067 ; --------------------------------------------------------------------------- |
10068 pop de |
10068 pop de |
10069 add hl, bc |
10069 add hl, bc |
10070 ld (arcInfo), hl |
10070 ld (arcInfo), hl |
10071 pop af |
10071 pop af |
10072 push af |
10072 push af |
10073 push hl |
10073 push hl |
10074 inc hl |
10074 inc hl |
10075 rst 28h |
10075 rst 28h |
10076 ; --------------------------------------------------------------------------- |
10076 ; --------------------------------------------------------------------------- |
10077 .dw 8051h |
10077 .dw 8051h |
10078 ; --------------------------------------------------------------------------- |
10078 ; --------------------------------------------------------------------------- |
10079 and 0F0h ; '�' |
10079 and 0F0h ; '�' |
10080 cp e |
10080 cp e |
10081 jr z, p7Dloc_7093 |
10081 jr z, p7Dloc_7093 |
10082 cp 10h |
10082 cp 10h |
10083 jr z, p7Dloc_7097 |
10083 jr z, p7Dloc_7097 |
10084 |
10084 |
10085 p7Dloc_7093: |
10085 p7Dloc_7093: |
10086 pop hl |
10086 pop hl |
10087 pop af |
10087 pop af |
10088 jr p7Dloc_7062 |
10088 jr p7Dloc_7062 |
10089 ; --------------------------------------------------------------------------- |
10089 ; --------------------------------------------------------------------------- |
10090 |
10090 |
10091 p7Dloc_7097: |
10091 p7Dloc_7097: |
10092 pop hl |
10092 pop hl |
10093 ld hl, (arcInfo) |
10093 ld hl, (arcInfo) |
10094 ld a, 1 |
10094 ld a, 1 |
10095 or a |
10095 or a |
10096 |
10096 |
10097 p7Dloc_709E: |
10097 p7Dloc_709E: |
10098 pop bc |
10098 pop bc |
10099 pop ix |
10099 pop ix |
10100 ret |
10100 ret |
10101 ; --------------------------------------------------------------------------- |
10101 ; --------------------------------------------------------------------------- |
10102 |
10102 |
10103 p7Dloc_70A2: |
10103 p7Dloc_70A2: |
10104 ld a, 0 |
10104 ld a, 0 |
10105 bit 7, a |
10105 bit 7, a |
10106 pop ix |
10106 pop ix |
10107 ret |
10107 ret |
10108 ; End of function p7Dsub_7060 |
10108 ; End of function p7Dsub_7060 |
10109 |
10109 |
10110 ; --------------------------------------------------------------------------- |
10110 ; --------------------------------------------------------------------------- |
10111 |
10111 |
10112 Page7D_2CFA: |
10112 Page7D_2CFA: |
10113 push af |
10113 push af |
10114 ld a, 1 |
10114 ld a, 1 |
10115 nop |
10115 nop |
10116 di |
10116 di |
10117 nop |
10117 nop |
10118 nop |
10118 nop |
10119 im 1 |
10119 im 1 |
10120 di |
10120 di |
10121 out (14h), a |
10121 out (14h), a |
10122 di |
10122 di |
10123 call checkForFlashTrickery |
10123 call checkForFlashTrickery |
10124 pop af |
10124 pop af |
10125 call Page0Call_240A |
10125 call Page0Call_240A |
10126 ld e, (hl) |
10126 ld e, (hl) |
10127 dec hl |
10127 dec hl |
10128 ld d, (hl) |
10128 ld d, (hl) |
10129 dec hl |
10129 dec hl |
10130 ld a, (hl) |
10130 ld a, (hl) |
10131 ld b, 0FCh ; '�' |
10131 ld b, 0FCh ; '�' |
10132 call Page7D_2C46 |
10132 call Page7D_2C46 |
10133 jp c, Page0Call_2541 |
10133 jp c, Page0Call_2541 |
10134 rst 28h |
10134 rst 28h |
10135 ; --------------------------------------------------------------------------- |
10135 ; --------------------------------------------------------------------------- |
10136 .dw 8021h |
10136 .dw 8021h |
10137 ; --------------------------------------------------------------------------- |
10137 ; --------------------------------------------------------------------------- |
10138 call Page7D_3E10 |
10138 call Page7D_3E10 |
10139 ret |
10139 ret |
10140 |
10140 |
10141 ; =============== S U B R O U T I N E ======================================= |
10141 ; =============== S U B R O U T I N E ======================================= |
10142 |
10142 |
10143 |
10143 |
10144 p7Dsub_70D1: |
10144 p7Dsub_70D1: |
10145 ld de, 300h |
10145 ld de, 300h |
10146 rst 28h |
10146 rst 28h |
10147 ; --------------------------------------------------------------------------- |
10147 ; --------------------------------------------------------------------------- |
10148 .dw 8027h |
10148 .dw 8027h |
10149 ; --------------------------------------------------------------------------- |
10149 ; --------------------------------------------------------------------------- |
10150 ret |
10150 ret |
10151 ; End of function p7Dsub_70D1 |
10151 ; End of function p7Dsub_70D1 |
10152 |
10152 |
10153 ; --------------------------------------------------------------------------- |
10153 ; --------------------------------------------------------------------------- |
10154 aCert_Revision: .asc 'Cert. Revision #',0 |
10154 aCert_Revision: .asc 'Cert. Revision #',0 |
10155 ; --------------------------------------------------------------------------- |
10155 ; --------------------------------------------------------------------------- |
10156 |
10156 |
10157 Page7D_3C60: |
10157 Page7D_3C60: |
10158 push af |
10158 push af |
10159 ld a, 1 |
10159 ld a, 1 |
10160 nop |
10160 nop |
10161 di |
10161 di |
10162 nop |
10162 nop |
10163 nop |
10163 nop |
10164 im 1 |
10164 im 1 |
10165 di |
10165 di |
10166 out (14h), a |
10166 out (14h), a |
10167 di |
10167 di |
10168 call checkForFlashTrickery |
10168 call checkForFlashTrickery |
10169 pop af |
10169 pop af |
10170 call p7Dsub_70D1 |
10170 call p7Dsub_70D1 |
10171 jp nz, relockFlashBack |
10171 jp nz, relockFlashBack |
10172 push hl |
10172 push hl |
10173 ld hl, aCert_Revision |
10173 ld hl, aCert_Revision |
10174 ld de, OP1 |
10174 ld de, OP1 |
10175 ld bc, 12h |
10175 ld bc, 12h |
10176 |
10176 |
10177 p7Dloc_710A: |
10177 p7Dloc_710A: |
10178 ld a, (hl) |
10178 ld a, (hl) |
10179 ld (de), a |
10179 ld (de), a |
10180 inc hl |
10180 inc hl |
10181 inc de |
10181 inc de |
10182 djnz p7Dloc_710A |
10182 djnz p7Dloc_710A |
10183 ld hl, OP1 |
10183 ld hl, OP1 |
10184 call Page0Call_3D4D |
10184 call Page0Call_3D4D |
10185 ld a, 7Eh ; '~' |
10185 ld a, 7Eh ; '~' |
10186 pop hl |
10186 pop hl |
10187 call p7Dsub_4873 |
10187 call p7Dsub_4873 |
10188 push bc |
10188 push bc |
10189 pop hl |
10189 pop hl |
10190 call p7Dsub_598E |
10190 call p7Dsub_598E |
10191 jp relockFlashBack |
10191 jp relockFlashBack |
10192 |
10192 |
10193 ; =============== S U B R O U T I N E ======================================= |
10193 ; =============== S U B R O U T I N E ======================================= |
10194 |
10194 |
10195 |
10195 |
10196 p7Dsub_7124: |
10196 p7Dsub_7124: |
10197 ld a, (header) |
10197 ld a, (header) |
10198 cp 23h ; '#' |
10198 cp 23h ; '#' |
10199 ret |
10199 ret |
10200 ; End of function p7Dsub_7124 |
10200 ; End of function p7Dsub_7124 |
10201 |
10201 |
10202 ; --------------------------------------------------------------------------- |
10202 ; --------------------------------------------------------------------------- |
10203 |
10203 |
10204 Page7D_2BB6: |
10204 Page7D_2BB6: |
10205 ld bc, (unk_8685) |
10205 ld bc, (unk_8685) |
10206 sub c |
10206 sub c |
10207 ld hl, (unk_8683) |
10207 ld hl, (unk_8683) |
10208 push af |
10208 push af |
10209 ld a, (unk_8434) |
10209 ld a, (unk_8434) |
10210 sub c |
10210 sub c |
10211 call p7Dsub_5EFC |
10211 call p7Dsub_5EFC |
10212 jr c, p7Dloc_7150 |
10212 jr c, p7Dloc_7150 |
10213 pop af |
10213 pop af |
10214 ld bc, (ioData) |
10214 ld bc, (ioData) |
10215 push hl |
10215 push hl |
10216 push bc |
10216 push bc |
10217 push af |
10217 push af |
10218 ld h, 9 |
10218 ld h, 9 |
10219 call Page0Call_2C5B |
10219 call Page0Call_2C5B |
10220 pop af |
10220 pop af |
10221 pop bc |
10221 pop bc |
10222 pop hl |
10222 pop hl |
10223 call p7Dsub_7240 |
10223 call p7Dsub_7240 |
10224 ret |
10224 ret |
10225 ; --------------------------------------------------------------------------- |
10225 ; --------------------------------------------------------------------------- |
10226 ; START OF FUNCTION CHUNK FOR p7Dsub_7240 |
10226 ; START OF FUNCTION CHUNK FOR p7Dsub_7240 |
10227 |
10227 |
10228 p7Dloc_7150: |
10228 p7Dloc_7150: |
10229 ; p7Dsub_7240:p7Dloc_74EDj ... |
10229 ; p7Dsub_7240:p7Dloc_74EDj ... |
10230 call relockFlashBack |
10230 call relockFlashBack |
10231 call p7Dsub_7124 |
10231 call p7Dsub_7124 |
10232 push af |
10232 push af |
10233 jr z, p7Dloc_715C |
10233 jr z, p7Dloc_715C |
10234 call popErrorHandleR |
10234 call popErrorHandleR |
10235 |
10235 |
10236 p7Dloc_715C: |
10236 p7Dloc_715C: |
10237 pop af |
10237 pop af |
10238 push af |
10238 push af |
10239 jr z, p7Dloc_7166 |
10239 jr z, p7Dloc_7166 |
10240 ld hl, Page0Call_2C79 |
10240 ld hl, Page0Call_2C79 |
10241 call pushErrorHandleR |
10241 call pushErrorHandleR |
10242 |
10242 |
10243 p7Dloc_7166: |
10243 p7Dloc_7166: |
10244 call Page0Call_3D2F |
10244 call Page0Call_3D2F |
10245 ld a, 0Bh |
10245 ld a, 0Bh |
10246 call Page0Call_2C49 |
10246 call Page0Call_2C49 |
10247 pop af |
10247 pop af |
10248 jr z, p7Dloc_7174 |
10248 jr z, p7Dloc_7174 |
10249 call popErrorHandleR |
10249 call popErrorHandleR |
10250 |
10250 |
10251 p7Dloc_7174: |
10251 p7Dloc_7174: |
10252 call Page0Call_3D05 |
10252 call Page0Call_3D05 |
10253 jp Page0Call_2541 |
10253 jp Page0Call_2541 |
10254 ; END OF FUNCTION CHUNK FOR p7Dsub_7240 |
10254 ; END OF FUNCTION CHUNK FOR p7Dsub_7240 |
10255 |
10255 |
10256 ; =============== S U B R O U T I N E ======================================= |
10256 ; =============== S U B R O U T I N E ======================================= |
10257 |
10257 |
10258 |
10258 |
10259 p7Dsub_717A: |
10259 p7Dsub_717A: |
10260 |
10260 |
10261 ld hl, ramStart |
10261 ld hl, ramStart |
10262 ld de, 81AFh |
10262 ld de, 81AFh |
10263 jr p7Dloc_7188 |
10263 jr p7Dloc_7188 |
10264 ; End of function p7Dsub_717A |
10264 ; End of function p7Dsub_717A |
10265 |
10265 |
10266 |
10266 |
10267 ; =============== S U B R O U T I N E ======================================= |
10267 ; =============== S U B R O U T I N E ======================================= |
10268 |
10268 |
10269 |
10269 |
10270 p7Dsub_7182: |
10270 p7Dsub_7182: |
10271 ; p7Dsub_7240+1EDp ... |
10271 ; p7Dsub_7240+1EDp ... |
10272 ld hl, 81AFh |
10272 ld hl, 81AFh |
10273 ld de, ramStart |
10273 ld de, ramStart |
10274 |
10274 |
10275 p7Dloc_7188: |
10275 p7Dloc_7188: |
10276 ld bc, 80h ; '�' |
10276 ld bc, 80h ; '�' |
10277 ldir |
10277 ldir |
10278 ret |
10278 ret |
10279 ; End of function p7Dsub_7182 |
10279 ; End of function p7Dsub_7182 |
10280 |
10280 |
10281 ; --------------------------------------------------------------------------- |
10281 ; --------------------------------------------------------------------------- |
10282 |
10282 |
10283 WriteToFlash: |
10283 WriteToFlash: |
10284 cp 0 |
10284 cp 0 |
10285 jr z, p7Dloc_71B3 |
10285 jr z, p7Dloc_71B3 |
10286 cp 1 |
10286 cp 1 |
10287 jp z, Page7D_2BE0 |
10287 jp z, Page7D_2BE0 |
10288 cp 2 |
10288 cp 2 |
10289 jp z, p7Dloc_7E57 |
10289 jp z, p7Dloc_7E57 |
10290 cp 3 |
10290 cp 3 |
10291 jp z, p7Dloc_7E31 |
10291 jp z, p7Dloc_7E31 |
10292 cp 4 |
10292 cp 4 |
10293 jp z, p7Dsub_7D67 |
10293 jp z, p7Dsub_7D67 |
10294 cp 5 |
10294 cp 5 |
10295 jp z, p7Dloc_7E8D |
10295 jp z, p7Dloc_7E8D |
10296 cp 6 |
10296 cp 6 |
10297 jp z, p7Dloc_7E91 |
10297 jp z, p7Dloc_7E91 |
10298 jp ErrInvalid |
10298 jp ErrInvalid |
10299 ; --------------------------------------------------------------------------- |
10299 ; --------------------------------------------------------------------------- |
10300 |
10300 |
10301 p7Dloc_71B3: |
10301 p7Dloc_71B3: |
10302 push ix |
10302 push ix |
10303 ld a, (ramCodeEnd) |
10303 ld a, (ramCodeEnd) |
10304 or a |
10304 or a |
10305 ld a, e |
10305 ld a, e |
10306 jr nz, p7Dloc_71D9 |
10306 jr nz, p7Dloc_71D9 |
10307 push hl |
10307 push hl |
10308 push bc |
10308 push bc |
10309 call p7Dsub_7B72 |
10309 call p7Dsub_7B72 |
10310 pop bc |
10310 pop bc |
10311 pop hl |
10311 pop hl |
10312 or a |
10312 or a |
10313 jp z, Page7D_2BBC |
10313 jp z, Page7D_2BBC |
10314 push hl |
10314 push hl |
10315 ld de, 4000h |
10315 ld de, 4000h |
10316 sbc hl, de |
10316 sbc hl, de |
10317 jp nz, Page0Call_2541 |
10317 jp nz, Page0Call_2541 |
10318 ld hl, 7Fh ; '' |
10318 ld hl, 7Fh ; '' |
10319 sbc hl, bc |
10319 sbc hl, bc |
10320 jp nc, Page0Call_2541 |
10320 jp nc, Page0Call_2541 |
10321 pop hl |
10321 pop hl |
10322 |
10322 |
10323 p7Dloc_71D9: |
10323 p7Dloc_71D9: |
10324 push af |
10324 push af |
10325 ld (appSearchPage+1), a |
10325 ld (appSearchPage+1), a |
10326 call p7Dsub_5EFC |
10326 call p7Dsub_5EFC |
10327 jp c, Page0Call_2541 |
10327 jp c, Page0Call_2541 |
10328 push hl |
10328 push hl |
10329 ld de, 4080h |
10329 ld de, 4080h |
10330 sbc hl, de |
10330 sbc hl, de |
10331 pop hl |
10331 pop hl |
10332 jr nc, p7Dloc_71FD |
10332 jr nc, p7Dloc_71FD |
10333 ld a, (ramCodeEnd) |
10333 ld a, (ramCodeEnd) |
10334 or a |
10334 or a |
10335 jr z, p7Dloc_71FD |
10335 jr z, p7Dloc_71FD |
10336 ld a, (unk_8434) |
10336 ld a, (unk_8434) |
10337 ld e, a |
10337 ld e, a |
10338 ld a, (appSearchPage+1) |
10338 ld a, (appSearchPage+1) |
10339 cp e |
10339 cp e |
10340 jp z, Page0Call_2541 |
10340 jp z, Page0Call_2541 |
10341 |
10341 |
10342 p7Dloc_71FD: |
10342 p7Dloc_71FD: |
10343 xor a |
10343 xor a |
10344 ld (appInfo), a |
10344 ld (appInfo), a |
10345 ld (unk_843B), hl |
10345 ld (unk_843B), hl |
10346 ld (unk_8439), bc |
10346 ld (unk_8439), bc |
10347 push af |
10347 push af |
10348 ld a, 1 |
10348 ld a, 1 |
10349 nop |
10349 nop |
10350 di |
10350 di |
10351 nop |
10351 nop |
10352 nop |
10352 nop |
10353 im 1 |
10353 im 1 |
10354 di |
10354 di |
10355 out (14h), a |
10355 out (14h), a |
10356 di |
10356 di |
10357 call checkForFlashTrickery |
10357 call checkForFlashTrickery |
10358 pop af |
10358 pop af |
10359 res 6, (iy+24h) |
10359 res 6, (iy+24h) |
10360 res 7, (iy+24h) |
10360 res 7, (iy+24h) |
10361 xor a |
10361 xor a |
10362 ld (unk_9C87), a |
10362 ld (unk_9C87), a |
10363 |
10363 |
10364 p7Dloc_7225: |
10364 p7Dloc_7225: |
10365 push bc |
10365 push bc |
10366 ld a, (unk_83A4) |
10366 ld a, (unk_83A4) |
10367 cp 0 |
10367 cp 0 |
10368 jr z, p7Dloc_7234 |
10368 jr z, p7Dloc_7234 |
10369 ld a, (unk_83A3) |
10369 ld a, (unk_83A3) |
10370 inc a |
10370 inc a |
10371 ld (unk_83A3), a |
10371 ld (unk_83A3), a |
10372 |
10372 |
10373 p7Dloc_7234: |
10373 p7Dloc_7234: |
10374 call p7Dsub_7CBB |
10374 call p7Dsub_7CBB |
10375 pop bc |
10375 pop bc |
10376 dec bc |
10376 dec bc |
10377 ld a, b |
10377 ld a, b |
10378 or c |
10378 or c |
10379 jr nz, p7Dloc_7225 |
10379 jr nz, p7Dloc_7225 |
10380 jp p7Dloc_739B |
10380 jp p7Dloc_739B |
10381 |
10381 |
10382 ; =============== S U B R O U T I N E ======================================= |
10382 ; =============== S U B R O U T I N E ======================================= |
10383 |
10383 |
10384 |
10384 |
10385 p7Dsub_7240: |
10385 p7Dsub_7240: |
10447 ; p7Dsub_7240+1C0j ... |
10447 ; p7Dsub_7240+1C0j ... |
10448 call p7Dsub_733B |
10448 call p7Dsub_733B |
10449 call relockFlashBack |
10449 call relockFlashBack |
10450 call p7Dsub_7124 |
10450 call p7Dsub_7124 |
10451 push af |
10451 push af |
10452 jr z, p7Dloc_72B4 |
10452 jr z, p7Dloc_72B4 |
10453 call popErrorHandleR |
10453 call popErrorHandleR |
10454 |
10454 |
10455 p7Dloc_72B4: |
10455 p7Dloc_72B4: |
10456 pop af |
10456 pop af |
10457 push af |
10457 push af |
10458 jr z, p7Dloc_72BE |
10458 jr z, p7Dloc_72BE |
10459 ld hl, Page0Call_2C79 |
10459 ld hl, Page0Call_2C79 |
10460 call pushErrorHandleR |
10460 call pushErrorHandleR |
10461 |
10461 |
10462 p7Dloc_72BE: |
10462 p7Dloc_72BE: |
10463 call Page0Call_3D2F |
10463 call Page0Call_3D2F |
10464 ld a, 1 |
10464 ld a, 1 |
10465 call Page0Call_2C49 |
10465 call Page0Call_2C49 |
10466 pop af |
10466 pop af |
10467 jr z, p7Dloc_72CC |
10467 jr z, p7Dloc_72CC |
10468 call popErrorHandleR |
10468 call popErrorHandleR |
10469 |
10469 |
10470 p7Dloc_72CC: |
10470 p7Dloc_72CC: |
10471 call Page0Call_3D05 |
10471 call Page0Call_3D05 |
10472 jp ErrMemory |
10472 jp ErrMemory |
10473 ; END OF FUNCTION CHUNK FOR p7Dsub_7BEA |
10473 ; END OF FUNCTION CHUNK FOR p7Dsub_7BEA |
10474 ; --------------------------------------------------------------------------- |
10474 ; --------------------------------------------------------------------------- |
10475 ; START OF FUNCTION CHUNK FOR p7Dsub_7240 |
10475 ; START OF FUNCTION CHUNK FOR p7Dsub_7240 |
10476 |
10476 |
10477 p7Dloc_72D2: |
10477 p7Dloc_72D2: |
10478 call p7Dsub_733B |
10478 call p7Dsub_733B |
10479 call relockFlashBack |
10479 call relockFlashBack |
10480 call p7Dsub_7124 |
10480 call p7Dsub_7124 |
10481 push af |
10481 push af |
10482 jr z, p7Dloc_72E1 |
10482 jr z, p7Dloc_72E1 |
10483 call popErrorHandleR |
10483 call popErrorHandleR |
10484 |
10484 |
10485 p7Dloc_72E1: |
10485 p7Dloc_72E1: |
10486 pop af |
10486 pop af |
10487 push af |
10487 push af |
10488 jr z, p7Dloc_72EB |
10488 jr z, p7Dloc_72EB |
10489 ld hl, Page0Call_2C79 |
10489 ld hl, Page0Call_2C79 |
10490 call pushErrorHandleR |
10490 call pushErrorHandleR |
10491 |
10491 |
10492 p7Dloc_72EB: |
10492 p7Dloc_72EB: |
10493 call Page0Call_3D2F |
10493 call Page0Call_3D2F |
10494 ld a, 7 |
10494 ld a, 7 |
10495 call Page0Call_2C49 |
10495 call Page0Call_2C49 |
10496 pop af |
10496 pop af |
10497 jr z, p7Dloc_72F9 |
10497 jr z, p7Dloc_72F9 |
10498 call popErrorHandleR |
10498 call popErrorHandleR |
10499 |
10499 |
10500 p7Dloc_72F9: |
10500 p7Dloc_72F9: |
10501 call Page0Call_2C55 |
10501 call Page0Call_2C55 |
10502 call Page0Call_3D05 |
10502 call Page0Call_3D05 |
10503 jp Page0Call_2539 |
10503 jp Page0Call_2539 |
10504 ; --------------------------------------------------------------------------- |
10504 ; --------------------------------------------------------------------------- |
10505 |
10505 |
10506 p7Dloc_7302: |
10506 p7Dloc_7302: |
10507 call p7Dsub_733B |
10507 call p7Dsub_733B |
10508 call relockFlashBack |
10508 call relockFlashBack |
10509 call p7Dsub_7124 |
10509 call p7Dsub_7124 |
10510 push af |
10510 push af |
10511 jr z, p7Dloc_7311 |
10511 jr z, p7Dloc_7311 |
10512 call popErrorHandleR |
10512 call popErrorHandleR |
10513 |
10513 |
10514 p7Dloc_7311: |
10514 p7Dloc_7311: |
10515 pop af |
10515 pop af |
10516 push af |
10516 push af |
10517 jr z, p7Dloc_731B |
10517 jr z, p7Dloc_731B |
10518 ld hl, Page0Call_2C79 |
10518 ld hl, Page0Call_2C79 |
10519 call pushErrorHandleR |
10519 call pushErrorHandleR |
10520 |
10520 |
10521 p7Dloc_731B: |
10521 p7Dloc_731B: |
10522 call Page0Call_3D2F |
10522 call Page0Call_3D2F |
10523 ld a, 9 |
10523 ld a, 9 |
10524 call Page0Call_2C49 |
10524 call Page0Call_2C49 |
10525 pop af |
10525 pop af |
10526 jr z, p7Dloc_7329 |
10526 jr z, p7Dloc_7329 |
10527 call popErrorHandleR |
10527 call popErrorHandleR |
10528 |
10528 |
10529 p7Dloc_7329: |
10529 p7Dloc_7329: |
10530 call Page0Call_3D05 |
10530 call Page0Call_3D05 |
10531 jp Page0Call_253D |
10531 jp Page0Call_253D |
10532 ; END OF FUNCTION CHUNK FOR p7Dsub_7240 |
10532 ; END OF FUNCTION CHUNK FOR p7Dsub_7240 |
10533 ; --------------------------------------------------------------------------- |
10533 ; --------------------------------------------------------------------------- |
10534 ; START OF FUNCTION CHUNK FOR p7Dsub_75B8 |
10534 ; START OF FUNCTION CHUNK FOR p7Dsub_75B8 |
10535 |
10535 |
10536 p7Dloc_732F: |
10536 p7Dloc_732F: |
10540 ; END OF FUNCTION CHUNK FOR p7Dsub_75B8 |
10540 ; END OF FUNCTION CHUNK FOR p7Dsub_75B8 |
10541 ; --------------------------------------------------------------------------- |
10541 ; --------------------------------------------------------------------------- |
10542 ; START OF FUNCTION CHUNK FOR p7Dsub_7240 |
10542 ; START OF FUNCTION CHUNK FOR p7Dsub_7240 |
10543 |
10543 |
10544 p7Dloc_7336: |
10544 p7Dloc_7336: |
10545 ld h, 36h ; '6' |
10545 ld h, 36h ; '6' |
10546 jp Page0Call_2C73 |
10546 jp Page0Call_2C73 |
10547 ; END OF FUNCTION CHUNK FOR p7Dsub_7240 |
10547 ; END OF FUNCTION CHUNK FOR p7Dsub_7240 |
10548 |
10548 |
10549 ; =============== S U B R O U T I N E ======================================= |
10549 ; =============== S U B R O U T I N E ======================================= |
10550 |
10550 |
10551 |
10551 |
10552 p7Dsub_733B: |
10552 p7Dsub_733B: |
10553 ; p7Dsub_7240:p7Dloc_72D2p ... |
10553 ; p7Dsub_7240:p7Dloc_72D2p ... |
10554 call p7Dsub_7CB2 |
10554 call p7Dsub_7CB2 |
10555 ret nz |
10555 ret nz |
10556 |
10556 |
10557 p7Dloc_733F: |
10557 p7Dloc_733F: |
10558 call relockFlashBack |
10558 call relockFlashBack |
10559 jp JErrorNo |
10559 jp JErrorNo |
10560 ; End of function p7Dsub_733B |
10560 ; End of function p7Dsub_733B |
10561 |
10561 |
10562 ; --------------------------------------------------------------------------- |
10562 ; --------------------------------------------------------------------------- |
10563 ; START OF FUNCTION CHUNK FOR p7Dsub_7240 |
10563 ; START OF FUNCTION CHUNK FOR p7Dsub_7240 |
10564 |
10564 |
10565 p7Dloc_7345: |
10565 p7Dloc_7345: |
10566 push bc |
10566 push bc |
10567 call j_RecAByteIO |
10567 call j_RecAByteIO |
10568 ld (hl), a |
10568 ld (hl), a |
10569 call p7Dsub_7CA5 |
10569 call p7Dsub_7CA5 |
10570 inc hl |
10570 inc hl |
10571 ex de, hl |
10571 ex de, hl |
10572 ld b, 0 |
10572 ld b, 0 |
10573 ld hl, (unk_8678) |
10573 ld hl, (unk_8678) |
10574 add hl, bc |
10574 add hl, bc |
10575 ld (unk_8678), hl |
10575 ld (unk_8678), hl |
10576 ex de, hl |
10576 ex de, hl |
10577 call p7Dsub_7CBB |
10577 call p7Dsub_7CBB |
10578 pop bc |
10578 pop bc |
10579 dec bc |
10579 dec bc |
10580 ld a, b |
10580 ld a, b |
10581 or c |
10581 or c |
10582 jp nz, p7Dloc_729C |
10582 jp nz, p7Dloc_729C |
10583 |
10583 |
10584 p7Dloc_7363: |
10584 p7Dloc_7363: |
10585 call j_RecAByteIO |
10585 call j_RecAByteIO |
10586 push af |
10586 push af |
10587 call j_RecAByteIO |
10587 call j_RecAByteIO |
10588 ld b, a |
10588 ld b, a |
10589 pop af |
10589 pop af |
10590 ld c, a |
10590 ld c, a |
10591 in a, (2) |
10591 in a, (2) |
10592 and 80h ; '�' |
10592 and 80h ; '�' |
10593 jr z, p7Dloc_738A |
10593 jr z, p7Dloc_738A |
10594 in a, (20h) |
10594 in a, (20h) |
10595 and 1 |
10595 and 1 |
10596 jr z, p7Dloc_738A |
10596 jr z, p7Dloc_738A |
10597 xor a |
10597 xor a |
10598 out (20h), a |
10598 out (20h), a |
10599 ld de, 0FEh ; '�' |
10599 ld de, 0FEh ; '�' |
10600 |
10600 |
10601 p7Dloc_737F: |
10601 p7Dloc_737F: |
10602 dec de |
10602 dec de |
10603 ld a, d |
10603 ld a, d |
10604 or e |
10604 or e |
10605 jr nz, p7Dloc_737F |
10605 jr nz, p7Dloc_737F |
10606 ld a, 1 |
10606 ld a, 1 |
10607 out (20h), a |
10607 out (20h), a |
10608 jr p7Dloc_7392 |
10608 jr p7Dloc_7392 |
10609 ; --------------------------------------------------------------------------- |
10609 ; --------------------------------------------------------------------------- |
10610 |
10610 |
10611 p7Dloc_738A: |
10611 p7Dloc_738A: |
10612 ; p7Dsub_7240+137j |
10612 ; p7Dsub_7240+137j |
10613 ld de, 100h |
10613 ld de, 100h |
10614 |
10614 |
10615 p7Dloc_738D: |
10615 p7Dloc_738D: |
10616 dec de |
10616 dec de |
10617 ld a, d |
10617 ld a, d |
10618 or e |
10618 or e |
10619 jr nz, p7Dloc_738D |
10619 jr nz, p7Dloc_738D |
10620 |
10620 |
10621 p7Dloc_7392: |
10621 p7Dloc_7392: |
10622 ld hl, (unk_8678) |
10622 ld hl, (unk_8678) |
10623 or a |
10623 or a |
10624 sbc hl, bc |
10624 sbc hl, bc |
10625 jp nz, p7Dloc_75A5 |
10625 jp nz, p7Dloc_75A5 |
10626 |
10626 |
10627 p7Dloc_739B: |
10627 p7Dloc_739B: |
10628 call p7Dsub_5E0A |
10628 call p7Dsub_5E0A |
10629 ld a, (ramCodeEnd) |
10629 ld a, (ramCodeEnd) |
10630 cp 0 |
10630 cp 0 |
10631 jp nz, p7Dloc_74BC |
10631 jp nz, p7Dloc_74BC |
10632 ld de, (unk_843B) |
10632 ld de, (unk_843B) |
10633 push de |
10633 push de |
10634 rst 28h |
10634 rst 28h |
10635 ; --------------------------------------------------------------------------- |
10635 ; --------------------------------------------------------------------------- |
10636 .dw 8063h |
10636 .dw 8063h |
10637 ; --------------------------------------------------------------------------- |
10637 ; --------------------------------------------------------------------------- |
10638 pop de |
10638 pop de |
10639 ld (unk_843B), de |
10639 ld (unk_843B), de |
10640 jp nz, p7Dloc_72D2 |
10640 jp nz, p7Dloc_72D2 |
10641 ld a, 1 |
10641 ld a, 1 |
10642 ld de, 8050h |
10642 ld de, 8050h |
10643 call p7Dsub_7060 |
10643 call p7Dsub_7060 |
10644 jr nz, p7Dloc_73C6 |
10644 jr nz, p7Dloc_73C6 |
10645 call p7Dsub_50C5 |
10645 call p7Dsub_50C5 |
10646 jp nz, p7Dloc_7302 |
10646 jp nz, p7Dloc_7302 |
10647 |
10647 |
10648 p7Dloc_73C6: |
10648 p7Dloc_73C6: |
10649 call p7Dsub_75B8 |
10649 call p7Dsub_75B8 |
10650 ld a, (appInfo) |
10650 ld a, (appInfo) |
10651 cp 0 |
10651 cp 0 |
10652 jp nz, p7Dloc_75B4 |
10652 jp nz, p7Dloc_75B4 |
10653 di |
10653 di |
10654 ld hl, (curRow) |
10654 ld hl, (curRow) |
10655 push hl |
10655 push hl |
10656 call Page0Call_3CD5 |
10656 call Page0Call_3CD5 |
10657 ld a, (ioFlag) |
10657 ld a, (ioFlag) |
10658 push af |
10658 push af |
10659 call p7Dsub_717A |
10659 call p7Dsub_717A |
10660 res 2, (iy+25h) |
10660 res 2, (iy+25h) |
10661 call Chk_Batt_Low |
10661 call Chk_Batt_Low |
10662 jp z, ErrInvalid |
10662 jp z, ErrInvalid |
10663 ld a, 0 |
10663 ld a, 0 |
10664 ld b, 0 |
10664 ld b, 0 |
10665 call Page0Call_2EB9 |
10665 call Page0Call_2EB9 |
10666 call p7Dsub_7182 |
10666 call p7Dsub_7182 |
10667 pop af |
10667 pop af |
10668 pop hl |
10668 pop hl |
10669 ld (curRow), hl |
10669 ld (curRow), hl |
10670 ld (ioFlag), a |
10670 ld (ioFlag), a |
10671 call p7Dsub_7B72 |
10671 call p7Dsub_7B72 |
10672 or a |
10672 or a |
10673 jp z, Page7D_2BBC |
10673 jp z, Page7D_2BBC |
10674 push af |
10674 push af |
10675 call p7Dsub_7BEA |
10675 call p7Dsub_7BEA |
10676 jr c, p7Dloc_740C |
10676 jr c, p7Dloc_740C |
10677 |
10677 |
10678 p7Dloc_7409: |
10678 p7Dloc_7409: |
10679 jp nz, Page7D_2BBC |
10679 jp nz, Page7D_2BBC |
10680 |
10680 |
10681 p7Dloc_740C: |
10681 p7Dloc_740C: |
10682 xor a |
10682 xor a |
10683 cp d |
10683 cp d |
10684 jp z, ErrInvalid |
10684 jp z, ErrInvalid |
10685 push de |
10685 push de |
10686 call FindSwapSector |
10686 call FindSwapSector |
10687 cp 8 |
10687 cp 8 |
10688 jr z, p7Dloc_7430 |
10688 jr z, p7Dloc_7430 |
10689 add a, 4 |
10689 add a, 4 |
10690 ld b, a |
10690 ld b, a |
10691 ld a, c |
10691 ld a, c |
10692 sub d |
10692 sub d |
10693 cp b |
10693 cp b |
10694 jr nc, p7Dloc_7430 |
10694 jr nc, p7Dloc_7430 |
10695 ld a, 5 |
10695 ld a, 5 |
10696 call Page0Call_2EB9 |
10696 call Page0Call_2EB9 |
10697 call FindSwapSector |
10697 call FindSwapSector |
10698 cp 8 |
10698 cp 8 |
10699 jr nz, p7Dloc_7409 |
10699 jr nz, p7Dloc_7409 |
10700 call p7Dsub_7182 |
10700 call p7Dsub_7182 |
10701 |
10701 |
10702 p7Dloc_7430: |
10702 p7Dloc_7430: |
10703 ; p7Dsub_7240+1DFj |
10703 ; p7Dsub_7240+1DFj |
10704 ld a, (appSearchPage) |
10704 ld a, (appSearchPage) |
10705 call Page7D_2C16 |
10705 call Page7D_2C16 |
10706 ld a, 1 |
10706 ld a, 1 |
10707 ld hl, ramStart |
10707 ld hl, ramStart |
10708 call Page7D_2C9A |
10708 call Page7D_2C9A |
10709 call p7Dsub_7CB2 |
10709 call p7Dsub_7CB2 |
10710 jr z, p7Dloc_7453 |
10710 jr z, p7Dloc_7453 |
10711 ld a, 19h |
10711 ld a, 19h |
10712 ld (sndRecState), a |
10712 ld (sndRecState), a |
10713 call Page0Call_2E23 |
10713 call Page0Call_2E23 |
10714 call Page0Call_2DE7 |
10714 call Page0Call_2DE7 |
10715 di |
10715 di |
10716 xor a |
10716 xor a |
10717 ld (sndRecState), a |
10717 ld (sndRecState), a |
10718 |
10718 |
10719 p7Dloc_7453: |
10719 p7Dloc_7453: |
10720 pop de |
10720 pop de |
10721 pop af |
10721 pop af |
10722 push de |
10722 push de |
10723 push af |
10723 push af |
10724 ld a, 1 |
10724 ld a, 1 |
10725 nop |
10725 nop |
10726 di |
10726 di |
10727 nop |
10727 nop |
10728 nop |
10728 nop |
10729 im 1 |
10729 im 1 |
10730 di |
10730 di |
10731 out (14h), a |
10731 out (14h), a |
10732 di |
10732 di |
10733 call checkForFlashTrickery |
10733 call checkForFlashTrickery |
10734 pop af |
10734 pop af |
10735 call p7Dsub_519D |
10735 call p7Dsub_519D |
10736 call p7Dsub_5E90 |
10736 call p7Dsub_5E90 |
10737 ld hl, ramStart |
10737 ld hl, ramStart |
10738 call p7Dsub_5757 |
10738 call p7Dsub_5757 |
10739 ld hl, (unk_83A1) |
10739 ld hl, (unk_83A1) |
10740 call p7Dsub_57C5 |
10740 call p7Dsub_57C5 |
10741 push hl |
10741 push hl |
10742 ld a, 1 |
10742 ld a, 1 |
10743 ld hl, ramStart |
10743 ld hl, ramStart |
10744 push hl |
10744 push hl |
10745 inc hl |
10745 inc hl |
10746 rst 28h |
10746 rst 28h |
10747 ; --------------------------------------------------------------------------- |
10747 ; --------------------------------------------------------------------------- |
10748 .dw 805Ah |
10748 .dw 805Ah |
10749 ; --------------------------------------------------------------------------- |
10749 ; --------------------------------------------------------------------------- |
10750 pop bc |
10750 pop bc |
10751 sbc hl, bc |
10751 sbc hl, bc |
10752 push hl |
10752 push hl |
10753 pop bc |
10753 pop bc |
10754 ld hl, (unk_8439) |
10754 ld hl, (unk_8439) |
10755 sbc hl, bc |
10755 sbc hl, bc |
10756 push hl |
10756 push hl |
10757 pop bc |
10757 pop bc |
10758 pop hl |
10758 pop hl |
10759 sbc hl, bc |
10759 sbc hl, bc |
10760 call p7Dsub_57C5 |
10760 call p7Dsub_57C5 |
10761 ld (unk_83A1), hl |
10761 ld (unk_83A1), hl |
10762 jr c, p7Dloc_749D |
10762 jr c, p7Dloc_749D |
10763 jr nz, p7Dloc_74F0 |
10763 jr nz, p7Dloc_74F0 |
10764 |
10764 |
10765 p7Dloc_749D: |
10765 p7Dloc_749D: |
10766 ld hl, (unk_839F) |
10766 ld hl, (unk_839F) |
10767 call p7Dsub_57C5 |
10767 call p7Dsub_57C5 |
10768 dec hl |
10768 dec hl |
10769 call p7Dsub_57C5 |
10769 call p7Dsub_57C5 |
10770 ld (unk_839F), hl |
10770 ld (unk_839F), hl |
10771 ld a, l |
10771 ld a, l |
10772 or h |
10772 or h |
10773 jr nz, p7Dloc_74BA |
10773 jr nz, p7Dloc_74BA |
10774 ld hl, (unk_83A1) |
10774 ld hl, (unk_83A1) |
10775 ld a, l |
10775 ld a, l |
10776 or h |
10776 or h |
10777 jr nz, p7Dloc_74BA |
10777 jr nz, p7Dloc_74BA |
10778 ld a, 0 |
10778 ld a, 0 |
10779 ld (unk_83A4), a |
10779 ld (unk_83A4), a |
10780 |
10780 |
10781 p7Dloc_74BA: |
10781 p7Dloc_74BA: |
10782 ; p7Dsub_7240+273j |
10782 ; p7Dsub_7240+273j |
10783 jr p7Dloc_74F0 |
10783 jr p7Dloc_74F0 |
10784 ; --------------------------------------------------------------------------- |
10784 ; --------------------------------------------------------------------------- |
10785 |
10785 |
10786 p7Dloc_74BC: |
10786 p7Dloc_74BC: |
10787 push de |
10787 push de |
10788 call p7Dsub_7CB2 |
10788 call p7Dsub_7CB2 |
10789 jr nz, p7Dloc_74F0 |
10789 jr nz, p7Dloc_74F0 |
10790 ld a, (appSearchPage+1) |
10790 ld a, (appSearchPage+1) |
10791 call p7Dsub_7CCF |
10791 call p7Dsub_7CCF |
10792 call p7Dsub_4566 |
10792 call p7Dsub_4566 |
10793 cp 0FEh ; '�' |
10793 cp 0FEh ; '�' |
10794 jr nz, p7Dloc_74ED |
10794 jr nz, p7Dloc_74ED |
10795 call p7Dsub_4565 |
10795 call p7Dsub_4565 |
10796 cp 0BFh ; '�' |
10796 cp 0BFh ; '�' |
10797 jr nz, p7Dloc_74ED |
10797 jr nz, p7Dloc_74ED |
10798 call p7Dsub_4565 |
10798 call p7Dsub_4565 |
10799 ld b, a |
10799 ld b, a |
10800 ld a, (appSearchPage+1) |
10800 ld a, (appSearchPage+1) |
10801 cp b |
10801 cp b |
10802 jr z, p7Dloc_74F0 |
10802 jr z, p7Dloc_74F0 |
10803 jr nc, p7Dloc_74ED |
10803 jr nc, p7Dloc_74ED |
10804 call p7Dsub_4565 |
10804 call p7Dsub_4565 |
10805 ld b, a |
10805 ld b, a |
10806 ld a, (appSearchPage+1) |
10806 ld a, (appSearchPage+1) |
10807 inc b |
10807 inc b |
10808 cp b |
10808 cp b |
10809 jr nc, p7Dloc_74F0 |
10809 jr nc, p7Dloc_74F0 |
10810 |
10810 |
10811 p7Dloc_74ED: |
10811 p7Dloc_74ED: |
10812 ; p7Dsub_7240+294j ... |
10812 ; p7Dsub_7240+294j ... |
10813 jp p7Dloc_7150 |
10813 jp p7Dloc_7150 |
10814 ; --------------------------------------------------------------------------- |
10814 ; --------------------------------------------------------------------------- |
10815 |
10815 |
10816 p7Dloc_74F0: |
10816 p7Dloc_74F0: |
10817 ; p7Dsub_7240:p7Dloc_74BAj ... |
10817 ; p7Dsub_7240:p7Dloc_74BAj ... |
10818 ld bc, (unk_8439) |
10818 ld bc, (unk_8439) |
10819 ld hl, ramStart |
10819 ld hl, ramStart |
10820 ld de, (unk_843B) |
10820 ld de, (unk_843B) |
10821 ld a, (appSearchPage+1) |
10821 ld a, (appSearchPage+1) |
10822 bit 7, d |
10822 bit 7, d |
10823 jp nz, p7Dloc_7150 |
10823 jp nz, p7Dloc_7150 |
10824 bit 6, d |
10824 bit 6, d |
10825 jp z, p7Dloc_7150 |
10825 jp z, p7Dloc_7150 |
10826 cp 8 |
10826 cp 8 |
10827 jp c, p7Dloc_7150 |
10827 jp c, p7Dloc_7150 |
10828 call p7Dsub_75E1 |
10828 call p7Dsub_75E1 |
10829 jp nc, p7Dloc_7150 |
10829 jp nc, p7Dloc_7150 |
10830 call p7Dsub_756F |
10830 call p7Dsub_756F |
10831 rst 28h |
10831 rst 28h |
10832 ; --------------------------------------------------------------------------- |
10832 ; --------------------------------------------------------------------------- |
10833 .dw 8087h |
10833 .dw 8087h |
10834 ; --------------------------------------------------------------------------- |
10834 ; --------------------------------------------------------------------------- |
10835 call p7Dsub_7CB2 |
10835 call p7Dsub_7CB2 |
10836 jr z, p7Dloc_752A |
10836 jr z, p7Dloc_752A |
10837 call relockFlashBack |
10837 call relockFlashBack |
10838 call Page0Call_3F1B |
10838 call Page0Call_3F1B |
10839 |
10839 |
10840 p7Dloc_7524: |
10840 p7Dloc_7524: |
10841 pop de |
10841 pop de |
10842 |
10842 |
10843 p7Dloc_7525: |
10843 p7Dloc_7525: |
10844 pop af |
10844 pop af |
10845 pop ix |
10845 pop ix |
10846 xor a |
10846 xor a |
10847 ret |
10847 ret |
10848 ; --------------------------------------------------------------------------- |
10848 ; --------------------------------------------------------------------------- |
10849 |
10849 |
10850 p7Dloc_752A: |
10850 p7Dloc_752A: |
10851 ld a, (ramCodeEnd) |
10851 ld a, (ramCodeEnd) |
10852 or a |
10852 or a |
10853 jr z, p7Dloc_7535 |
10853 jr z, p7Dloc_7535 |
10854 call relockFlashBack |
10854 call relockFlashBack |
10855 jr p7Dloc_7524 |
10855 jr p7Dloc_7524 |
10856 ; --------------------------------------------------------------------------- |
10856 ; --------------------------------------------------------------------------- |
10857 |
10857 |
10858 p7Dloc_7535: |
10858 p7Dloc_7535: |
10859 call p7Dsub_7CCF |
10859 call p7Dsub_7CCF |
10860 pop de |
10860 pop de |
10861 push hl |
10861 push hl |
10862 push de |
10862 push de |
10863 ld b, 4 |
10863 ld b, 4 |
10864 |
10864 |
10865 p7Dloc_753D: |
10865 p7Dloc_753D: |
10866 call p7Dsub_4566 |
10866 call p7Dsub_4566 |
10867 cp 0FFh |
10867 cp 0FFh |
10868 jr nz, p7Dloc_7549 |
10868 jr nz, p7Dloc_7549 |
10869 inc hl |
10869 inc hl |
10870 djnz p7Dloc_753D |
10870 djnz p7Dloc_753D |
10871 jr p7Dloc_754C |
10871 jr p7Dloc_754C |
10872 ; --------------------------------------------------------------------------- |
10872 ; --------------------------------------------------------------------------- |
10873 |
10873 |
10874 p7Dloc_7549: |
10874 p7Dloc_7549: |
10875 call Page7D_2BB0 |
10875 call Page7D_2BB0 |
10876 |
10876 |
10877 p7Dloc_754C: |
10877 p7Dloc_754C: |
10878 ld hl, 0BFFEh |
10878 ld hl, 0BFFEh |
10879 ld (OP1+1), hl |
10879 ld (OP1+1), hl |
10880 ld a, (appSearchPage) |
10880 ld a, (appSearchPage) |
10881 ld (unk_847B), a |
10881 ld (unk_847B), a |
10882 pop de |
10882 pop de |
10883 sub d |
10883 sub d |
10884 ld (unk_847C), a |
10884 ld (unk_847C), a |
10885 ld bc, 4 |
10885 ld bc, 4 |
10886 ld hl, 8479h |
10886 ld hl, 8479h |
10887 call p7Dsub_7700 |
10887 call p7Dsub_7700 |
10888 pop de |
10888 pop de |
10889 rst 28h |
10889 rst 28h |
10890 ; --------------------------------------------------------------------------- |
10890 ; --------------------------------------------------------------------------- |
10891 .dw 8087h |
10891 .dw 8087h |
10892 ; --------------------------------------------------------------------------- |
10892 ; --------------------------------------------------------------------------- |
10893 call relockFlashBack |
10893 call relockFlashBack |
10894 jr p7Dloc_7525 |
10894 jr p7Dloc_7525 |
10895 ; END OF FUNCTION CHUNK FOR p7Dsub_7240 |
10895 ; END OF FUNCTION CHUNK FOR p7Dsub_7240 |
10896 |
10896 |
10897 ; =============== S U B R O U T I N E ======================================= |
10897 ; =============== S U B R O U T I N E ======================================= |
10898 |
10898 |
10899 |
10899 |
10900 p7Dsub_756F: |
10900 p7Dsub_756F: |
10901 ld h, d |
10901 ld h, d |
10902 ld l, e |
10902 ld l, e |
10903 dec hl |
10903 dec hl |
10904 add hl, bc |
10904 add hl, bc |
10905 bit 7, h |
10905 bit 7, h |
10906 jr z, p7Dloc_75A1 |
10906 jr z, p7Dloc_75A1 |
10907 ld hl, ramStart |
10907 ld hl, ramStart |
10908 ld de, (unk_843B) |
10908 ld de, (unk_843B) |
10909 or a |
10909 or a |
10910 sbc hl, de |
10910 sbc hl, de |
10911 ld b, h |
10911 ld b, h |
10912 ld c, l |
10912 ld c, l |
10913 ld hl, ramStart |
10913 ld hl, ramStart |
10914 push bc |
10914 push bc |
10915 rst 28h |
10915 rst 28h |
10916 ; --------------------------------------------------------------------------- |
10916 ; --------------------------------------------------------------------------- |
10917 .dw 8087h |
10917 .dw 8087h |
10918 ; --------------------------------------------------------------------------- |
10918 ; --------------------------------------------------------------------------- |
10919 pop bc |
10919 pop bc |
10920 ld a, (appSearchPage+1) |
10920 ld a, (appSearchPage+1) |
10921 dec a |
10921 dec a |
10922 ld hl, (unk_8439) |
10922 ld hl, (unk_8439) |
10923 or a |
10923 or a |
10924 sbc hl, bc |
10924 sbc hl, bc |
10925 push bc |
10925 push bc |
10926 ld b, h |
10926 ld b, h |
10927 ld c, l |
10927 ld c, l |
10928 pop de |
10928 pop de |
10929 ld hl, ramStart |
10929 ld hl, ramStart |
10930 add hl, de |
10930 add hl, de |
10931 ld de, 4000h |
10931 ld de, 4000h |
10932 ret |
10932 ret |
10933 ; --------------------------------------------------------------------------- |
10933 ; --------------------------------------------------------------------------- |
10934 |
10934 |
10935 p7Dloc_75A1: |
10935 p7Dloc_75A1: |
10936 ld hl, ramStart |
10936 ld hl, ramStart |
10937 ret |
10937 ret |
10938 ; End of function p7Dsub_756F |
10938 ; End of function p7Dsub_756F |
10939 |
10939 |
10940 ; --------------------------------------------------------------------------- |
10940 ; --------------------------------------------------------------------------- |
10941 ; START OF FUNCTION CHUNK FOR p7Dsub_7240 |
10941 ; START OF FUNCTION CHUNK FOR p7Dsub_7240 |
10942 |
10942 |
10943 p7Dloc_75A5: |
10943 p7Dloc_75A5: |
10944 ld hl, (unk_8439) |
10944 ld hl, (unk_8439) |
10945 push hl |
10945 push hl |
10946 ld h, 5Ah ; 'Z' |
10946 ld h, 5Ah ; 'Z' |
10947 call Page0Call_2C5B |
10947 call Page0Call_2C5B |
10948 jp p7Dloc_7336 |
10948 jp p7Dloc_7336 |
10949 ; END OF FUNCTION CHUNK FOR p7Dsub_7240 |
10949 ; END OF FUNCTION CHUNK FOR p7Dsub_7240 |
10950 ; --------------------------------------------------------------------------- |
10950 ; --------------------------------------------------------------------------- |
10951 ; START OF FUNCTION CHUNK FOR p7Dsub_75B8 |
10951 ; START OF FUNCTION CHUNK FOR p7Dsub_75B8 |
10952 |
10952 |
10953 p7Dloc_75B1: |
10953 p7Dloc_75B1: |
10954 jp p7Dloc_732F |
10954 jp p7Dloc_732F |
10955 ; END OF FUNCTION CHUNK FOR p7Dsub_75B8 |
10955 ; END OF FUNCTION CHUNK FOR p7Dsub_75B8 |
10956 ; --------------------------------------------------------------------------- |
10956 ; --------------------------------------------------------------------------- |
10957 ; START OF FUNCTION CHUNK FOR p7Dsub_7240 |
10957 ; START OF FUNCTION CHUNK FOR p7Dsub_7240 |
10958 |
10958 |
10959 p7Dloc_75B4: |
10959 p7Dloc_75B4: |
10960 |
10960 |
10961 pop af |
10961 pop af |
10962 pop ix |
10962 pop ix |
10963 ret |
10963 ret |
10964 ; END OF FUNCTION CHUNK FOR p7Dsub_7240 |
10964 ; END OF FUNCTION CHUNK FOR p7Dsub_7240 |
10965 |
10965 |
10966 ; =============== S U B R O U T I N E ======================================= |
10966 ; =============== S U B R O U T I N E ======================================= |
10967 |
10967 |
10970 |
10970 |
10971 |
10971 |
10972 |
10972 |
10973 |
10973 |
10974 call ZeroOP1 |
10974 call ZeroOP1 |
10975 ld a, 1 |
10975 ld a, 1 |
10976 or a |
10976 or a |
10977 ld hl, ramStart |
10977 ld hl, ramStart |
10978 ld de, 8040h |
10978 ld de, 8040h |
10979 rst 28h |
10979 rst 28h |
10980 ; --------------------------------------------------------------------------- |
10980 ; --------------------------------------------------------------------------- |
10981 .dw 8075h |
10981 .dw 8075h |
10982 ; --------------------------------------------------------------------------- |
10982 ; --------------------------------------------------------------------------- |
10983 jp nz, p7Dloc_75B1 |
10983 jp nz, p7Dloc_75B1 |
10984 inc hl |
10984 inc hl |
10985 ld a, 1 |
10985 ld a, 1 |
10986 rst 28h |
10986 rst 28h |
10987 ; --------------------------------------------------------------------------- |
10987 ; --------------------------------------------------------------------------- |
10988 .dw 805Ah |
10988 .dw 805Ah |
10989 ; --------------------------------------------------------------------------- |
10989 ; --------------------------------------------------------------------------- |
10990 ld de, 8479h |
10990 ld de, 8479h |
10991 ldir |
10991 ldir |
10992 ld a, (appSearchPage+1) |
10992 ld a, (appSearchPage+1) |
10993 push af |
10993 push af |
10994 call p7Dsub_6428 |
10994 call p7Dsub_6428 |
10995 pop af |
10995 pop af |
10996 ld (appSearchPage+1), a |
10996 ld (appSearchPage+1), a |
10997 ret |
10997 ret |
10998 ; End of function p7Dsub_75B8 |
10998 ; End of function p7Dsub_75B8 |
10999 |
10999 |
11000 |
11000 |
11001 ; =============== S U B R O U T I N E ======================================= |
11001 ; =============== S U B R O U T I N E ======================================= |
11002 |
11002 |
11003 |
11003 |
11004 p7Dsub_75E1: |
11004 p7Dsub_75E1: |
11005 ; FindSwapSector+18p ... |
11005 ; FindSwapSector+18p ... |
11006 call NZIf83Plus |
11006 call NZIf83Plus |
11007 jr nz, p7Dloc_75E9 |
11007 jr nz, p7Dloc_75E9 |
11008 cp 6Ah ; 'j' |
11008 cp 6Ah ; 'j' |
11009 ret |
11009 ret |
11010 ; --------------------------------------------------------------------------- |
11010 ; --------------------------------------------------------------------------- |
11011 |
11011 |
11012 p7Dloc_75E9: |
11012 p7Dloc_75E9: |
11013 cp 16h |
11013 cp 16h |
11014 ret |
11014 ret |
11015 ; End of function p7Dsub_75E1 |
11015 ; End of function p7Dsub_75E1 |
11016 |
11016 |
11017 |
11017 |
11018 ; =============== S U B R O U T I N E ======================================= |
11018 ; =============== S U B R O U T I N E ======================================= |
11019 |
11019 |
11020 |
11020 |
11021 p7Dsub_75EC: |
11021 p7Dsub_75EC: |
11022 ld a, 15h |
11022 ld a, 15h |
11023 call NZIf83Plus |
11023 call NZIf83Plus |
11024 ret nz |
11024 ret nz |
11025 ld a, 69h ; 'i' |
11025 ld a, 69h ; 'i' |
11026 ret |
11026 ret |
11027 ; End of function p7Dsub_75EC |
11027 ; End of function p7Dsub_75EC |
11028 |
11028 |
11029 |
11029 |
11030 ; =============== S U B R O U T I N E ======================================= |
11030 ; =============== S U B R O U T I N E ======================================= |
11031 |
11031 |
11032 |
11032 |
11033 p7Dsub_75F5: |
11033 p7Dsub_75F5: |
11034 call p7Dsub_75EC |
11034 call p7Dsub_75EC |
11035 inc a |
11035 inc a |
11036 ld (appSearchPage), a |
11036 ld (appSearchPage), a |
11037 ret |
11037 ret |
11038 ; End of function p7Dsub_75F5 |
11038 ; End of function p7Dsub_75F5 |
11039 |
11039 |
11040 |
11040 |
11041 ; =============== S U B R O U T I N E ======================================= |
11041 ; =============== S U B R O U T I N E ======================================= |
11042 |
11042 |
11043 |
11043 |
11044 p7Dsub_75FD: |
11044 p7Dsub_75FD: |
11045 ld de, 839Fh |
11045 ld de, 839Fh |
11046 and 0Fh |
11046 and 0Fh |
11047 cp 0Fh |
11047 cp 0Fh |
11048 jr nz, p7Dloc_7609 |
11048 jr nz, p7Dloc_7609 |
11049 ld b, 4 |
11049 ld b, 4 |
11050 ret |
11050 ret |
11051 ; --------------------------------------------------------------------------- |
11051 ; --------------------------------------------------------------------------- |
11052 |
11052 |
11053 p7Dloc_7609: |
11053 p7Dloc_7609: |
11054 cp 0Eh |
11054 cp 0Eh |
11055 jr nz, p7Dloc_7612 |
11055 jr nz, p7Dloc_7612 |
11056 ld b, 2 |
11056 ld b, 2 |
11057 xor a |
11057 xor a |
11058 jr p7Dloc_761A |
11058 jr p7Dloc_761A |
11059 ; --------------------------------------------------------------------------- |
11059 ; --------------------------------------------------------------------------- |
11060 |
11060 |
11061 p7Dloc_7612: |
11061 p7Dloc_7612: |
11062 cp 0Dh |
11062 cp 0Dh |
11063 ret nz |
11063 ret nz |
11064 ld b, 1 |
11064 ld b, 1 |
11065 xor a |
11065 xor a |
11066 ld (de), a |
11066 ld (de), a |
11067 inc de |
11067 inc de |
11068 |
11068 |
11069 p7Dloc_761A: |
11069 p7Dloc_761A: |
11070 ld (de), a |
11070 ld (de), a |
11071 inc de |
11071 inc de |
11072 ld (de), a |
11072 ld (de), a |
11073 inc de |
11073 inc de |
11074 ret |
11074 ret |
11075 ; End of function p7Dsub_75FD |
11075 ; End of function p7Dsub_75FD |
11076 |
11076 |
11077 |
11077 |
11078 ; =============== S U B R O U T I N E ======================================= |
11078 ; =============== S U B R O U T I N E ======================================= |
11079 |
11079 |
11080 |
11080 |
11081 p7Dsub_761F: |
11081 p7Dsub_761F: |
11082 push af |
11082 push af |
11083 call Page7D_2CD0 |
11083 call Page7D_2CD0 |
11084 ld (de), a |
11084 ld (de), a |
11085 inc de |
11085 inc de |
11086 inc hl |
11086 inc hl |
11087 pop af |
11087 pop af |
11088 djnz p7Dsub_761F |
11088 djnz p7Dsub_761F |
11089 ret |
11089 ret |
11090 ; End of function p7Dsub_761F |
11090 ; End of function p7Dsub_761F |
11091 |
11091 |
11092 |
11092 |
11093 ; =============== S U B R O U T I N E ======================================= |
11093 ; =============== S U B R O U T I N E ======================================= |
11094 |
11094 |
11095 |
11095 |
11096 p7Dsub_762A: |
11096 p7Dsub_762A: |
11097 call p7Dsub_7634 |
11097 call p7Dsub_7634 |
11098 ld de, 610h |
11098 ld de, 610h |
11099 rst 28h |
11099 rst 28h |
11100 ; --------------------------------------------------------------------------- |
11100 ; --------------------------------------------------------------------------- |
11101 .dw 8030h |
11101 .dw 8030h |
11102 ; --------------------------------------------------------------------------- |
11102 ; --------------------------------------------------------------------------- |
11103 ret |
11103 ret |
11104 ; End of function p7Dsub_762A |
11104 ; End of function p7Dsub_762A |
11105 |
11105 |
11106 |
11106 |
11107 ; =============== S U B R O U T I N E ======================================= |
11107 ; =============== S U B R O U T I N E ======================================= |
11108 |
11108 |
11109 |
11109 |
11110 p7Dsub_7634: |
11110 p7Dsub_7634: |
11111 call p7Dsub_4894 |
11111 call p7Dsub_4894 |
11112 ld de, 600h |
11112 ld de, 600h |
11113 call p7Dsub_777E |
11113 call p7Dsub_777E |
11114 call p7Dsub_4574 |
11114 call p7Dsub_4574 |
11115 ld a, 7Eh ; '~' |
11115 ld a, 7Eh ; '~' |
11116 ret |
11116 ret |
11117 ; End of function p7Dsub_7634 |
11117 ; End of function p7Dsub_7634 |
11118 |
11118 |
11119 |
11119 |
11120 ; =============== S U B R O U T I N E ======================================= |
11120 ; =============== S U B R O U T I N E ======================================= |
11121 |
11121 |
11122 |
11122 |
11123 p7Dsub_7643: |
11123 p7Dsub_7643: |
11124 ld bc, 0Dh |
11124 ld bc, 0Dh |
11125 call NZIf83Plus |
11125 call NZIf83Plus |
11126 ret nz |
11126 ret nz |
11127 ld bc, 61h ; 'a' |
11127 ld bc, 61h ; 'a' |
11128 ret |
11128 ret |
11129 ; End of function p7Dsub_7643 |
11129 ; End of function p7Dsub_7643 |
11130 |
11130 |
11131 |
11131 |
11132 ; =============== S U B R O U T I N E ======================================= |
11132 ; =============== S U B R O U T I N E ======================================= |
11133 |
11133 |
11134 |
11134 |
11135 p7Dsub_764E: |
11135 p7Dsub_764E: |
11136 ; p7Dsub_484E:p7Dloc_486Cp ... |
11136 ; p7Dsub_484E:p7Dloc_486Cp ... |
11137 push ix |
11137 push ix |
11138 pop hl |
11138 pop hl |
11139 ld bc, 0Dh |
11139 ld bc, 0Dh |
11140 add hl, bc |
11140 add hl, bc |
11141 ret |
11141 ret |
11142 ; End of function p7Dsub_764E |
11142 ; End of function p7Dsub_764E |
11143 |
11143 |
11144 |
11144 |
11145 ; =============== S U B R O U T I N E ======================================= |
11145 ; =============== S U B R O U T I N E ======================================= |
11146 |
11146 |
11147 |
11147 |
11148 p7Dsub_7656: |
11148 p7Dsub_7656: |
11149 ld a, 16h |
11149 ld a, 16h |
11150 call NZIf83Plus |
11150 call NZIf83Plus |
11151 ret nz |
11151 ret nz |
11152 ld a, 6Ah ; 'j' |
11152 ld a, 6Ah ; 'j' |
11153 ret |
11153 ret |
11154 ; End of function p7Dsub_7656 |
11154 ; End of function p7Dsub_7656 |
11155 |
11155 |
11156 ; --------------------------------------------------------------------------- |
11156 ; --------------------------------------------------------------------------- |
11157 ld hl, OP1 |
11157 ld hl, OP1 |
11158 ld (hl), b |
11158 ld (hl), b |
11159 |
11159 |
11160 ; =============== S U B R O U T I N E ======================================= |
11160 ; =============== S U B R O U T I N E ======================================= |
11161 |
11161 |
11162 |
11162 |
11163 p7Dsub_7663: |
11163 p7Dsub_7663: |
11164 ld bc, 1 |
11164 ld bc, 1 |
11165 ; End of function p7Dsub_7663 |
11165 ; End of function p7Dsub_7663 |
11166 |
11166 |
11167 |
11167 |
11168 ; =============== S U B R O U T I N E ======================================= |
11168 ; =============== S U B R O U T I N E ======================================= |
11169 |
11169 |
11170 |
11170 |
11171 p7Dsub_7666: |
11171 p7Dsub_7666: |
11172 ; CopyFlashPage+38p ... |
11172 ; CopyFlashPage+38p ... |
11173 res 1, (iy+25h) |
11173 res 1, (iy+25h) |
11174 call NZIf83Plus |
11174 call NZIf83Plus |
11175 jr z, p7Dloc_7671 |
11175 jr z, p7Dloc_7671 |
11176 and 1Fh |
11176 and 1Fh |
11177 |
11177 |
11178 p7Dloc_7671: |
11178 p7Dloc_7671: |
11179 push ix |
11179 push ix |
11180 ld ix, WriteFlashPrivilegedCopy |
11180 ld ix, WriteFlashPrivilegedCopy |
11181 call p7Dsub_6B87 |
11181 call p7Dsub_6B87 |
11182 pop ix |
11182 pop ix |
11183 ret |
11183 ret |
11184 ; End of function p7Dsub_7666 |
11184 ; End of function p7Dsub_7666 |
11185 |
11185 |
11186 WriteFlashPrivilegedCopy: |
11186 WriteFlashPrivilegedCopy: |
11187 .dw 81h |
11187 .dw 81h |
11188 ld (flashByte2), a |
11188 ld (flashByte2), a |
11189 in a, (6) |
11189 in a, (6) |
11190 push af |
11190 push af |
11191 ld a, (flashByte2) |
11191 ld a, (flashByte2) |
11192 out (6), a |
11192 out (6), a |
11193 bit 7, h |
11193 bit 7, h |
11194 jr nz, p7Dloc_7692 |
11194 jr nz, p7Dloc_7692 |
11195 set 1, (iy+25h) |
11195 set 1, (iy+25h) |
11196 |
11196 |
11197 p7Dloc_7692: |
11197 p7Dloc_7692: |
11198 bit 1, (iy+25h) |
11198 bit 1, (iy+25h) |
11199 push hl |
11199 push hl |
11200 jr nz, p7Dloc_76AD |
11200 jr nz, p7Dloc_76AD |
11201 ld hl, 7FFFh |
11201 ld hl, 7FFFh |
11202 or a |
11202 or a |
11203 sbc hl, de |
11203 sbc hl, de |
11204 jr nc, p7Dloc_76AD |
11204 jr nc, p7Dloc_76AD |
11205 in a, (6) |
11205 in a, (6) |
11206 inc a |
11206 inc a |
11207 cp 7Eh ; '~' |
11207 cp 7Eh ; '~' |
11208 jr z, p7Dloc_76AA |
11208 jr z, p7Dloc_76AA |
11209 out (6), a |
11209 out (6), a |
11210 |
11210 |
11211 p7Dloc_76AA: |
11211 p7Dloc_76AA: |
11212 ld de, 4000h |
11212 ld de, 4000h |
11213 |
11213 |
11214 p7Dloc_76AD: |
11214 p7Dloc_76AD: |
11215 pop hl |
11215 pop hl |
11216 in a, (6) |
11216 in a, (6) |
11217 push af |
11217 push af |
11218 ld a, 2 |
11218 ld a, 2 |
11219 out (6), a |
11219 out (6), a |
11220 ld a, 0AAh ; '�' |
11220 ld a, 0AAh ; '�' |
11221 ld (p7Dloc_6AA8+2), a |
11221 ld (p7Dloc_6AA8+2), a |
11222 ld a, 1 |
11222 ld a, 1 |
11223 out (6), a |
11223 out (6), a |
11224 ld a, 55h ; 'U' |
11224 ld a, 55h ; 'U' |
11225 ld (p7Dloc_5555), a |
11225 ld (p7Dloc_5555), a |
11226 ld a, 2 |
11226 ld a, 2 |
11227 out (6), a |
11227 out (6), a |
11228 ld a, 0A0h ; '�' |
11228 ld a, 0A0h ; '�' |
11229 ld (p7Dloc_6AA8+2), a |
11229 ld (p7Dloc_6AA8+2), a |
11230 pop af |
11230 pop af |
11231 out (6), a |
11231 out (6), a |
11232 ld a, (hl) |
11232 ld a, (hl) |
11233 ld a, (hl) |
11233 ld a, (hl) |
11234 ld (de), a |
11234 ld (de), a |
11235 |
11235 |
11236 p7Dloc_76D2: |
11236 p7Dloc_76D2: |
11237 ld a, (de) |
11237 ld a, (de) |
11238 push af |
11238 push af |
11239 xor (hl) |
11239 xor (hl) |
11240 and 80h ; '�' |
11240 and 80h ; '�' |
11241 jr z, p7Dloc_76E6 |
11241 jr z, p7Dloc_76E6 |
11242 pop af |
11242 pop af |
11243 bit 5, a |
11243 bit 5, a |
11244 jr z, p7Dloc_76D2 |
11244 jr z, p7Dloc_76D2 |
11245 ld a, (de) |
11245 ld a, (de) |
11246 xor (hl) |
11246 xor (hl) |
11247 and 80h ; '�' |
11247 and 80h ; '�' |
11248 jr nz, p7Dloc_76F8 |
11248 jr nz, p7Dloc_76F8 |
11249 jr p7Dloc_76E7 |
11249 jr p7Dloc_76E7 |
11250 ; --------------------------------------------------------------------------- |
11250 ; --------------------------------------------------------------------------- |
11251 |
11251 |
11252 p7Dloc_76E6: |
11252 p7Dloc_76E6: |
11253 pop af |
11253 pop af |
11254 |
11254 |
11255 p7Dloc_76E7: |
11255 p7Dloc_76E7: |
11256 inc de |
11256 inc de |
11257 inc hl |
11257 inc hl |
11258 dec bc |
11258 dec bc |
11259 ld a, b |
11259 ld a, b |
11260 or c |
11260 or c |
11261 jr nz, p7Dloc_7692 |
11261 jr nz, p7Dloc_7692 |
11262 dec de |
11262 dec de |
11263 ld a, 0F0h ; '�' |
11263 ld a, 0F0h ; '�' |
11264 ld (de), a |
11264 ld (de), a |
11265 inc de |
11265 inc de |
11266 pop af |
11266 pop af |
11267 out (6), a |
11267 out (6), a |
11268 xor a |
11268 xor a |
11269 ret |
11269 ret |
11270 ; --------------------------------------------------------------------------- |
11270 ; --------------------------------------------------------------------------- |
11271 |
11271 |
11272 p7Dloc_76F8: |
11272 p7Dloc_76F8: |
11273 ld a, 0F0h ; '�' |
11273 ld a, 0F0h ; '�' |
11274 ld (de), a |
11274 ld (de), a |
11275 pop af |
11275 pop af |
11276 out (6), a |
11276 out (6), a |
11277 or a |
11277 or a |
11278 ret |
11278 ret |
11279 |
11279 |
11280 ; =============== S U B R O U T I N E ======================================= |
11280 ; =============== S U B R O U T I N E ======================================= |
11281 |
11281 |
11282 |
11282 |
11283 p7Dsub_7700: |
11283 p7Dsub_7700: |
11284 in a, (2) |
11284 in a, (2) |
11285 and 80h ; '�' |
11285 and 80h ; '�' |
11286 ld a, 1Eh |
11286 ld a, 1Eh |
11287 ret z |
11287 ret z |
11288 ld a, 7Eh ; '~' |
11288 ld a, 7Eh ; '~' |
11289 ret |
11289 ret |
11290 ; End of function p7Dsub_7700 |
11290 ; End of function p7Dsub_7700 |
11291 |
11291 |
11292 ; --------------------------------------------------------------------------- |
11292 ; --------------------------------------------------------------------------- |
11293 |
11293 |
11294 Page7D_2C28: |
11294 Page7D_2C28: |
11295 push af |
11295 push af |
11296 inc a |
11296 inc a |
11297 ld (appSearchPage), a |
11297 ld (appSearchPage), a |
11298 call p7Dsub_638B |
11298 call p7Dsub_638B |
11299 ld a, 14h |
11299 ld a, 14h |
11300 ld (OP1), a |
11300 ld (OP1), a |
11301 ld bc, 8 |
11301 ld bc, 8 |
11302 ld hl, 8484h |
11302 ld hl, 8484h |
11303 ld de, 8479h |
11303 ld de, 8479h |
11304 ldir |
11304 ldir |
11305 pop af |
11305 pop af |
11306 ret |
11306 ret |
11307 ; --------------------------------------------------------------------------- |
11307 ; --------------------------------------------------------------------------- |
11308 |
11308 |
11309 Page7D_2BE0: |
11309 Page7D_2BE0: |
11310 push af |
11310 push af |
11311 ld a, 1 |
11311 ld a, 1 |
11312 nop |
11312 nop |
11313 di |
11313 di |
11314 nop |
11314 nop |
11315 nop |
11315 nop |
11316 im 1 |
11316 im 1 |
11317 di |
11317 di |
11318 out (14h), a |
11318 out (14h), a |
11319 di |
11319 di |
11320 call checkForFlashTrickery |
11320 call checkForFlashTrickery |
11321 pop af |
11321 pop af |
11322 ld a, (unk_8434) |
11322 ld a, (unk_8434) |
11323 nop |
11323 nop |
11324 call p7Dsub_43F6 |
11324 call p7Dsub_43F6 |
11325 jr nz, ret8 |
11325 jr nz, ret8 |
11326 ld a, (unk_8434) |
11326 ld a, (unk_8434) |
11327 ld hl, 4000h |
11327 ld hl, 4000h |
11328 call p7Dsub_5E59 |
11328 call p7Dsub_5E59 |
11329 call p7Dsub_52D9 |
11329 call p7Dsub_52D9 |
11330 jp c, p7Dloc_774F |
11330 jp c, p7Dloc_774F |
11331 jr nz, ret9 |
11331 jr nz, ret9 |
11332 |
11332 |
11333 p7Dloc_774F: |
11333 p7Dloc_774F: |
11334 ld a, (unk_8434) |
11334 ld a, (unk_8434) |
11335 ld hl, 4000h |
11335 ld hl, 4000h |
11336 call Page7D_2C9A |
11336 call Page7D_2C9A |
11337 call p7Dsub_51C3 |
11337 call p7Dsub_51C3 |
11338 ld a, (unk_8434) |
11338 ld a, (unk_8434) |
11339 ld hl, 4000h |
11339 ld hl, 4000h |
11340 call p7Dsub_5E59 |
11340 call p7Dsub_5E59 |
11341 call p7Dsub_533B |
11341 call p7Dsub_533B |
11342 call Page7D_2B56 |
11342 call Page7D_2B56 |
11343 ld a, b |
11343 ld a, b |
11344 rst 28h |
11344 rst 28h |
11345 ; --------------------------------------------------------------------------- |
11345 ; --------------------------------------------------------------------------- |
11346 .dw 80CFh |
11346 .dw 80CFh |
11347 ; --------------------------------------------------------------------------- |
11347 ; --------------------------------------------------------------------------- |
11348 ld a, 0FFh |
11348 ld a, 0FFh |
11349 ld (ioFlag), a |
11349 ld (ioFlag), a |
11350 call relockFlashBack |
11350 call relockFlashBack |
11351 xor a |
11351 xor a |
11352 ret |
11352 ret |
11353 ; --------------------------------------------------------------------------- |
11353 ; --------------------------------------------------------------------------- |
11354 |
11354 |
11355 ret9: |
11355 ret9: |
11356 ld a, 9 |
11356 ld a, 9 |
11357 ret |
11357 ret |
11358 ; --------------------------------------------------------------------------- |
11358 ; --------------------------------------------------------------------------- |
11359 |
11359 |
11360 ret8: |
11360 ret8: |
11361 ld a, 8 |
11361 ld a, 8 |
11362 ret |
11362 ret |
11363 |
11363 |
11364 ; =============== S U B R O U T I N E ======================================= |
11364 ; =============== S U B R O U T I N E ======================================= |
11365 |
11365 |
11366 |
11366 |
11367 p7Dsub_777E: |
11367 p7Dsub_777E: |
11368 call p7Dsub_7700 |
11368 call p7Dsub_7700 |
11369 rst 28h |
11369 rst 28h |
11370 ; --------------------------------------------------------------------------- |
11370 ; --------------------------------------------------------------------------- |
11371 .dw 805Dh |
11371 .dw 805Dh |
11372 ; --------------------------------------------------------------------------- |
11372 ; --------------------------------------------------------------------------- |
11373 ret |
11373 ret |
11374 ; End of function p7Dsub_777E |
11374 ; End of function p7Dsub_777E |
11375 |
11375 |
11376 ; --------------------------------------------------------------------------- |
11376 ; --------------------------------------------------------------------------- |
11377 rst 28h |
11377 rst 28h |
11378 ; --------------------------------------------------------------------------- |
11378 ; --------------------------------------------------------------------------- |
11379 .dw 8063h |
11379 .dw 8063h |
11380 ; --------------------------------------------------------------------------- |
11380 ; --------------------------------------------------------------------------- |
11381 jp nz, p7Dloc_7813 |
11381 jp nz, p7Dloc_7813 |
11382 ld a, 1 |
11382 ld a, 1 |
11383 ld de, 8050h |
11383 ld de, 8050h |
11384 call p7Dsub_7060 |
11384 call p7Dsub_7060 |
11385 jr nz, p7Dloc_779B |
11385 jr nz, p7Dloc_779B |
11386 call p7Dsub_50C5 |
11386 call p7Dsub_50C5 |
11387 jp nz, p7Dloc_7810 |
11387 jp nz, p7Dloc_7810 |
11388 |
11388 |
11389 p7Dloc_779B: |
11389 p7Dloc_779B: |
11390 call p7Dsub_7B41 |
11390 call p7Dsub_7B41 |
11391 ld a, (appInfo) |
11391 ld a, (appInfo) |
11392 cp 0 |
11392 cp 0 |
11393 jp nz, p7Dloc_75B4 |
11393 jp nz, p7Dloc_75B4 |
11394 di |
11394 di |
11395 ld a, (ioFlag) |
11395 ld a, (ioFlag) |
11396 push af |
11396 push af |
11397 call p7Dsub_717A |
11397 call p7Dsub_717A |
11398 ld a, 0 |
11398 ld a, 0 |
11399 ld b, 0 |
11399 ld b, 0 |
11400 res 2, (iy+25h) |
11400 res 2, (iy+25h) |
11401 call Page0Call_2EB9 |
11401 call Page0Call_2EB9 |
11402 call p7Dsub_7182 |
11402 call p7Dsub_7182 |
11403 pop af |
11403 pop af |
11404 ld (ioFlag), a |
11404 ld (ioFlag), a |
11405 call p7Dsub_7B72 |
11405 call p7Dsub_7B72 |
11406 or a |
11406 or a |
11407 jp z, p7Dloc_780D |
11407 jp z, p7Dloc_780D |
11408 push af |
11408 push af |
11409 call p7Dsub_7BEA |
11409 call p7Dsub_7BEA |
11410 jr c, p7Dloc_77D2 |
11410 jr c, p7Dloc_77D2 |
11411 jr z, p7Dloc_77D2 |
11411 jr z, p7Dloc_77D2 |
11412 |
11412 |
11413 p7Dloc_77CF: |
11413 p7Dloc_77CF: |
11414 jp p7Dloc_780D |
11414 jp p7Dloc_780D |
11415 ; --------------------------------------------------------------------------- |
11415 ; --------------------------------------------------------------------------- |
11416 |
11416 |
11417 p7Dloc_77D2: |
11417 p7Dloc_77D2: |
11418 call FindSwapSector |
11418 call FindSwapSector |
11419 cp 8 |
11419 cp 8 |
11420 jr z, p7Dloc_77F0 |
11420 jr z, p7Dloc_77F0 |
11421 add a, 4 |
11421 add a, 4 |
11422 ld b, a |
11422 ld b, a |
11423 ld a, c |
11423 ld a, c |
11424 sub d |
11424 sub d |
11425 cp b |
11425 cp b |
11426 jr nc, p7Dloc_77F0 |
11426 jr nc, p7Dloc_77F0 |
11427 ld a, 5 |
11427 ld a, 5 |
11428 call Page0Call_2EB9 |
11428 call Page0Call_2EB9 |
11429 call FindSwapSector |
11429 call FindSwapSector |
11430 cp 8 |
11430 cp 8 |
11431 jr nz, p7Dloc_77CF |
11431 jr nz, p7Dloc_77CF |
11432 call p7Dsub_7182 |
11432 call p7Dsub_7182 |
11433 |
11433 |
11434 p7Dloc_77F0: |
11434 p7Dloc_77F0: |
11435 ld a, (appSearchPage) |
11435 ld a, (appSearchPage) |
11436 call Page7D_2C16 |
11436 call Page7D_2C16 |
11437 ld a, 1 |
11437 ld a, 1 |
11438 ld hl, ramStart |
11438 ld hl, ramStart |
11439 call Page7D_2C9A |
11439 call Page7D_2C9A |
11440 ld a, 19h |
11440 ld a, 19h |
11441 ld (sndRecState), a |
11441 ld (sndRecState), a |
11442 pop af |
11442 pop af |
11443 push af |
11443 push af |
11444 di |
11444 di |
11445 xor a |
11445 xor a |
11446 ld (sndRecState), a |
11446 ld (sndRecState), a |
11447 pop af |
11447 pop af |
11448 ret |
11448 ret |
11449 ; --------------------------------------------------------------------------- |
11449 ; --------------------------------------------------------------------------- |
11450 ret |
11450 ret |
11451 ; --------------------------------------------------------------------------- |
11451 ; --------------------------------------------------------------------------- |
11452 |
11452 |
11453 p7Dloc_780D: |
11453 p7Dloc_780D: |
11454 |
11454 |
11455 jp ErrMemory |
11455 jp ErrMemory |
11456 ; --------------------------------------------------------------------------- |
11456 ; --------------------------------------------------------------------------- |
11457 |
11457 |
11458 p7Dloc_7810: |
11458 p7Dloc_7810: |
11459 jp Page0Call_253D |
11459 jp Page0Call_253D |
11460 ; --------------------------------------------------------------------------- |
11460 ; --------------------------------------------------------------------------- |
11461 |
11461 |
11462 p7Dloc_7813: |
11462 p7Dloc_7813: |
11463 jp Page0Call_2539 |
11463 jp Page0Call_2539 |
11464 ; --------------------------------------------------------------------------- |
11464 ; --------------------------------------------------------------------------- |
11465 call popErrorHandleR |
11465 call popErrorHandleR |
11466 ld a, 23h ; '#' |
11466 ld a, 23h ; '#' |
11467 ld (errNo), a |
11467 ld (errNo), a |
11468 or 1 |
11468 or 1 |
11469 ret |
11469 ret |
11470 ; --------------------------------------------------------------------------- |
11470 ; --------------------------------------------------------------------------- |
11471 push af |
11471 push af |
11472 ld (unk_8439), a |
11472 ld (unk_8439), a |
11473 call p7Dsub_5525 |
11473 call p7Dsub_5525 |
11474 ld b, a |
11474 ld b, a |
11475 pop af |
11475 pop af |
11476 sub b |
11476 sub b |
11477 ld de, 4000h |
11477 ld de, 4000h |
11478 push hl |
11478 push hl |
11479 or a |
11479 or a |
11480 jr z, p7Dloc_7855 |
11480 jr z, p7Dloc_7855 |
11481 push af |
11481 push af |
11482 |
11482 |
11483 p7Dloc_7833: |
11483 p7Dloc_7833: |
11484 ld hl, 4000h |
11484 ld hl, 4000h |
11485 ld bc, 4000h |
11485 ld bc, 4000h |
11486 call p7Dsub_7865 |
11486 call p7Dsub_7865 |
11487 pop af |
11487 pop af |
11488 dec a |
11488 dec a |
11489 or a |
11489 or a |
11490 jr z, p7Dloc_784B |
11490 jr z, p7Dloc_784B |
11491 push af |
11491 push af |
11492 ld a, (unk_8439) |
11492 ld a, (unk_8439) |
11493 dec a |
11493 dec a |
11494 ld (unk_8439), a |
11494 ld (unk_8439), a |
11495 jr p7Dloc_7833 |
11495 jr p7Dloc_7833 |
11496 ; --------------------------------------------------------------------------- |
11496 ; --------------------------------------------------------------------------- |
11497 |
11497 |
11498 p7Dloc_784B: |
11498 p7Dloc_784B: |
11499 ld hl, 4000h |
11499 ld hl, 4000h |
11500 ld a, (unk_8439) |
11500 ld a, (unk_8439) |
11501 dec a |
11501 dec a |
11502 ld (unk_8439), a |
11502 ld (unk_8439), a |
11503 |
11503 |
11504 p7Dloc_7855: |
11504 p7Dloc_7855: |
11505 pop hl |
11505 pop hl |
11506 ld de, 4000h |
11506 ld de, 4000h |
11507 or a |
11507 or a |
11508 sbc hl, de |
11508 sbc hl, de |
11509 push hl |
11509 push hl |
11510 pop bc |
11510 pop bc |
11511 ld hl, 4000h |
11511 ld hl, 4000h |
11512 call p7Dsub_7865 |
11512 call p7Dsub_7865 |
11513 ret |
11513 ret |
11514 |
11514 |
11515 ; =============== S U B R O U T I N E ======================================= |
11515 ; =============== S U B R O U T I N E ======================================= |
11516 |
11516 |
11517 |
11517 |
11518 p7Dsub_7865: |
11518 p7Dsub_7865: |
11519 push hl |
11519 push hl |
11520 push bc |
11520 push bc |
11521 ld a, (unk_8439) |
11521 ld a, (unk_8439) |
11522 ld de, ramStart |
11522 ld de, ramStart |
11523 ld bc, 100h |
11523 ld bc, 100h |
11524 rst 28h |
11524 rst 28h |
11525 ; --------------------------------------------------------------------------- |
11525 ; --------------------------------------------------------------------------- |
11526 .dw 8054h |
11526 .dw 8054h |
11527 ; --------------------------------------------------------------------------- |
11527 ; --------------------------------------------------------------------------- |
11528 pop bc |
11528 pop bc |
11529 ld hl, 100h |
11529 ld hl, 100h |
11530 or a |
11530 or a |
11531 sbc hl, bc |
11531 sbc hl, bc |
11532 jr nc, p7Dloc_7882 |
11532 jr nc, p7Dloc_7882 |
11533 push bc |
11533 push bc |
11534 ld bc, 100h |
11534 ld bc, 100h |
11535 jr p7Dloc_7883 |
11535 jr p7Dloc_7883 |
11536 ; --------------------------------------------------------------------------- |
11536 ; --------------------------------------------------------------------------- |
11537 |
11537 |
11538 p7Dloc_7882: |
11538 p7Dloc_7882: |
11539 push bc |
11539 push bc |
11540 |
11540 |
11541 p7Dloc_7883: |
11541 p7Dloc_7883: |
11542 ld hl, ramStart |
11542 ld hl, ramStart |
11543 rst 28h |
11543 rst 28h |
11544 ; --------------------------------------------------------------------------- |
11544 ; --------------------------------------------------------------------------- |
11545 .dw 8090h |
11545 .dw 8090h |
11546 ; --------------------------------------------------------------------------- |
11546 ; --------------------------------------------------------------------------- |
11547 ex de, hl |
11547 ex de, hl |
11548 pop hl |
11548 pop hl |
11549 ld bc, 100h |
11549 ld bc, 100h |
11550 or a |
11550 or a |
11551 sbc hl, bc |
11551 sbc hl, bc |
11552 push hl |
11552 push hl |
11553 pop bc |
11553 pop bc |
11554 ex de, hl |
11554 ex de, hl |
11555 jr z, p7Dloc_78A1 |
11555 jr z, p7Dloc_78A1 |
11556 jr c, p7Dloc_78A1 |
11556 jr c, p7Dloc_78A1 |
11557 pop hl |
11557 pop hl |
11558 push bc |
11558 push bc |
11559 ld de, 100h |
11559 ld de, 100h |
11560 add hl, de |
11560 add hl, de |
11561 pop bc |
11561 pop bc |
11562 jr p7Dsub_7865 |
11562 jr p7Dsub_7865 |
11563 ; --------------------------------------------------------------------------- |
11563 ; --------------------------------------------------------------------------- |
11564 |
11564 |
11565 p7Dloc_78A1: |
11565 p7Dloc_78A1: |
11566 pop hl |
11566 pop hl |
11567 ret |
11567 ret |
11568 ; End of function p7Dsub_7865 |
11568 ; End of function p7Dsub_7865 |
11569 |
11569 |
11570 |
11570 |
11571 ; =============== S U B R O U T I N E ======================================= |
11571 ; =============== S U B R O U T I N E ======================================= |
12295 p7Dsub_7BEA: |
12295 p7Dsub_7BEA: |
12296 |
12296 |
12297 |
12297 |
12298 |
12298 |
12299 |
12299 |
12300 ld (appSearchPage+1), a |
12300 ld (appSearchPage+1), a |
12301 ld (appSearchPage), a |
12301 ld (appSearchPage), a |
12302 ld (unk_8434), a |
12302 ld (unk_8434), a |
12303 call p7Dsub_5DC7 |
12303 call p7Dsub_5DC7 |
12304 ret c |
12304 ret c |
12305 ret z |
12305 ret z |
12306 ld a, e |
12306 ld a, e |
12307 or a |
12307 or a |
12308 jp z, Page7D_2BBC |
12308 jp z, Page7D_2BBC |
12309 ld a, 6 |
12309 ld a, 6 |
12310 call Page0Call_2EB9 |
12310 call Page0Call_2EB9 |
12311 jp z, Page7D_2BBC |
12311 jp z, Page7D_2BBC |
12312 call p7Dsub_7182 |
12312 call p7Dsub_7182 |
12313 ld a, (unk_8434) |
12313 ld a, (unk_8434) |
12314 call p7Dsub_5DC7 |
12314 call p7Dsub_5DC7 |
12315 ret |
12315 ret |
12316 ; End of function p7Dsub_7BEA |
12316 ; End of function p7Dsub_7BEA |
12317 |
12317 |
12318 ; --------------------------------------------------------------------------- |
12318 ; --------------------------------------------------------------------------- |
12319 |
12319 |
12320 Page7D_3EB8: |
12320 Page7D_3EB8: |
12321 push af |
12321 push af |
12322 ld a, 1 |
12322 ld a, 1 |
12323 nop |
12323 nop |
12324 di |
12324 di |
12325 nop |
12325 nop |
12326 nop |
12326 nop |
12327 im 1 |
12327 im 1 |
12328 di |
12328 di |
12329 out (14h), a |
12329 out (14h), a |
12330 di |
12330 di |
12331 call checkForFlashTrickery |
12331 call checkForFlashTrickery |
12332 pop af |
12332 pop af |
12333 call Page7D_2B56 |
12333 call Page7D_2B56 |
12334 ld a, b |
12334 ld a, b |
12335 rst 28h |
12335 rst 28h |
12336 ; --------------------------------------------------------------------------- |
12336 ; --------------------------------------------------------------------------- |
12337 .dw 80CFh |
12337 .dw 80CFh |
12338 ; --------------------------------------------------------------------------- |
12338 ; --------------------------------------------------------------------------- |
12339 jp relockFlashBack |
12339 jp relockFlashBack |
12340 ; --------------------------------------------------------------------------- |
12340 ; --------------------------------------------------------------------------- |
12341 |
12341 |
12342 DoNothing2: |
12342 DoNothing2: |
12343 ret |
12343 ret |
12344 ; --------------------------------------------------------------------------- |
12344 ; --------------------------------------------------------------------------- |
12345 jp nz, p7Dloc_7C2E |
12345 jp nz, p7Dloc_7C2E |
12346 |
12346 |
12347 p7Dloc_7C2E: |
12347 p7Dloc_7C2E: |
12348 call popErrorHandleR |
12348 call popErrorHandleR |
12349 ld a, 23h ; '#' |
12349 ld a, 23h ; '#' |
12350 ld (errNo), a |
12350 ld (errNo), a |
12351 pop hl |
12351 pop hl |
12352 ld (freeRAM), hl |
12352 ld (freeRAM), hl |
12353 call p7Dsub_7C64 |
12353 call p7Dsub_7C64 |
12354 jr z, p7Dloc_7C4D |
12354 jr z, p7Dloc_7C4D |
12355 call OP4ToOP1 |
12355 call OP4ToOP1 |
12356 call ChkFindSym |
12356 call ChkFindSym |
12357 call nc, DelVarArc |
12357 call nc, DelVarArc |
12358 call relockFlashBack |
12358 call relockFlashBack |
12359 jr p7Dloc_7C61 |
12359 jr p7Dloc_7C61 |
12360 ; --------------------------------------------------------------------------- |
12360 ; --------------------------------------------------------------------------- |
12361 |
12361 |
12362 p7Dloc_7C4D: |
12362 p7Dloc_7C4D: |
12363 call ChkFindSym |
12363 call ChkFindSym |
12364 ex de, hl |
12364 ex de, hl |
12365 ld bc, (freeRAM) |
12365 ld bc, (freeRAM) |
12366 dec bc |
12366 dec bc |
12367 dec bc |
12367 dec bc |
12368 ld (hl), c |
12368 ld (hl), c |
12369 inc hl |
12369 inc hl |
12370 ld (hl), b |
12370 ld (hl), b |
12371 dec hl |
12371 dec hl |
12372 ex de, hl |
12372 ex de, hl |
12373 ld a, 3 |
12373 ld a, 3 |
12374 call DELVARIO |
12374 call DELVARIO |
12375 |
12375 |
12376 p7Dloc_7C61: |
12376 p7Dloc_7C61: |
12377 or 1 |
12377 or 1 |
12378 ret |
12378 ret |
12379 |
12379 |
12380 ; =============== S U B R O U T I N E ======================================= |
12380 ; =============== S U B R O U T I N E ======================================= |
12381 |
12381 |
12382 |
12382 |
12383 p7Dsub_7C64: |
12383 p7Dsub_7C64: |
12384 push hl |
12384 push hl |
12385 ld hl, ioNewData |
12385 ld hl, ioNewData |
12386 bit 7, (hl) |
12386 bit 7, (hl) |
12387 pop hl |
12387 pop hl |
12388 ret |
12388 ret |
12389 ; End of function p7Dsub_7C64 |
12389 ; End of function p7Dsub_7C64 |
12390 |
12390 |
12391 ; --------------------------------------------------------------------------- |
12391 ; --------------------------------------------------------------------------- |
12392 call page0_17B0 |
12392 call page0_17B0 |
12393 jr z, p7Dloc_7C7D |
12393 jr z, p7Dloc_7C7D |
12394 call ISO1NONTEMPLST |
12394 call ISO1NONTEMPLST |
12395 jr nz, p7Dloc_7C84 |
12395 jr nz, p7Dloc_7C84 |
12396 push bc |
12396 push bc |
12397 call CMPPRGNAMLEN |
12397 call CMPPRGNAMLEN |
12398 inc a |
12398 inc a |
12399 jr p7Dloc_7C81 |
12399 jr p7Dloc_7C81 |
12400 ; --------------------------------------------------------------------------- |
12400 ; --------------------------------------------------------------------------- |
12401 |
12401 |
12402 p7Dloc_7C7D: |
12402 p7Dloc_7C7D: |
12403 push bc |
12403 push bc |
12404 call CMPPRGNAMLEN |
12404 call CMPPRGNAMLEN |
12405 |
12405 |
12406 p7Dloc_7C81: |
12406 p7Dloc_7C81: |
12407 pop bc |
12407 pop bc |
12408 or a |
12408 or a |
12409 ret |
12409 ret |
12410 ; --------------------------------------------------------------------------- |
12410 ; --------------------------------------------------------------------------- |
12411 |
12411 |
12412 p7Dloc_7C84: |
12412 p7Dloc_7C84: |
12413 xor a |
12413 xor a |
12414 scf |
12414 scf |
12415 ret |
12415 ret |
12416 ; --------------------------------------------------------------------------- |
12416 ; --------------------------------------------------------------------------- |
12417 push hl |
12417 push hl |
12418 ld hl, (unk_83F7) |
12418 ld hl, (unk_83F7) |
12419 or a |
12419 or a |
12420 sbc hl, bc |
12420 sbc hl, bc |
12421 jp c, ErrMemory |
12421 jp c, ErrMemory |
12422 ld (unk_83F7), hl |
12422 ld (unk_83F7), hl |
12423 pop hl |
12423 pop hl |
12424 ret |
12424 ret |
12425 |
12425 |
12426 ; =============== S U B R O U T I N E ======================================= |
12426 ; =============== S U B R O U T I N E ======================================= |
12427 |
12427 |
12428 |
12428 |
12429 p7Dsub_7C96: |
12429 p7Dsub_7C96: |
12430 call NZIf83Plus |
12430 call NZIf83Plus |
12431 jr nz, p7Dloc_7CA0 |
12431 jr nz, p7Dloc_7CA0 |
12432 and 7Fh ; '' |
12432 and 7Fh ; '' |
12433 cp 6Ah ; 'j' |
12433 cp 6Ah ; 'j' |
12434 ret |
12434 ret |
12435 ; --------------------------------------------------------------------------- |
12435 ; --------------------------------------------------------------------------- |
12436 |
12436 |
12437 p7Dloc_7CA0: |
12437 p7Dloc_7CA0: |
12438 and 1Fh |
12438 and 1Fh |
12439 cp 16h |
12439 cp 16h |
12440 ret |
12440 ret |
12441 ; End of function p7Dsub_7C96 |
12441 ; End of function p7Dsub_7C96 |
12442 |
12442 |
12443 |
12443 |
12444 ; =============== S U B R O U T I N E ======================================= |
12444 ; =============== S U B R O U T I N E ======================================= |
12445 |
12445 |
12446 |
12446 |
12447 p7Dsub_7CA5: |
12447 p7Dsub_7CA5: |
12448 ld a, (unk_83A4) |
12448 ld a, (unk_83A4) |
12449 or a |
12449 or a |
12450 ret z |
12450 ret z |
12451 ld a, (unk_83A3) |
12451 ld a, (unk_83A3) |
12452 inc a |
12452 inc a |
12453 ld (unk_83A3), a |
12453 ld (unk_83A3), a |
12454 ret |
12454 ret |
12455 ; End of function p7Dsub_7CA5 |
12455 ; End of function p7Dsub_7CA5 |
12456 |
12456 |
12457 |
12457 |
12458 ; =============== S U B R O U T I N E ======================================= |
12458 ; =============== S U B R O U T I N E ======================================= |
12459 |
12459 |
12460 |
12460 |
12461 p7Dsub_7CB2: |
12461 p7Dsub_7CB2: |
12462 push bc |
12462 push bc |
12463 ld b, a |
12463 ld b, a |
12464 ld a, (sndRecState) |
12464 ld a, (sndRecState) |
12465 inc a |
12465 inc a |
12466 ld a, b |
12466 ld a, b |
12467 pop bc |
12467 pop bc |
12468 ret |
12468 ret |
12469 ; End of function p7Dsub_7CB2 |
12469 ; End of function p7Dsub_7CB2 |
12470 |
12470 |
12471 |
12471 |
12472 ; =============== S U B R O U T I N E ======================================= |
12472 ; =============== S U B R O U T I N E ======================================= |
12473 |
12473 |
12474 |
12474 |
12475 p7Dsub_7CBB: |
12475 p7Dsub_7CBB: |
12476 ; p7Dsub_7240+119p |
12476 ; p7Dsub_7240+119p |
12477 ld a, (ramCodeEnd) |
12477 ld a, (ramCodeEnd) |
12478 cp 0 |
12478 cp 0 |
12479 ret z |
12479 ret z |
12480 push hl |
12480 push hl |
12481 call p7Dsub_578D |
12481 call p7Dsub_578D |
12482 ld a, l |
12482 ld a, l |
12483 or h |
12483 or h |
12484 pop hl |
12484 pop hl |
12485 ret nz |
12485 ret nz |
12486 ld a, 0 |
12486 ld a, 0 |
12487 ld (unk_83A4), a |
12487 ld (unk_83A4), a |
12488 ret |
12488 ret |
12489 ; End of function p7Dsub_7CBB |
12489 ; End of function p7Dsub_7CBB |
12490 |
12490 |
12491 |
12491 |
12492 ; =============== S U B R O U T I N E ======================================= |
12492 ; =============== S U B R O U T I N E ======================================= |
12493 |
12493 |
12494 |
12494 |
12495 p7Dsub_7CCF: |
12495 p7Dsub_7CCF: |
12496 ; p7Dsub_7240:p7Dloc_7535p ... |
12496 ; p7Dsub_7240:p7Dloc_7535p ... |
12497 rst 28h |
12497 rst 28h |
12498 ; --------------------------------------------------------------------------- |
12498 ; --------------------------------------------------------------------------- |
12499 .dw 8057h |
12499 .dw 8057h |
12500 ; End of function p7Dsub_7CCF |
12500 ; End of function p7Dsub_7CCF |
12501 |
12501 |
12502 ; --------------------------------------------------------------------------- |
12502 ; --------------------------------------------------------------------------- |
12503 call Page7D_2BEC |
12503 call Page7D_2BEC |
12504 ld de, 1DE2h |
12504 ld de, 1DE2h |
12505 add hl, de |
12505 add hl, de |
12506 ret |
12506 ret |
12507 |
12507 |
12508 ; =============== S U B R O U T I N E ======================================= |
12508 ; =============== S U B R O U T I N E ======================================= |
12509 |
12509 |
12510 |
12510 |
12511 p7Dsub_7CDA: |
12511 p7Dsub_7CDA: |
12512 push af |
12512 push af |
12513 push af |
12513 push af |
12514 ld a, 1 |
12514 ld a, 1 |
12515 nop |
12515 nop |
12516 di |
12516 di |
12517 nop |
12517 nop |
12518 nop |
12518 nop |
12519 im 1 |
12519 im 1 |
12520 di |
12520 di |
12521 out (14h), a |
12521 out (14h), a |
12522 di |
12522 di |
12523 call checkForFlashTrickery |
12523 call checkForFlashTrickery |
12524 pop af |
12524 pop af |
12525 call Page0Call_2ECB |
12525 call Page0Call_2ECB |
12526 call p7Dsub_7CCF |
12526 call p7Dsub_7CCF |
12527 push hl |
12527 push hl |
12528 ld b, 8 |
12528 ld b, 8 |
12529 |
12529 |
12530 p7Dloc_7CF5: |
12530 p7Dloc_7CF5: |
12531 call p7Dsub_4566 |
12531 call p7Dsub_4566 |
12532 cp 0FFh |
12532 cp 0FFh |
12533 jr nz, p7Dloc_7D01 |
12533 jr nz, p7Dloc_7D01 |
12534 inc hl |
12534 inc hl |
12535 djnz p7Dloc_7CF5 |
12535 djnz p7Dloc_7CF5 |
12536 jr p7Dloc_7D04 |
12536 jr p7Dloc_7D04 |
12537 ; --------------------------------------------------------------------------- |
12537 ; --------------------------------------------------------------------------- |
12538 |
12538 |
12539 p7Dloc_7D01: |
12539 p7Dloc_7D01: |
12540 call Page7D_2BB0 |
12540 call Page7D_2BB0 |
12541 |
12541 |
12542 p7Dloc_7D04: |
12542 p7Dloc_7D04: |
12543 ld hl, 7FFEh |
12543 ld hl, 7FFEh |
12544 ld (OP1+1), hl |
12544 ld (OP1+1), hl |
12545 ld a, (arcInfo) |
12545 ld a, (arcInfo) |
12546 ld (unk_847B), a |
12546 ld (unk_847B), a |
12547 ld hl, (arcInfo+1) |
12547 ld hl, (arcInfo+1) |
12548 call p7Dsub_69D4 |
12548 call p7Dsub_69D4 |
12549 jr nz, p7Dloc_7D19 |
12549 jr nz, p7Dloc_7D19 |
12550 inc hl |
12550 inc hl |
12551 |
12551 |
12552 p7Dloc_7D19: |
12552 p7Dloc_7D19: |
12553 inc hl |
12553 inc hl |
12554 inc hl |
12554 inc hl |
12555 inc hl |
12555 inc hl |
12556 ld de, (unk_83F5) |
12556 ld de, (unk_83F5) |
12557 add hl, de |
12557 add hl, de |
12558 ld (unk_847C), hl |
12558 ld (unk_847C), hl |
12559 ld (iMathPtr5), hl |
12559 ld (iMathPtr5), hl |
12560 ld de, (unk_83F7) |
12560 ld de, (unk_83F7) |
12561 bit 7, d |
12561 bit 7, d |
12562 jr z, p7Dloc_7D33 |
12562 jr z, p7Dloc_7D33 |
12563 inc a |
12563 inc a |
12564 inc a |
12564 inc a |
12565 res 7, d |
12565 res 7, d |
12566 |
12566 |
12567 p7Dloc_7D33: |
12567 p7Dloc_7D33: |
12568 bit 6, d |
12568 bit 6, d |
12569 jr z, p7Dloc_7D3A |
12569 jr z, p7Dloc_7D3A |
12570 inc a |
12570 inc a |
12571 res 6, d |
12571 res 6, d |
12572 |
12572 |
12573 p7Dloc_7D3A: |
12573 p7Dloc_7D3A: |
12574 add hl, de |
12574 add hl, de |
12575 bit 7, h |
12575 bit 7, h |
12576 jr z, p7Dloc_7D44 |
12576 jr z, p7Dloc_7D44 |
12577 inc a |
12577 inc a |
12578 res 7, h |
12578 res 7, h |
12579 set 6, h |
12579 set 6, h |
12580 |
12580 |
12581 p7Dloc_7D44: |
12581 p7Dloc_7D44: |
12582 ld (unk_847E), a |
12582 ld (unk_847E), a |
12583 ld (unk_847F), hl |
12583 ld (unk_847F), hl |
12584 ld bc, 8 |
12584 ld bc, 8 |
12585 ld hl, 8479h |
12585 ld hl, 8479h |
12586 call p7Dsub_7700 |
12586 call p7Dsub_7700 |
12587 pop de |
12587 pop de |
12588 rst 28h |
12588 rst 28h |
12589 ; --------------------------------------------------------------------------- |
12589 ; --------------------------------------------------------------------------- |
12590 .dw 8087h |
12590 .dw 8087h |
12591 ; --------------------------------------------------------------------------- |
12591 ; --------------------------------------------------------------------------- |
12592 call relockFlashBack |
12592 call relockFlashBack |
12593 set 3, (iy+26h) |
12593 set 3, (iy+26h) |
12594 call Page7D_2EB0 |
12594 call Page7D_2EB0 |
12595 pop af |
12595 pop af |
12596 ld hl, (unk_83F1) |
12596 ld hl, (unk_83F1) |
12597 ld (hl), a |
12597 ld (hl), a |
12598 ret |
12598 ret |
12599 ; End of function p7Dsub_7CDA |
12599 ; End of function p7Dsub_7CDA |
12600 |
12600 |
12601 |
12601 |
12602 ; =============== S U B R O U T I N E ======================================= |
12602 ; =============== S U B R O U T I N E ======================================= |
12603 |
12603 |
12604 |
12604 |
12605 p7Dsub_7D67: |
12605 p7Dsub_7D67: |
12606 ld a, (pagedCount) |
12606 ld a, (pagedCount) |
12607 or a |
12607 or a |
12608 ret z |
12608 ret z |
12609 push bc |
12609 push bc |
12610 push de |
12610 push de |
12611 push hl |
12611 push hl |
12612 ld c, a |
12612 ld c, a |
12613 xor a |
12613 xor a |
12614 ld (pagedCount), a |
12614 ld (pagedCount), a |
12615 ld hl, pagedBuf |
12615 ld hl, pagedBuf |
12616 ld (pagedGetPtr), hl |
12616 ld (pagedGetPtr), hl |
12617 ld de, (iMathPtr5) |
12617 ld de, (iMathPtr5) |
12618 ld a, (arcInfo) |
12618 ld a, (arcInfo) |
12619 push de |
12619 push de |
12620 ld (Abackup), a |
12620 ld (Abackup), a |
12621 ld a, i |
12621 ld a, i |
12622 di |
12622 di |
12623 push af |
12623 push af |
12624 ld a, (Abackup) |
12624 ld a, (Abackup) |
12625 push af |
12625 push af |
12626 ld a, 1 |
12626 ld a, 1 |
12627 nop |
12627 nop |
12628 di |
12628 di |
12629 nop |
12629 nop |
12630 nop |
12630 nop |
12631 im 1 |
12631 im 1 |
12632 di |
12632 di |
12633 out (14h), a |
12633 out (14h), a |
12634 di |
12634 di |
12635 call checkForFlashTrickery |
12635 call checkForFlashTrickery |
12636 pop af |
12636 pop af |
12637 call p7Dsub_7C96 |
12637 call p7Dsub_7C96 |
12638 jr nc, p7Dloc_7E0D |
12638 jr nc, p7Dloc_7E0D |
12639 cp 8 |
12639 cp 8 |
12640 jr c, p7Dloc_7E0D |
12640 jr c, p7Dloc_7E0D |
12641 call p7Dsub_7CCF |
12641 call p7Dsub_7CCF |
12642 call p7Dsub_4566 |
12642 call p7Dsub_4566 |
12643 cp 0FEh ; '�' |
12643 cp 0FEh ; '�' |
12644 jr nz, p7Dloc_7E0D |
12644 jr nz, p7Dloc_7E0D |
12645 call p7Dsub_4565 |
12645 call p7Dsub_4565 |
12646 cp 7Fh ; '' |
12646 cp 7Fh ; '' |
12647 jr nz, p7Dloc_7E0D |
12647 jr nz, p7Dloc_7E0D |
12648 call p7Dsub_4565 |
12648 call p7Dsub_4565 |
12649 ld b, a |
12649 ld b, a |
12650 ld a, (arcInfo) |
12650 ld a, (arcInfo) |
12651 cp b |
12651 cp b |
12652 jr c, p7Dloc_7E0D |
12652 jr c, p7Dloc_7E0D |
12653 jr nz, p7Dloc_7DD3 |
12653 jr nz, p7Dloc_7DD3 |
12654 call p7Dsub_455C |
12654 call p7Dsub_455C |
12655 push hl |
12655 push hl |
12656 ld hl, (iMathPtr5) |
12656 ld hl, (iMathPtr5) |
12657 call CpHLDE |
12657 call CpHLDE |
12658 ex de, hl |
12658 ex de, hl |
12659 pop hl |
12659 pop hl |
12660 jr c, p7Dloc_7E0D |
12660 jr c, p7Dloc_7E0D |
12661 jr p7Dloc_7DD9 |
12661 jr p7Dloc_7DD9 |
12662 ; --------------------------------------------------------------------------- |
12662 ; --------------------------------------------------------------------------- |
12663 |
12663 |
12664 p7Dloc_7DD3: |
12664 p7Dloc_7DD3: |
12665 ld de, (iMathPtr5) |
12665 ld de, (iMathPtr5) |
12666 inc hl |
12666 inc hl |
12667 inc hl |
12667 inc hl |
12668 |
12668 |
12669 p7Dloc_7DD9: |
12669 p7Dloc_7DD9: |
12670 ld a, (arcInfo) |
12670 ld a, (arcInfo) |
12671 ld b, 0 |
12671 ld b, 0 |
12672 ex de, hl |
12672 ex de, hl |
12673 add hl, bc |
12673 add hl, bc |
12674 call Page0Call_23FC |
12674 call Page0Call_23FC |
12675 jr nc, p7Dloc_7DE6 |
12675 jr nc, p7Dloc_7DE6 |
12676 inc a |
12676 inc a |
12677 |
12677 |
12678 p7Dloc_7DE6: |
12678 p7Dloc_7DE6: |
12679 ld b, a |
12679 ld b, a |
12680 ex de, hl |
12680 ex de, hl |
12681 call p7Dsub_4565 |
12681 call p7Dsub_4565 |
12682 cp b |
12682 cp b |
12683 jr c, p7Dloc_7E0D |
12683 jr c, p7Dloc_7E0D |
12684 jr nz, p7Dloc_7DFC |
12684 jr nz, p7Dloc_7DFC |
12685 push de |
12685 push de |
12686 call p7Dsub_455C |
12686 call p7Dsub_455C |
12687 pop hl |
12687 pop hl |
12688 dec hl |
12688 dec hl |
12689 call CpHLDE |
12689 call CpHLDE |
12690 ex de, hl |
12690 ex de, hl |
12691 jr nc, p7Dloc_7E0D |
12691 jr nc, p7Dloc_7E0D |
12692 |
12692 |
12693 p7Dloc_7DFC: |
12693 p7Dloc_7DFC: |
12694 ld de, (iMathPtr5) |
12694 ld de, (iMathPtr5) |
12695 ld hl, pagedBuf |
12695 ld hl, pagedBuf |
12696 ld b, 0 |
12696 ld b, 0 |
12697 ld a, (arcInfo) |
12697 ld a, (arcInfo) |
12698 rst 28h |
12698 rst 28h |
12699 ; --------------------------------------------------------------------------- |
12699 ; --------------------------------------------------------------------------- |
12700 .dw 80C9h |
12700 .dw 80C9h |
12701 ; --------------------------------------------------------------------------- |
12701 ; --------------------------------------------------------------------------- |
12702 jr p7Dloc_7E0E |
12702 jr p7Dloc_7E0E |
12703 ; --------------------------------------------------------------------------- |
12703 ; --------------------------------------------------------------------------- |
12704 |
12704 |
12705 p7Dloc_7E0D: |
12705 p7Dloc_7E0D: |
12706 nop |
12706 nop |
12707 |
12707 |
12708 p7Dloc_7E0E: |
12708 p7Dloc_7E0E: |
12709 call relockFlashBack |
12709 call relockFlashBack |
12710 ld (Abackup), a |
12710 ld (Abackup), a |
12711 pop af |
12711 pop af |
12712 jp po, p7Dloc_7E19 |
12712 jp po, p7Dloc_7E19 |
12713 ei |
12713 ei |
12714 |
12714 |
12715 p7Dloc_7E19: |
12715 p7Dloc_7E19: |
12716 ld a, (Abackup) |
12716 ld a, (Abackup) |
12717 ld (iMathPtr5), de |
12717 ld (iMathPtr5), de |
12718 pop hl |
12718 pop hl |
12719 or a |
12719 or a |
12720 sbc hl, de |
12720 sbc hl, de |
12721 jr c, p7Dloc_7E2D |
12721 jr c, p7Dloc_7E2D |
12722 ld a, (arcInfo) |
12722 ld a, (arcInfo) |
12723 inc a |
12723 inc a |
12724 ld (arcInfo), a |
12724 ld (arcInfo), a |
12725 |
12725 |
12726 p7Dloc_7E2D: |
12726 p7Dloc_7E2D: |
12727 pop hl |
12727 pop hl |
12728 pop de |
12728 pop de |
12729 pop bc |
12729 pop bc |
12730 ret |
12730 ret |
12731 ; End of function p7Dsub_7D67 |
12731 ; End of function p7Dsub_7D67 |
12732 |
12732 |
12733 ; --------------------------------------------------------------------------- |
12733 ; --------------------------------------------------------------------------- |
12734 |
12734 |
12735 p7Dloc_7E31: |
12735 p7Dloc_7E31: |
12736 ld a, (hl) |
12736 ld a, (hl) |
12737 inc hl |
12737 inc hl |
12738 push hl |
12738 push hl |
12739 push bc |
12739 push bc |
12740 call p7Dsub_7E40 |
12740 call p7Dsub_7E40 |
12741 pop bc |
12741 pop bc |
12742 pop hl |
12742 pop hl |
12743 dec bc |
12743 dec bc |
12744 ld a, c |
12744 ld a, c |
12745 or b |
12745 or b |
12746 jr nz, p7Dloc_7E31 |
12746 jr nz, p7Dloc_7E31 |
12747 ret |
12747 ret |
12748 |
12748 |
12749 ; =============== S U B R O U T I N E ======================================= |
12749 ; =============== S U B R O U T I N E ======================================= |
12750 |
12750 |
12751 |
12751 |
12752 p7Dsub_7E40: |
12752 p7Dsub_7E40: |
12753 push hl |
12753 push hl |
12754 ld hl, (pagedGetPtr) |
12754 ld hl, (pagedGetPtr) |
12755 ld (hl), a |
12755 ld (hl), a |
12756 inc hl |
12756 inc hl |
12757 ld (pagedGetPtr), hl |
12757 ld (pagedGetPtr), hl |
12758 pop hl |
12758 pop hl |
12759 ld a, (pagedCount) |
12759 ld a, (pagedCount) |
12760 inc a |
12760 inc a |
12761 ld (pagedCount), a |
12761 ld (pagedCount), a |
12762 cp 10h |
12762 cp 10h |
12763 call z, p7Dsub_7D67 |
12763 call z, p7Dsub_7D67 |
12764 ret |
12764 ret |
12765 ; End of function p7Dsub_7E40 |
12765 ; End of function p7Dsub_7E40 |
12766 |
12766 |
12767 ; --------------------------------------------------------------------------- |
12767 ; --------------------------------------------------------------------------- |
12768 |
12768 |
12769 p7Dloc_7E57: |
12769 p7Dloc_7E57: |
12770 dec hl |
12770 dec hl |
12771 dec hl |
12771 dec hl |
12772 ld a, (hl) |
12772 ld a, (hl) |
12773 inc hl |
12773 inc hl |
12774 inc hl |
12774 inc hl |
12775 cp 4 |
12775 cp 4 |
12776 jr c, p7Dloc_7E66 |
12776 jr c, p7Dloc_7E66 |
12777 call DelVarArc |
12777 call DelVarArc |
12778 jp Page0Call_2555 |
12778 jp Page0Call_2555 |
12779 ; --------------------------------------------------------------------------- |
12779 ; --------------------------------------------------------------------------- |
12780 |
12780 |
12781 p7Dloc_7E66: |
12781 p7Dloc_7E66: |
12782 ld a, (OP1+1) |
12782 ld a, (OP1+1) |
12783 cp 24h ; '$' |
12783 cp 24h ; '$' |
12784 jp z, Page0Call_24B5 |
12784 jp z, Page0Call_24B5 |
12785 call Page0Call_2EE9 |
12785 call Page0Call_2EE9 |
12786 jp z, Page0Call_24B5 |
12786 jp z, Page0Call_24B5 |
12787 ld a, (hl) |
12787 ld a, (hl) |
12788 push af |
12788 push af |
12789 and 1Fh |
12789 and 1Fh |
12790 ld (hl), a |
12790 ld (hl), a |
12791 call Page0Call_2ED1 |
12791 call Page0Call_2ED1 |
12792 pop af |
12792 pop af |
12793 call p7Dsub_7CDA |
12793 call p7Dsub_7CDA |
12794 xor a |
12794 xor a |
12795 ld (pagedCount), a |
12795 ld (pagedCount), a |
12796 push hl |
12796 push hl |
12797 ld hl, pagedBuf |
12797 ld hl, pagedBuf |
12798 ld (pagedGetPtr), hl |
12798 ld (pagedGetPtr), hl |
12799 pop hl |
12799 pop hl |
12800 ret |
12800 ret |
12801 |
|
12802 p7Dloc_7E8D: |
12801 p7Dloc_7E8D: |
12803 call Page0Call_2C91 |
12802 call Page0Call_2C91 |
12804 ret |
12803 ret |
12805 |
|
12806 p7Dloc_7E91: |
12804 p7Dloc_7E91: |
12807 call page0_1F38 |
12805 call page0_1F38 |
12808 ret |
12806 ret |
12809 |
12807 |
12810 .org $7FFF |
12808 .org $7FFF |
12811 .db 5Dh ; ] |
12809 .db 5Dh ; ] |