Yie Ar Kung-Fu disassembly ========================== Yie Ar Kung-Fu was converted to the BBC Micro from the Konami arcade game by Peter Johnson, and was published by Imagine Software in 1985. It is a fighting game in which the player must defeat a series of themed opponents. The following disassembly was created by reverse engineering binary images, without access to any source code. It is nevertheless reasonably complete, allowing the technical approaches used to be understood. The author of this disassembly imposes no additional copyright restrictions beyond those already present on the game itself. It is provided for educational purposes only, and it is hoped that the original authors will accept it in the good faith it was intended - as a tribute to their skills. Game-play notes =============== The conversion omits the Club and Tonfun opponents present in the original, and renames Blues to Clone. Feedle throws objects from off-screen. A second Feedle wave follows Clone in each round. On the second and subsequent even rounds, the player starts with less energy. On the third and subsequent rounds, the game is faster. An extra life is given at 30,000, then every 80,000 points. Interesting pokes ================= &1d65 = &ad invulnerability &12b9 = &ad infinite lives Technical notes =============== The main binary is decrypted by a VIA-based routine, written by Kevin Edwards. The disassembly analyses each stage after decryption has taken place. A small BASIC program handles the high score table. Loader disassembly ================== ; Yie-Ar ; FFFF0E00 FFFF8023 0013 &0e00 0d # Start of BASIC program &0e01 00 0a 0a d0 3d 26 45 30 30 0d ; 10PAGE=&E00 &0e0b 00 14 07 d7 22 22 0d ; 20CHAIN"" &0e12 ff # End of BASIC program ; YIE-AR ; FFFF0E00 FFFF8023 1A00 &0e00 0d # Start of BASIC program &0e01 00 14 5a 44 4c 49 43 25 3d 26 34 30 30 3a 44 4c ; 20DLIC%=&400: # palette_colours &0e11 49 54 25 3d 26 34 30 38 3a 44 4c 49 4e 4f 25 3d ; DLIT%=&408: # palette_delays &0e21 26 34 30 46 3a 4f 53 46 58 3d 26 46 46 46 34 3a ; DLINO%=&40F: # palette_offset &0e31 4f 53 56 3d 26 46 46 45 45 3a 4f 53 57 52 3d 26 ; OSFX=&FFF4: # OSBYTE &0e41 46 46 46 31 3a 45 56 45 4e 54 56 3d 26 30 32 32 ; OSV=&FFEE: # OSWRCH &0e51 30 3a 2a 54 56 32 35 35 20 0d ; OSWR=&FFF1: # OSWORD ; EVENTV=&0220: # event_vector ; *TV255 &0e5b 00 15 73 e3 49 25 3d 30 b8 26 32 30 30 88 34 3a ; 21FORI%=0TO&200STEP4: &0e6b 49 25 21 26 35 36 30 30 3d 49 25 21 28 90 2b 26 ; I%!&5600=I%!(PAGE+&200): # Move &1000 - &1203 to &5600 - &5803 &0e7b 32 30 30 29 3a ed 3a e3 49 25 3d 26 31 35 43 30 ; NEXT: &0e8b b8 30 88 2d 34 3a 49 25 21 26 33 30 30 30 3d 49 ; FORI%=&15C0TO0STEP-4: &0e9b 25 21 28 90 2b 26 34 30 30 29 3a ed 3a e3 49 25 ; I%!&3000=I%!(PAGE+&400): # Move &1200 - &27c3 to &3000 - &45c3 &0eab 3d 30 b8 34 3a f3 49 25 3f 44 4c 49 43 25 2c 49 ; NEXT: &0ebb 25 3f 44 4c 49 54 25 3a ed 3a 2a 46 58 32 32 39 ; FORI%=0TO4: &0ecb 2c 31 0d ; READI%?DLIC%,I%?DLIT%: # Initialise palette_colours and palette_delays ; NEXT: ; *FX229,1 # Set ESCAPE to insert ASCII value &0ece 03 21 27 dc 26 38 31 2c 30 2c 26 38 30 2c 31 38 ; 801DATA&81,0, # Set colour 1 to red &0ede 2c 26 38 34 2c 32 39 2c 26 38 30 2c 31 36 2c 26 ; &80,18, # Set colour 1 to black &0eee 46 46 2c 26 46 46 0d ; &84,29, # Set colour 1 to blue ; &80,16, # Set colour 1 to black ; &FF,&FF # (end of list) &0ef5 03 e8 92 eb 34 3a ef 31 39 2c 31 2c 30 3b 30 3b ; 1000MODE4: &0f05 3a d6 26 35 36 33 30 3a e3 49 25 3d 30 b8 31 35 ; VDU19,1,0;0;: # Set colour 1 to black &0f15 3a 49 25 3f 26 32 41 31 3d 30 3a ed 3a ef 35 3a ; CALL&5630: # Call unpack_loading_screen &0f25 ec 31 34 34 2c 34 30 3a f1 22 42 42 43 20 63 6f ; FORI%=0TO15: &0f35 6e 76 65 72 73 69 6f 6e 20 62 79 20 50 45 54 45 ; I%?&2A1=0: # Remove paged ROMs from ROM information table &0f45 52 20 4a 4f 48 4e 53 4f 4e 22 3a ef 34 3a d6 26 ; NEXT: &0f55 35 37 35 42 3a fb 31 32 39 3a fb 30 3a ef 32 38 ; VDU5: # Write text at graphics cursor &0f65 2c 39 2c 32 30 2c 33 30 2c 31 37 2c 31 32 2c 20 ; MOVE144,40: &0f75 31 39 2c 30 2c 33 3b 30 3b 3a 2a 46 58 31 34 2c ; PRINT"BBC conversion by PETER JOHNSON": &0f85 34 0d ; VDU4: # Write text at text cursor ; CALL&575B: # Call initialise_irq2_handler ; COLOUR129: ; COLOUR0: ; VDU28,9,20,30,17, # Define text window x:(&09, &1e), y:(&11, &13) ; 12, # Clear text area ; 19,0,3;0; # Set colour 0 to yellow ; *FX14,4 # Enable v-sync events &0f87 08 02 08 2a 54 56 30 0d ; 2050*TV0 &0f8f 08 0c 13 d0 3d 26 35 33 30 30 3a d7 22 59 49 45 ; 2060PAGE=&5300:CHAIN"YIE0" # Run next stage of loader &0f9f 30 22 0d &0fa2 ff # End of BASIC program ; unused &0fa3 0c 3a 0d ; ... : &0fa6 ff # End of BASIC program &0fa7 3a d7 22 59 4c 4f 41 44 22 0d ; ... :CHAIN"YLOAD" &0fb1 ff # End of BASIC program &0fb2 30 3a d7 22 59 4c 4f 41 44 22 0d ; ... 0:CHAIN"YLOAD" &0fbd ff # End of BASIC program &0fbe 3a 22 0d ; ... :" &0fc1 ff # End of BASIC program &0fc2 3d 20 0d ; ... = &0fc5 08 0c 14 d0 3d 26 35 33 30 30 3a d7 22 59 4c 4f ; 2060PAGE=&5300:CHAIN"YLOAD" &0fd5 41 44 22 0d &0fd9 ff # End of BASIC program ; unused # Source code fragment corresponding to &579a - &57a6 &0fda 33 59 3a 42 45 51 20 72 70 74 3a 42 4d 49 45 78 ; 3Y:BEQ rpt:BMIExit:JSRSet_Timer:JMPExi &0fea 69 74 3a 4a 53 52 53 65 74 5f 54 69 6d 65 72 3a &0ffa 4a 4d 50 45 78 69 # &1000 - &11ff is moved to &5600 - &57ff at line 21 ; unused &5600 a9 00 00 ; unused &5602 56 45 4e 54 56 ; "VENTV" ; unused &5607 00 8a 08 00 00 00 ; unused # &560d - &562f is a copy of &563d - &565f &560d 72 ... &72 &560e a0 01 LDY #&01 &5610 b1 70 LDA (&70),Y &5612 aa TAX &5613 a0 00 LDY #&00 &5615 b1 70 LDA (&70),Y &5617 91 72 STA (&72),Y &5619 48 PHA &561a a5 72 LDA &72 &561c 18 CLC &561d 69 01 ADC #&01 &561f 85 72 STA &72 &5621 a5 73 LDA &73 &5623 69 00 ADC #&00 &5625 85 73 STA &73 &5627 68 PLA &5628 ca DEX &5629 d0 ec BNE &5617 &562b a5 70 LDA &70 &562d 18 CLC &562e 69 02 ADC #&02 ; unpack_loading_screen &5630 a9 30 LDA #&30 ; &3000 = loading_screen_data &5632 85 71 STA &71 ; source_address_high &5634 a9 58 LDA #&58 &5636 85 73 STA &73 ; target_address_high &5638 a9 00 LDA #&00 &563a 85 70 STA &70 ; source_address_low &563c 85 72 STA &72 ; target_address_low ; unpack_loading_screen_loop &563e a0 01 LDY #&01 &5640 b1 70 LDA (&70),Y ; source_address # Get second byte of packed data for run length &5642 aa TAX &5643 a0 00 LDY #&00 &5645 b1 70 LDA (&70),Y ; source_address # Get first byte of packed data for value ; unpack_run_loop &5647 91 72 STA (&72),Y ; target_address &5649 48 PHA &564a a5 72 LDA &72 ; target_address_high &564c 18 CLC &564d 69 01 ADC #&01 &564f 85 72 STA &72 ; target_address_high &5651 a5 73 LDA &73 ; target_address_high &5653 69 00 ADC #&00 &5655 85 73 STA &73 ; target_address_high &5657 68 PLA &5658 ca DEX &5659 d0 ec BNE &5647 ; unpack_run_loop &565b a5 70 LDA &70 ; source_address_low &565d 18 CLC &565e 69 02 ADC #&02 &5660 85 70 STA &70 ; source_address_low &5662 a5 71 LDA &71 ; source_address_high &5664 69 00 ADC #&00 &5666 85 71 STA &71 ; source_address_high &5668 a5 73 LDA &73 ; target_address_high &566a 10 d2 BPL &563e ; unpack_loading_screen_loop &566c 60 RTS ; unused # &566d - &573c is a copy of &5662 - &5731 from YIE3?? &566d 2c 37 2c 38 3a d4 26 33 30 31 2c 38 2c 32 30 30 &567d 2c 33 30 3a d4 26 33 30 32 2c 37 2c 30 2c 35 3a &568d d4 26 33 30 33 2c 37 2c 31 32 2c 35 3a e3 49 25 &569d 3d 30 b8 34 30 30 30 3a ed 3a f5 fd a6 28 2d 39 &56ad 39 29 3a 2a 46 58 31 33 2c 34 0d 08 30 09 2a 46 &56bd 58 31 39 0d 0b b8 09 e5 8d 54 5e 40 0d 27 10 2f &56cd dd f2 42 41 52 53 3a e3 49 25 3d 30 b8 33 3a e6 &56dd 30 2c 49 25 3a ec 49 25 2a 38 2c 30 3a df 49 25 &56ed 2a 38 2c 31 30 32 33 3a ed 3a e1 0d 3a 98 43 dd &56fd f2 44 49 47 49 54 28 58 25 2c 59 25 2c 4e 25 29 &570d 3a f1 8a 58 25 2c 59 25 29 3b 3a e3 4a 25 3d 35 &571d b8 30 88 2d 31 3a ef 28 32 32 39 2b 28 4e 25 81 &572d 31 30 5e 4a 25 29 83 31 30 29 3a ed 3a e1 0d ff ; unused &573d 2b 00 00 8c 20 00 00 00 4d 00 49 25 28 00 03 08 &574d 00 10 27 00 00 28 23 00 00 40 1f 00 00 58 ; initialise_irq2_handler &575b a9 00 LDA #&00 &575d 8d 0f 04 STA &040f ; palette_offset &5760 78 SEI &5761 ad 06 02 LDA &0206 ; irq2_vector_low &5764 85 80 STA &80 ; previous_irq2_vector_low &5766 ad 07 02 LDA &0207 ; irq2_vector_high &5769 85 81 STA &81 ; previous_irq2_vector_high &576b a9 81 LDA #&81 ; &5781 = irq2_handler &576d 8d 06 02 STA &0206 ; irq2_vector_low &5770 a9 57 LDA #&57 &5772 8d 07 02 STA &0207 ; irq2_vector_high &5775 58 CLI &5776 a9 cc LDA #&cc ; &57cc = event_handler &5778 8d 20 02 STA &0220 ; event_vector_low &577b a9 57 LDA #&57 &577d 8d 21 02 STA &0221 ; event_vector_high &5780 60 RTS ; irq2_handler &5781 48 PHA ; tmp_a &5782 8a TXA &5783 48 PHA ; tmp_x &5784 98 TYA &5785 48 PHA ; tmp_y &5786 ad 6d fe LDA &fe6d ; User VIA interrupt flag register &5789 29 20 AND #&20 # &20 set if Timer 2 has timed out &578b f0 1f BEQ &57ac ; leave_handler &578d ac 0f 04 LDY &040f ; palette_offset ; set_colours_loop &5790 b9 00 04 LDA &0400,Y ; palette_colours &5793 20 e9 57 JSR &57e9 ; set_colour &5796 c8 INY &5797 ee 0f 04 INC &040f ; palette_offset &579a b9 08 04 LDA &0408,Y ; palette_delays &579d f0 f1 BEQ &5790 ; set_colours_loop &579f 30 06 BMI &57a7 ; disable_interrupt_and_leave_handler &57a1 20 b4 57 JSR &57b4 ; initialise_timer &57a4 4c ac 57 JMP &57ac ; leave_handler ; disable_interrupt_and_leave_handler &57a7 a9 20 LDA #&20 # Disable User VIA Timer 2 interrupts &57a9 8d 6e fe STA &fe6e ; User VIA interrupt enable register ; leave_handler &57ac 68 PLA ; tmp_y &57ad a8 TAY &57ae 68 PLA ; tmp_x &57af aa TAX &57b0 68 PLA ; tmp_a &57b1 6c 80 00 JMP (&0080) ; previous_irq2_vector ; initialise_timer &57b4 48 PHA ; delay &57b5 a9 df LDA #&df # Set User VIA Timer 2 to one-shot mode &57b7 2d 6b fe AND &fe6b ; User VIA auxiliary control register &57ba 8d 6b fe STA &fe6b ; User VIA auxiliary control register &57bd a9 a0 LDA #&a0 # Enable User VIA Timer 2 interrupts &57bf 8d 6e fe STA &fe6e ; User VIA interrupt enable register &57c2 a9 b0 LDA #&b0 &57c4 8d 68 fe STA &fe68 ; User VIA timer 2 counter LSB &57c7 68 PLA ; delay &57c8 8d 69 fe STA &fe69 ; User VIA timer 2 counter MSB &57cb 60 RTS ; event_handler &57cc c9 04 CMP #&04 &57ce d0 18 BNE &57e8 ; leave ; is_vsync_event &57d0 a9 00 LDA #&00 &57d2 8d 0f 04 STA &040f ; palette_offset ; set_initial_colours_loop &57d5 ac 0f 04 LDY &040f ; palette_offset &57d8 b9 08 04 LDA &0408,Y ; palette_delays &57db d0 d7 BNE &57b4 ; initialise_timer &57dd b9 00 04 LDA &0400,Y ; palette_colours &57e0 20 e9 57 JSR &57e9 ; set_colour &57e3 ee 0f 04 INC &040f ; palette_offset &57e6 d0 ed BNE &57d5 ; set_initial_colours_loop # Always branches ; leave &57e8 60 RTS ; set_colour &57e9 49 07 EOR #&07 &57eb a2 07 LDX #&07 ; set_colour_loop &57ed 8d 21 fe STA &fe21 ; video ULA palette register &57f0 18 CLC &57f1 69 10 ADC #&10 &57f3 ca DEX &57f4 10 f7 BPL &57ed ; set_colour_loop &57f6 60 RTS ; unused &57f7 fe 18 69 10 ca ae 20 05 00 # &1200 - &27c3 is moved to &3000 - &45c3 at line 21 ; loading_screen_data &3000 00 00 00 6a 1c 01 3e 01 7e 04 00 02 01 06 00 01 &3010 e0 01 f0 02 f8 04 00 04 0c 01 1e 01 1f 01 3f 01 &3020 00 1b 01 02 03 02 07 01 30 01 7e 01 fe 02 fc 01 &3030 ff 03 00 1b 01 05 00 01 e0 01 f8 04 f0 02 18 01 &3040 1c 01 3c 01 3e 02 7e 03 0e 01 3f 04 7e 03 00 01 &3050 81 02 03 05 c0 01 f0 03 f1 02 e1 02 00 01 e0 01 &3060 fc 06 03 01 07 06 0f 01 00 01 c0 01 e0 03 c0 01 &3070 c1 02 00 01 07 01 1f 01 3f 01 7f 01 ff 03 00 01 &3080 c0 01 e0 01 f0 01 f8 01 fc 03 00 11 03 01 07 03 &3090 03 01 01 02 03 01 ff 05 f8 03 fc 03 f8 01 00 02 &30a0 01 01 38 01 3e 01 7f 02 fe 01 fc 02 f8 01 00 01 &30b0 06 01 0f 05 1f 01 00 02 80 01 c0 02 80 03 00 48 &30c0 7e 04 7f 03 3f 01 03 04 07 02 8f 01 df 01 f8 03 &30d0 f0 02 f1 01 e3 02 3f 01 3e 01 1e 01 04 01 00 01 &30e0 80 01 e0 01 f0 01 00 07 03 01 00 07 f0 01 00 08 &30f0 07 01 0f 02 1f 02 3f 02 7f 01 ff 04 df 02 9f 01 &3100 8f 01 00 02 80 05 c0 01 00 06 f0 01 f8 01 00 08 &3110 01 01 03 05 07 02 f0 02 f1 02 e3 01 e7 01 ef 01 &3120 ff 01 fc 03 f8 01 f9 01 f1 02 e3 01 7c 01 fc 03 &3130 f8 03 f0 01 07 06 0f 02 e1 01 e3 02 c3 02 c7 03 &3140 fc 07 fe 01 0f 02 1f 04 3f 02 c3 01 c7 01 8f 03 &3150 1f 03 f8 01 f0 01 e0 01 c0 02 80 03 fc 01 78 01 &3160 00 0c 3e 01 7f 01 00 04 01 01 03 01 0f 01 3e 01 &3170 01 03 03 04 1f 01 f0 06 e0 01 ff 01 01 02 03 03 &3180 07 03 f8 01 f0 04 e0 03 1f 03 3f 02 3e 01 7e 02 &3190 80 01 00 4f 3f 01 1f 02 0f 01 07 01 03 01 01 02 &31a0 ff 06 fe 02 c7 02 87 01 8f 01 0f 01 1f 02 3f 01 &31b0 f8 02 f0 01 f1 01 e3 01 e7 01 c7 01 cf 01 1f 01 &31c0 7f 01 ff 03 fc 01 f0 01 f3 01 fc 01 fe 04 7e 01 &31d0 fc 02 00 05 01 01 03 01 07 01 7f 02 fe 02 ff 04 &31e0 0f 03 ff 05 c0 01 c1 03 c3 02 c7 02 fb 01 ff 05 &31f0 fc 01 f8 01 c0 01 e0 02 c0 02 80 01 00 02 07 01 &3200 0f 04 1f 03 ff 03 fe 03 bf 02 c3 01 83 01 07 03 &3210 0f 03 f0 02 e0 05 c0 01 0f 02 1f 02 3f 02 7f 01 &3220 7e 01 c7 01 8f 03 1f 03 3f 01 fe 03 be 01 bf 02 &3230 9f 01 1f 01 3f 01 7e 03 fe 01 fc 03 3f 02 3e 01 &3240 7e 03 7c 02 0f 01 1f 01 3f 03 1f 01 0f 02 f0 01 &3250 f9 02 fb 01 f3 01 87 01 86 01 84 01 ff 04 cf 01 &3260 83 01 00 02 fe 01 fc 02 f8 01 f0 01 c0 01 00 02 &3270 3f 03 1f 01 0f 02 1f 02 ff 04 fe 01 80 03 87 02 &3280 8f 01 0f 02 1f 03 c0 04 81 03 83 01 7e 01 fc 03 &3290 f8 03 f0 01 00 50 03 01 07 02 0f 01 1f 02 3f 01 &32a0 7f 01 fc 01 f8 02 f0 01 e0 02 c1 01 81 01 3f 02 &32b0 7f 02 ff 01 fe 03 8f 02 1f 05 0f 01 ff 02 9f 01 &32c0 8f 01 80 02 c1 01 ff 01 f8 01 f0 01 e0 01 80 01 &32d0 00 02 80 01 c0 01 07 03 03 01 07 02 0f 02 ff 02 &32e0 f0 04 e0 02 ff 01 0f 01 1f 04 3f 02 c7 01 8f 04 &32f0 9f 01 1f 01 3f 01 f0 01 e0 01 c0 02 80 03 00 09 &3300 3f 03 7e 03 fc 02 1f 04 0f 03 07 01 0f 02 8f 03 &3310 c7 02 e7 01 c0 02 c1 02 c3 01 e7 01 ff 02 fe 01 &3320 fc 02 f8 02 f0 01 e0 02 3f 02 3e 01 7e 03 fc 02 &3330 1f 03 0f 03 07 02 fc 01 f8 03 f0 03 e0 01 7c 03 &3340 7e 01 7f 02 3f 02 0f 01 1f 02 3f 01 7e 01 fe 01 &3350 fc 02 80 02 00 16 1f 02 3f 03 3e 01 7e 01 fe 01 &3360 00 08 1f 06 0f 02 83 01 87 02 df 01 ff 04 f0 02 &3370 e0 02 c0 03 80 01 00 50 ff 02 fe 01 3c 01 00 04 &3380 01 02 00 06 fc 02 f8 01 38 01 00 04 0f 01 07 01 &3390 01 01 00 05 ff 03 7e 01 00 04 c0 02 80 01 00 05 &33a0 0f 01 07 01 03 01 00 05 e0 02 c0 02 00 04 3f 02 &33b0 1f 01 06 01 00 04 3f 02 1e 01 06 01 00 14 fc 01 &33c0 f8 02 70 01 00 04 07 03 03 01 00 04 e3 02 c1 01 &33d0 00 05 ff 03 7c 01 00 04 c1 01 81 01 00 06 fc 02 &33e0 f8 01 38 01 00 04 07 04 00 04 e0 02 c0 02 00 04 &33f0 1f 02 0f 01 07 01 00 04 f8 01 f0 01 e0 01 80 01 &3400 00 1c fe 01 fc 01 3c 01 18 01 00 0c 07 02 03 01 &3410 00 05 ff 02 fe 01 f8 01 00 04 9d 01 09 03 00 04 &3420 b0 01 50 01 10 02 00 a2 01 01 0c 01 00 04 3f 01 &3430 67 01 3f 01 ff 01 00 03 5b 01 3f 01 df 01 ff 02 &3440 00 03 80 02 60 01 bc 01 f4 01 00 fd 0e 01 11 01 &3450 38 01 00 07 80 01 00 18 01 02 03 01 0f 01 06 01 &3460 0f 01 1b 01 17 01 7f 01 ff 04 7f 01 ff 05 fd 01 &3470 ff 01 fd 02 fa 01 f4 01 e8 01 fc 01 fe 01 ea 01 &3480 34 01 02 01 03 01 00 06 f0 01 90 01 00 f0 46 01 &3490 a1 01 de 01 a3 01 de 01 63 01 5e 01 63 01 40 01 &34a0 20 01 10 02 18 01 16 01 01 01 00 07 c0 01 30 01 &34b0 00 10 17 01 0b 01 17 01 07 01 33 01 17 01 07 01 &34c0 0f 01 ff 02 fc 01 f9 02 e0 01 f3 01 a0 01 ba 01 &34d0 6a 01 48 01 80 01 00 02 f0 01 00 01 21 02 40 02 &34e0 90 01 b8 01 28 01 70 01 90 02 b0 01 e0 02 40 03 &34f0 00 38 40 01 00 02 20 02 30 01 58 01 6c 01 00 05 &3500 03 01 06 01 1e 01 00 03 80 01 00 0b 02 01 00 05 &3510 40 01 00 92 3e 01 15 01 0f 01 00 06 20 01 e0 01 &3520 1d 01 06 01 01 01 00 02 0e 01 01 01 00 02 80 01 &3530 50 01 e8 01 35 01 00 01 c0 01 30 01 0e 01 01 01 &3540 00 07 c0 01 38 01 07 01 00 01 03 01 00 02 01 02 &3550 00 01 e0 01 1f 01 20 01 f0 02 38 01 58 01 8c 01 &3560 7a 01 f5 01 f0 01 d8 01 30 01 00 03 01 01 00 06 &3570 20 01 00 02 40 02 7e 01 41 01 40 03 80 01 00 03 &3580 e0 01 18 01 06 01 03 01 00 08 c0 01 00 19 24 01 &3590 00 01 03 02 01 01 00 04 01 01 02 01 cd 01 ba 01 &35a0 d5 01 aa 01 d7 01 aa 01 55 01 aa 01 55 01 aa 01 &35b0 55 01 aa 01 f6 01 aa 01 56 01 ab 01 55 01 aa 01 &35c0 55 01 ea 01 00 03 81 01 fe 01 ab 01 57 01 aa 01 &35d0 00 01 18 01 70 01 e0 01 c0 01 80 01 00 aa 0e 01 &35e0 03 01 01 01 00 05 80 01 50 01 a0 01 75 01 1a 01 &35f0 07 01 01 01 00 04 40 01 80 01 50 01 aa 01 75 01 &3600 00 07 50 01 0a 01 15 01 00 01 05 01 00 01 01 01 &3610 00 02 80 01 40 01 a0 01 50 01 2e 01 51 01 00 02 &3620 18 01 71 01 c1 01 02 01 04 01 f8 01 00 02 80 01 &3630 00 06 02 01 00 08 40 01 60 01 30 01 10 01 18 01 &3640 08 03 00 1f 01 01 d5 01 6a 01 55 01 6a 01 55 01 &3650 ea 01 d5 01 af 01 55 01 ab 01 55 01 ab 01 56 01 &3660 ac 01 58 01 a0 01 95 01 0a 01 1d 01 16 01 0b 01 &3670 05 01 03 01 46 01 56 01 ac 01 54 01 ac 01 56 01 &3680 ab 01 55 01 ab 01 00 05 80 01 68 01 e0 01 00 b8 &3690 0e 01 01 01 00 06 a8 01 f5 01 1c 01 03 01 00 05 &36a0 40 01 80 01 54 01 c8 01 34 01 18 01 14 01 00 0b &36b0 40 03 60 01 20 01 02 01 06 01 02 01 05 01 03 01 &36c0 15 01 0b 01 57 01 00 05 80 02 40 01 04 04 08 02 &36d0 09 01 0f 01 00 05 0f 01 ff 02 00 03 07 01 ff 04 &36e0 00 01 03 01 3f 01 ff 05 1d 01 ff 01 fc 04 f8 01 &36f0 f9 01 f0 01 00 04 01 01 00 01 55 01 00 01 05 01 &3700 02 01 05 01 00 01 45 01 41 01 42 01 05 01 4a 01 &3710 b5 01 6a 01 d5 01 aa 01 55 01 aa 01 57 01 a8 01 &3720 58 01 b0 01 50 01 b0 01 50 01 a8 01 00 d0 0c 01 &3730 0a 01 07 01 0e 01 1b 01 34 01 68 01 50 01 00 02 &3740 e0 01 15 01 8a 01 8d 01 1f 01 01 01 20 01 35 01 &3750 2a 01 35 01 af 01 56 01 ac 01 f8 01 b8 01 70 01 &3760 c0 01 80 01 00 08 02 01 01 01 02 01 01 01 3f 01 &3770 1f 01 bf 01 5f 01 ff 01 7f 01 ff 1a fa 01 fd 01 &3780 fb 01 fc 01 fa 02 fc 01 f8 01 ab 01 fe 01 05 01 &3790 0a 01 05 01 06 01 05 01 06 01 e5 01 ba 01 55 01 &37a0 aa 01 55 01 ab 01 5c 01 b0 01 55 01 aa 01 55 01 &37b0 aa 01 55 01 eb 01 77 01 0a 01 54 01 ab 01 55 01 &37c0 fd 01 83 01 00 05 80 01 40 01 a0 01 04 01 20 01 &37d0 00 b9 03 01 0f 01 1f 01 3f 01 7f 03 3f 01 ff 08 &37e0 e8 01 f0 01 fa 01 ff 05 00 02 80 01 00 01 aa 01 &37f0 f5 01 fe 01 ff 01 08 01 00 04 40 01 a8 01 f5 01 &3800 00 02 02 01 01 01 2a 01 15 01 af 01 7f 01 2b 01 &3810 17 01 af 01 7f 01 ff 1a f8 01 e0 01 ff 02 fe 01 &3820 f0 01 c0 01 00 01 03 01 0c 01 e0 01 80 01 00 03 &3830 80 01 00 02 05 01 0b 01 0e 01 04 01 00 01 10 01 &3840 00 02 c0 01 00 07 0e 01 06 01 02 02 00 01 02 01 &3850 00 ca 3f 01 1f 01 0f 01 07 01 03 01 01 01 00 02 &3860 ff 07 3f 01 ff 09 e3 01 c1 01 e1 01 d0 01 a0 01 &3870 40 01 00 01 ff 04 7f 02 3f 02 ff 14 fe 01 f8 01 &3880 c0 01 00 01 ff 01 fc 01 f0 01 80 01 00 02 01 01 &3890 06 01 00 02 03 01 04 01 18 01 60 01 80 01 00 01 &38a0 30 01 c0 01 00 01 01 01 02 01 0c 01 10 01 60 01 &38b0 00 02 40 01 80 01 00 ec 1f 01 07 01 03 01 01 01 &38c0 00 04 ff 04 7f 01 1f 01 0f 01 01 01 80 01 81 01 &38d0 c0 01 c5 01 e0 01 f1 01 fc 01 ff 01 1f 01 5f 01 &38e0 1f 01 4f 01 af 01 57 01 a3 01 51 01 ff 03 f8 01 &38f0 c0 01 80 01 00 01 80 01 fc 01 e0 01 00 0e 18 01 &3900 20 01 00 04 01 01 06 01 00 01 03 01 04 01 18 01 &3910 20 01 c0 01 00 02 80 01 00 00 00 07 39 01 00 08 &3920 c0 01 40 01 20 01 11 01 0e 01 00 02 80 04 00 00 &3930 00 00 00 00 00 00 00 00 00 00 00 12 01 01 06 01 &3940 00 06 c0 01 30 01 00 05 01 01 0f 01 30 01 00 03 &3950 1e 01 77 01 c0 01 e3 01 70 01 00 04 80 01 60 01 &3960 38 01 1f 01 00 00 00 17 03 01 0c 01 0e 01 0f 01 &3970 07 02 1c 01 fe 01 80 01 0d 01 1f 01 fc 01 f0 02 &3980 7c 01 0f 01 03 01 c0 01 c1 01 f0 01 3c 01 0f 01 &3990 03 01 00 01 80 01 1c 01 87 01 61 01 18 01 06 01 &39a0 c1 01 f0 01 38 01 73 01 19 01 c1 01 73 01 1e 01 &39b0 9d 01 fb 01 e7 01 c0 01 d0 01 b0 01 70 01 e0 03 &39c0 c0 01 00 33 f8 02 f9 01 fb 01 ff 01 00 01 1f 01 &39d0 3f 01 7e 01 fc 01 f8 01 f0 01 e3 01 00 01 80 01 &39e0 00 05 e1 01 00 07 e1 01 00 07 ef 01 00 07 07 01 &39f0 00 07 c3 01 00 07 ce 01 00 07 3c 01 00 01 38 01 &3a00 7c 03 38 01 00 01 7c 01 00 7d 01 01 0f 01 3b 01 &3a10 00 02 03 01 0f 01 70 01 c0 01 80 01 c0 01 1e 01 &3a20 7c 01 fe 01 0f 01 03 01 00 02 18 01 00 01 01 01 &3a30 00 02 c0 01 f0 01 3c 01 0f 01 00 01 80 01 e0 01 &3a40 38 01 0e 01 03 01 00 02 e0 01 38 01 0e 01 03 01 &3a50 01 01 80 01 00 01 06 01 0f 01 07 02 9c 01 fb 01 &3a60 7f 01 1f 01 0f 01 df 01 bf 01 7e 01 fc 01 f8 01 &3a70 f0 01 e0 01 c0 01 80 01 00 37 ff 06 fb 01 f9 01 &3a80 c3 01 83 01 03 01 83 01 c3 01 e3 01 f3 01 ff 01 &3a90 e7 01 ef 02 ff 01 fe 03 ff 01 f9 01 fd 02 3f 01 &3aa0 1f 03 3f 01 ff 03 f3 01 e3 04 9f 01 ff 01 fc 01 &3ab0 c0 01 c7 01 df 01 ff 01 fc 01 f3 01 fb 01 7b 01 &3ac0 fb 03 7b 02 df 01 ff 02 ef 01 c7 04 7e 01 ff 02 &3ad0 df 01 8f 04 7c 06 7d 02 00 04 70 01 88 01 64 01 &3ae0 54 01 00 43 01 01 03 01 07 01 05 01 0e 01 00 01 &3af0 07 01 78 01 c0 01 80 02 c0 01 f8 01 00 01 f8 01 &3b00 07 01 01 01 00 02 01 01 07 01 00 03 c0 01 e0 03 &3b10 a3 01 00 04 07 01 18 01 f0 01 e0 01 01 01 07 01 &3b20 3c 01 f0 02 00 03 e0 02 00 06 e0 01 38 01 0e 01 &3b30 03 01 00 01 c0 01 f0 01 38 01 1e 01 07 01 01 01 &3b40 80 01 e0 01 30 01 1c 01 07 01 03 01 80 01 e0 01 &3b50 78 01 1c 01 00 03 c0 01 f0 01 3e 01 0f 01 03 01 &3b60 01 01 0b 01 0f 02 30 01 e0 01 ff 02 c0 01 bf 01 &3b70 7f 01 0d 02 7b 01 e7 01 9f 01 7e 01 fe 02 80 01 &3b80 00 3f f8 04 00 04 ff 01 7f 01 3f 01 0f 01 00 04 &3b90 ef 02 c7 01 81 01 00 04 fd 02 f9 01 e1 01 00 04 &3ba0 e3 04 00 04 fe 01 ff 01 df 01 cf 01 00 04 fb 03 &3bb0 7b 01 00 04 c7 04 00 04 8f 04 00 04 7d 02 7c 02 &3bc0 00 04 64 01 54 01 88 01 70 01 00 25 ff 02 00 01 &3bd0 ff 02 00 01 ff 01 00 01 ff 02 00 01 ff 02 00 01 &3be0 ff 01 00 01 ff 02 00 01 ff 02 00 01 ff 01 00 01 &3bf0 ff 02 00 01 ff 02 00 01 ff 01 0f 01 cf 01 df 01 &3c00 1f 01 df 02 0f 01 ef 01 3f 01 c7 01 f8 01 ff 03 &3c10 fe 03 f9 01 07 01 fe 01 fc 01 f8 02 7c 01 7f 01 &3c20 f8 01 c0 01 00 05 f0 01 7c 01 0f 01 03 01 01 01 &3c30 00 06 80 01 e0 01 78 01 1e 01 07 01 30 01 38 01 &3c40 1c 01 07 01 01 01 00 03 0e 01 03 01 00 02 c0 01 &3c50 70 01 18 01 0e 01 01 01 80 01 c0 01 70 01 1c 01 &3c60 06 01 03 01 01 01 c0 01 70 01 1d 01 0f 01 07 02 &3c70 8e 01 fd 01 1c 01 3b 01 f7 01 ef 01 9f 01 7f 01 &3c80 ff 06 f0 01 e7 01 c0 01 9f 01 fc 01 f9 01 e3 01 &3c90 00 01 7f 01 ff 01 00 01 ff 01 00 01 ff 02 00 01 &3ca0 ff 02 00 01 ff 01 00 01 ff 02 00 01 ff 02 00 01 &3cb0 ff 01 00 01 ff 01 83 01 00 01 ff 01 00 02 ff 01 &3cc0 00 01 ff 01 f8 01 00 01 ff 01 f0 01 00 01 ff 01 &3cd0 00 01 ff 01 3f 01 00 01 ff 01 00 02 ff 01 00 01 &3ce0 ff 02 00 01 ff 01 f8 01 00 01 ff 01 00 01 ff 02 &3cf0 00 01 ff 01 01 01 00 01 ff 01 00 01 ff 02 00 01 &3d00 ff 01 fe 01 00 01 ff 01 00 01 ff 02 00 01 ff 01 &3d10 00 02 ff 01 00 01 ff 02 00 01 ff 01 7f 01 00 01 &3d20 ff 01 00 01 ff 02 00 01 ff 01 80 01 00 01 ff 01 &3d30 00 01 ff 02 00 01 ff 01 06 01 00 01 ff 01 00 01 &3d40 ff 02 00 01 ff 01 00 02 ff 01 00 01 ff 02 00 01 &3d50 ff 01 81 01 00 01 ff 01 00 01 ff 02 00 01 ff 01 &3d60 f0 01 00 01 ff 01 00 01 ff 02 00 01 ff 01 03 01 &3d70 00 01 ff 01 00 01 ff 02 00 01 ff 02 00 01 ff 01 &3d80 00 01 ff 02 00 01 ff 02 00 01 ff 01 00 01 ff 02 &3d90 00 01 ff 02 00 01 ff 01 00 01 ff 02 00 01 ff 02 &3da0 00 01 ff 01 00 01 ff 02 00 01 ff 02 00 01 ff 01 &3db0 00 01 ff 02 00 01 ff 02 00 01 ff 01 00 01 ff 02 &3dc0 00 01 ff 02 00 01 ff 02 00 01 ff 02 00 01 ff 02 &3dd0 00 01 ff 01 00 01 ff 02 00 01 ff 02 00 01 ff 01 &3de0 00 01 ff 02 00 01 ff 02 00 01 ff 01 00 01 ff 02 &3df0 00 01 ff 02 00 01 f7 01 03 01 fc 01 ff 01 00 01 &3e00 ff 02 00 01 ff 03 3f 01 07 01 f7 02 07 01 9f 01 &3e10 e7 01 f9 01 fe 01 ff 04 00 01 c0 01 f0 01 fc 01 &3e20 3e 01 cf 01 f3 01 fd 01 00 05 80 01 e0 01 f8 01 &3e30 03 01 00 07 c0 01 f0 01 3c 01 1e 01 07 01 01 01 &3e40 00 02 03 01 00 03 80 01 e0 01 70 01 3c 01 80 01 &3e50 c0 01 71 01 1f 01 1e 01 1c 01 3b 01 f7 01 f3 01 &3e60 e7 01 df 01 bf 01 7f 01 ff 02 fe 02 fc 01 f9 01 &3e70 f3 01 e0 01 cf 01 9f 01 00 01 3f 01 00 01 ff 02 &3e80 00 01 ff 02 00 01 ff 01 00 01 ff 01 fc 01 00 01 &3e90 ff 01 f8 01 00 01 ff 01 00 01 ff 01 18 01 00 01 &3ea0 ff 01 30 01 00 01 fe 01 00 01 ff 01 3e 01 00 01 &3eb0 ff 01 7f 01 00 01 0f 01 00 01 ff 01 0f 01 00 01 &3ec0 ff 01 01 01 00 01 e0 01 00 01 ff 01 c1 01 00 01 &3ed0 ff 01 83 01 00 01 e0 01 00 01 ff 01 e0 01 00 01 &3ee0 ff 01 c1 01 00 01 60 01 00 01 ff 01 c1 01 00 01 &3ef0 ff 01 e0 01 00 01 e0 01 00 01 ff 02 00 01 ff 01 &3f00 03 01 00 01 fc 01 00 01 ff 01 f8 01 00 01 ff 01 &3f10 f0 01 00 01 1e 01 00 01 ff 01 3c 01 00 01 ff 01 &3f20 78 01 00 01 0c 01 00 01 ff 01 18 01 00 01 ff 01 &3f30 3c 01 00 01 1e 01 00 01 ff 01 3c 01 00 01 ff 01 &3f40 08 01 00 01 0c 01 00 01 ff 01 18 01 00 01 ff 01 &3f50 30 01 00 01 18 01 00 01 ff 01 30 01 00 01 ff 01 &3f60 61 01 00 01 60 01 00 01 ff 01 c1 01 00 01 ff 01 &3f70 83 01 00 01 c1 01 00 01 ff 01 83 01 00 01 ff 01 &3f80 c0 01 00 01 e1 01 00 01 ff 02 00 01 ff 01 07 01 &3f90 00 01 ff 01 00 01 ff 02 00 01 ff 02 00 01 ff 01 &3fa0 00 01 ff 02 00 01 ff 02 00 01 ff 01 00 01 ff 02 &3fb0 00 01 ff 02 00 01 ff 01 00 01 ff 02 00 01 ff 02 &3fc0 00 01 ff 01 00 01 ff 02 00 01 ff 02 00 01 ff 01 &3fd0 00 01 ff 02 00 01 ff 02 00 01 ff 01 00 01 ff 02 &3fe0 00 01 ff 02 00 01 ff 02 00 01 ff 02 00 01 ff 04 &3ff0 00 01 ff 02 00 01 ff 04 00 01 ff 02 00 01 ff 04 &4000 00 01 ff 02 00 01 ff 04 00 01 ff 02 00 01 ff 02 &4010 f9 01 fc 01 00 01 ff 02 00 01 ff 04 3f 01 cf 01 &4020 e7 01 01 01 fc 01 ff 01 fe 01 ff 05 7f 01 1f 01 &4030 7e 01 9f 01 e7 01 f9 01 fe 01 ff 03 00 02 c0 01 &4040 f0 01 fc 01 3e 01 cf 01 f3 01 00 06 81 01 ff 01 &4050 1f 01 0f 02 1e 01 1d 01 73 01 e7 01 df 01 ef 01 &4060 df 01 7f 01 ff 03 fe 01 fc 02 f9 01 f0 01 e7 01 &4070 cf 01 80 01 7f 01 ff 03 00 01 ff 02 00 01 ff 01 &4080 fc 01 ff 02 00 01 ff 01 00 02 ff 01 1c 01 ff 02 &4090 00 01 ff 01 0c 01 00 01 ff 01 18 01 ff 01 00 02 &40a0 ff 01 1f 01 00 01 ff 01 0f 01 ff 01 f8 01 00 01 &40b0 ff 01 f0 01 00 01 ff 01 e0 01 ff 01 3f 01 00 01 &40c0 ff 01 0f 01 00 01 ff 01 fe 01 ff 01 83 01 00 01 &40d0 ff 01 00 02 ff 01 0e 01 ff 02 00 01 ff 01 0f 01 &40e0 00 01 ff 01 06 01 ff 02 00 01 ff 01 80 01 00 01 &40f0 ff 01 0e 01 ff 02 00 01 ff 01 1f 01 00 01 ff 01 &4100 0f 01 ff 02 00 01 ff 01 f8 01 00 01 ff 01 c1 01 &4110 ff 02 00 01 ff 01 00 02 ff 01 e0 01 ff 02 00 01 &4120 ff 01 78 01 00 01 ff 01 c1 01 ff 02 00 01 ff 01 &4130 00 02 ff 01 e0 01 ff 02 00 01 ff 01 60 01 00 01 &4140 ff 01 c1 01 ff 02 00 01 ff 01 08 01 00 01 ff 01 &4150 86 01 ff 02 00 01 ff 01 1f 01 00 01 ff 01 0c 01 &4160 ff 02 00 01 ff 01 00 02 ff 01 1e 01 ff 02 00 01 &4170 ff 01 3f 01 00 01 ff 01 1f 01 ff 02 00 01 ff 02 &4180 00 01 ff 04 00 01 ff 02 00 01 ff 04 00 01 ff 02 &4190 00 01 ff 04 00 01 ff 02 00 01 ff 04 00 01 ff 02 &41a0 00 01 ff 04 00 01 ff 02 00 01 ff 04 00 01 ff 02 &41b0 00 01 ff 02 00 01 ff 02 00 01 ff 02 00 01 ff 01 &41c0 00 01 ff 02 00 01 ff 02 00 01 ff 01 00 01 ff 02 &41d0 00 01 ff 02 00 01 ff 01 00 01 ff 02 00 01 ff 02 &41e0 00 01 ff 01 00 01 ff 02 00 01 ff 02 00 01 ff 01 &41f0 00 01 ff 02 00 01 ff 02 00 01 ff 01 00 01 ff 02 &4200 00 01 ff 02 00 01 ff 01 0f 01 f3 01 fc 01 00 01 &4210 ff 02 00 01 ff 04 3f 01 cf 01 e7 01 01 01 fe 01 &4220 fd 01 fe 01 ff 05 7f 01 ff 01 7e 01 9c 01 e7 01 &4230 ff 04 bf 01 7f 01 ff 03 fe 01 fc 01 f9 01 f8 01 &4240 f3 01 e7 01 c0 01 9f 01 7f 01 00 01 ff 01 00 01 &4250 ff 02 00 01 ff 02 00 01 ff 01 00 01 ff 01 f8 01 &4260 00 01 ff 01 f0 01 00 01 ff 01 00 01 ff 01 38 01 &4270 00 01 ff 01 00 02 ff 01 00 01 ff 01 30 01 00 01 &4280 ff 01 e0 01 00 01 ff 01 00 01 ff 01 7f 01 00 01 &4290 ff 02 00 01 ff 01 00 01 ff 01 e0 01 00 01 ff 01 &42a0 f0 01 00 01 ff 01 00 01 ff 01 fc 01 00 01 ff 01 &42b0 18 01 00 01 ff 01 00 01 ff 01 1e 01 00 01 ff 01 &42c0 3c 01 00 01 ff 01 00 01 ff 01 0c 01 00 01 ff 01 &42d0 1e 01 00 01 ff 01 00 01 ff 01 1f 01 00 01 ff 01 &42e0 00 02 ff 01 00 01 ff 02 00 01 ff 01 3f 01 00 01 &42f0 ff 01 00 01 ff 01 83 01 00 01 ff 01 c0 01 00 01 &4300 ff 01 00 01 ff 01 c1 01 00 01 ff 01 03 01 00 01 &4310 ff 01 00 01 ff 01 83 01 00 01 ff 01 c0 01 00 01 &4320 ff 01 00 01 ff 01 c1 01 00 01 ff 01 83 01 00 01 &4330 ff 01 00 01 ff 01 83 01 00 01 ff 01 06 01 00 01 &4340 ff 01 00 01 ff 01 0c 01 00 01 ff 01 18 01 00 01 &4350 ff 01 00 01 ff 01 18 01 00 01 ff 01 3c 01 00 01 &4360 ff 01 00 01 ff 01 3f 01 00 01 ff 01 00 02 ff 01 &4370 00 01 ff 02 00 01 ff 01 7f 01 00 01 ff 01 00 01 &4380 ff 02 00 01 ff 02 00 01 ff 01 00 01 ff 02 00 01 &4390 ff 02 00 01 ff 01 00 01 ff 02 00 01 ff 02 00 01 &43a0 ff 01 00 01 ff 02 00 01 ff 02 00 01 ff 01 00 01 &43b0 ff 02 00 01 ff 02 00 01 ff 01 00 01 ff 02 00 01 &43c0 ff 02 00 01 ff 01 00 01 ff 02 00 01 ff 02 00 01 &43d0 ff 02 00 01 ff 02 00 01 ff 01 00 02 ff 01 00 01 &43e0 ff 02 00 01 ff 01 00 02 ff 01 00 01 ff 02 00 01 &43f0 ff 01 00 02 ff 01 00 01 ff 02 00 01 ff 01 00 02 &4400 ff 01 00 01 ff 02 00 01 ff 01 00 02 ff 01 00 01 &4410 ff 02 00 01 ff 01 00 02 ff 01 00 01 ff 02 00 01 &4420 ff 01 00 02 ff 01 00 01 ff 02 00 01 ff 01 00 02 &4430 ff 01 00 01 ff 02 00 01 ff 01 00 02 9f 01 0f 01 &4440 f3 01 fc 01 00 01 ff 01 00 02 ff 04 3e 01 cc 01 &4450 00 02 f3 01 e0 01 cf 01 3f 01 00 01 ff 01 00 02 &4460 ff 01 00 01 ff 02 00 01 ff 01 00 02 ff 01 00 01 &4470 ff 02 00 01 ff 01 00 02 ff 01 00 01 ff 02 00 01 &4480 ff 01 00 02 ff 01 00 01 ff 02 00 01 ff 01 00 02 &4490 ff 01 00 01 ff 02 00 01 ff 01 00 02 ff 01 00 01 &44a0 ff 02 00 01 ff 01 00 02 ff 01 00 01 ff 02 00 01 &44b0 ff 01 00 02 ff 01 00 01 ff 02 00 01 ff 01 00 02 &44c0 ff 01 00 01 ff 02 00 01 ff 01 00 02 ff 01 00 01 &44d0 ff 02 00 01 ff 01 00 02 ff 01 00 01 ff 02 00 01 &44e0 ff 01 00 02 ff 01 00 01 ff 01 fe 01 00 01 ff 01 &44f0 00 02 fe 01 00 01 ff 01 00 02 ff 01 00 02 07 01 &4500 00 01 ff 01 3f 01 00 01 ff 01 00 02 ff 01 00 01 &4510 ff 02 00 01 ff 01 00 02 ff 01 00 01 ff 02 00 01 &4520 ff 01 00 02 ff 01 00 01 ff 02 00 01 ff 01 00 02 &4530 ff 01 00 01 ff 02 00 01 ff 01 00 02 ff 01 00 01 &4540 ff 02 00 01 ff 01 00 02 ff 01 00 01 ff 02 00 01 &4550 ff 01 00 02 ff 01 00 01 ff 02 00 01 ff 01 00 02 &4560 ff 01 00 01 ff 02 00 01 ff 01 00 02 ff 01 00 01 &4570 ff 02 00 01 ff 01 00 02 ff 01 00 01 ff 02 00 01 &4580 ff 01 00 02 ff 01 00 01 ff 02 00 01 ff 01 00 02 &4590 ff 01 00 01 ff 02 00 01 ff 01 00 02 ff 01 00 01 &45a0 ff 02 00 01 ff 01 00 02 ff 01 00 01 ff 02 00 01 &45b0 ff 01 00 00 00 00 00 82 ; unused &45b8 60 07 66 01 00 05 30 02 7c 01 00 05 ; unused &27c4 60 02 7c 01 00 07 3c 01 00 07 6c 01 00 07 18 01 &27d4 00 0d 7c 01 66 02 00 05 7e 01 60 02 00 05 7e 01 &27e4 18 02 00 05 7e 01 60 02 00 05 7c 01 66 02 00 0d &27f4 3e 01 0c 02 00 05 3c 01 66 02 00 05 ; YIE0 ; FFFF5300 FFFF8023 00C6 &5300 0d # Start of BASIC program &5301 00 00 22 f4 22 81 59 49 45 2d 41 52 20 4b 55 4e ; 0REM" YIE-AR KUNG FU (BBC Micro) &5311 47 20 46 55 20 28 42 42 43 20 4d 69 63 72 6f 29 &5321 20 0d &5323 00 01 15 f4 22 82 28 63 29 31 39 38 35 20 4b 6f ; 1REM" (c)1985 Konami &5333 6e 61 6d 69 0d &5338 00 02 19 f4 22 84 49 6d 61 67 69 6e 65 28 31 39 ; 2REM" Imagine(1984) Ltd. &5348 38 34 29 20 4c 74 64 2e 0d &5351 00 03 22 f4 22 83 63 6f 6e 76 65 72 73 69 6f 6e ; 3REM" conversion by PETER JOHNSON &5361 20 62 79 20 50 45 54 45 52 20 4a 4f 48 4e 53 4f &5371 4e 0d &5373 00 05 0b 20 2a 46 58 34 2c 31 0d ; 5 *FX4,1 # Cursor keys return ASCII values &537e 00 06 13 ef 32 33 3b 38 32 30 32 3b 30 3b 30 3b ; 6VDU23;8202;0;0;0; # Disable cursor &538e 30 3b 0d &5391 00 0a 0f 2a 4c 4f 41 44 22 59 49 45 31 22 0d ; 10*LOAD"YIE1" &53a0 00 14 10 2a 4c 4f 41 44 22 59 49 45 32 22 20 0d ; 20*LOAD"YIE2" &53b0 00 1e 15 d0 3d 26 35 32 30 30 3a 2a 52 55 4e 20 ; 30PAGE=&5200:*RUN YIE3 &53c0 59 49 45 33 0d &53c5 ff # End of BASIC program ; YIE3 ; FFFF0DDE FFFF0DDE 0122 ; entry_point &0dde 78 SEI &0ddf a9 40 LDA #&40 # Set User VIA timer 1 to continuous interrupts &0de1 8d 6b fe STA &fe6b ; User VIA auxiliary control register &0de4 a9 d3 LDA #&d3 &0de6 8d 64 fe STA &fe64 ; User VIA timer 1 counter LSB &0de9 8d 65 fe STA &fe65 ; User VIA timer 1 counter MSB &0dec a0 00 LDY #&00 ; decrypt_payload_loop &0dee b9 00 0e LDA &0e00,Y ; payload &0df1 4d 64 fe EOR &fe64 ; User VIA timer 1 counter LSB &0df4 4d 65 fe EOR &fe65 ; User VIA timer 1 counter MSB &0df7 99 00 0e STA &0e00,Y ; payload &0dfa ce 65 fe DEC &fe65 ; User VIA timer 1 counter MSB &0dfd c8 INY &0dfe d0 ee BNE &0dee ; decrypt_payload_loop ; payload # &0e00 - &0eff is decrypted at &0df7 &0e00 58 CLI &0e01 a9 03 LDA #&03 ; Clear memory on next reset &0e03 8d 58 02 STA &0258 ; ESCAPE/BREAK effect &0e06 a9 32 LDA #&32 ; &5732 # &5732 is first byte after end of YIE3?? BASIC &0e08 85 12 STA &12 ; top_address_low &0e0a a9 57 LDA #&57 &0e0c 85 13 STA &13 ; top_address_high &0e0e a9 bd LDA #&bd &0e10 48 PHA ; return address high &0e11 ad 15 80 LDA &8015 ; basic_rom + &15 &0e14 c9 32 CMP #&32 ; "2" &0e16 f0 05 BEQ &0e1d ; is_basic_two ; is_basic_one &0e18 a9 2b LDA #&2b ; &bd2c - 1 # &bd2c is address of RUN in BASIC 1 ROM + 3 &0e1a 48 PHA ; return address low &0e1b d0 03 BNE &0e20 ; push_initial_timer_values # Always branches ; is_basic_two &0e1d a9 13 LDA #&13 ; &bd14 - 1 # &bd14 is address of RUN in BASIC 2 ROM + 3 &0e1f 48 PHA ; return address low ; push_initial_timer_values &0e20 a9 56 LDA #&56 &0e22 48 PHA ; timer high &0e23 a9 45 LDA #&45 &0e25 48 PHA ; timer low &0e26 a2 26 LDX #&26 &0e28 8a TXA ; wipe_0e00_to_0e26_loop &0e29 9d 00 0e STA &0e00,X ; payload # Wipe &0e00 - &0e26 &0e2c ca DEX &0e2d 10 fa BPL &0e29 ; wipe_0e00_to_0e26_loop &0e2f a9 8c LDA #&8c ; Select Tape FS &0e31 a2 0c LDX #&0c ; 1200 baud &0e33 20 f4 ff JSR &fff4 ; OSBYTE &0e36 a2 68 LDX #&68 ; &0e68 = load_yie3_command &0e38 a0 0e LDY #&0e &0e3a 20 f7 ff JSR &fff7 ; OSCLI # *LOAD YIE3?? 5200 &0e3d a9 40 LDA #&40 # Set User VIA timer 1 to continuous interrupts &0e3f 8d 6b fe STA &fe6b ; User VIA auxiliary control register &0e42 a0 00 LDY #&00 &0e44 a2 47 LDX #&47 &0e46 78 SEI &0e47 68 PLA ; timer low &0e48 8d 64 fe STA &fe64 ; User VIA timer 1 counter LSB &0e4b 68 PLA ; timer high &0e4c 8d 65 fe STA &fe65 ; User VIA timer 1 counter MSB ; decrypt_main_binary_loop # Decrypt &1100 - &57ff &0e4f b9 00 11 LDA &1100,Y # actually LDA source_address,Y &0e52 4d 64 fe EOR &fe64 ; User VIA timer 1 counter LSB &0e55 4d 65 fe EOR &fe65 ; User VIA timer 1 counter MSB &0e58 99 00 11 STA &1100,Y # actually STA target_address,Y &0e5b c8 INY &0e5c d0 f1 BNE &0e4f ; decrypt_main_binary_loop &0e5e ee 51 0e INC &0e51 ; source_address_high &0e61 ee 5a 0e INC &0e5a ; target_address_high &0e64 ca DEX &0e65 d0 e8 BNE &0e4f ; decrypt_main_binary_loop &0e67 60 RTS # Leave to BASIC ROM RUN routine, i.e. run YIE3 ; load_yie3_command # Filename has two embedded delete characters &0e68 4c 2e 20 59 49 45 33 7f 7f 20 35 32 30 30 0d ; "L. YIE3.. 5200" ; unused &0e77 50 72 6f 74 65 63 74 69 6f 6e 20 28 63 29 20 4b ; "Protection (c) Kevin Edwards 1985" &0e87 65 76 69 6e 20 45 64 77 61 72 64 73 20 31 39 38 &0e97 35 ; unused # &0e98 - &0eff is a copy of &1598 - &15ff &0e98 00 04 c0 02 80 01 00 05 0f 01 07 01 03 01 00 05 &0ea8 e0 02 c0 02 00 04 3f 02 1f 01 06 01 00 04 3f 02 &0eb8 1e 01 06 01 00 14 fc 01 f8 02 70 01 00 04 07 03 &0ec8 03 01 00 04 e3 02 c1 01 00 05 ff 03 7c 01 00 04 &0ed8 c1 01 81 01 00 06 fc 02 f8 01 38 01 00 04 07 04 &0ee8 00 04 e0 02 c0 02 00 04 1f 02 0f 01 07 01 00 04 &0ef8 f8 01 f0 01 e0 01 80 01 2c Game disassembly ================ ; YIE1 ; FFFF0500 FFFF0500 0800 ; unused &0500 24 04 04 01 00 00 00 00 07 00 00 00 00 36 52 24 &0510 04 04 01 00 00 00 00 07 00 00 00 00 74 5a 00 00 &0520 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &0530 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &0540 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &0550 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &0560 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &0570 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &0580 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &0590 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &05a0 00 00 00 00 9f 00 00 00 00 00 00 00 00 00 00 00 &05b0 00 00 00 00 00 00 00 00 56 00 00 00 00 00 00 00 &05c0 00 00 00 00 00 00 00 00 00 00 00 00 d0 00 00 00 &05d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &05e0 00 00 00 00 00 00 5e 00 00 00 00 00 00 00 00 00 &05f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; unused &0600 00 &0601 45 45 44 4c 45 20 0d ; "EEDLE " &0608 20 0d ; " " &060a 26 31 31 30 30 20 54 4f 20 26 22 ; "&1100 TO &"" &0615 00 00 00 00 00 00 00 00 00 00 00 ; high_score_names &0620 49 4d 41 47 49 4e 45 20 20 0d ; "IMAGINE " &062a 49 4d 41 47 49 4e 45 20 20 0d ; "IMAGINE " &0634 49 4d 41 47 49 4e 45 20 20 0d ; "IMAGINE " &063e 49 4d 41 47 49 4e 45 20 20 0d ; "IMAGINE " &0648 49 4d 41 47 49 4e 45 20 20 0d ; "IMAGINE " &0652 49 4d 41 47 49 4e 45 20 20 0d ; "IMAGINE " &065c 49 4d 41 47 49 4e 45 20 20 0d ; "IMAGINE " &0666 49 4d 41 47 49 4e 45 20 20 0d ; "IMAGINE " ; unused &0670 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; sprite_widths_table ; 0 1 2 3 4 5 6 7 8 9 a b c d e f &0680 04 04 04 06 06 04 06 04 06 04 04 04 04 01 02 02 ; &00 &0690 04 03 04 04 04 03 04 04 04 03 04 04 04 03 04 04 ; &10 &06a0 04 06 04 04 04 06 04 04 07 03 04 05 04 03 06 06 ; &20 &06b0 04 05 05 04 04 04 04 06 02 02 04 04 03 02 03 03 ; &30 ; sprite_heights_table ; 0 1 2 3 4 5 6 7 8 9 a b c d e f &06c0 04 04 04 04 04 04 03 03 04 04 03 02 01 01 01 01 ; &00 &06d0 05 04 05 04 04 05 04 04 05 04 05 04 04 05 04 04 ; &10 &06e0 03 02 03 02 03 02 02 02 02 04 05 04 04 05 03 04 ; &20 &06f0 05 04 05 04 04 05 04 04 01 01 05 05 01 01 01 00 ; &30 ; unused &0700 d7 22 59 22 0d 22 0d 22 0d ; unused # Source code fragment corresponding to &1103 - &1114 &0709 72 74 3a 4c 44 59 23 35 3a 2e 53 43 53 54 4c 50 ; ... rt:LDY#5:.SCSTLP:LDA#0:STASC5%,Y:DEY: &0719 3a 4c 44 41 23 30 3a 53 54 41 53 43 35 25 2c 59 BPLSCSTLP:LDA#3:STALIVES%:STAXTRA% &0729 3a 44 45 59 3a 42 50 4c 53 43 53 54 4c 50 3a 4c &0739 44 41 23 33 3a 53 54 41 4c 49 56 45 53 25 3a 53 &0749 54 41 58 54 52 41 25 0d ; unused # Source code fragment &0751 54 41 58 54 52 41 25 0d ; ... TAXTRA% ... ; unused # Source code fragment &0759 2c 26 32 31 2c 22 20 20 20 46 41 4e 20 22 2c 26 ; ... ,&21," FAN ",&24," SW ... &0769 32 34 2c 22 20 53 57 ; arrow_sprite_addresses_low_table ; 1 2 3 4 5 6 7 8 9 a &0770 10 20 ff 30 60 70 ff 00 40 50 ; unused # Source code fragment &077a 22 20 43 4c 4f 4e ; ... " CLON ... ; opponent_names &0780 20 42 55 43 48 55 20 0d ; " BUCHU " &0788 20 20 53 54 41 52 20 0d ; " STAR " &0790 4e 55 4e 43 48 41 20 0d ; "NUNCHA " &0798 20 20 50 4f 4c 45 20 0d ; " POLE " &07a0 46 45 45 44 4c 45 20 0d ; "FEEDLE " &07a8 20 43 48 41 49 4e 20 0d ; " CHAIN " &07b0 20 20 20 46 41 4e 20 0d ; " FAN " &07b8 20 53 57 4f 52 44 20 0d ; " SWORD " &07c0 20 43 4c 4f 4e 45 20 0d ; " CLONE " &07c8 46 45 45 44 4c 45 20 0d ; "FEEDLE " ; unused # Source code fragment &07d0 54 45 4d 50 25 3a 53 45 43 3a 53 42 43 23 36 0d ; ... TEMP%:SEC:SBC#6 ; unused &07e0 36 0d 36 0d 36 0d 36 0d 0d 0d 23 0d 23 0d 23 0d &07f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; os_sound_workspace &0800 ff 00 00 00 00 00 00 00 c0 c0 c0 c0 04 04 04 04 &0810 05 14 64 64 00 ff ff ff 00 00 00 00 00 00 00 00 &0820 05 05 05 05 00 ff ff ff 01 00 00 00 00 00 00 00 &0830 00 00 00 64 00 00 00 00 ff eb c1 00 00 ef 00 0d ; os_sound_buffers &0840 03 00 05 03 00 05 03 03 00 05 03 00 05 03 00 04 &0850 14 00 3b c8 1e f8 14 00 3b c8 1e f8 14 00 3b f8 &0860 64 01 88 64 01 88 64 01 88 64 01 01 88 64 01 88 &0870 06 90 64 06 90 64 06 8a 0a 40 64 90 64 06 90 64 ; unused &0880 7c 7c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &0890 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &08a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &08b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7c ; os_envelope_data &08c0 02 00 00 00 00 00 00 7e f6 00 ec 7e 64 00 00 00 ; 1 # Player kicking and punching &08d0 02 00 00 00 01 01 00 7e fb 00 ec 64 5a 00 00 00 ; 2 # (unused) &08e0 04 f8 08 00 01 01 00 7e ff 00 82 7e 6e 00 00 00 ; 3 # Defeated enemy &08f0 04 04 00 00 0c 0a 00 7e 00 00 ec 7e 7e 00 00 00 ; 4 # Player defeating enemy &0900 04 00 00 00 00 00 00 14 1e fb e2 6e 7e 00 00 00 ; 5 # Enemy throwing or retracting projectile &0910 02 00 00 00 00 00 00 28 f6 00 ec 6e 5a 00 00 00 ; 6 # Nuncha stationary attack &0920 02 00 00 00 00 00 00 28 fb 00 fe 73 64 00 00 00 ; 7 # High score table, perfect in &0930 05 03 01 00 0f 0a 0a 00 00 00 00 00 00 00 00 00 ; 8 # High score table &0940 03 30 30 30 01 01 01 1e f6 00 fb 7e 6e 00 00 00 ; 9 # Extra life ; unused &0950 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &0960 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &0970 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &0980 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &0990 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &09a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &09b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &09c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &09d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &09e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &09f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; wave_state &0a00 00 ; score &0a01 04 05 01 08 00 00 ; rnd_state &0a07 0f 7f 00 ; unused &0a0a ef ; objects_x &0a0b 28 64 12 30 96 00 32 28 ; objects_y &0a13 33 3b 2d 35 29 33 2a 33 ; objects_sprite &0a1b 00 18 38 39 38 00 00 00 ; palette_colours &0a23 02 ; &00 (waterfall) (delay &00) # Set colour 0 to green &0a24 87 ; &01 (delay &00) # Set colour 2 to white and wait for top of scenery &0a25 24 ; &02 (delay &0f) # Set colour 1 to blue &0a26 06 ; &03 (delay &00) # Set colour 0 to cyan and wait for bottom of scenery &0a27 83 ; &04 (delay &1e) # Set colour 2 to yellow &0a28 27 ; &05 (delay &00) # Set colour 1 to white (actually enemy colour) and wait &0a29 21 ; &06 (delay &0e) # Set colour 1 to red &0a2a ff ; &07 (delay &ff) # (end of list) &0a2b 24 ; &08 (high scores) (delay &00) # Set colour 1 to blue &0a2c 87 ; &09 (delay &00) # Set colour 2 to white and wait for top of high scores &0a2d 21 ; &0a (delay &25) # Set colour 1 to red (actually top high score colour) &0a2e 82 ; &0b (delay &00) # Set colour 2 to green and wait (actually logo colour) &0a2f 22 ; &0c (delay &0f) # Set colour 1 to green (actually bottom high score colour) &0a30 ff ; &0d (delay &00) # (end of list) &0a31 02 ; &0e (temple) (delay &00) # Set colour 0 to green &0a32 87 ; &0f (delay &00) # Set colour 2 to white and wait for top of scenery &0a33 26 ; &10 (delay &0f) # Set colour 1 to cyan and wait &0a34 83 ; &11 (delay &01) # Set colour 2 to yellow and wait &0a35 21 ; &12 (delay &03) # Set colour 1 to red and wait &0a36 26 ; &13 (delay &0c) # Set colour 1 to cyan &0a37 87 ; &14 (delay &00) # Set colour 2 to white and wait for bottom of scenery &0a38 25 ; &15 (delay &06) # Set colour 1 to magenta (actually enemy colour) &0a39 83 ; &16 (delay &00) # Set colour 2 to yellow and wait &0a3a 21 ; &17 (delay &0f) # Set colour 1 to red &0a3b ff ; &18 (delay &ff) # (end of list) ; unused &0a3c 00 00 00 00 ; round &0a40 02 ; palette_offset &0a41 04 ; player_attack_duration &0a42 00 ; player_lives &0a43 31 00 ; player_kicking &0a45 00 ; player_punching &0a46 00 ; player_energy &0a47 05 ; enemy_energy &0a48 08 ; objects_x_offset &0a49 00 00 00 00 00 00 00 00 ; objects_flip &0a51 00 01 01 00 01 00 00 00 ; objects_y_offset &0a59 00 00 00 00 00 00 00 00 ; unused &0a61 00 ; enemy_movement_duration &0a62 00 ; energy_string &0a63 19 04 80 00 7c 03 ; MOVE &0080, &037c (x co-ordinate modified) &0a69 05 ; Write text at graphics cursor &0a6a e2 ; energy bar section &0a6b 04 ; Write text at text cursor ; unused &0a6c 00 ; enemy_type &0a6d 08 ; defeat_cooldown ; hit_cooldown &0a6e 00 ; suppress_player_damage &0a6f 01 ; enemy_base_sprite &0a70 18 ; wave_colours ; 0 1 2 3 4 5 6 7 8 9 # 0 1 2 3 4 5 6 7 8 9 &0a71 27 21 24 22 27 25 21 24 21 27 # Set colour 2 to W R B G W M R B R W ; unused &0a7b 00 00 00 00 00 00 ; objects_x_velocity &0a81 fc 00 06 06 06 00 00 00 ; objects_y_velocity &0a89 f5 f8 4b 49 ec 00 00 00 ; waterfall_pixels_x &0a91 06 84 26 23 28 27 29 25 29 22 24 26 27 23 84 29 ; waterfall_pixels_y &0aa1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; waterfall_pixels_x_velocity &0ab1 00 00 00 ff 00 00 00 00 00 ff 00 00 00 00 00 00 ; waterfall_pixels_y_velocity &0ac1 f5 fe f3 fd f6 f4 f4 f3 f4 fe f5 fd f4 fa f3 f4 ; enemy_projectile_cooldown &0ad1 00 ; player_x &0ad2 28 ; player_y &0ad3 33 ; waterfall_cooldown &0ad4 03 ; attack_y &0ad5 33 ; attack_x &0ad6 28 ; pixel_value &0ad7 03 ; nuncha_stationary_attack_duration &0ad8 00 ; unused &0ad9 00 ; palette_delays &0ada 00 ; &00 (waterfall) &0adb 00 ; &01 &0adc 0f ; &02 # Value is modified &0add 00 ; &03 &0ade 1e ; &04 &0adf 00 ; &05 &0ae0 0e ; &06 &0ae1 ff ; &07 &0ae2 00 ; &08 (high scores) &0ae3 00 ; &09 &0ae4 25 ; &0a &0ae5 00 ; &0b &0ae6 0f ; &0c &0ae7 ff ; &0d &0ae8 00 ; &0e (temple) &0ae9 00 ; &0f &0aea 0f ; &10 # Value is modified &0aeb 01 ; &11 &0aec 03 ; &12 &0aed 0c ; &13 &0aee 00 ; &14 &0aef 06 ; &15 &0af0 00 ; &16 &0af1 0f ; &17 &0af2 ff ; &18 ; unused &0af3 00 00 00 ; player_attack_sprite_for_clone &0af6 03 ; maximum_player_energy &0af7 08 ; initial_palette_offset &0af8 00 ; half_round &0af9 01 # Lowest bit used for background type ; player_arrow_x &0afa 28 ; ten_thousands_before_extra_life &0afb 06 ; enemy_is_feedle &0afb 01 ; wave &0afd 09 ; chain_length &0afe 00 ; chain_remaining &0aff 00 ; sound_data ; chan vol pitch dur &0b00 10 00 f5 ff 06 00 02 00 ; &00 # Player landing, clone landing &0b08 10 00 f5 ff 03 00 02 00 ; &01 # Player walking &0b10 10 00 01 00 04 00 03 00 ; &02 # Player kicking &0b18 10 00 01 00 05 00 03 00 ; &03 # Player punching, playing hitting enemy projectile, enemy attacking &0b20 ff ff ca 00 00 00 00 00 ; &04 # (unused) &0b28 13 00 03 00 64 00 0d 00 ; &05 # Defeated enemy &0b30 13 00 04 00 8a 00 0a 00 ; &06 # Player defeating enemy &0b38 10 00 05 00 05 00 06 00 ; &07 # Enemy throwing or retracting projectile &0b40 10 00 06 00 05 00 02 00 ; &08 # Nuncha stationary attack &0b48 12 00 f2 00 64 00 01 00 ; &09 # Remaining energy &0b50 12 00 07 00 dc 00 01 00 ; &0a # Perfect win &0b58 13 00 09 00 64 00 08 00 ; &0b # Extra life ; unused &0b60 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 &0b70 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 ; sprites_attack_x_offset_table ; 0 1 2 3 4 5 6 7 8 9 a b c d e f &0b80 00 00 00 16 15 10 14 0f 12 10 0f 00 00 00 00 00 ; &00 &0b90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; &10 &0ba0 00 00 00 00 00 00 00 00 19 00 00 14 00 00 18 12 ; &20 &0bb0 0f 13 13 10 10 10 10 14 00 00 00 00 00 04 00 00 ; &30 ; sprites_attack_y_offset_table ; 0 1 2 3 4 5 6 7 8 9 a b c d e f &0bc0 00 00 00 1e 0d 02 10 11 0c 07 10 00 00 00 00 00 ; &00 &0bd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; &10 &0be0 00 00 00 00 00 00 00 00 09 00 06 0f 00 00 05 0d ; &20 &0bf0 0e 0d 0c 1b 11 19 1a 1f 00 00 19 17 02 03 00 00 ; &30 ; os_font_data &0c00 07 ce dc f8 f3 db db 0e ; &80 : Konami "K" &0c08 38 44 9a a2 aa 92 44 38 ; &81 : "(c)" &0c10 00 ff ff ff ff ff ff 00 ; &e2 : energy bar section &0c18 f9 f9 c3 f3 f3 87 07 03 ; &93 ; "F" &0c20 98 98 98 38 30 70 e0 c0 ; &94 ; "U" &0c28 3c 66 66 66 66 66 3c 00 ; &e5 : "0" &0c30 18 38 18 18 18 18 7e 00 ; &e6 : "1" &0c38 3c 66 06 0c 18 30 7e 00 ; &e7 : "2" &0c40 7e 06 0c 1c 06 66 3c 00 ; &e8 : "3" &0c48 04 0c 1c 3c 6c 7e 0c 00 ; &e9 : "4" &0c50 7e 60 7c 06 06 66 3c 00 ; &ea : "5" &0c58 1c 30 60 7c 66 66 3c 00 ; &eb : "6" &0c60 7e 46 0c 0c 18 18 18 00 ; &ec : "7" &0c68 3c 66 66 3c 66 66 3c 00 ; &ed : "8" &0c70 3c 66 66 66 3e 0c 38 00 ; &ee : "9" &0c78 46 c6 6c 7c 38 39 71 61 ; &8f : "Yie Ar KUNG-" # Logo spread over characters &8f - &97 &0c80 60 60 00 ce db de 98 8e ; &90 &0c88 06 0f 0f 1b 3b 3f 33 36 ; &91 &0c90 00 00 00 34 3c 78 60 60 ; &92 &0c98 19 3b 37 7e 7c ec ee c6 ; &93 &0ca0 b2 b3 67 66 ee cc fc 78 ; &94 &0ca8 31 33 7b 7f 6e e6 ce cc ; &95 &0cb0 9c be 70 60 ce cc f8 70 ; &96 &0cb8 01 00 01 69 b1 03 03 07 ; &97 ; unused &0cc0 00 00 00 00 00 00 00 00 ; &f8 ; " " &0cc8 2f 36 30 6c 60 6e dc 00 ; &f9 ; "E" &0cd0 1c 32 32 6c 66 66 dc 00 ; &fa ; "B" &0cd8 21 33 33 66 66 5c b8 01 ; &fb ; "U" &0ce0 16 3d 30 60 62 66 2c 00 ; &fc ; "C" &0ce8 5f 36 08 18 18 18 30 00 ; &fd ; "T" &0cf0 0e 63 78 1c 06 72 3c 00 ; &fe ; "S" &0cf8 21 33 33 7e 66 66 c2 00 ; &ff ; "H" ; YIE2 ; FFFF1100 FFFF1100 4100 # &1100 - &51ff is decrypted at &0e4f of YIE3 ; to_initialise_vectors &1100 4c cc 23 JMP &23cc ; initialise_vectors ; play_game &1103 a0 05 LDY #&05 ; initialise_score_loop &1105 a9 00 LDA #&00 &1107 99 01 0a STA &0a01,Y ; score &110a 88 DEY &110b 10 f8 BPL &1105 ; initialise_score_loop &110d a9 03 LDA #&03 # Player starts with three lives &110f 8d 43 0a STA &0a43 ; player_lives &1112 8d fb 0a STA &0afb ; ten_thousands_before_extra_life # First extra life at 30,000 points &1115 a9 00 LDA #&00 &1117 8d 6d 0a STA &0a6d ; enemy_type &111a 8d fd 0a STA &0afd ; wave &111d 8d f8 0a STA &0af8 ; initial_palette_offset # Use waterfall colour scheme &1120 8d f9 0a STA &0af9 ; half_round &1123 8d fc 0a STA &0afc ; enemy_is_feedle # Set to zero to indicate enemy isn't Feedle &1126 8d 40 0a STA &0a40 ; round &1129 a9 01 LDA #&01 &112b 8d d4 0a STA &0ad4 ; waterfall_cooldown ; start_round &112e 20 ba 20 JSR &20ba ; write_opponent_name &1131 20 77 21 JSR &2177 ; write_wave_and_lives &1134 a9 00 LDA #&00 &1136 8d d1 0a STA &0ad1 ; enemy_projectile_cooldown &1139 8d 00 0a STA &0a00 ; wave_state # Set to zero to indicate wave not won or lost &113c 8d 42 0a STA &0a42 ; player_attack_duration &113f 8d 45 0a STA &0a45 ; player_kicking &1142 8d 46 0a STA &0a46 ; player_punching &1145 8d 82 0a STA &0a82 ; objects_x_velocity + 1 (OBJECT_ENEMY) &1148 8d 62 0a STA &0a62 ; enemy_movement_duration &114b 8d d8 0a STA &0ad8 ; nuncha_stationary_attack_duration &114e 8d fe 0a STA &0afe ; chain_length &1151 8d ff 0a STA &0aff ; chain_remaining &1154 a0 07 LDY #&07 ; initialise_objects_loop &1156 a9 33 LDA #&33 &1158 99 13 0a STA &0a13,Y ; objects_y &115b a9 00 LDA #&00 &115d 99 59 0a STA &0a59,Y ; objects_y_offset &1160 99 51 0a STA &0a51,Y ; objects_flip &1163 99 1b 0a STA &0a1b,Y ; objects_sprite # Set to zero to indicate no object in slot &1166 99 49 0a STA &0a49,Y ; objects_x_offset &1169 88 DEY &116a 10 ea BPL &1156 ; initialise_objects_loop &116c a9 28 LDA #&28 &116e 8d 0b 0a STA &0a0b ; objects_x + 0 (OBJECT_PLAYER) &1171 a9 01 LDA #&01 &1173 8d 52 0a STA &0a52 ; objects_flip + 1 (OBJECT_ENEMY) &1176 ac fd 0a LDY &0afd ; wave &1179 b9 71 0a LDA &0a71,Y ; wave_colours &117c 8d 28 0a STA &0a28 ; palette_colours + 5 # Set enemy colour in waterfall &117f 8d 38 0a STA &0a38 ; palette_colours + &e + 7 # Set enemy colour in temple &1182 ad 6d 0a LDA &0a6d ; enemy_type &1185 aa TAX &1186 18 CLC &1187 69 10 ADC #&10 ; SPRITE_ENEMY &1189 8d 70 0a STA &0a70 ; enemy_base_sprite &118c 8d 1c 0a STA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &118f 20 7f 1d JSR &1d7f ; set_enemy_y &1192 a9 64 LDA #&64 &1194 8d 0c 0a STA &0a0c ; objects_x + 1 (OBJECT_ENEMY) &1197 a9 12 LDA #&12 # GCOL 0,0 &1199 20 ee ff JSR &ffee ; OSWRCH &119c a9 00 LDA #&00 &119e 20 ee ff JSR &ffee ; OSWRCH &11a1 a9 00 LDA #&00 &11a3 20 ee ff JSR &ffee ; OSWRCH &11a6 a9 00 LDA #&00 &11a8 8d 47 0a STA &0a47 ; player_energy &11ab 8d 48 0a STA &0a48 ; enemy_energy ; initialise_enemy_energy_loop &11ae 20 39 21 JSR &2139 ; plot_enemy_energy &11b1 ee 48 0a INC &0a48 ; enemy_energy &11b4 ad 48 0a LDA &0a48 ; enemy_energy &11b7 c9 08 CMP #&08 &11b9 90 f3 BCC &11ae ; initialise_enemy_energy_loop &11bb ad 40 0a LDA &0a40 ; round &11be 29 01 AND #&01 &11c0 49 01 EOR #&01 &11c2 18 CLC &11c3 69 03 ADC #&03 &11c5 0a ASL A &11c6 8d f7 0a STA &0af7 ; maximum_player_energy # Player starts with 8 energy in first round, 6 energy in second round ; initialise_player_energy_loop &11c9 20 2b 21 JSR &212b ; plot_player_energy &11cc ee 47 0a INC &0a47 ; player_energy &11cf ad 47 0a LDA &0a47 ; player_energy &11d2 cd f7 0a CMP &0af7 ; maximum_player_energy &11d5 90 f2 BCC &11c9 ; initialise_player_energy_loop &11d7 a9 12 LDA #&12 # GCOL 0,3 &11d9 20 ee ff JSR &ffee ; OSWRCH &11dc a9 00 LDA #&00 &11de 20 ee ff JSR &ffee ; OSWRCH &11e1 a9 03 LDA #&03 &11e3 20 ee ff JSR &ffee ; OSWRCH &11e6 a9 04 LDA #&04 &11e8 8d d4 0a STA &0ad4 ; waterfall_cooldown ; main_game_loop &11eb 20 39 14 JSR &1439 ; check_for_player_move_and_game_keypresses &11ee 20 60 19 JSR &1960 ; update_enemy &11f1 20 90 1d JSR &1d90 ; update_hit &11f4 a9 13 LDA #&13 ; Wait for vertical retrace &11f6 20 f4 ff JSR &fff4 ; OSBYTE &11f9 20 cc 1f JSR &1fcc ; update_enemy_projectiles &11fc a9 02 LDA #&02 &11fe 8d d4 0a STA &0ad4 ; waterfall_cooldown &1201 20 2a 18 JSR &182a ; update_player_arrow &1204 a9 13 LDA #&13 ; Wait for vertical retrace &1206 20 f4 ff JSR &fff4 ; OSBYTE &1209 ad 40 0a LDA &0a40 ; round &120c c9 02 CMP #&02 # Game gets faster on third round &120e b0 05 BCS &1215 ; not_faster_round &1210 a9 13 LDA #&13 ; Wait for vertical retrace &1212 20 f4 ff JSR &fff4 ; OSBYTE ; not_faster_round &1215 ad 00 0a LDA &0a00 ; wave_state &1218 f0 d1 BEQ &11eb ; main_game_loop &121a 10 03 BPL &121f ; end_of_round # Positive if wave was won or lost &121c 4c c1 12 JMP &12c1 ; end_of_game # Negative if game was quit ; end_of_round &121f ad fe 0a LDA &0afe ; chain_length # Zero if chain isn't being thrown &1222 f0 26 BEQ &124a ; skip_unplotting_chain &1224 ad ff 0a LDA &0aff ; chain_remaining &1227 f0 0f BEQ &1238 ; unplot_chain_loop &1229 ad fe 0a LDA &0afe ; chain_length &122c 38 SEC &122d ed ff 0a SBC &0aff ; chain_remaining &1230 18 CLC &1231 69 01 ADC #&01 &1233 8d fe 0a STA &0afe ; chain_length &1236 f0 12 BEQ &124a ; skip_unplotting_chain ; unplot_chain_loop &1238 a9 01 LDA #&01 # Set to non-zero to suppress damage &123a 8d 6f 0a STA &0a6f ; suppress_player_damage &123d a0 02 LDY #&02 ; OBJECT_FIRST_ENEMY_PROJECTILE &123f 20 5f 1f JSR &1f5f ; shorten_chain # Unplot thrown chain &1242 ad fe 0a LDA &0afe ; chain_length &1245 10 f1 BPL &1238 ; unplot_chain_loop &1247 20 80 18 JSR &1880 ; unplot_object # Unplot spinning chain ; skip_unplotting_chain &124a a0 06 LDY #&06 ; OBJECT_HIT ; unplot_objects_loop &124c b9 1b 0a LDA &0a1b,Y ; objects_sprite &124f f0 03 BEQ &1254 ; skip_unplotting_object &1251 20 80 18 JSR &1880 ; unplot_object # Unplot hit and enemy projectiles ; skip_unplotting_object &1254 88 DEY &1255 c0 02 CPY #&02 &1257 10 f3 BPL &124c ; unplot_objects_loop &1259 a0 07 LDY #&07 ; OBJECT_PREVIOUS_PLAYER &125b b9 0b 0a LDA &0a0b,Y ; objects_x &125e 8d fa 0a STA &0afa ; player_arrow_x &1261 20 e8 18 JSR &18e8 ; unplot_player_arrow &1264 ad 00 0a LDA &0a00 ; wave_state &1267 c9 01 CMP #&01 # &01 if match won by player &1269 d0 03 BNE &126e ; animate_defeated_player &126b 4c e0 12 JMP &12e0 ; animate_defeated_enemy ; animate_defeated_player &126e a9 23 LDA #&23 &1270 8d 13 0a STA &0a13 ; objects_y + 0 (OBJECT_PLAYER) &1273 a9 0b LDA #&0b ; SPRITE_PLAYER_DEFEATED &1275 8d 1b 0a STA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) &1278 a9 00 LDA #&00 &127a 8d 59 0a STA &0a59 ; objects_y_offset &127d 8d 49 0a STA &0a49 ; objects_x_offset &1280 a9 1e LDA #&1e &1282 8d 6e 0a STA &0a6e ; defeat_cooldown ; animate_defeated_player_loop &1285 ad 51 0a LDA &0a51 ; objects_flip + 0 (OBJECT_PLAYER) &1288 49 01 EOR #&01 # Animate defeated player &128a 8d 51 0a STA &0a51 ; objects_flip + 0 (OBJECT_PLAYER) &128d 20 c0 16 JSR &16c0 ; replot_player &1290 ad fc 0a LDA &0afc ; enemy_is_feedle # Non-zero if enemy is Feedle &1293 d0 03 BNE &1298 ; skip_replotting_enemy &1295 20 b9 19 JSR &19b9 ; flip_enemy_velocity_or_stop_flying_buchu_and_plot_enemy ; skip_replotting_enemy &1298 a9 13 LDA #&13 ; Wait for vertical retrace &129a 20 f4 ff JSR &fff4 ; OSBYTE &129d 20 f4 ff JSR &fff4 ; OSBYTE &12a0 20 f4 ff JSR &fff4 ; OSBYTE &12a3 20 f4 ff JSR &fff4 ; OSBYTE &12a6 ce 6e 0a DEC &0a6e ; defeat_cooldown &12a9 d0 da BNE &1285 ; animate_defeated_player_loop &12ab a0 00 LDY #&00 ; OBJECT_PLAYER &12ad 20 80 18 JSR &1880 ; unplot_object # Unplot player &12b0 c8 INY ; 1 ; OBJECT_ENEMY &12b1 ad fc 0a LDA &0afc ; enemy_is_feedle # Non-zero if enemy is Feedle &12b4 d0 03 BNE &12b9 ; skip_unplotting_enemy &12b6 20 80 18 JSR &1880 ; unplot_object # Unplot enemy ; skip_unplotting_enemy &12b9 ce 43 0a DEC &0a43 ; player_lives &12bc f0 03 BEQ &12c1 ; end_of_game &12be 4c 2e 11 JMP &112e ; start_round ; end_of_game &12c1 ad f9 0a LDA &0af9 ; half_round &12c4 29 01 AND #&01 &12c6 f0 0d BEQ &12d5 ; skip_resetting_background &12c8 a9 00 LDA #&00 # Use waterfall colour scheme &12ca 8d f8 0a STA &0af8 ; initial_palette_offset &12cd a9 13 LDA #&13 ; Wait for vertical retrace &12cf 20 f4 ff JSR &fff4 ; OSBYTE &12d2 20 dd 20 JSR &20dd ; swap_backgrounds # Swap to waterfall background ; skip_resetting_background &12d5 a9 08 LDA #&08 # Use high score colour scheme &12d7 8d f8 0a STA &0af8 ; initial_palette_offset &12da a9 00 LDA #&00 &12dc 8d f9 0a STA &0af9 ; half_round &12df 60 RTS ; animate_defeated_enemy &12e0 a9 00 LDA #&00 &12e2 8d 49 0a STA &0a49 ; objects_x_offset &12e5 85 7b STA &7b ; player_move &12e7 20 28 16 JSR &1628 ; start_player_jump &12ea a9 05 LDA #&05 # Play sound for defeated enemy &12ec 20 fd 21 JSR &21fd ; play_sound ; animate_defeated_enemy_loop &12ef 20 b6 14 JSR &14b6 ; update_player &12f2 20 60 19 JSR &1960 ; update_enemy &12f5 a9 13 LDA #&13 ; Wait for vertical retrace &12f7 20 f4 ff JSR &fff4 ; OSBYTE &12fa 20 f4 ff JSR &fff4 ; OSBYTE &12fd 20 f4 ff JSR &fff4 ; OSBYTE &1300 ad 1b 0a LDA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) &1303 d0 ea BNE &12ef ; animate_defeated_enemy_loop &1305 a9 0c LDA #&0c ; SPRITE_PLAYER_HEAD &1307 8d 1b 0a STA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) &130a a0 00 LDY #&00 &130c 20 80 18 JSR &1880 ; unplot_object &130f 20 31 18 JSR &1831 ; plot_object # Plot smiling player &1312 a9 06 LDA #&06 # Play sound after player defeating enemy &1314 20 fd 21 JSR &21fd ; play_sound &1317 a9 14 LDA #&14 &1319 8d 6e 0a STA &0a6e ; defeat_cooldown ; delay_loop &131c a9 13 LDA #&13 ; Wait for vertical retrace &131e 20 f4 ff JSR &fff4 ; OSBYTE &1321 ce 6e 0a DEC &0a6e ; defeat_cooldown &1324 d0 f6 BNE &131c ; delay_loop &1326 ad 47 0a LDA &0a47 ; player_energy &1329 cd f7 0a CMP &0af7 ; maximum_player_energy &132c d0 11 BNE &133f ; not_perfect_win &132e a9 0a LDA #&0a # Play sound for perfect win &1330 20 fd 21 JSR &21fd ; play_sound &1333 ac fd 0a LDY &0afd ; wave &1336 c8 INY ; score_for_perfect_win_loop &1337 a2 01 LDX #&01 ; * 10,000 # Score 10,000 * (wave + 1) for perfect win &1339 20 a7 21 JSR &21a7 ; add_one_to_score &133c 88 DEY &133d d0 f8 BNE &1337 ; score_for_perfect_win_loop ; not_perfect_win ; score_for_remaining_energy_loop &133f ce 47 0a DEC &0a47 ; player_energy &1342 20 2b 21 JSR &212b ; plot_player_energy &1345 a2 02 LDX #&02 ; * 1,000 # Score 1,000 * remaining energy &1347 20 a7 21 JSR &21a7 ; add_one_to_score &134a a9 09 LDA #&09 # Play sound for scoring remaining energy &134c 20 fd 21 JSR &21fd ; play_sound &134f a9 13 LDA #&13 ; Wait for vertical retrace &1351 20 f4 ff JSR &fff4 ; OSBYTE &1354 20 f4 ff JSR &fff4 ; OSBYTE &1357 20 f4 ff JSR &fff4 ; OSBYTE &135a 20 f4 ff JSR &fff4 ; OSBYTE &135d ad 47 0a LDA &0a47 ; player_energy &1360 d0 dd BNE &133f ; score_for_remaining_energy_loop &1362 a9 00 LDA #&00 ; SPRITE_PLAYER &1364 8d 1b 0a STA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) &1367 a8 TAY &1368 20 80 18 JSR &1880 ; unplot_object # Unplot player &136b c8 INY ; 1 (OBJECT_ENEMY) &136c ad fc 0a LDA &0afc ; enemy_is_feedle # Non-zero if enemy is Feedle &136f d0 03 BNE &1374 ; skip_unplotting_enemy &1371 20 80 18 JSR &1880 ; unplot_object # Unplot enemy ; skip_unplotting_enemy &1374 ee fd 0a INC &0afd ; wave &1377 ad fd 0a LDA &0afd ; wave &137a c9 0a CMP #&0a &137c b0 12 BCS &1390 ; next_round &137e ad fc 0a LDA &0afc ; enemy_is_feedle # Non-zero if enemy is Feedle &1381 d0 1b BNE &139e ; next_background &1383 ee 6d 0a INC &0a6d ; enemy_type &1386 ad 6d 0a LDA &0a6d ; enemy_type &1389 29 03 AND #&03 &138b f0 2b BEQ &13b8 ; set_feedle_sprites &138d 4c b5 13 JMP &13b5 ; to_start_round ; next_round &1390 a9 00 LDA #&00 &1392 8d 6d 0a STA &0a6d ; enemy_type &1395 8d fc 0a STA &0afc ; enemy_is_feedle # Set to zero to indicate enemy isn't Feedle &1398 8d fd 0a STA &0afd ; wave &139b ee 40 0a INC &0a40 ; round ; next_background &139e 20 dd 20 JSR &20dd ; swap_backgrounds &13a1 ee f9 0a INC &0af9 ; half_round &13a4 ad f9 0a LDA &0af9 ; half_round &13a7 29 01 AND #&01 &13a9 f0 02 BEQ &13ad ; not_temple &13ab a9 0e LDA #&0e # Use temple colour scheme ; not_temple &13ad 8d f8 0a STA &0af8 ; initial_palette_offset &13b0 a9 00 LDA #&00 &13b2 8d fc 0a STA &0afc ; enemy_is_feedle # Set to zero to indicate enemy isn't Feedle ; to_start_round &13b5 4c 2e 11 JMP &112e ; start_round ; set_feedle_sprites &13b8 a9 01 LDA #&01 &13ba 8d fc 0a STA &0afc ; enemy_is_feedle # Set to non-zero to indicate enemy is Feedle &13bd ad f9 0a LDA &0af9 ; half_round &13c0 29 03 AND #&03 # Feedle sprites change twice per round &13c2 0a ASL A &13c3 0a ASL A &13c4 0a ASL A &13c5 0a ASL A &13c6 18 CLC &13c7 69 60 ADC #&60 : &4a60 = feedle_sprites_data &13c9 8d 38 26 STA &2638 ; sprite_addresses_low_table + &38 &13cc 18 CLC &13cd 69 10 ADC #&10 &13cf 8d 39 26 STA &2639 ; sprite_addresses_low_table + &39 &13d2 4c b5 13 JMP &13b5 ; to_start_round ; enable_or_disable_sound &13d5 aa TAX &13d6 a0 00 LDY #&00 &13d8 a9 d2 LDA #&d2 ; Read/Write sound suppression flag &13da 20 f4 ff JSR &fff4 ; OSBYTE &13dd 4c 47 14 JMP &1447 ; check_for_player_move ; quit_game &13e0 a9 ff LDA #&ff &13e2 8d 00 0a STA &0a00 ; wave_state # Set to negative to indicate game was quit &13e5 4c c0 16 JMP &16c0 ; replot_player ; pause_game &13e8 a9 13 LDA #&13 ; Wait for vertical retrace &13ea 20 f4 ff JSR &fff4 ; OSBYTE &13ed a2 c6 LDX #&c6 ; UP &13ef 20 69 21 JSR &2169 ; check_for_keypress &13f2 10 0d BPL &1401 ; up_not_pressed &13f4 ad dc 0a LDA &0adc ; palette_delays + 2 &13f7 c9 0a CMP #&0a &13f9 90 06 BCC &1401 ; up_not_pressed &13fb ce dc 0a DEC &0adc ; palette_delays + 2 # Change timing of first colour change in waterfall &13fe ce ea 0a DEC &0aea ; palette_delays + &e + 2 # Change timing of first colour change in temple ; up_not_pressed &1401 a2 d6 LDX #&d6 ; DOWN &1403 20 69 21 JSR &2169 ; check_for_keypress &1406 10 0d BPL &1415 ; down_not_pressed &1408 ad dc 0a LDA &0adc ; palette_delays + 2 &140b c9 14 CMP #&14 &140d b0 06 BCS &1415 ; down_not_pressed &140f ee dc 0a INC &0adc ; palette_delays + 2 # Change timing of first colour change in waterfall &1412 ee ea 0a INC &0aea ; palette_delays + &e + 2 # Change timing of first colour change in temple ; down_not_pressed &1415 a9 13 LDA #&13 ; Wait for vertical retrace &1417 20 f4 ff JSR &fff4 ; OSBYTE &141a a2 ae LDX #&ae ; S &141c 20 69 21 JSR &2169 ; check_for_keypress &141f 10 05 BPL &1426 ; s_not_pressed &1421 a9 00 LDA #&00 # Zero to enable sound &1423 4c d5 13 JMP &13d5 ; enable_or_disable_sound ; s_not_pressed &1426 a2 ef LDX #&ef ; Q &1428 20 69 21 JSR &2169 ; check_for_keypress &142b 10 05 BPL &1432 ; q_not_pressed &142d a9 01 LDA #&01 # Non-zero to disable sound &142f 4c d5 13 JMP &13d5 ; enable_or_disable_sound ; q_not_pressed &1432 a2 96 LDX #&96 ; COPY &1434 20 69 21 JSR &2169 ; check_for_keypress &1437 10 af BPL &13e8 ; pause_game ; check_for_player_move_and_game_keypresses &1439 a2 8f LDX #&8f ; ESCAPE &143b 20 69 21 JSR &2169 ; check_for_keypress &143e 30 a0 BMI &13e0 ; quit_game &1440 a2 a6 LDX #&a6 ; DELETE &1442 20 69 21 JSR &2169 ; check_for_keypress &1445 30 a1 BMI &13e8 ; pause_game ; check_for_player_move &1447 a9 00 LDA #&00 ; MOVE_NONE &1449 85 7b STA &7b ; player_move &144b a2 b7 LDX #&b7 ; : &144d 20 69 21 JSR &2169 ; check_for_keypress &1450 10 04 BPL &1456 ; not_moving_up &1452 a9 04 LDA #&04 ; MOVE_UP &1454 85 7b STA &7b ; player_move ; not_moving_up &1456 a2 97 LDX #&97 ; / &1458 20 69 21 JSR &2169 ; check_for_keypress &145b 10 04 BPL &1461 ; not_moving_down &145d a9 08 LDA #&08 ; MOVE_DOWN &145f 85 7b STA &7b ; player_move ; not_moving_down &1461 a2 bd LDX #&bd ; X &1463 20 69 21 JSR &2169 ; check_for_keypress &1466 10 09 BPL &1471 ; not_moving_right &1468 a5 7b LDA &7b ; player_move &146a 09 02 ORA #&02 ; MOVE_RIGHT &146c 85 7b STA &7b ; player_move &146e 4c 7e 14 JMP &147e ; not_moving_left ; not_moving_right &1471 a2 9e LDX #&9e ; Z &1473 20 69 21 JSR &2169 ; check_for_keypress &1476 10 06 BPL &147e ; not_moving_left &1478 a5 7b LDA &7b ; player_move &147a 09 01 ORA #&01 ; MOVE_LEFT &147c 85 7b STA &7b ; player_move ; not_moving_left &147e a2 b6 LDX #&b6 ; RETURN &1480 20 69 21 JSR &2169 ; check_for_keypress &1483 10 10 BPL &1495 ; not_kicking &1485 ad 45 0a LDA &0a45 ; player_kicking &1488 d0 0d BNE &1497 ; set_player_kicking &148a a5 7b LDA &7b ; player_move &148c 09 10 ORA #&10 ; MOVE_KICK &148e 85 7b STA &7b ; player_move &1490 a9 01 LDA #&01 # Set to non-zero to indicate player kicking &1492 4c 97 14 JMP &1497 ; set_player_kicking ; not_kicking &1495 a9 00 LDA #&00 # Set to zero to indicate player not kicking ; set_player_kicking &1497 8d 45 0a STA &0a45 ; player_kicking &149a a2 ff LDX #&ff ; SHIFT &149c 20 69 21 JSR &2169 ; check_for_keypress &149f 10 10 BPL &14b1 ; not_punching &14a1 ad 46 0a LDA &0a46 ; player_punching &14a4 d0 0d BNE &14b3 ; set_player_punching &14a6 a5 7b LDA &7b ; player_move &14a8 09 20 ORA #&20 ; MOVE_PUNCH &14aa 85 7b STA &7b ; player_move &14ac a9 01 LDA #&01 # Set to non-zero to indicate player punching &14ae 4c b3 14 JMP &14b3 ; set_player_punching ; not_punching &14b1 a9 00 LDA #&00 # Set to zero to indicate player not punching ; set_player_punching &14b3 8d 46 0a STA &0a46 ; player_punching ; update_player &14b6 ad 59 0a LDA &0a59 ; objects_y_offset + 0 (OBJECT_PLAYER) &14b9 d0 03 BNE &14be ; update_player_in_midair &14bb 4c c3 15 JMP &15c3 ; update_player_on_ground ; update_player_in_midair &14be ad 42 0a LDA &0a42 ; player_attack_duration &14c1 f0 0a BEQ &14cd ; skip_setting_player_sprite &14c3 ce 42 0a DEC &0a42 ; player_attack_duration &14c6 d0 05 BNE &14cd ; skip_setting_player_sprite &14c8 a9 02 LDA #&02 ; SPRITE_PLAYER_JUMPING_OR_DUCKING &14ca 8d 1b 0a STA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) ; skip_setting_player_sprite &14cd ad 89 0a LDA &0a89 ; objects_y_velocity + 0 (OBJECT_PLAYER) &14d0 38 SEC &14d1 e9 02 SBC #&02 &14d3 8d 89 0a STA &0a89 ; objects_y_velocity + 0 (OBJECT_PLAYER) &14d6 18 CLC &14d7 6d 59 0a ADC &0a59 ; objects_y_offset &14da 8d 59 0a STA &0a59 ; objects_y_offset &14dd d0 0b BNE &14ea ; not_landing &14df 8d 42 0a STA &0a42 ; player_attack_duration &14e2 20 fd 21 JSR &21fd ; play_sound # Play sound for player landing (0) &14e5 a9 02 LDA #&02 ; SPRITE_PLAYER_JUMPING_OR_DUCKING &14e7 8d 1b 0a STA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) ; not_landing &14ea ad 0b 0a LDA &0a0b ; objects_x + 0 (OBJECT_PLAYER) &14ed 18 CLC &14ee 6d 81 0a ADC &0a81 ; objects_x_velocity + 0 (OBJECT_PLAYER) &14f1 c9 0c CMP #&0c &14f3 b0 05 BCS &14fa ; not_at_left_edge_of_screen ; at left_edge_of_screen &14f5 a9 0c LDA #&0c &14f7 4c 00 15 JMP &1500 ; set_player_x ; not_at_left_edge_of_screen &14fa c9 84 CMP #&84 &14fc 90 02 BCC &1500 ; set_player_x ; at_right_edge_of_screen &14fe a9 84 LDA #&84 ; set_player_x &1500 8d 0b 0a STA &0a0b ; objects_x + 0 (OBJECT_PLAYER) &1503 ad 42 0a LDA &0a42 ; player_attack_duration &1506 d0 32 BNE &153a ; to_replot_player &1508 ad 59 0a LDA &0a59 ; objects_y_offset &150b f0 2d BEQ &153a ; to_replot_player &150d a5 7b LDA &7b ; player_move &150f 29 10 AND #&10 ; MOVE_KICK &1511 f0 0f BEQ &1522 ; not_flying_kick ; flying_kick &1513 a9 06 LDA #&06 ; SPRITE_PLAYER_FLYING_KICK &1515 8d 1b 0a STA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) &1518 a9 02 LDA #&02 # Play sound for flying kick &151a 20 fd 21 JSR &21fd ; play_sound &151d a9 05 LDA #&05 &151f 4c 34 15 JMP &1534 ; set_player_attack_duration ; not_flying_kick &1522 a5 7b LDA &7b ; player_move &1524 29 20 AND #&20 ; MOVE_PUNCH &1526 f0 12 BEQ &153a ; to_replot_player ; flying_punch &1528 a9 0a LDA #&0a &152a 8d 1b 0a STA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) &152d a9 03 LDA #&03 # Play sound for flying punch &152f 20 fd 21 JSR &21fd ; play_sound &1532 a9 04 LDA #&04 ; set_player_attack_duration &1534 8d 42 0a STA &0a42 ; player_attack_duration &1537 4c 8d 16 JMP &168d ; consider_if_kick_or_punch_hit_enemy ; to_replot_player &153a 4c c0 16 JMP &16c0 ; replot_player ; start_player_kick &153d a9 33 LDA #&33 &153f 8d 13 0a STA &0a13 ; objects_y + 0 (OBJECT_PLAYER) &1542 a5 7b LDA &7b ; player_move &1544 29 08 AND #&08 ; MOVE_DOWN &1546 d0 10 BNE &1558 ; start_ankle_kick &1548 a5 7b LDA &7b ; player_move &154a 29 04 AND #&04 ; MOVE_UP &154c d0 05 BNE &1553 ; start_high_kick ; start_roundhouse_kick &154e a9 04 LDA #&04 ; SPRITE_PLAYER_ROUNDHOUSE_KICK &1550 4c 5a 15 JMP &155a ; set_player_sprite_for_kick ; start_high_kick &1553 a9 05 LDA #&05 ; SPRITE_PLAYER_HIGH_KICK &1555 4c 5a 15 JMP &155a ; set_player_sprite_for_kick ; start_ankle_kick &1558 a9 03 LDA #&03 ; SPRITE_PLAYER_ANKLE_KICK ; set_player_sprite_for_kick &155a 8d 1b 0a STA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) &155d 8d f6 0a STA &0af6 ; player_attack_sprite_for_clone &1560 a9 04 LDA #&04 &1562 8d 42 0a STA &0a42 ; player_attack_duration &1565 8d 49 0a STA &0a49 ; objects_x_offset &1568 a9 02 LDA #&02 # Play sound for player kicking &156a 20 fd 21 JSR &21fd ; play_sound &156d 4c 8d 16 JMP &168d ; consider_if_kick_or_punch_hit_enemy ; start_player_punch &1570 a9 04 LDA #&04 &1572 8d 49 0a STA &0a49 ; objects_x_offset &1575 a9 33 LDA #&33 &1577 8d 13 0a STA &0a13 ; objects_y + 0 (OBJECT_PLAYER) &157a a9 03 LDA #&03 &157c 8d 42 0a STA &0a42 ; player_attack_duration &157f a5 7b LDA &7b ; player_move &1581 29 08 AND #&08 ; MOVE_DOWN &1583 d0 10 BNE &1595 ; start_ankle_punch &1585 a5 7b LDA &7b ; player_move &1587 29 04 AND #&04 ; MOVE_UP &1589 d0 05 BNE &1590 ; start_hook_punch ; start_lunge_punch &158b a9 08 LDA #&08 ; SPRITE_PLAYER_LUNGE_PUNCH &158d 4c 9c 15 JMP &159c ; set_player_sprite_for_punch ; start_hook_punch &1590 a9 09 LDA #&09 ; SPRITE_PLAYER_HOOK_PUNCH &1592 4c 9c 15 JMP &159c ; set_player_sprite_for_punch ; start_ankle_punch &1595 a9 2b LDA #&2b &1597 8d 13 0a STA &0a13 ; objects_y + 0 (OBJECT_PLAYER) &159a a9 07 LDA #&07 ; SPRITE_PLAYER_ANKLE_PUNCH ; set_player_sprite_for_punch &159c 8d 1b 0a STA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) &159f 8d f6 0a STA &0af6 ; player_attack_sprite_for_clone &15a2 a9 03 LDA #&03 # Play sound for player punching &15a4 20 fd 21 JSR &21fd ; play_sound &15a7 4c 8d 16 JMP &168d ; consider_if_kick_or_punch_hit_enemy ; is_attacking &15aa ce 42 0a DEC &0a42 ; player_attack_duration &15ad d0 11 BNE &15c0 ; to_replot_player &15af a9 02 LDA #&02 ; SPRITE_PLAYER_JUMPING_OR_DUCKING &15b1 8d 1b 0a STA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) &15b4 ad 13 0a LDA &0a13 ; objects_y + 0 (OBJECT_PLAYER) &15b7 c9 33 CMP #&33 &15b9 b0 05 BCS &15c0 ; to_replot_player &15bb a9 30 LDA #&30 &15bd 8d 13 0a STA &0a13 ; objects_y + 0 (OBJECT_PLAYER) ; to_replot_player &15c0 4c c0 16 JMP &16c0 ; replot_player ; update_player_on_ground &15c3 ad 42 0a LDA &0a42 ; player_attack_duration &15c6 d0 e2 BNE &15aa ; is_attacking &15c8 a5 7b LDA &7b ; player_move &15ca 29 0f AND #&0f ; MOVE_LEFT | MOVE_RIGHT | MOVE_UP | MOVE_DOWN &15cc f0 0f BEQ &15dd ; not_starting_punch &15ce a5 7b LDA &7b ; player_move &15d0 29 10 AND #&10 ; MOVE_KICK &15d2 f0 03 BEQ &15d7 ; not_starting_kick &15d4 4c 3d 15 JMP &153d ; start_player_kick ; not_starting_kick &15d7 a5 7b LDA &7b ; player_move &15d9 29 20 AND #&20 ; MOVE_PUNCH &15db d0 93 BNE &1570 ; start_player_punch ; not_starting_punch &15dd a9 00 LDA #&00 &15df 8d 49 0a STA &0a49 ; objects_x_offset &15e2 ad fc 0a LDA &0afc ; enemy_is_feedle # Non-zero if enemy is Feedle &15e5 d0 10 BNE &15f7 ; set_player_facing_from_move ; set_player_facing_towards_enemy &15e7 ad 0b 0a LDA &0a0b ; objects_x + 0 (OBJECT_PLAYER) &15ea cd 0c 0a CMP &0a0c ; objects_x + 1 (OBJECT_ENEMY) &15ed a9 00 LDA #&00 &15ef 69 00 ADC #&00 &15f1 8d 51 0a STA &0a51 ; objects_flip + 0 (OBJECT_PLAYER) &15f4 4c 03 16 JMP &1603 ; check_if_jumping_or_ducking ; set_player_facing_from_move &15f7 a5 7b LDA &7b ; player_move &15f9 29 03 AND #&03 ; MOVE_LEFT | MOVE_RIGHT &15fb f0 06 BEQ &1603 ; check_if_jumping_or_ducking # Don't set player direction if not moving &15fd 4a LSR A &15fe 49 01 EOR #&01 &1600 8d 51 0a STA &0a51 ; objects_flip + 0 (OBJECT_PLAYER) ; check_if_jumping_or_ducking &1603 a5 7b LDA &7b ; player_move &1605 29 04 AND #&04 ; MOVE_UP &1607 d0 1f BNE &1628 ; start_player_jump &1609 a5 7b LDA &7b ; player_move &160b 29 08 AND #&08 ; MOVE_DOWN &160d d0 44 BNE &1653 ; start_player_duck ; not_jumping_or_ducking &160f a9 33 LDA #&33 &1611 8d 13 0a STA &0a13 ; objects_y + 0 (OBJECT_PLAYER) &1614 a5 7b LDA &7b ; player_move &1616 29 02 AND #&02 ; MOVE_RIGHT &1618 d0 46 BNE &1660 ; move_player_right &161a a5 7b LDA &7b ; player_move &161c 29 01 AND #&01 ; MOVE_LEFT &161e d0 4f BNE &166f ; move_player_left ; not_moving &1620 a9 00 LDA #&00 ; SPRITE_PLAYER &1622 8d 1b 0a STA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) &1625 4c c0 16 JMP &16c0 ; replot_player ; start_player_jump &1628 a9 02 LDA #&02 ; SPRITE_PLAYER_JUMPING_OR_DUCKING &162a 8d 1b 0a STA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) &162d a9 0b LDA #&0b &162f 8d 89 0a STA &0a89 ; objects_y_velocity + 0 (OBJECT_PLAYER) &1632 8d 59 0a STA &0a59 ; objects_y_offset &1635 a5 7b LDA &7b ; player_move &1637 29 02 AND #&02 ; MOVE_RIGHT &1639 d0 0e BNE &1649 ; is_jumping_right &163b a5 7b LDA &7b ; player_move &163d 29 01 AND #&01 ; MOVE_LEFT &163f d0 0d BNE &164e ; is_jumping_left ; is_jumping_up &1641 a9 00 LDA #&00 ; set_player_x_velocity &1643 8d 81 0a STA &0a81 ; objects_x_velocity + 0 (OBJECT_PLAYER) &1646 4c c0 16 JMP &16c0 ; replot_player ; is_jumping_right &1649 a9 04 LDA #&04 &164b 4c 43 16 JMP &1643 ; set_player_x_velocity ; is_jumping_left &164e a9 fc LDA #&fc &1650 4c 43 16 JMP &1643 ; set_player_x_velocity ; start_player_duck &1653 a9 02 LDA #&02 ; SPRITE_PLAYER_JUMPING_OR_DUCKING &1655 8d 1b 0a STA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) &1658 a9 2f LDA #&2f &165a 8d 13 0a STA &0a13 ; objects_y + 0 (OBJECT_PLAYER) &165d 4c c0 16 JMP &16c0 ; replot_player ; move_player_right &1660 ad 0b 0a LDA &0a0b ; objects_x + 0 (OBJECT_PLAYER) &1663 c9 84 CMP #&84 &1665 b0 14 BCS &167b ; animate_player_walk &1667 69 04 ADC #&04 &1669 8d 0b 0a STA &0a0b ; objects_x + 0 (OBJECT_PLAYER) &166c 4c 7b 16 JMP &167b ; animate_player_walk ; move_player_left &166f ad 0b 0a LDA &0a0b ; objects_x + 0 (OBJECT_PLAYER) &1672 c9 10 CMP #&10 &1674 90 05 BCC &167b ; animate_player_walk &1676 e9 04 SBC #&04 &1678 8d 0b 0a STA &0a0b ; objects_x + 0 (OBJECT_PLAYER) ; animate_player_walk &167b ad 1b 0a LDA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) &167e 49 01 EOR #&01 ; SPRITE_PLAYER_MOVING ^ SPRITE_PLAYER &1680 29 01 AND #&01 &1682 8d 1b 0a STA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) &1685 a9 01 LDA #&01 # Play sound for player walking &1687 20 fd 21 JSR &21fd ; play_sound &168a 4c c0 16 JMP &16c0 ; replot_player ; consider_if_kick_or_punch_hit_enemy &168d 20 16 17 JSR &1716 ; check_for_player_hitting_enemy_or_enemy_projectiles &1690 f0 2e BEQ &16c0 ; replot_player &1692 ce 48 0a DEC &0a48 ; enemy_energy &1695 20 39 21 JSR &2139 ; plot_enemy_energy &1698 ad 59 0a LDA &0a59 ; objects_y_offset + 0 (OBJECT_PLAYER) &169b f0 05 BEQ &16a2 ; not_jumping &169d a9 05 LDA #&05 # Score 500 for flying kick &169f 4c ad 16 JMP &16ad ; score_for_successful_attack # Score 600 for flying punch ; not_jumping &16a2 ad 1b 0a LDA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) # Score 300 for ankle kick &16a5 38 SEC # Score 400 for roundhouse kick &16a6 e9 02 SBC #&02 # Score 500 for flying kick &16a8 29 03 AND #&03 # Score 400 for ankle punch &16aa 18 CLC # Score 500 for lunge punch &16ab 69 02 ADC #&02 # Score 600 for hook punch ; score_for_successful_attack &16ad 18 CLC &16ae 6d 46 0a ADC &0a46 ; player_punching # Punches score 100 more than kicks &16b1 a2 03 LDX #&03 ; * 100 &16b3 20 a9 21 JSR &21a9 ; add_to_score &16b6 ad 48 0a LDA &0a48 ; enemy_energy &16b9 d0 05 BNE &16c0 ; replot_player &16bb a9 01 LDA #&01 # Set to &01 to indicate opponent defeated &16bd 8d 00 0a STA &0a00 ; wave_state ; replot_player &16c0 20 e9 17 JSR &17e9 ; get_player_hit_position ; wait_for_bottom_of_screen &16c3 ac 41 0a LDY &0a41 ; palette_offset &16c6 b9 da 0a LDA &0ada,Y ; palette_delays &16c9 10 f8 BPL &16c3 ; wait_for_bottom_of_screen &16cb a0 07 LDY #&07 ; OBJECT_PREVIOUS_PLAYER &16cd 20 80 18 JSR &1880 ; unplot_object # Unplot previous player &16d0 a0 06 LDY #&06 ; OBJECT_HIT &16d2 b9 1b 0a LDA &0a1b,Y ; objects_sprite &16d5 f0 03 BEQ &16da ; skip_unplotting_hit &16d7 20 80 18 JSR &1880 ; unplot_object # Unplot hit ; skip_unplotting_hit &16da ad fc 0a LDA &0afc ; enemy_is_feedle # Non-zero if enemy is Feedle &16dd d0 05 BNE &16e4 ; skip_unplotting_enemy &16df a0 01 LDY #&01 ; OBJECT_ENEMY &16e1 20 80 18 JSR &1880 ; unplot_object # Unplot enemy ; skip_unplotting_enemy &16e4 a0 00 LDY #&00 ; OBJECT_PLAYER &16e6 20 31 18 JSR &1831 ; plot_object # Plot player &16e9 a0 07 LDY #&07 : OBJECT_PREVIOUS_PLAYER &16eb ad 1b 0a LDA &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) &16ee 99 1b 0a STA &0a1b,Y ; objects_sprite # Copy player into previous player slot &16f1 b9 0b 0a LDA &0a0b,Y ; objects_x + 0 (OBJECT_PLAYER) &16f4 8d fa 0a STA &0afa ; player_arrow_x &16f7 ad 0b 0a LDA &0a0b ; objects_x + 0 (OBJECT_PLAYER) &16fa 99 0b 0a STA &0a0b,Y ; objects_x &16fd ad 13 0a LDA &0a13 ; objects_y + 0 (OBJECT_PLAYER) &1700 99 13 0a STA &0a13,Y ; objects_y &1703 ad 59 0a LDA &0a59 ; objects_y_offset + 0 (OBJECT_PLAYER) &1706 99 59 0a STA &0a59,Y ; objects_y_offset &1709 ad 51 0a LDA &0a51 ; objects_flip + 0 (OBJECT_PLAYER) &170c 99 51 0a STA &0a51,Y ; objects_flip &170f ad 49 0a LDA &0a49 ; objects_x_offset + 0 (OBJECT_PLAYER) &1712 99 49 0a STA &0a49,Y ; objects_x_offset &1715 60 RTS ; check_for_player_hitting_enemy_or_enemy_projectiles &1716 20 e9 17 JSR &17e9 ; get_player_hit_position &1719 a0 05 LDY #&05 ; WAVE_CHAIN, OBJECT_LAST_ENEMY_PROJECTILE &171b cc fd 0a CPY &0afd ; wave &171e f0 5c BEQ &177c ; checking_for_player_hitting_enemy # Player can't destroy chain ; check_for_player_hitting_enemy_projectiles_loop &1720 b9 1b 0a LDA &0a1b,Y ; objects_sprite # Zero if no object in slot &1723 f0 52 BEQ &1777 ; consider_next_enemy_projectile &1725 ad d6 0a LDA &0ad6 ; attack_x # Check if player's attack is within projectile's bounding box &1728 38 SEC &1729 f9 0b 0a SBC &0a0b,Y ; objects_x &172c 18 CLC &172d 69 02 ADC #&02 &172f c9 0c CMP #&0c &1731 b0 44 BCS &1777 ; consider_next_enemy_projectile &1733 b9 13 0a LDA &0a13,Y ; objects_y &1736 38 SEC &1737 ed d5 0a SBC &0ad5 ; attack_y &173a 18 CLC &173b 69 04 ADC #&04 &173d c9 10 CMP #&10 &173f b0 36 BCS &1777 ; consider_next_enemy_projectile &1741 20 80 18 JSR &1880 ; unplot_object # Unplot enemy projectile hit by player &1744 98 TYA &1745 48 PHA ; object &1746 a9 0f LDA #&0f ; SPRITE_HIT_PLAYER &1748 20 ad 1d JSR &1dad ; add_hit # Add player hit for enemy projectile &174b 68 PLA ; object &174c aa TAX &174d bd 0b 0a LDA &0a0b,X ; objects_x &1750 38 SEC &1751 e9 04 SBC #&04 &1753 99 0b 0a STA &0a0b,Y ; objects_x # Set hit x &1756 bd 13 0a LDA &0a13,X ; objects_y &1759 99 13 0a STA &0a13,Y ; objects_y # Set hit y &175c a9 00 LDA #&00 &175e 9d 1b 0a STA &0a1b,X ; objects_sprite # Set to zero to remove enemy projectile &1761 a9 03 LDA #&03 # Play sound for player hitting enemy projectile &1763 20 fd 21 JSR &21fd ; play_sound &1766 ad f9 0a LDA &0af9 ; half_round &1769 18 CLC &176a 69 02 ADC #&02 &176c a2 03 LDX #&03 ; * 100 # Score 200 + (100 * half_round) for hitting enemy projectile &176e 20 a9 21 JSR &21a9 ; add_to_score &1771 ad fc 0a LDA &0afc ; enemy_is_feedle # Non-zero if enemy is Feedle &1774 f0 70 BEQ &17e6 ; leave_with_zero # If not Feedle, hitting objects causes no damage &1776 60 RTS # Otherwise, leave with non-zero to indicate damage to enemy ; consider_next_enemy_projectile &1777 88 DEY &1778 c0 02 CPY #&02 ; OBJECT_FIRST_ENEMY_PROJECTILE &177a 10 a4 BPL &1720 ; check_for_player_hitting_enemy_projectiles_loop ; checking_for_player_hitting_enemy &177c ad 14 0a LDA &0a14 ; objects_y + 1 (OBJECT_ENEMY) # Check if player's attack is within enemy's bounding box &177f 18 CLC &1780 6d 5a 0a ADC &0a5a ; objects_y_offset + 1 (OBJECT_ENEMY) &1783 38 SEC &1784 ed d5 0a SBC &0ad5 ; attack_y &1787 85 7a STA &7a ; relative_y &1789 ae 1c 0a LDX &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &178c bd c0 06 LDA &06c0,X ; sprite_heights_table &178f 0a ASL A &1790 0a ASL A &1791 0a ASL A &1792 c5 7a CMP &7a ; relative_y &1794 90 50 BCC &17e6 ; leave_with_zero # Leave if no collision &1796 ad 52 0a LDA &0a52 ; objects_flip + 1 (OBJECT_ENEMY) &1799 d0 0e BNE &17a9 ; is_flipped ; not_flipped &179b ad d6 0a LDA &0ad6 ; attack_x &179e 38 SEC &179f ed 0c 0a SBC &0a0c ; objects_x + 1 (OBJECT_ENEMY) &17a2 38 SEC &17a3 ed 4a 0a SBC &0a4a ; objects_x_offset + 1 (OBJECT_ENEMY) &17a6 4c b4 17 JMP &17b4 ; set_relative_x ; is_flipped &17a9 ad d6 0a LDA &0ad6 ; attack_x &17ac 38 SEC &17ad ed 0c 0a SBC &0a0c ; objects_x + 1 (OBJECT_ENEMY) &17b0 18 CLC &17b1 6d 4a 0a ADC &0a4a ; objects_x_offset + 1 (OBJECT_ENEMY) ; set_relative_x &17b4 85 7a STA &7a ; relative_x &17b6 bd 80 06 LDA &0680,X ; sprite_widths_table &17b9 0a ASL A &17ba 0a ASL A &17bb c5 7a CMP &7a ; relative_x &17bd 90 27 BCC &17e6 ; leave_with_zero # Leave if no collision &17bf ac d5 0a LDY &0ad5 ; attack_y &17c2 ae d6 0a LDX &0ad6 ; attack_x &17c5 20 1c 22 JSR &221c ; calculate_screen_address &17c8 a0 00 LDY #&00 &17ca b1 70 LDA (&70),Y ; screen_address # Check if player's attack hits part of enemy &17cc f0 18 BEQ &17e6 ; leave_with_zero # Leave if no collision &17ce a9 0f LDA #&0f ; SPRITE_HIT_PLAYER &17d0 20 ad 1d JSR &1dad ; add_hit # Add player hit for enemy &17d3 ad d6 0a LDA &0ad6 ; attack_x &17d6 38 SEC &17d7 e9 04 SBC #&04 &17d9 99 0b 0a STA &0a0b,Y ; objects_x # Set hit x &17dc ad d5 0a LDA &0ad5 ; attack_y &17df 18 CLC &17e0 69 04 ADC #&04 &17e2 99 13 0a STA &0a13,Y ; objects_y # Set hit y &17e5 60 RTS # Leave with non-zero to indicate damage to enemy ; leave_with_zero &17e6 a9 00 LDA #&00 # Leave with zero to indicate no damage to enemy &17e8 60 RTS ; get_player_hit_position &17e9 a0 06 LDY #&06 ; OBJECT_HIT # Unnecessary code &17eb ae 1b 0a LDX &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) &17ee ad 51 0a LDA &0a51 ; objects_flip + 0 (OBJECT_PLAYER) &17f1 d0 11 BNE &1804 ; is_flipped ; not_flipped &17f3 ad 0b 0a LDA &0a0b ; objects_x + 0 (OBJECT_PLAYER) &17f6 18 CLC &17f7 6d 49 0a ADC &0a49 ; objects_x_offset &17fa 8d d2 0a STA &0ad2 ; player_x &17fd 18 CLC &17fe 7d 80 0b ADC &0b80,X ; sprites_attack_x_offset_table &1801 4c 15 18 JMP &1815 ; set_attack_x ; is_flipped &1804 ad 0b 0a LDA &0a0b ; objects_x + 0 (OBJECT_PLAYER) &1807 38 SEC &1808 ed 49 0a SBC &0a49 ; objects_x_offset &180b 8d d2 0a STA &0ad2 ; player_x &180e 18 CLC &180f 69 10 ADC #&10 &1811 38 SEC &1812 fd 80 0b SBC &0b80,X ; sprites_attack_x_offset_table ; set_attack_x &1815 8d d6 0a STA &0ad6 ; attack_x &1818 ad 13 0a LDA &0a13 ; objects_y + 0 (OBJECT_PLAYER) &181b 18 CLC &181c 6d 59 0a ADC &0a59 ; objects_y_offset &181f 8d d3 0a STA &0ad3 ; player_y &1822 38 SEC &1823 fd c0 0b SBC &0bc0,X ; sprites_attack_y_offset_table &1826 8d d5 0a STA &0ad5 ; attack_y &1829 60 RTS ; update_player_arrow &182a 20 e8 18 JSR &18e8 ; unplot_player_arrow &182d 20 c2 18 JSR &18c2 ; plot_player_arrow &1830 60 RTS ; plot_object &1831 98 TYA &1832 48 PHA ; tmp_y &1833 be 1b 0a LDX &0a1b,Y ; objects_sprite &1836 bd c0 25 LDA &25c0,X ; sprite_addresses_high_table &1839 85 73 STA &73 ; sprite_address_high &183b bd 00 26 LDA &2600,X ; sprite_addresses_low_table &183e 85 72 STA &72 ; sprite_address_low &1840 bd c0 06 LDA &06c0,X ; sprite_heights_table &1843 85 75 STA &75 ; sprite_height &1845 bd 80 06 LDA &0680,X ; sprite_widths_table &1848 85 74 STA &74 ; sprite_width &184a 98 TYA &184b aa TAX &184c b9 13 0a LDA &0a13,Y ; objects_y &184f 18 CLC &1850 79 59 0a ADC &0a59,Y ; objects_y_offset &1853 a8 TAY &1854 bd 51 0a LDA &0a51,X ; objects_flip &1857 d0 0e BNE &1867 ; is_flipped ; not_flipped &1859 bd 0b 0a LDA &0a0b,X ; objects_x &185c 18 CLC &185d 7d 49 0a ADC &0a49,X ; objects_x_offset &1860 aa TAX &1861 20 6b 22 JSR &226b ; plot_sprite_unflipped &1864 4c 7d 18 JMP &187d ; leave_after_restoring_y ; is_flipped &1867 bd 0b 0a LDA &0a0b,X ; objects_x &186a 38 SEC &186b fd 49 0a SBC &0a49,X ; objects_x_offset &186e aa TAX &186f a5 74 LDA &74 ; sprite_width &1871 c9 05 CMP #&05 &1873 90 05 BCC &187a ; skip_offset &1875 8a TXA &1876 38 SEC &1877 e9 08 SBC #&08 &1879 aa TAX ; skip_offset &187a 20 d0 22 JSR &22d0 ; plot_sprite_flipped ; leave_after_restoring_y &187d 68 PLA ; tmp_y &187e a8 TAY &187f 60 RTS ; unplot_object &1880 98 TYA &1881 48 PHA ; tmp_y &1882 be 1b 0a LDX &0a1b,Y ; objects_sprite &1885 bd c0 06 LDA &06c0,X ; sprite_heights_table &1888 85 75 STA &75 ; sprite_height &188a bd 80 06 LDA &0680,X ; sprite_widths_table &188d 85 74 STA &74 ; sprite_width &188f 98 TYA &1890 aa TAX &1891 bd 13 0a LDA &0a13,X ; objects_y &1894 18 CLC &1895 7d 59 0a ADC &0a59,X ; objects_y_offset &1898 a8 TAY &1899 bd 51 0a LDA &0a51,X ; objects_flip &189c d0 0b BNE &18a9 ; is_flipped ; not_flipped &189e bd 0b 0a LDA &0a0b,X ; objects_x &18a1 18 CLC &18a2 7d 49 0a ADC &0a49,X ; objects_x_offset &18a5 aa TAX &18a6 4c bc 18 JMP &18bc ; unplot_object_and_leave ; is_flipped &18a9 bd 0b 0a LDA &0a0b,X ; objects_x &18ac 38 SEC &18ad fd 49 0a SBC &0a49,X ; objects_x_offset &18b0 aa TAX &18b1 a5 74 LDA &74 ; sprite_width &18b3 c9 05 CMP #&05 &18b5 90 05 BCC &18bc ; skip_offset &18b7 8a TXA &18b8 38 SEC &18b9 e9 08 SBC #&08 &18bb aa TAX ; skip_offset ; unplot_object_and_leave &18bc 20 6b 23 JSR &236b ; unplot_sprite &18bf 68 PLA ; tmp_y &18c0 a8 TAY &18c1 60 RTS ; plot_player_arrow &18c2 a5 7b LDA &7b ; player_move &18c4 29 0f AND #&0f ; MOVE_LEFT | MOVE_RIGHT | MOVE_UP | MOVE_DOWN &18c6 f0 1f BEQ &18e7 ; leave # Don't plot arrow if player isn't moving &18c8 aa TAX &18c9 ca DEX &18ca a9 39 LDA #&39 ; &3900 = arrow_sprites_data &18cc 85 73 STA &73 ; sprite_address_high &18ce bd 70 07 LDA &0770,X ; arrow_sprite_addresses_low_table &18d1 85 72 STA &72 ; sprite_address_low &18d3 a9 01 LDA #&01 &18d5 85 75 STA &75 ; sprite_height &18d7 a9 02 LDA #&02 &18d9 85 74 STA &74 ; sprite_width &18db ad 0b 0a LDA &0a0b ; objects_x + 0 (OBJECT_PLAYER) &18de 18 CLC &18df 69 04 ADC #&04 &18e1 aa TAX &18e2 a0 0c LDY #&0c # Set arrow y &18e4 20 6b 22 JSR &226b ; plot_sprite_unflipped ; leave &18e7 60 RTS ; unplot_player_arrow &18e8 a9 01 LDA #&01 &18ea 85 75 STA &75 ; sprite_height &18ec a9 02 LDA #&02 &18ee 85 74 STA &74 ; sprite_width &18f0 ad fa 0a LDA &0afa ; player_arrow_x &18f3 18 CLC &18f4 69 04 ADC #&04 &18f6 aa TAX &18f7 a0 0c LDY #&0c # Set arrow y &18f9 4c 6b 23 JMP &236b ; unplot_sprite ; update_nuncha_stationary_attack &18fc ce d8 0a DEC &0ad8 ; nuncha_stationary_attack_duration &18ff f0 22 BEQ &1923 ; to_reset_and_plot_enemy &1901 ad 52 0a LDA &0a52 ; objects_flip + 1 (OBJECT_ENEMY) &1904 49 01 EOR #&01 # Swap side of nunchaku &1906 8d 52 0a STA &0a52 ; objects_flip + 1 (OBJECT_ENEMY) &1909 ad d8 0a LDA &0ad8 ; nuncha_stationary_attack_duration &190c 29 01 AND #&01 &190e d0 08 BNE &1918 ; skip_changing_height &1910 ad 1c 0a LDA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &1913 49 10 EOR #&10 ; SPRITE_ENEMY_ATTACK_THREE ^ SPRITE_ENEMY_ATTACK_ONE &1915 8d 1c 0a STA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) # Swap height of nunchaku ; skip_changing_height &1918 a9 08 LDA #&08 # Play sound for Nuncha stationary attack &191a 20 fd 21 JSR &21fd ; play_sound &191d 20 88 1c JSR &1c88 ; get_enemy_hit_position &1920 4c 80 1c JMP &1c80 ; plot_enemy ; to_reset_and_plot_enemy &1923 4c 62 1c JMP &1c62 ; reset_and_plot_enemy ; consider_adding_enemy_projectile &1926 ce d1 0a DEC &0ad1 ; enemy_projectile_cooldown &1929 d0 0a BNE &1935 ; to_plot_enemy &192b ad 6d 0a LDA &0a6d ; enemy_type &192e c9 04 CMP #&04 ; ENEMY_TYPE_CHAIN &1930 f0 f1 BEQ &1923 ; to_reset_and_plot_enemy &1932 4c f7 1b JMP &1bf7 ; add_enemy_projectile ; to_plot_enemy &1935 4c 80 1c JMP &1c80 ; plot_enemy ; update_defeated_enemy &1938 ad 6d 0a LDA &0a6d ; enemy_type &193b 18 CLC &193c 69 20 ADC #&20 ; SPRITE_ENEMY_DEFEATED &193e 8d 1c 0a STA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &1941 20 7f 1d JSR &1d7f ; set_enemy_y &1944 a9 00 LDA #&00 &1946 8d 5a 0a STA &0a5a ; objects_y_offset + 1 (OBJECT_ENEMY) &1949 8d 4a 0a STA &0a4a ; objects_x_offset + 1 (OBJECT_ENEMY) &194c ad 1c 0a LDA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &194f 29 03 AND #&03 &1951 c9 01 CMP #&01 &1953 f0 08 BEQ &195d ; skip_animating_defeated_enemy # Don't animate defeated Star or Fan &1955 ad 52 0a LDA &0a52 ; objects_flip + 1 (OBJECT_ENEMY) &1958 49 01 EOR #&01 # Animate defeated enemy &195a 8d 52 0a STA &0a52 ; objects_flip + 1 (OBJECT_ENEMY) ; skip_animating_defeated_enemy &195d 4c 80 1c JMP &1c80 ; plot_enemy ; update_enemy &1960 ad fc 0a LDA &0afc ; enemy_is_feedle # Non-zero if enemy is Feedle &1963 f0 03 BEQ &1968 ; not_feedle &1965 4c fe 1c JMP &1cfe ; update_feedle ; not_feedle &1968 ad 48 0a LDA &0a48 ; enemy_energy &196b f0 cb BEQ &1938 ; update_defeated_enemy &196d ad d8 0a LDA &0ad8 ; nuncha_stationary_attack_duration # Non-zero if Nuncha is performing stationary attack &1970 d0 8a BNE &18fc ; update_nuncha_stationary_attack &1972 ad d1 0a LDA &0ad1 ; enemy_projectile_cooldown # Non-zero if enemy can throw projectile &1975 d0 af BNE &1926 ; consider_adding_enemy_projectile &1977 ad 62 0a LDA &0a62 ; enemy_movement_duration # Non-zero if enemy is moving &197a d0 03 BNE &197f ; update_moving_enemy &197c 4c 04 1a JMP &1a04 ; update_stationary_enemy ; update_moving_enemy &197f ce 62 0a DEC &0a62 ; enemy_movement_duration &1982 f0 3c BEQ &19c0 ; to_reset_and_plot_enemy &1984 ad 0c 0a LDA &0a0c ; objects_x + 1 (OBJECT_ENEMY) &1987 18 CLC &1988 6d 82 0a ADC &0a82 ; objects_x_velocity + 1 (OBJECT_ENEMY) &198b c9 0c CMP #&0c # Don't let enemy move beyond left edge of screen &198d 90 2a BCC &19b9 ; flip_enemy_velocity_or_stop_flying_buchu_and_plot_enemy &198f c9 88 CMP #&88 # Don't let enemy move beyond right edge of screen &1991 b0 26 BCS &19b9 ; flip_enemy_velocity_or_stop_flying_buchu_and_plot_enemy &1993 8d 0c 0a STA &0a0c ; objects_x + 1 (OBJECT_ENEMY) &1996 ad 1c 0a LDA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &1999 c9 02 CMP #&02 ; SPRITE_PLAYER_JUMPING_OR_DUCKING &199b f0 3d BEQ &19da ; update_jumping_clone &199d c9 06 CMP #&06 ; SPRITE_PLAYER_FLYING_KICK &199f f0 39 BEQ &19da ; update_jumping_clone &19a1 ad 1c 0a LDA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &19a4 c9 28 CMP #&28 ; SPRITE_BUCHU_ATTACK_ONE &19a6 f0 27 BEQ &19cf ; update_flying_buchu &19a8 b0 0c BCS &19b6 ; to_plot_enemy # Don't animate attacking enemies &19aa c9 0f CMP #&0f ; SPRITE_ENEMY - 1 &19ac 90 08 BCC &19b6 ; to_plot_enemy # Don't animate Clone &19ae 49 08 EOR #&08 ; SPRITE_ENEMY_MOVING ^ SPRITE_ENEMY # Animate moving enemy &19b0 8d 1c 0a STA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &19b3 4c 73 1c JMP &1c73 ; set_enemy_flip_and_plot_enemy ; to_plot_enemy &19b6 4c 80 1c JMP &1c80 ; plot_enemy ; flip_enemy_velocity_or_stop_flying_buchu_and_plot_enemy &19b9 ad 1c 0a LDA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &19bc c9 28 CMP #&28 ; SPRITE_BUCHU_ATTACK_ONE &19be d0 03 BNE &19c3 ; flip_enemy_velocity ; to_reset_and_plot_enemy &19c0 4c 62 1c JMP &1c62 ; reset_and_plot_enemy ; flip_enemy_velocity &19c3 a9 00 LDA #&00 &19c5 38 SEC &19c6 ed 82 0a SBC &0a82 ; objects_x_velocity + 1 (OBJECT_ENEMY) &19c9 8d 82 0a STA &0a82 ; objects_x_velocity + 1 (OBJECT_ENEMY) &19cc 4c 73 1c JMP &1c73 ; set_enemy_flip_and_plot_enemy ; update_flying_buchu &19cf ad 6f 0a LDA &0a6f ; suppress_player_damage # Non-zero if damage is suppressed &19d2 d0 03 BNE &19d7 ; to_plot_enemy ; get_enemy_hit_position_and_plot_enemy &19d4 20 88 1c JSR &1c88 ; get_enemy_hit_position ; to_plot_enemy &19d7 4c 80 1c JMP &1c80 ; plot_enemy ; update_jumping_clone &19da ad 8a 0a LDA &0a8a ; objects_y_velocity + 1 (OBJECT_ENEMY) &19dd 38 SEC &19de e9 02 SBC #&02 # Apply gravity &19e0 8d 8a 0a STA &0a8a ; objects_y_velocity + 1 (OBJECT_ENEMY) &19e3 18 CLC &19e4 6d 5a 0a ADC &0a5a ; objects_y_offset + 1 (OBJECT_ENEMY) &19e7 8d 5a 0a STA &0a5a ; objects_y_offset + 1 (OBJECT_ENEMY) &19ea f0 0c BEQ &19f8 ; is_landing &19ec c9 12 CMP #&12 &19ee d0 e7 BNE &19d7 ; to_plot_enemy &19f0 a9 06 LDA #&06 ; SPRITE_PLAYER_FLYING_KICK # Flying kick at top of jump &19f2 8d 1c 0a STA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &19f5 4c d4 19 JMP &19d4 ; get_enemy_hit_position_and_plot_enemy ; is_landing &19f8 20 fd 21 JSR &21fd ; play_sound # Play sound for clone landing (0) &19fb ad 70 0a LDA &0a70 ; enemy_base_sprite &19fe 8d 1c 0a STA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &1a01 4c 73 1c JMP &1c73 ; set_enemy_flip_and_plot_enemy ; update_stationary_enemy &1a04 ad 70 0a LDA &0a70 ; enemy_base_sprite &1a07 8d 1c 0a STA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &1a0a a9 00 LDA #&00 &1a0c 8d 82 0a STA &0a82 ; objects_x_velocity + 1 (OBJECT_ENEMY) &1a0f 8d 5a 0a STA &0a5a ; objects_y_offset + 1 (OBJECT_ENEMY) &1a12 8d 4a 0a STA &0a4a ; objects_x_offset + 1 (OBJECT_ENEMY) &1a15 20 7e 24 JSR &247e ; rnd &1a18 c9 aa CMP #&aa &1a1a b0 03 BCS &1a1f ; consider_moving_enemy_or_starting_attack &1a1c 4c 4e 1a JMP &1a4e ; maintain_distance_or_start_close_attack # 170 in 256 chance of maintaining distance ; consider_moving_enemy_or_starting_attack &1a1f c9 e1 CMP #&e1 &1a21 90 7a BCC &1a9d ; start_distant_attack # 55 in 256 chance of starting distant attack &1a23 c9 e6 CMP #&e6 &1a25 b0 0c BCS &1a33 ; move_enemy_forwards # 26 in 256 chance of moving enemy forwards ; move_enemy_backwards # 5 in 256 chance of moving enemy backwards &1a27 ad 52 0a LDA &0a52 ; objects_flip + 1 (OBJECT_ENEMY) &1a2a 0a ASL A &1a2b 0a ASL A &1a2c 0a ASL A &1a2d 38 SEC &1a2e e9 04 SBC #&04 &1a30 4c 3d 1a JMP &1a3d ; set_enemy_x_velocity ; move_enemy_forwards &1a33 ad 52 0a LDA &0a52 ; objects_flip + 1 (OBJECT_ENEMY) # Zero if facing right, one if facing left &1a36 49 01 EOR #&01 &1a38 0a ASL A &1a39 0a ASL A &1a3a 38 SEC &1a3b e9 02 SBC #&02 ; set_enemy_x_velocity &1a3d 8d 82 0a STA &0a82 ; objects_x_velocity + 1 (OBJECT_ENEMY) &1a40 20 7e 24 JSR &247e ; rnd &1a43 29 07 AND #&07 &1a45 18 CLC &1a46 69 01 ADC #&01 &1a48 8d 62 0a STA &0a62 ; enemy_movement_duration &1a4b 4c 73 1c JMP &1c73 ; set_enemy_flip_and_plot_enemy ; maintain_distance_or_start_close_attack &1a4e ad 0b 0a LDA &0a0b ; objects_x + 0 (OBJECT_PLAYER) &1a51 38 SEC &1a52 ed 0c 0a SBC &0a0c ; objects_x + 1 (OBJECT_ENEMY) &1a55 18 CLC &1a56 aa TAX &1a57 69 10 ADC #&10 &1a59 c9 20 CMP #&20 &1a5b 90 ca BCC &1a27 ; move_enemy_backwards # Move enemy backwards if too close to player &1a5d 8a TXA &1a5e 18 CLC &1a5f 69 20 ADC #&20 &1a61 c9 40 CMP #&40 &1a63 b0 9f BCS &1a04 ; update_stationary_enemy # Remain static if far away from player &1a65 20 7e 24 JSR &247e ; rnd # Otherwise, if reasonably close to player &1a68 29 1f AND #&1f &1a6a 18 CLC &1a6b 6d fd 0a ADC &0afd ; wave &1a6e c9 10 CMP #&10 # (16 + wave) chance in 32 of starting second attack &1a70 90 92 BCC &1a04 ; update_stationary_enemy &1a72 ad fd 0a LDA &0afd ; wave &1a75 c9 08 CMP #&08 ; WAVE_CLONE &1a77 d0 06 BNE &1a7f ; not_clone # Clone copies player &1a79 ad f6 0a LDA &0af6 ; player_attack_sprite_for_clone &1a7c 4c 85 1a JMP &1a85 ; set_enemy_sprite ; not_clone # Attack if near player &1a7f ad 6d 0a LDA &0a6d ; enemy_type &1a82 18 CLC &1a83 69 30 ADC #&30 ; SPRITE_ENEMY_ATTACK_TWO # Start close attack ; set_enemy_sprite &1a85 8d 1c 0a STA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &1a88 a9 03 LDA #&03 # Play sound for enemy attacking &1a8a 20 fd 21 JSR &21fd ; play_sound &1a8d a9 06 LDA #&06 &1a8f 8d 62 0a STA &0a62 ; enemy_movement_duration &1a92 a9 04 LDA #&04 &1a94 8d 4a 0a STA &0a4a ; objects_x_offset + 1 (OBJECT_ENEMY) &1a97 20 88 1c JSR &1c88 ; get_enemy_hit_position &1a9a 4c 73 1c JMP &1c73 ; set_enemy_flip_and_plot_enemy ; start_distant_attack &1a9d a9 00 LDA #&00 # Set to zero to allow damage &1a9f 8d 6f 0a STA &0a6f ; suppress_player_damage &1aa2 ad 6d 0a LDA &0a6d ; enemy_type &1aa5 d0 03 BNE &1aaa ; not_buchu &1aa7 4c a8 1b JMP &1ba8 ; start_buchu_attack ; not_buchu &1aaa c9 01 CMP #&01 ; ENEMY_TYPE_STAR &1aac f0 13 BEQ &1ac1 ; start_star_or_fan_attack &1aae c9 05 CMP #&05 ; ENEMY_TYPE_FAN &1ab0 f0 0f BEQ &1ac1 ; start_star_or_fan_attack &1ab2 c9 02 CMP #&02 ; ENEMY_TYPE_NUNCHA &1ab4 f0 2e BEQ &1ae4 ; start_nuncha_stationary_attack &1ab6 c9 07 CMP #&07 ; ENEMY_TYPE_CLONE &1ab8 f0 3d BEQ &1af7 ; start_clone_attack_or_jump &1aba c9 04 CMP #&04 ; ENEMY_TYPE_CHAIN &1abc f0 76 BEQ &1b34 ; start_chain_attack &1abe 4c 8a 1b JMP &1b8a ; start_pole_or_sword_attack ; start_star_or_fan_attack &1ac1 20 7e 24 JSR &247e ; rnd &1ac4 29 03 AND #&03 &1ac6 18 CLC &1ac7 6d f9 0a ADC &0af9 ; half_round &1aca c9 02 CMP #&02 # (2 + half_round) chance in four of throwing projectiles &1acc 90 13 BCC &1ae1 ; to_set_enemy_flip_and_plot_enemy &1ace ad 6d 0a LDA &0a6d ; enemy_type &1ad1 18 CLC &1ad2 69 28 ADC #&28 ; SPRITE_ENEMY_ATTACK_ONE &1ad4 8d 1c 0a STA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &1ad7 a9 02 LDA #&02 # Set to non-zero to start throwing projectiles &1ad9 8d d1 0a STA &0ad1 ; enemy_projectile_cooldown &1adc a9 07 LDA #&07 # Play sound for Star or Fan throwing projectiles &1ade 20 fd 21 JSR &21fd ; play_sound ; to_set_enemy_flip_and_plot_enemy &1ae1 4c 73 1c JMP &1c73 ; set_enemy_flip_and_plot_enemy ; start_nuncha_stationary_attack &1ae4 20 7e 24 JSR &247e ; rnd &1ae7 29 07 AND #&07 &1ae9 18 CLC &1aea 69 04 ADC #&04 # Stationary attack for 4 - 11 frames &1aec 8d d8 0a STA &0ad8 ; nuncha_stationary_attack_duration &1aef a9 2a LDA #&2a ; SPRITE_NUNCHA_ATTACK_ONE # Start with nunchaku up &1af1 8d 1c 0a STA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &1af4 4c a2 1b JMP &1ba2 ; get_enemy_hit_position_set_enemy_flip_and_plot_enemy ; start_clone_attack_or_jump &1af7 a9 04 LDA #&04 &1af9 8d 4a 0a STA &0a4a ; objects_x_offset + 1 (OBJECT_ENEMY) &1afc 20 7e 24 JSR &247e ; rnd &1aff 29 07 AND #&07 &1b01 48 PHA ; rnd &1b02 18 CLC &1b03 69 03 ADC #&03 ; SPRITE_PLAYER_ANKLE_KICK # &03 - &0a, i.e. random kick or punch &1b05 8d 1c 0a STA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &1b08 68 PLA ; rnd &1b09 29 03 AND #&03 &1b0b c9 03 CMP #&03 # 1 in 4 chance of jump, otherwise kick or punch &1b0d f0 03 BEQ &1b12 ; start_clone_jump &1b0f 4c 93 1b JMP &1b93 ; start_enemy_attack_and_play_sound ; start_clone_jump &1b12 a9 02 LDA #&02 ; SPRITE_PLAYER_JUMPING_OR_DUCKING &1b14 8d 1c 0a STA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &1b17 a9 08 LDA #&08 &1b19 8d 8a 0a STA &0a8a ; objects_y_velocity + 1 (OBJECT_ENEMY) &1b1c 8d 5a 0a STA &0a5a ; objects_y_offset + 1 (OBJECT_ENEMY) &1b1f 0a ASL A &1b20 8d 62 0a STA &0a62 ; enemy_movement_duration &1b23 ad 52 0a LDA &0a52 ; objects_flip + 1 (OBJECT_ENEMY) &1b26 49 01 EOR #&01 &1b28 0a ASL A &1b29 0a ASL A &1b2a 0a ASL A &1b2b 38 SEC &1b2c e9 04 SBC #&04 &1b2e 8d 82 0a STA &0a82 ; objects_x_velocity + 1 (OBJECT_ENEMY) &1b31 4c 73 1c JMP &1c73 ; set_enemy_flip_and_plot_enemy ; start_chain_attack &1b34 a0 02 LDY #&02 ; OBJECT_FIRST_ENEMY_PROJECTILE &1b36 20 80 18 JSR &1880 ; unplot_object # Unplot spinning chain &1b39 ad 14 0a LDA &0a14 ; objects_y + 1 (OBJECT_ENEMY) &1b3c 38 SEC &1b3d e9 08 SBC #&08 # Lower chain for throwing &1b3f 99 13 0a STA &0a13,Y ; objects_y &1b42 a9 2c LDA #&2c ; SPRITE_CHAIN_ATTACK_ONE &1b44 8d 1c 0a STA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &1b47 20 7e 24 JSR &247e ; rnd &1b4a 29 03 AND #&03 &1b4c 18 CLC &1b4d 69 03 ADC #&03 # Random length of chain to throw &1b4f 8d ff 0a STA &0aff ; chain_remaining &1b52 8d fe 0a STA &0afe ; chain_length &1b55 0a ASL A &1b56 8d d1 0a STA &0ad1 ; enemy_projectile_cooldown &1b59 ad 52 0a LDA &0a52 ; objects_flip + 1 (OBJECT_ENEMY) &1b5c 49 01 EOR #&01 &1b5e 99 51 0a STA &0a51,Y ; objects_flip &1b61 0a ASL A &1b62 0a ASL A &1b63 0a ASL A &1b64 0a ASL A &1b65 38 SEC &1b66 e9 08 SBC #&08 &1b68 99 81 0a STA &0a81,Y ; objects_x_velocity &1b6b 18 CLC &1b6c 6d 0c 0a ADC &0a0c ; objects_x + 1 (OBJECT_ENEMY) &1b6f 18 CLC &1b70 69 04 ADC #&04 &1b72 99 0b 0a STA &0a0b,Y ; objects_x &1b75 a9 3c LDA #&3c ; SPRITE_CHAIN_PROJECTILE &1b77 99 1b 0a STA &0a1b,Y ; objects_sprite &1b7a 20 31 18 JSR &1831 ; plot_object # Plot part of chain &1b7d a9 00 LDA #&00 # Set to zero to allow damage &1b7f 8d 6f 0a STA &0a6f ; suppress_player_damage &1b82 a9 07 LDA #&07 # Play sound for Chain firing chain &1b84 20 fd 21 JSR &21fd ; play_sound &1b87 4c 80 1c JMP &1c80 ; plot_enemy ; start_pole_or_sword_attack &1b8a a9 28 LDA #&28 ; SPRITE_ENEMY_ATTACK_ONE &1b8c 18 CLC &1b8d 6d 6d 0a ADC &0a6d ; enemy_type &1b90 8d 1c 0a STA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) ; start_enemy_attack_and_play_sound &1b93 a9 02 LDA #&02 &1b95 8d 62 0a STA &0a62 ; enemy_movement_duration &1b98 a9 03 LDA #&03 # Play sound for enemy attack &1b9a 20 fd 21 JSR &21fd ; play_sound &1b9d a9 04 LDA #&04 &1b9f 8d 4a 0a STA &0a4a ; objects_x_offset + 1 (OBJECT_ENEMY) ; get_enemy_hit_position_set_enemy_flip_and_plot_enemy &1ba2 20 88 1c JSR &1c88 ; get_enemy_hit_position &1ba5 4c 73 1c JMP &1c73 ; set_enemy_flip_and_plot_enemy ; start_buchu_attack &1ba8 ad 0c 0a LDA &0a0c ; objects_x + 1 (OBJECT_ENEMY) &1bab cd 0b 0a CMP &0a0b ; objects_x + 0 (OBJECT_PLAYER) &1bae a9 00 LDA #&00 &1bb0 69 00 ADC #&00 &1bb2 8d 52 0a STA &0a52 ; objects_flip + 1 (OBJECT_ENEMY) # Set Bunch facing player &1bb5 ad 52 0a LDA &0a52 ; objects_flip + 1 (OBJECT_ENEMY) &1bb8 49 01 EOR #&01 &1bba 0a ASL A &1bbb 0a ASL A &1bbc 0a ASL A &1bbd 0a ASL A &1bbe 38 SEC &1bbf e9 08 SBC #&08 &1bc1 8d 82 0a STA &0a82 ; objects_x_velocity + 1 (OBJECT_ENEMY) &1bc4 18 CLC &1bc5 6d 0c 0a ADC &0a0c ; objects_x + 1 (OBJECT_ENEMY) &1bc8 38 SEC &1bc9 e9 10 SBC #&10 &1bcb c9 84 CMP #&84 &1bcd b0 20 BCS &1bef ; at_edge_of_screen &1bcf a9 fc LDA #&fc &1bd1 8d 4a 0a STA &0a4a ; objects_x_offset + 1 (OBJECT_ENEMY) &1bd4 a9 28 LDA #&28 ; SPRITE_BUCHU_ATTACK_ONE # Set Buchu flying &1bd6 8d 1c 0a STA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &1bd9 20 7e 24 JSR &247e ; rnd &1bdc 29 0f AND #&0f &1bde 18 CLC &1bdf 69 08 ADC #&08 &1be1 8d 62 0a STA &0a62 ; enemy_movement_duration &1be4 20 7e 24 JSR &247e ; rnd &1be7 29 1f AND #&1f &1be9 8d 5a 0a STA &0a5a ; objects_y_offset + 1 (OBJECT_ENEMY) &1bec 4c 73 1c JMP &1c73 ; set_enemy_flip_and_plot_enemy ; at_edge_of_screen &1bef a9 00 LDA #&00 # Stop Buchu at edge of screen &1bf1 8d 82 0a STA &0a82 ; objects_x_velocity + 1 (OBJECT_ENEMY) &1bf4 4c 73 1c JMP &1c73 ; set_enemy_flip_and_plot_enemy ; add_enemy_projectile &1bf7 a0 04 LDY #&04 ; OBJECT_LAST_ENEMY_PROJECTILE - 1 # Final slot is unused ; find_free_slot_loop &1bf9 b9 1b 0a LDA &0a1b,Y ; objects_sprite # Zero if no object in slot &1bfc f0 0e BEQ &1c0c ; found_free_slot &1bfe 88 DEY &1bff c0 02 CPY #&02 ; OBJECT_FIRST_ENEMY_PROJECTILE &1c01 10 f6 BPL &1bf9 ; find_free_slot_loop &1c03 ad 70 0a LDA &0a70 ; enemy_base_sprite &1c06 8d 1c 0a STA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &1c09 4c 73 1c JMP &1c73 ; set_enemy_flip_and_plot_enemy ; found_free_slot &1c0c 20 7e 24 JSR &247e ; rnd &1c0f 29 0f AND #&0f &1c11 85 7a STA &7a ; tmp # Unnecessary code; overwritten at &1c20 &1c13 18 CLC &1c14 69 23 ADC #&23 &1c16 99 13 0a STA &0a13,Y ; objects_y &1c19 ad 52 0a LDA &0a52 ; objects_flip + 1 (OBJECT_ENEMY) &1c1c 49 01 EOR #&01 &1c1e 0a ASL A &1c1f 0a ASL A &1c20 85 7a STA &7a ; tmp &1c22 0a ASL A &1c23 18 CLC &1c24 65 7a ADC &7a ; tmp &1c26 38 SEC &1c27 e9 06 SBC #&06 &1c29 99 81 0a STA &0a81,Y ; objects_x_velocity &1c2c 48 PHA ; object x velocity &1c2d 18 CLC &1c2e 6d 0c 0a ADC &0a0c ; objects_x + 1 (OBJECT_ENEMY) &1c31 18 CLC &1c32 69 04 ADC #&04 &1c34 99 0b 0a STA &0a0b,Y ; objects_x &1c37 68 PLA ; object x velocity &1c38 29 80 AND #&80 # Random clockwise or anti-clockwise direction for fans &1c3a 4a LSR A &1c3b 18 CLC &1c3c 69 0d ADC #&0d &1c3e 85 7a STA &7a ; tmp &1c40 20 7e 24 JSR &247e ; rnd &1c43 29 03 AND #&03 &1c45 18 CLC &1c46 65 7a ADC &7a ; tmp &1c48 99 89 0a STA &0a89,Y ; objects_y_velocity &1c4b ad 6d 0a LDA &0a6d ; enemy_type &1c4e c9 01 CMP #&01 ; ENEMY_STAR &1c50 f0 05 BEQ &1c57 ; is_star &1c52 a9 3d LDA #&3d ; SPRITE_FAN_PROJECTILE &1c54 4c 59 1c JMP &1c59 ; set_enemy_projectile_sprite ; is_star &1c57 a9 0d LDA #&0d ; SPRITE_STAR_PROJECTILE ; set_enemy_projectile_sprite &1c59 99 1b 0a STA &0a1b,Y ; objects_sprite &1c5c 20 31 18 JSR &1831 ; plot_object &1c5f 4c 73 1c JMP &1c73 ; set_enemy_flip_and_plot_enemy ; reset_and_plot_enemy &1c62 ad 70 0a LDA &0a70 ; enemy_base_sprite &1c65 8d 1c 0a STA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &1c68 a9 00 LDA #&00 &1c6a 8d 82 0a STA &0a82 ; objects_x_velocity + 1 (OBJECT_ENEMY) &1c6d 8d 5a 0a STA &0a5a ; objects_y_offset + 1 (OBJECT_ENEMY) &1c70 8d 4a 0a STA &0a4a ; objects_x_offset + 1 (OBJECT_ENEMY) ; set_enemy_flip_and_plot_enemy &1c73 ad 0c 0a LDA &0a0c ; objects_x + 1 (OBJECT_ENEMY) &1c76 cd 0b 0a CMP &0a0b ; objects_x + 0 (OBJECT_PLAYER) &1c79 a9 00 LDA #&00 &1c7b 69 00 ADC #&00 &1c7d 8d 52 0a STA &0a52 ; objects_flip + 1 (OBJECT_ENEMY) ; plot_enemy &1c80 20 7f 1d JSR &1d7f ; set_enemy_y &1c83 a0 01 LDY #&01 ; OBJECT_ENEMY &1c85 4c 31 18 JMP &1831 ; plot_object ; get_enemy_hit_position &1c88 20 7f 1d JSR &1d7f ; set_enemy_y &1c8b ae 1c 0a LDX &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &1c8e ad 52 0a LDA &0a52 ; objects_flip + 1 (OBJECT_ENEMY) &1c91 d0 0e BNE &1ca1 ; is_flipped ; not_flipped &1c93 ad 0c 0a LDA &0a0c ; objects_x + 1 (OBJECT_ENEMY) &1c96 18 CLC &1c97 6d 4a 0a ADC &0a4a ; objects_x_offset + 1 (OBJECT_ENEMY) &1c9a 18 CLC &1c9b 7d 80 0b ADC &0b80,X ; sprites_attack_x_offset_table &1c9e 4c c1 1c JMP &1cc1 ; set_attack_x ; is_flipped &1ca1 bd 80 06 LDA &0680,X ; sprite_widths_table &1ca4 48 PHA ; sprite width &1ca5 0a ASL A &1ca6 0a ASL A &1ca7 18 CLC &1ca8 6d 0c 0a ADC &0a0c ; objects_x + 1 (OBJECT_ENEMY) &1cab 38 SEC &1cac ed 4a 0a SBC &0a4a ; objects_x_offset + 1 (OBJECT_ENEMY) &1caf 38 SEC &1cb0 fd 80 0b SBC &0b80,X ; sprites_attack_x_offset_table &1cb3 8d d6 0a STA &0ad6 ; attack_x &1cb6 68 PLA ; sprite_width &1cb7 c9 05 CMP #&05 &1cb9 90 09 BCC &1cc4 ; skip_setting_attack_x &1cbb ad d6 0a LDA &0ad6 ; attack_x &1cbe 38 SEC &1cbf e9 08 SBC #&08 ; set_attack_x &1cc1 8d d6 0a STA &0ad6 ; attack_x ; skip_setting_attack_x &1cc4 ad 14 0a LDA &0a14 ; objects_y + 1 (OBJECT_ENEMY) &1cc7 18 CLC &1cc8 6d 5a 0a ADC &0a5a ; objects_y_offset + 1 (OBJECT_ENEMY) &1ccb 38 SEC &1ccc fd c0 0b SBC &0bc0,X ; sprites_attack_y_offset_table &1ccf 8d d5 0a STA &0ad5 ; attack_y &1cd2 ac d5 0a LDY &0ad5 ; attack_y &1cd5 ae d6 0a LDX &0ad6 ; attack_x &1cd8 20 1c 22 JSR &221c ; calculate_screen_address &1cdb a0 00 LDY #&00 &1cdd b1 70 LDA (&70),Y ; screen_address # Check if enemy's attack hits part of player &1cdf f0 1a BEQ &1cfb ; leave_with_zero &1ce1 a9 0e LDA #&0e ; SPRITE_HIT_ENEMY &1ce3 20 ad 1d JSR &1dad ; add_hit &1ce6 ad d6 0a LDA &0ad6 ; attack_x &1ce9 38 SEC &1cea e9 04 SBC #&04 &1cec 99 0b 0a STA &0a0b,Y ; objects_x &1cef ad d5 0a LDA &0ad5 ; attack_y &1cf2 18 CLC &1cf3 69 04 ADC #&04 &1cf5 99 13 0a STA &0a13,Y ; objects_y &1cf8 20 5e 1d JSR &1d5e ; damage_player ; leave_with_zero &1cfb a9 00 LDA #&00 # Unnecessary code; return value unused &1cfd 60 RTS ; update_feedle &1cfe ad 48 0a LDA &0a48 ; enemy_energy &1d01 f0 19 BEQ &1d1c ; leave &1d03 a0 04 LDY #&04 ; OBJECT_LAST_ENEMY_PROJECTILE - 1 # Final slot is unused ; find_free_slot_loop &1d05 b9 1b 0a LDA &0a1b,Y ; objects_sprite # Zero if no object in slot &1d08 d0 0d BNE &1d17 ; consider_next_enemy_projectile &1d0a 20 7e 24 JSR &247e ; rnd &1d0d 29 0f AND #&0f &1d0f 18 CLC &1d10 6d 40 0a ADC &0a40 ; round &1d13 c9 0f CMP #&0f # (1 + round) in 16 chance of adding projectile &1d15 b0 06 BCS &1d1d ; add_feedle_projectile ; consider_next_enemy_projectile &1d17 88 DEY &1d18 c0 02 CPY #&02 ; OBJECT_FIRST_ENEMY_PROJECTILE &1d1a 10 e9 BPL &1d05 ; find_free_slot_loop ; leave &1d1c 60 RTS ; add_feedle_projectile # Called with Y = enemy object slot &1d1d 20 7e 24 JSR &247e ; rnd &1d20 29 01 AND #&01 &1d22 18 CLC &1d23 69 38 ADC #&38 ; SPRITE_FEEDLE_PROJECTILE # Use one of two sprites at random &1d25 99 1b 0a STA &0a1b,Y ; objects_sprite &1d28 20 7e 24 JSR &247e ; rnd &1d2b 20 7e 24 JSR &247e ; rnd &1d2e 20 7e 24 JSR &247e ; rnd &1d31 29 1f AND #&1f # Random height &1d33 18 CLC &1d34 69 19 ADC #&19 &1d36 99 13 0a STA &0a13,Y ; objects_y &1d39 20 7e 24 JSR &247e ; rnd &1d3c 29 01 AND #&01 # Random direction &1d3e 99 51 0a STA &0a51,Y ; objects_flip &1d41 f0 02 BEQ &1d45 ; set_feedle_object_x # Add from left of screen if moving right &1d43 a9 98 LDA #&98 # Add from right of screen if moving left ; set_feedle_object_x &1d45 99 0b 0a STA &0a0b,Y ; objects_x &1d48 b9 51 0a LDA &0a51,Y ; objects_flip &1d4b 49 01 EOR #&01 &1d4d 0a ASL A &1d4e 0a ASL A &1d4f 85 7a STA &7a ; tmp &1d51 0a ASL A &1d52 18 CLC &1d53 65 7a ADC &7a ; tmp &1d55 38 SEC &1d56 e9 06 SBC #&06 &1d58 99 81 0a STA &0a81,Y ; objects_x_velocity &1d5b 4c 31 18 JMP &1831 ; plot_object ; damage_player &1d5e 98 TYA &1d5f 48 PHA ; tmp_y &1d60 a9 01 LDA #&01 # Set to non-zero to suppress further damage &1d62 8d 6f 0a STA &0a6f ; suppress_player_damage &1d65 ce 47 0a DEC &0a47 ; player_energy &1d68 d0 0a BNE &1d74 ; not_out_of_energy &1d6a ad 00 0a LDA &0a00 ; wave_state # Non-zero if player won wave or quit game &1d6d d0 05 BNE &1d74 ; not_out_of_energy &1d6f a9 02 LDA #&02 # Set to &02 to indicate player defeated &1d71 8d 00 0a STA &0a00 ; wave_state ; not_out_of_energy &1d74 20 2b 21 JSR &212b ; plot_player_energy &1d77 a9 03 LDA #&03 # Play sound for player being damaged &1d79 20 fd 21 JSR &21fd ; play_sound &1d7c 68 PLA ; tmp_y &1d7d a8 TAY &1d7e 60 RTS ; set_enemy_y &1d7f ad 1c 0a LDA &0a1c ; objects_sprite + 1 (OBJECT_ENEMY) &1d82 aa TAX &1d83 bd c0 06 LDA &06c0,X ; sprite_heights_table &1d86 0a ASL A &1d87 0a ASL A &1d88 0a ASL A &1d89 18 CLC &1d8a 69 13 ADC #&13 &1d8c 8d 14 0a STA &0a14 ; objects_y + 1 (OBJECT_ENEMY) &1d8f 60 RTS ; update_hit &1d90 a0 06 LDY #&06 ; OBJECT_HIT &1d92 b9 1b 0a LDA &0a1b,Y ; objects_sprite # Zero if no object in slot &1d95 f0 15 BEQ &1dac ; leave &1d97 ce 6e 0a DEC &0a6e ; hit_cooldown &1d9a f0 08 BEQ &1da4 ; remove_hit &1d9c a0 06 LDY #&06 ; OBJECT_HIT &1d9e 20 80 18 JSR &1880 ; unplot_object &1da1 4c 31 18 JMP &1831 ; plot_object ; remove_hit &1da4 20 80 18 JSR &1880 ; unplot_object &1da7 a9 00 LDA #&00 &1da9 99 1b 0a STA &0a1b,Y ; objects_sprite ; leave &1dac 60 RTS ; add_hit # Called with A = sprite &1dad 48 PHA ; sprite &1dae a0 06 LDY #&06 ; OBJECT_HIT &1db0 ad 6e 0a LDA &0a6e ; hit_cooldown &1db3 f0 03 BEQ &1db8 ; skip_unplotting_hit &1db5 20 80 18 JSR &1880 ; unplot_object # Unplot previous hit ; skip_unplotting_hit &1db8 68 PLA ; sprite &1db9 99 1b 0a STA &0a1b,Y ; objects_sprite &1dbc a9 0a LDA #&0a &1dbe 8d 6e 0a STA &0a6e ; hit_cooldown &1dc1 60 RTS ; add_right_waterfall_pixel &1dc2 20 7e 24 JSR &247e ; rnd &1dc5 29 07 AND #&07 &1dc7 9d c1 0a STA &0ac1,X ; waterfall_pixels_y_velocity &1dca a9 00 LDA #&00 &1dcc 9d b1 0a STA &0ab1,X ; waterfall_pixels_x_velocity &1dcf 20 7e 24 JSR &247e ; rnd &1dd2 20 7e 24 JSR &247e ; rnd &1dd5 29 9f AND #&9f &1dd7 9d 91 0a STA &0a91,X ; waterfall_pixels_x &1dda a9 be LDA #&be &1ddc 9d a1 0a STA &0aa1,X ; waterfall_pixels_y &1ddf 4c 58 1e JMP &1e58 ; update_waterfall_pixel ; initialise_waterfall_pixel &1de2 20 7e 24 JSR &247e ; rnd &1de5 29 d0 AND #&d0 &1de7 d0 72 BNE &1e5b ; skip_plotting_waterfall_pixel &1de9 20 7e 24 JSR &247e ; rnd &1dec 20 7e 24 JSR &247e ; rnd &1def 29 07 AND #&07 &1df1 f0 cf BEQ &1dc2 ; add_right_waterfall_pixel ; add_left_waterfall_pixel &1df3 18 CLC &1df4 69 22 ADC #&22 &1df6 9d 91 0a STA &0a91,X ; waterfall_pixels_x &1df9 a9 b2 LDA #&b2 &1dfb 9d a1 0a STA &0aa1,X ; waterfall_pixels_y &1dfe 20 7e 24 JSR &247e ; rnd &1e01 29 07 AND #&07 &1e03 38 SEC &1e04 e9 06 SBC #&06 &1e06 9d c1 0a STA &0ac1,X ; waterfall_pixels_y_velocity &1e09 20 7e 24 JSR &247e ; rnd &1e0c 29 03 AND #&03 &1e0e 38 SEC &1e0f e9 03 SBC #&03 &1e11 9d b1 0a STA &0ab1,X ; waterfall_pixels_x_velocity &1e14 4c 58 1e JMP &1e58 ; update_waterfall_pixel ; update_waterfall_and_high_score_colours &1e17 08 PHP &1e18 48 PHA ; tmp_a &1e19 98 TYA &1e1a 48 PHA ; tmp_y &1e1b 8a TXA &1e1c 48 PHA ; tmp_x &1e1d ce d4 0a DEC &0ad4 ; waterfall_cooldown &1e20 d0 77 BNE &1e99 ; leave_after_restoring_registers &1e22 ad f9 0a LDA &0af9 ; half_round &1e25 29 01 AND #&01 # Lowest bit is zero in waterfall, non-zero in temple &1e27 d0 35 BNE &1e5e ; skip_updating_waterfall ; update_waterfall &1e29 a2 0f LDX #&0f ; update_waterfall_loop &1e2b bd a1 0a LDA &0aa1,X ; waterfall_pixels_y &1e2e c9 6e CMP #&6e &1e30 30 b0 BMI &1de2 ; initialise_waterfall_pixel &1e32 20 a0 1e JSR &1ea0 ; plot_waterfall_pixel &1e35 bd b1 0a LDA &0ab1,X ; waterfall_pixels_x_velocity &1e38 f0 03 BEQ &1e3d ; skip_deceleration &1e3a fe b1 0a INC &0ab1,X ; waterfall_pixels_x_velocity ; skip_deceleration &1e3d de c1 0a DEC &0ac1,X ; waterfall_pixels_y_velocity &1e40 bd 91 0a LDA &0a91,X ; waterfall_pixels_x &1e43 18 CLC &1e44 7d b1 0a ADC &0ab1,X ; waterfall_pixels_x_velocity &1e47 9d 91 0a STA &0a91,X ; waterfall_pixels_x &1e4a bd a1 0a LDA &0aa1,X ; waterfall_pixels_y &1e4d 18 CLC &1e4e 7d c1 0a ADC &0ac1,X ; waterfall_pixels_y_velocity &1e51 9d a1 0a STA &0aa1,X ; waterfall_pixels_y &1e54 c9 6e CMP #&6e &1e56 90 03 BCC &1e5b ; skip_plotting_waterfall_pixel ; update_waterfall_pixel &1e58 20 a0 1e JSR &1ea0 ; plot_waterfall_pixel ; skip_plotting_waterfall_pixel &1e5b ca DEX &1e5c 10 cd BPL &1e2b ; update_waterfall_loop &1e5e a9 04 LDA #&04 ; skip_updating_waterfall &1e60 8d d4 0a STA &0ad4 ; waterfall_cooldown &1e63 ad f8 0a LDA &0af8 ; initial_palette_offset # Zero in waterfall, &08 in high scores, &0e in temple grounds &1e66 c9 08 CMP #&08 &1e68 d0 2f BNE &1e99 ; leave_after_restoring_registers ; update_high_score_colours &1e6a ad 2e 0a LDA &0a2e ; palette_colours + &8 + 2 &1e6d 18 CLC &1e6e 69 01 ADC #&01 # Rotate logo colour &1e70 29 87 AND #&87 &1e72 8d 2e 0a STA &0a2e ; palette_colours + &8 + 2 # Set logo colour &1e75 ad e6 0a LDA &0ae6 ; palette_delays + &8 + 4 &1e78 18 CLC &1e79 69 02 ADC #&02 # Move high score colour boundary down &1e7b 8d e6 0a STA &0ae6 ; palette_delays + &8 + 4 &1e7e c9 14 CMP #&14 &1e80 90 17 BCC &1e99 ; leave_after_restoring_registers &1e82 a9 04 LDA #&04 &1e84 8d e6 0a STA &0ae6 ; palette_delays + &8 + 4 &1e87 ad 2d 0a LDA &0a2d ; palette_colours + &8 + 1 # Use previous top high score colour &1e8a 8d 2f 0a STA &0a2f ; palette_colours + &8 + 3 # to set bottom high score colour &1e8d 18 CLC &1e8e 69 01 ADC #&01 # Rotate high score colours &1e90 c9 26 CMP #&26 &1e92 90 02 BCC &1e96 ; skip_wraparound &1e94 a9 20 LDA #&20 ; skip_wraparound &1e96 8d 2d 0a STA &0a2d ; palette_colours + &8 + 1 # Set top high score colour ; leave_after_restoring_registers &1e99 68 PLA ; tmp_x &1e9a aa TAX &1e9b 68 PLA ; tmp_y &1e9c a8 TAY &1e9d 68 PLA ; tmp_a &1e9e 28 PLP &1e9f 60 RTS ; plot_waterfall_pixel &1ea0 8a TXA &1ea1 48 PHA ; tmp_x &1ea2 a9 88 LDA #&88 ; 3000 &1ea4 8d d7 0a STA &0ad7 ; pixel_value &1ea7 bd 91 0a LDA &0a91,X ; waterfall_pixels_x &1eaa 29 03 AND #&03 &1eac a8 TAY &1ead f0 06 BEQ &1eb5 ; skip_shifting_pixel_value ; shift_pixel_value_loop &1eaf 4e d7 0a LSR &0ad7 ; pixel_value &1eb2 88 DEY &1eb3 d0 fa BNE &1eaf ; shift_pixel_value_loop ; skip_shifting_pixel_value &1eb5 bc a1 0a LDY &0aa1,X ; waterfall_pixels_y &1eb8 bd 91 0a LDA &0a91,X ; waterfall_pixels_x &1ebb aa TAX &1ebc a9 00 LDA #&00 &1ebe 85 7e STA &7e ; row_address_low &1ec0 85 7f STA &7f ; row_address_high &1ec2 98 TYA &1ec3 49 ff EOR #&ff &1ec5 a8 TAY &1ec6 29 f8 AND #&f8 &1ec8 4a LSR A &1ec9 4a LSR A &1eca 85 7f STA &7f ; row_address_high &1ecc 4a LSR A &1ecd 4a LSR A &1ece 08 PHP &1ecf 18 CLC &1ed0 65 7f ADC &7f ; row_address_high &1ed2 85 7f STA &7f ; row_address_high &1ed4 28 PLP &1ed5 66 7e ROR &7e ; row_address_low &1ed7 46 7f LSR &7f ; row_address_high &1ed9 66 7e ROR &7e ; row_address_low &1edb 98 TYA &1edc 29 07 AND #&07 &1ede 18 CLC &1edf 65 7e ADC &7e ; row_address_low &1ee1 85 7e STA &7e ; row_address_low &1ee3 a9 58 LDA #&58 &1ee5 65 7f ADC &7f ; row_address_high &1ee7 85 7f STA &7f ; row_address_high &1ee9 a9 00 LDA #&00 &1eeb 85 7c STA &7c ; pixel_screen_address_low &1eed 85 7d STA &7d ; pixel_screen_address_high &1eef 8a TXA &1ef0 4a LSR A &1ef1 29 fe AND #&fe &1ef3 85 7c STA &7c ; pixel_screen_address_low &1ef5 06 7c ASL &7c ; pixel_screen_address_low &1ef7 26 7d ROL &7d ; pixel_screen_address_high &1ef9 06 7c ASL &7c ; pixel_screen_address_low &1efb 26 7d ROL &7d ; pixel_screen_address_high &1efd 18 CLC &1efe a5 7c LDA &7c ; pixel_screen_address_low &1f00 65 7e ADC &7e ; row_address_low &1f02 85 7c STA &7c ; pixel_screen_address_low &1f04 a5 7d LDA &7d ; pixel_screen_address_high &1f06 65 7f ADC &7f ; row_address_high &1f08 85 7d STA &7d ; pixel_screen_address_high &1f0a a0 00 LDY #&00 &1f0c b1 7c LDA (&7c),Y ; pixel_screen_address &1f0e 4d d7 0a EOR &0ad7 ; pixel_value &1f11 91 7c STA (&7c),Y ; pixel_screen_address # Plot waterfall pixel &1f13 68 PLA ; tmp_x &1f14 aa TAX &1f15 60 RTS ; shorten_chain_at_edge_of_screen &1f16 ad fe 0a LDA &0afe ; chain_length &1f19 38 SEC &1f1a ed ff 0a SBC &0aff ; chain_remaining &1f1d 8d fe 0a STA &0afe ; chain_length &1f20 8d d1 0a STA &0ad1 ; enemy_projectile_cooldown &1f23 a9 00 LDA #&00 &1f25 8d ff 0a STA &0aff ; chain_remaining &1f28 4c 3c 1f JMP &1f3c ; start_shortening_chain ; update_chain_projectile &1f2b a0 02 LDY #&02 ; OBJECT_FIRST_ENEMY_PROJECTILE # Chain only uses first projectile slot &1f2d ad fe 0a LDA &0afe ; chain_length # Zero if chain is being spun, not thrown &1f30 f0 45 BEQ &1f77 ; spin_chain &1f32 ad ff 0a LDA &0aff ; chain_remaining # Zero if chain is being retracted &1f35 f0 28 BEQ &1f5f ; shorten_chain &1f37 ce ff 0a DEC &0aff ; chain_remaining &1f3a d0 0c BNE &1f48 ; lengthen_chain ; start_shortening_chain &1f3c a9 07 LDA #&07 # Play sound for chain being retracted &1f3e 20 fd 21 JSR &21fd ; play_sound &1f41 a9 00 LDA #&00 # Set to zero to allow damage &1f43 8d 6f 0a STA &0a6f ; suppress_player_damage &1f46 f0 17 BEQ &1f5f ; shorten_chain # Always branches ; lengthen_chain &1f48 b9 0b 0a LDA &0a0b,Y ; objects_x &1f4b 18 CLC &1f4c 79 81 0a ADC &0a81,Y ; objects_x_velocity # Move end of chain away from Chain &1f4f c9 91 CMP #&91 &1f51 b0 c3 BCS &1f16 ; shorten_chain_at_edge_of_screen &1f53 99 0b 0a STA &0a0b,Y ; objects_x &1f56 20 80 18 JSR &1880 ; unplot_object # Unplot previous end of chain &1f59 20 31 18 JSR &1831 ; plot_object # Plot new end of chain &1f5c 4c c3 1f JMP &1fc3 ; check_for_chain_collision_with_player ; shorten_chain &1f5f 20 80 18 JSR &1880 ; unplot_object # Unplot end of chain &1f62 ce fe 0a DEC &0afe ; chain_length &1f65 f0 10 BEQ &1f77 ; spin_chain &1f67 b9 0b 0a LDA &0a0b,Y ; objects_x &1f6a 38 SEC &1f6b f9 81 0a SBC &0a81,Y ; objects_x_velocity # Move end of chain towards Chain &1f6e 99 0b 0a STA &0a0b,Y ; objects_x &1f71 20 31 18 JSR &1831 ; plot_object # Replot end of chain &1f74 4c c3 1f JMP &1fc3 ; check_for_chain_collision_with_player ; spin_chain &1f77 a9 00 LDA #&00 # Set to zero to allow damage &1f79 8d 6f 0a STA &0a6f ; suppress_player_damage &1f7c a9 3c LDA #&3c ; SPRITE_CHAIN_PROJECTILE &1f7e 99 1b 0a STA &0a1b,Y ; objects_sprite &1f81 20 80 18 JSR &1880 ; unplot_object # Unplot chain above Chain's head &1f84 a9 33 LDA #&33 &1f86 18 CLC &1f87 69 08 ADC #&08 &1f89 99 13 0a STA &0a13,Y ; objects_y &1f8c b9 51 0a LDA &0a51,Y ; objects_flip &1f8f 49 01 EOR #&01 # Animate spinning chain &1f91 99 51 0a STA &0a51,Y ; objects_flip &1f94 ad 52 0a LDA &0a52 ; objects_flip + 1 (OBJECT_ENEMY) &1f97 0a ASL A &1f98 18 CLC &1f99 79 51 0a ADC &0a51,Y ; objects_flip &1f9c 0a ASL A &1f9d 0a ASL A &1f9e 0a ASL A &1f9f 18 CLC &1fa0 6d 0c 0a ADC &0a0c ; objects_x + 1 (OBJECT_ENEMY) &1fa3 38 SEC &1fa4 e9 0c SBC #&0c &1fa6 99 0b 0a STA &0a0b,Y ; objects_x &1fa9 ad 4a 0a LDA &0a4a ; objects_x_offset + 1 (OBJECT_ENEMY) &1fac f0 12 BEQ &1fc0 ; not_kicking &1fae ad 52 0a LDA &0a52 ; objects_flip + 1 (OBJECT_ENEMY) &1fb1 49 01 EOR #&01 &1fb3 0a ASL A &1fb4 0a ASL A &1fb5 0a ASL A &1fb6 38 SEC &1fb7 e9 04 SBC #&04 &1fb9 18 CLC &1fba 79 0b 0a ADC &0a0b,Y ; objects_x &1fbd 99 0b 0a STA &0a0b,Y ; objects_x ; not_kicking &1fc0 20 31 18 JSR &1831 ; plot_object # Plot chain above Chain's head ; check_for_chain_collision_with_player &1fc3 ad 6f 0a LDA &0a6f ; suppress_player_damage # Non-zero if damage is suppressed &1fc6 d0 03 BNE &1fcb ; leave &1fc8 20 4f 20 JSR &204f ; check_for_object_collision_with_player ; leave &1fcb 60 RTS ; update_enemy_projectiles &1fcc ad fd 0a LDA &0afd ; wave &1fcf c9 05 CMP #&05 ; WAVE_CHAIN &1fd1 d0 03 BNE &1fd6 ; not_chain &1fd3 4c 2b 1f JMP &1f2b ; update_chain_projectile ; not_chain &1fd6 a0 04 LDY #&04 ; OBJECT_LAST_ENEMY_PROJECTILE - 1 # Final slot is unused ; update_enemy_projectiles_loop &1fd8 b9 1b 0a LDA &0a1b,Y ; objects_sprite # Zero if no object in slot &1fdb d0 03 BNE &1fe0 ; is_present &1fdd 4c 0e 20 JMP &200e ; consider_next_enemy_projectile ; is_present &1fe0 20 80 18 JSR &1880 ; unplot_object # Unplot star or fan &1fe3 ad fd 0a LDA &0afd ; wave &1fe6 c9 06 CMP #&06 ; WAVE_FAN &1fe8 f0 2d BEQ &2017 ; update_fan_projectile ; update_enemy_projectile_x &1fea b9 0b 0a LDA &0a0b,Y ; objects_x &1fed 18 CLC &1fee 79 81 0a ADC &0a81,Y ; objects_x_velocity &1ff1 99 0b 0a STA &0a0b,Y ; objects_x &1ff4 c9 9c CMP #&9c &1ff6 90 03 BCC &1ffb ; not_at_edge_of_screen &1ff8 20 b1 20 JSR &20b1 ; remove_object # Remove star or fan at edge of screen ; not_at_edge_of_screen &1ffb b9 51 0a LDA &0a51,Y ; objects_flip &1ffe 49 01 EOR #&01 # Animate star or fan &2000 99 51 0a STA &0a51,Y ; objects_flip &2003 20 4f 20 JSR &204f ; check_for_object_collision_with_player &2006 b9 1b 0a LDA &0a1b,Y ; objects_sprite # Zero if star or fan hit player or edge of screen &2009 f0 03 BEQ &200e ; consider_next_enemy_projectile &200b 20 31 18 JSR &1831 ; plot_object # Replot star or fan ; consider_next_enemy_projectile &200e 88 DEY &200f c0 02 CPY #&02 ; OBJECT_FIRST_ENEMY_PROJECTILE &2011 30 03 BMI &2016 ; leave &2013 4c d8 1f JMP &1fd8 ; update_enemy_projectiles_loop ; leave &2016 60 RTS ; update_fan_projectile # Called with Y = object slot &2017 98 TYA &2018 aa TAX &2019 de 89 0a DEC &0a89,X ; objects_y_velocity &201c bd 89 0a LDA &0a89,X ; objects_y_velocity &201f 29 bf AND #&bf &2021 30 c7 BMI &1fea ; update_enemy_projectile_x &2023 f0 22 BEQ &2047 ; end_fan_circle &2025 38 SEC &2026 e9 07 SBC #&07 &2028 48 PHA ; direction &2029 18 CLC &202a 79 13 0a ADC &0a13,Y ; objects_y &202d 99 13 0a STA &0a13,Y ; objects_y &2030 68 PLA ; direction &2031 29 80 AND #&80 &2033 4a LSR A &2034 5d 89 0a EOR &0a89,X ; objects_y_velocity &2037 29 40 AND #&40 &2039 d0 06 BNE &2041 ; increase_x_velocity ; decrease_x_velocity &203b de 81 0a DEC &0a81,X ; objects_x_velocity &203e 4c ea 1f JMP &1fea ; update_enemy_projectile_x ; increase_x_velocity &2041 fe 81 0a INC &0a81,X ; objects_x_velocity &2044 4c ea 1f JMP &1fea ; update_enemy_projectile_x ; end_fan_circle &2047 a9 00 LDA #&00 &2049 9d 89 0a STA &0a89,X ; objects_y_velocity &204c 4c ea 1f JMP &1fea ; update_enemy_projectile_x ; check_for_object_collision_with_player &204f 98 TYA &2050 48 PHA ; object &2051 b9 0b 0a LDA &0a0b,Y ; objects_x &2054 18 CLC &2055 69 04 ADC #&04 &2057 aa TAX &2058 b9 13 0a LDA &0a13,Y ; objects_y &205b 38 SEC &205c e9 06 SBC #&06 &205e a8 TAY &205f 20 1c 22 JSR &221c ; calculate_screen_address &2062 a0 01 LDY #&01 &2064 b1 70 LDA (&70),Y ; screen_address &2066 f0 4f BEQ &20b7 ; leave_after_restoring_Y # Leave if projectile not touching anything &2068 68 PLA ; object &2069 a8 TAY &206a ae 1b 0a LDX &0a1b ; objects_sprite + 0 (OBJECT_PLAYER) &206d b9 0b 0a LDA &0a0b,Y ; objects_x # Otherwise, check if projectile is in player's bounding box &2070 38 SEC &2071 ed d2 0a SBC &0ad2 ; player_x &2074 18 CLC &2075 69 03 ADC #&03 &2077 4a LSR A &2078 4a LSR A &2079 dd 80 06 CMP &0680,X ; sprite_widths_table &207c b0 3b BCS &20b9 ; leave &207e ad d3 0a LDA &0ad3 ; player_y &2081 38 SEC &2082 f9 13 0a SBC &0a13,Y ; objects_y &2085 18 CLC &2086 69 04 ADC #&04 &2088 4a LSR A &2089 4a LSR A &208a 4a LSR A &208b dd c0 06 CMP &06c0,X ; sprite_heights_table &208e b0 29 BCS &20b9 ; leave &2090 98 TYA &2091 48 PHA ; object &2092 a9 0e LDA #&0e ; SPRITE_HIT_ENEMY &2094 20 ad 1d JSR &1dad ; add_hit &2097 68 PLA ; object &2098 a8 TAY &2099 a2 06 LDX #&06 ; OBJECT_HIT &209b b9 0b 0a LDA &0a0b,Y ; objects_x &209e 9d 0b 0a STA &0a0b,X ; objects_x &20a1 b9 13 0a LDA &0a13,Y ; objects_y &20a4 9d 13 0a STA &0a13,X ; objects_y &20a7 20 5e 1d JSR &1d5e ; damage_player &20aa ad fd 0a LDA &0afd ; wave &20ad c9 05 CMP #&05 ; WAVE_CHAIN &20af f0 08 BEQ &20b9 ; leave # Don't remove chain ; remove_object &20b1 a9 00 LDA #&00 # Set to zero to remove object &20b3 99 1b 0a STA &0a1b,Y ; objects_sprite &20b6 60 RTS ; leave_after_restoring_Y &20b7 68 PLA ; object &20b8 a8 TAY ; leave &20b9 60 RTS ; write_opponent_name &20ba a9 1f LDA #&1f # TAB(&0d, 05) &20bc 20 ee ff JSR &ffee ; OSWRCH &20bf a9 0d LDA #&0d &20c1 20 ee ff JSR &ffee ; OSWRCH &20c4 a9 05 LDA #&05 &20c6 20 ee ff JSR &ffee ; OSWRCH &20c9 a0 07 LDY #&07 &20cb ad fd 0a LDA &0afd ; wave &20ce 0a ASL A &20cf 0a ASL A &20d0 0a ASL A &20d1 aa TAX ; write_opponent_name_loop &20d2 bd 80 07 LDA &0780,X ; opponent_names &20d5 20 ee ff JSR &ffee ; OSWRCH &20d8 e8 INX &20d9 88 DEY &20da 10 f6 BPL &20d2 ; write_opponent_name_loop &20dc 60 RTS ; swap_backgrounds # Swap &2640 - &38ff and &5f80 - &723f &20dd a9 0a LDA #&0a &20df 8d d4 0a STA &0ad4 ; waterfall_cooldown &20e2 a9 26 LDA #&26 ; &263f = stored_background - 1 &20e4 85 85 STA &85 ; stored_background_address_high &20e6 a9 3f LDA #&3f &20e8 85 84 STA &84 ; stored_background_address_low &20ea a9 5f LDA #&5f ; &5f7f = current_background - 1 &20ec 85 83 STA &83 ; current_background_address_high &20ee a9 7f LDA #&7f &20f0 85 82 STA &82 ; current_background_address_low &20f2 a2 00 LDX #&00 ; swap_backgrounds_page_loop &20f4 a0 a0 LDY #&a0 ; swap_backgrounds_byte_loop &20f6 b1 82 LDA (&82),Y ; current_background_address &20f8 48 PHA ; current byte &20f9 b1 84 LDA (&84),Y ; stored_background_address &20fb 91 82 STA (&82),Y ; current_background_address &20fd 68 PLA ; current byte &20fe 91 84 STA (&84),Y ; stored_background_address &2100 88 DEY &2101 d0 f3 BNE &20f6 ; swap_backgrounds_byte_loop &2103 e8 INX &2104 e0 1e CPX #&1e &2106 b0 1d BCS &2125 ; set_initial_palette_offset &2108 a5 82 LDA &82 ; current_background_address_low &210a 18 CLC &210b 69 a0 ADC #&a0 &210d 85 82 STA &82 ; current_background_address_low &210f a5 83 LDA &83 ; current_background_address_high &2111 69 00 ADC #&00 &2113 85 83 STA &83 ; current_background_address_high &2115 a5 84 LDA &84 ; stored_background_address_low &2117 18 CLC &2118 69 a0 ADC #&a0 &211a 85 84 STA &84 ; stored_background_address_low &211c a5 85 LDA &85 ; stored_background_address_high &211e 69 00 ADC #&00 &2120 85 85 STA &85 ; stored_background_address_high &2122 4c f4 20 JMP &20f4 ; swap_backgrounds_page_loop ; set_initial_palette_offset &2125 a9 08 LDA #&08 # Use high score colour scheme &2127 8d f8 0a STA &0af8 ; initial_palette_offset &212a 60 RTS ; plot_player_energy &212b ad 47 0a LDA &0a47 ; player_energy &212e 30 38 BMI &2168 ; leave &2130 a9 08 LDA #&08 &2132 38 SEC &2133 ed 47 0a SBC &0a47 ; player_energy &2136 4c 44 21 JMP &2144 ; plot_energy ; plot_enemy_energy &2139 ad 48 0a LDA &0a48 ; enemy_energy &213c 30 2a BMI &2168 ; leave &213e a9 0b LDA #&0b &2140 18 CLC &2141 6d 48 0a ADC &0a48 ; enemy_energy ; plot_energy # Called with A = x co-ordinate of energy section &2144 a2 00 LDX #&00 &2146 8e 66 0a STX &0a66 ; energy_string + 3 (x high) &2149 0a ASL A &214a 0a ASL A &214b 0a ASL A &214c 0a ASL A &214d 2e 66 0a ROL &0a66 ; energy_string + 3 (x high) &2150 0a ASL A &2151 2e 66 0a ROL &0a66 ; energy_string + 3 (x high) &2154 0a ASL A &2155 2e 66 0a ROL &0a66 ; energy_string + 3 (x high) &2158 8d 65 0a STA &0a65 ; energy_string + 2 (x low) &215b a2 00 LDX #&00 ; write_energy_string_loop &215d bd 63 0a LDA &0a63,X ; energy_string &2160 20 ee ff JSR &ffee ; OSWRCH &2163 e8 INX &2164 e0 09 CPX #&09 &2166 90 f5 BCC &215d ; write_energy_string_loop ; leave &2168 60 RTS ; check_for_keypress &2169 a0 ff LDY #&ff &216b a9 81 LDA #&81 ; Scan for a particular key &216d 20 f4 ff JSR &fff4 ; OSBYTE &2170 8a TXA &2171 60 RTS ; unused # Possibly intended to check joystick &2172 a9 80 LDA #&80 ; Read I/O device or buffer status &2174 4c f4 ff JMP &fff4 ; OSBYTE ; write_wave_and_lives &2177 a9 1f LDA #&1f # TAB(&13, &01) &2179 20 ee ff JSR &ffee ; OSWRCH &217c a9 13 LDA #&13 &217e 20 ee ff JSR &ffee ; OSWRCH &2181 a9 01 LDA #&01 &2183 20 ee ff JSR &ffee ; OSWRCH &2186 ad fd 0a LDA &0afd ; wave &2189 18 CLC &218a 69 e5 ADC #&e5 ; "0" &218c 20 ee ff JSR &ffee ; OSWRCH ; write_lives &218f a9 1f LDA #&1f # TAB(&13, &02) &2191 20 ee ff JSR &ffee ; OSWRCH &2194 a9 13 LDA #&13 &2196 20 ee ff JSR &ffee ; OSWRCH &2199 a9 02 LDA #&02 &219b 20 ee ff JSR &ffee ; OSWRCH &219e ad 43 0a LDA &0a43 ; player_lives &21a1 18 CLC &21a2 69 e4 ADC #&e4 ; "0" - 1 &21a4 4c ee ff JMP &ffee ; OSWRCH ; add_one_to_score # Called with X = digit &21a7 a9 01 LDA #&01 ; add_to_score # Called with X = digit, A = delta &21a9 85 7a STA &7a ; delta &21ab bd 01 0a LDA &0a01,X ; score &21ae 18 CLC &21af 65 7a ADC &7a ; delta &21b1 9d 01 0a STA &0a01,X ; score &21b4 c9 0a CMP #&0a &21b6 90 09 BCC &21c1 ; skip_overflow &21b8 38 SEC &21b9 e9 0a SBC #&0a &21bb 9d 01 0a STA &0a01,X ; score &21be ca DEX &21bf 10 e6 BPL &21a7 ; add_one_to_score ; skip_overflow &21c1 e0 02 CPX #&02 &21c3 b0 15 BCS &21da ; write_score &21c5 ce fb 0a DEC &0afb ; ten_thousands_before_extra_life &21c8 d0 10 BNE &21da ; write_score &21ca ee 43 0a INC &0a43 ; player_lives &21cd 20 8f 21 JSR &218f ; write_lives &21d0 a9 0b LDA #&0b # Play sound for extra life &21d2 20 fd 21 JSR &21fd ; play_sound &21d5 a9 08 LDA #&08 # Subsequent extra lives every 80,000 points &21d7 8d fb 0a STA &0afb ; ten_thousands_before_extra_life ; write_score &21da 98 TYA &21db 48 PHA ; tmp_y &21dc a9 1f LDA #&1f # TAB(&00, &02) &21de 20 ee ff JSR &ffee ; OSWRCH &21e1 a9 00 LDA #&00 &21e3 20 ee ff JSR &ffee ; OSWRCH &21e6 a9 02 LDA #&02 &21e8 20 ee ff JSR &ffee ; OSWRCH &21eb a0 00 LDY #&00 ; write_score_loop &21ed b9 01 0a LDA &0a01,Y ; score &21f0 69 e5 ADC #&e5 ; "0" &21f2 20 ee ff JSR &ffee ; OSWRCH &21f5 c8 INY &21f6 c0 06 CPY #&06 &21f8 90 f3 BCC &21ed ; write_score_loop &21fa 68 PLA ; tmp_y &21fb a8 TAY &21fc 60 RTS ; play_sound &21fd 8d d7 0a STA &0ad7 ; sound_number &2200 8a TXA &2201 48 PHA ; tmp_x &2202 98 TYA &2203 48 PHA ; tmp_y &2204 ad d7 0a LDA &0ad7 ; sound_number &2207 0a ASL A &2208 0a ASL A &2209 0a ASL A &220a 69 00 ADC #&00 &220c aa TAX &220d a0 0b LDY #&0b ; &0b00 = sound_data &220f 90 01 BCC &2212 ; skip_overflow &2211 c8 INY ; skip_overflow &2212 a9 07 LDA #&07 ; Generate a sound &2214 20 f1 ff JSR &fff1 ; OSWORD &2217 68 PLA ; tmp_y &2218 a8 TAY &2219 68 PLA ; tmp_x &221a aa TAX &221b 60 RTS ; calculate_screen_address &221c a9 00 LDA #&00 &221e 85 77 STA &77 ; row_address_low &2220 85 78 STA &78 ; row_address_high &2222 98 TYA &2223 49 ff EOR #&ff &2225 a8 TAY &2226 29 f8 AND #&f8 &2228 4a LSR A &2229 4a LSR A &222a 85 78 STA &78 ; row_address_high &222c 4a LSR A &222d 4a LSR A &222e 08 PHP &222f 18 CLC &2230 65 78 ADC &78 ; row_address_high &2232 85 78 STA &78 ; row_address_high &2234 28 PLP &2235 66 77 ROR &77 ; row_address_low &2237 46 78 LSR &78 ; row_address_high &2239 66 77 ROR &77 ; row_address_low &223b 98 TYA &223c 29 07 AND #&07 &223e 18 CLC &223f 65 77 ADC &77 ; row_address_low &2241 85 77 STA &77 ; row_address_low &2243 a9 58 LDA #&58 &2245 65 78 ADC &78 ; row_address_high &2247 85 78 STA &78 ; row_address_high &2249 a9 00 LDA #&00 &224b 85 76 STA &76 ; column_address_low &224d 85 79 STA &79 ; column_address_high &224f 8a TXA &2250 4a LSR A &2251 29 fe AND #&fe &2253 85 76 STA &76 ; column_address_low &2255 06 76 ASL &76 ; column_address_low &2257 26 79 ROL &79 ; column_address_high &2259 06 76 ASL &76 ; column_address_low &225b 26 79 ROL &79 ; column_address_high &225d 18 CLC &225e a5 76 LDA &76 ; column_address_low &2260 65 77 ADC &77 ; row_address_low &2262 85 70 STA &70 ; screen_address_low &2264 a5 79 LDA &79 ; column_address_high &2266 65 78 ADC &78 ; row_address_high &2268 85 71 STA &71 ; screen_address_high &226a 60 RTS ; plot_sprite_unflipped &226b 20 1c 22 JSR &221c ; calculate_screen_address &226e a2 05 LDX #&05 # &70 ; screen_address_low -> &86 ; top_screen_address_low ; copy_variables_loop # &71 ; screen_address_high -> &87 ; top_screen_address_high &2270 b5 70 LDA &70,X ; sprite_variables # &72 ; sprite_address_low -> &88 ; plot_sprite_address_low &2272 95 86 STA &86,X ; copy_of_sprite_variables # &73 ; sprite_address_high -> &89 ; plot_sprite_address_high &2274 ca DEX # &74 ; sprite_width -> &8a ; columns &2275 10 f9 BPL &2270 ; copy_variables_loop # &75 ; sprite_height -> &8b ; (unused) &2277 a5 86 LDA &86 ; top_screen_address_low &2279 29 07 AND #&07 &227b 85 8c STA &8c ; bottom_rows &227d 49 07 EOR #&07 &227f 85 8d STA &8d ; top_rows ; plot_sprite_unflipped_group_loop &2281 a0 00 LDY #&00 &2283 18 CLC &2284 a5 86 LDA &86 ; top_screen_address_low &2286 69 38 ADC #&38 &2288 85 8e STA &8e ; bottom_screen_address_low &228a a5 87 LDA &87 ; top_screen_address_high &228c 69 01 ADC #&01 &228e 85 8f STA &8f ; bottom_screen_address_low ; plot_sprite_unflipped_column_loop &2290 a6 8d LDX &8d ; top_rows ; plot_sprite_unflipped_top_loop &2292 b1 86 LDA (&86),Y ; top_screen_address &2294 11 88 ORA (&88),Y ; plot_sprite_address &2296 91 86 STA (&86),Y ; top_screen_address &2298 c8 INY &2299 ca DEX &229a 10 f6 BPL &2292 ; plot_sprite_unflipped_top_loop &229c a6 8c LDX &8c ; bottom_rows &229e f0 0a BEQ &22aa ; skip_bottom ; plot_sprite_unflipped_bottom_loop &22a0 b1 8e LDA (&8e),Y ; bottom_screen_address &22a2 11 88 ORA (&88),Y ; plot_sprite_address &22a4 91 8e STA (&8e),Y ; bottom_screen_address &22a6 c8 INY &22a7 ca DEX &22a8 d0 f6 BNE &22a0 ; plot_sprite_unflipped_bottom_loop ; skip_bottom &22aa c6 8a DEC &8a ; columns &22ac d0 e2 BNE &2290 ; plot_sprite_unflipped_column_loop &22ae c6 75 DEC &75 ; sprite_height &22b0 f0 1d BEQ &22cf ; leave &22b2 a5 74 LDA &74 ; sprite_width &22b4 85 8a STA &8a ; columns &22b6 a5 8e LDA &8e ; bottom_screen_address_low &22b8 18 CLC &22b9 69 08 ADC #&08 &22bb 85 86 STA &86 ; top_screen_address_low &22bd a5 8f LDA &8f ; bottom_screen_address_low &22bf 69 00 ADC #&00 &22c1 85 87 STA &87 ; top_screen_address_high &22c3 98 TYA &22c4 18 CLC &22c5 65 88 ADC &88 ; plot_sprite_address_low &22c7 85 88 STA &88 ; plot_sprite_address_low &22c9 90 b6 BCC &2281 ; plot_sprite_unflipped_group_loop &22cb e6 89 INC &89 ; plot_sprite_address_high &22cd d0 b2 BNE &2281 ; plot_sprite_unflipped_group_loop # Always branches ; leave &22cf 60 RTS ; plot_sprite_flipped &22d0 20 1c 22 JSR &221c ; calculate_screen_address &22d3 a2 05 LDX #&05 # &70 ; screen_address_low -> &86 ; top_screen_address_low ; copy_variables_loop # &71 ; screen_address_high -> &87 ; top_screen_address_high &22d5 b5 70 LDA &70,X ; sprite_variables # &72 ; sprite_address_low -> &88 ; plot_sprite_address_low &22d7 95 86 STA &86,X ; copy_of_sprite_variables # &73 ; sprite_address_high -> &89 ; plot_sprite_address_high &22d9 ca DEX # &74 ; sprite_width -> &8a ; columns &22da 10 f9 BPL &22d5 ; copy_variables_loop # &75 ; sprite_height -> &8b ; (unused) &22dc a5 86 LDA &86 ; top_screen_address_low &22de 29 07 AND #&07 &22e0 85 8c STA &8c ; bottom_rows &22e2 49 07 EOR #&07 &22e4 85 8d STA &8d ; top_rows &22e6 a5 74 LDA &74 ; sprite_width &22e8 0a ASL A &22e9 0a ASL A &22ea 0a ASL A &22eb 85 7a STA &7a ; sprite_width_in_bytes &22ed a5 88 LDA &88 ; plot_sprite_address_low &22ef 38 SEC &22f0 e5 7a SBC &7a ; sprite_width_in_bytes &22f2 85 88 STA &88 ; plot_sprite_address_low &22f4 a5 89 LDA &89 ; plot_sprite_address_high &22f6 e9 00 SBC #&00 &22f8 85 89 STA &89 ; plot_sprite_address_high ; plot_sprite_flipped_group_loop &22fa a0 00 LDY #&00 &22fc 18 CLC &22fd a5 86 LDA &86 ; top_screen_address_low &22ff 69 38 ADC #&38 &2301 85 8e STA &8e ; bottom_screen_address_low &2303 a5 87 LDA &87 ; top_screen_address_high &2305 69 01 ADC #&01 &2307 85 8f STA &8f ; bottom_screen_address_low ; plot_sprite_flipped_column_loop &2309 a5 8a LDA &8a ; columns &230b 0a ASL A &230c 0a ASL A &230d 0a ASL A &230e 0a ASL A &230f 38 SEC &2310 e9 08 SBC #&08 &2312 18 CLC &2313 65 88 ADC &88 ; plot_sprite_address_low &2315 85 84 STA &84 ; flipped_sprite_address_low &2317 a5 89 LDA &89 ; plot_sprite_address_high &2319 69 00 ADC #&00 &231b 85 85 STA &85 ; flipped_sprite_address_high &231d a5 8d LDA &8d ; top_rows &231f 85 7a STA &7a ; rows ; plot_sprite_flipped_top_loop &2321 b1 84 LDA (&84),Y ; flipped_sprite_address &2323 aa TAX &2324 bd c0 24 LDA &24c0,X ; flip_table &2327 11 86 ORA (&86),Y ; top_screen_address &2329 91 86 STA (&86),Y ; top_screen_address &232b c8 INY &232c c6 7a DEC &7a ; rows &232e 10 f1 BPL &2321 ; plot_sprite_flipped_top_loop &2330 a5 8c LDA &8c ; bottom_rows &2332 85 7a STA &7a ; rows &2334 f0 0f BEQ &2345 ; skip_bottom ; plot_sprite_flipped_bottom_loop &2336 b1 84 LDA (&84),Y ; flipped_sprite_address &2338 aa TAX &2339 bd c0 24 LDA &24c0,X ; flip_table &233c 11 8e ORA (&8e),Y ; bottom_screen_address &233e 91 8e STA (&8e),Y ; bottom_screen_address &2340 c8 INY &2341 c6 7a DEC &7a ; rows &2343 d0 f1 BNE &2336 ; plot_sprite_flipped_bottom_loop ; skip_bottom &2345 c6 8a DEC &8a ; columns &2347 d0 c0 BNE &2309 ; plot_sprite_flipped_column_loop &2349 c6 75 DEC &75 ; sprite_height &234b f0 1d BEQ &236a ; leave &234d a5 74 LDA &74 ; sprite_width &234f 85 8a STA &8a ; columns &2351 a5 8e LDA &8e ; bottom_screen_address_low &2353 18 CLC &2354 69 08 ADC #&08 &2356 85 86 STA &86 ; top_screen_address_low &2358 a5 8f LDA &8f ; bottom_screen_address_low &235a 69 00 ADC #&00 &235c 85 87 STA &87 ; top_screen_address_high &235e 98 TYA &235f 18 CLC &2360 65 88 ADC &88 ; plot_sprite_address_low &2362 85 88 STA &88 ; plot_sprite_address_low &2364 90 94 BCC &22fa ; plot_sprite_flipped_group_loop &2366 e6 89 INC &89 ; plot_sprite_address_high &2368 d0 90 BNE &22fa ; plot_sprite_flipped_group_loop # Always branches ; leave &236a 60 RTS ; unplot_sprite &236b 20 1c 22 JSR &221c ; calculate_screen_address &236e a2 05 LDX #&05 # &70 ; screen_address_low -> &86 ; top_screen_address_low ; copy_variables_loop # &71 ; screen_address_high -> &87 ; top_screen_address_high &2370 b5 70 LDA &70,X ; sprite_variables # &72 ; sprite_address_low -> &88 ; plot_sprite_address_low &2372 95 86 STA &86,X ; copy_of_sprite_variables # &73 ; sprite_address_high -> &89 ; plot_sprite_address_high &2374 ca DEX # &74 ; sprite_width -> &8a ; columns &2375 10 f9 BPL &2370 ; copy_variables_loop # &75 ; sprite_height -> &8b ; (unused) &2377 a5 86 LDA &86 ; top_screen_address_low &2379 29 07 AND #&07 &237b 85 8c STA &8c ; bottom_rows &237d 49 07 EOR #&07 &237f 85 8d STA &8d ; top_rows ; unplot_sprite_group_loop &2381 a0 00 LDY #&00 &2383 18 CLC &2384 a5 86 LDA &86 ; top_screen_address_low &2386 69 38 ADC #&38 &2388 85 8e STA &8e ; bottom_screen_address_low &238a a5 87 LDA &87 ; top_screen_address_high &238c 69 01 ADC #&01 &238e 85 8f STA &8f ; bottom_screen_address_low ; unplot_sprite_column_loop &2390 a6 8d LDX &8d ; top_rows ; unplot_sprite_top_loop &2392 a9 00 LDA #&00 &2394 91 86 STA (&86),Y ; top_screen_address &2396 c8 INY &2397 ca DEX &2398 10 f8 BPL &2392 ; unplot_sprite_top_loop &239a a6 8c LDX &8c ; bottom_rows &239c f0 08 BEQ &23a6 ; skip_bottom ; unplot_sprite_bottom_loop &239e a9 00 LDA #&00 &23a0 91 8e STA (&8e),Y ; bottom_screen_address &23a2 c8 INY &23a3 ca DEX &23a4 d0 f8 BNE &239e ; unplot_sprite_bottom_loop ; skip_bottom &23a6 c6 8a DEC &8a ; columns &23a8 d0 e6 BNE &2390 ; unplot_sprite_column_loop &23aa c6 75 DEC &75 ; sprite_height &23ac f0 1d BEQ &23cb ; leave &23ae a5 74 LDA &74 ; sprite_width &23b0 85 8a STA &8a ; columns &23b2 a5 8e LDA &8e ; bottom_screen_address_low &23b4 18 CLC &23b5 69 08 ADC #&08 &23b7 85 86 STA &86 ; top_screen_address_low &23b9 a5 8f LDA &8f ; bottom_screen_address_low &23bb 69 00 ADC #&00 &23bd 85 87 STA &87 ; top_screen_address_high &23bf 98 TYA # Unnecessary code; plot_sprite_address unused &23c0 18 CLC &23c1 65 88 ADC &88 ; plot_sprite_address_low &23c3 85 88 STA &88 ; plot_sprite_address_low &23c5 90 ba BCC &2381 ; unplot_sprite_group_loop &23c7 e6 89 INC &89 ; plot_sprite_address_high &23c9 d0 b6 BNE &2381 ; unplot_sprite_group_loop # Always branches ; leave &23cb 60 RTS ; initialise_vectors &23cc a9 00 LDA #&00 # Use waterfall colour scheme &23ce 8d f8 0a STA &0af8 ; initial_palette_offset &23d1 a9 01 LDA #&01 # Skip updating waterfall &23d3 8d f9 0a STA &0af9 ; half_round &23d6 a2 0f LDX #&0f ; remove_roms_and_initialise_waterfall_pixels_loop &23d8 a9 00 LDA #&00 &23da 9d a1 0a STA &0aa1,X ; waterfall_pixels_y &23dd 9d a1 02 STA &02a1,X ; os_paged_rom_type_table # Remove paged ROMs from ROM information table &23e0 ca DEX &23e1 10 f5 BPL &23d8 ; remove_roms_and_initialise_waterfall_pixels_loop &23e3 78 SEI &23e4 a9 fa LDA #&fa ; &23fa = irq2_handler &23e6 8d 06 02 STA &0206 ; irq2_vector_low &23e9 a9 23 LDA #&23 &23eb 8d 07 02 STA &0207 ; irq2_vector_high &23ee 58 CLI &23ef a9 47 LDA #&47 ; &2447 = event_handler &23f1 8d 20 02 STA &0220 ; event_vector_low &23f4 a9 24 LDA #&24 &23f6 8d 21 02 STA &0221 ; event_vector_high &23f9 60 RTS ; irq2_handler &23fa 48 PHA ; tmp_a &23fb 98 TYA &23fc 48 PHA ; tmp_y &23fd ad 6d fe LDA &fe6d ; User VIA interrupt flag register &2400 29 20 AND #&20 # &20 set if Timer 2 has timed out &2402 f0 1f BEQ &2423 ; leave_handler &2404 ac 41 0a LDY &0a41 ; palette_offset ; set_colours_loop &2407 b9 23 0a LDA &0a23,Y ; palette_colours &240a 20 66 24 JSR &2466 ; set_colour &240d c8 INY &240e ee 41 0a INC &0a41 ; palette_offset &2411 b9 da 0a LDA &0ada,Y ; palette_delays &2414 f0 f1 BEQ &2407 ; set_colours_loop &2416 30 06 BMI &241e ; disable_interrupt_and_leave_handler &2418 20 2f 24 JSR &242f ; initialise_timer &241b 4c 23 24 JMP &2423 ; leave_handler ; disable_interrupt_and_leave_handler &241e a9 20 LDA #&20 # Disable User VIA Timer 2 interrupts &2420 8d 6e fe STA &fe6e ; User VIA interrupt enable register ; leave_handler &2423 68 PLA ; tmp_y &2424 a8 TAY &2425 68 PLA ; tmp_a &2426 6c 80 00 JMP (&0080) ; previous_irq2_vector # Set in loader ; initialise_timer_update_waterfall_and_high_score_colours &2429 20 2f 24 JSR &242f ; initialise_timer &242c 4c 17 1e JMP &1e17 ; update_waterfall_and_high_score_colours ; initialise_timer &242f 48 PHA ; delay &2430 a9 df LDA #&df # Set User VIA Timer 2 to one-shot mode &2432 2d 6b fe AND &fe6b ; User VIA auxiliary control register &2435 8d 6b fe STA &fe6b ; User VIA auxiliary control register &2438 a9 a0 LDA #&a0 # Enable User VIA Timer 2 interrupts &243a 8d 6e fe STA &fe6e ; User VIA interrupt enable register &243d a9 f8 LDA #&f8 &243f 8d 68 fe STA &fe68 ; User VIA timer 2 counter LSB &2442 68 PLA ; delay &2443 8d 69 fe STA &fe69 ; User VIA timer 2 counter MSB &2446 60 RTS ; event_handler &2447 c9 04 CMP #&04 &2449 d0 1a BNE &2465 ; leave # Is this a v-sync event? ; is_vsync_event &244b ad f8 0a LDA &0af8 ; initial_palette_offset &244e 8d 41 0a STA &0a41 ; palette_offset ; set_initial_colours_loop &2451 ac 41 0a LDY &0a41 ; palette_offset &2454 b9 da 0a LDA &0ada,Y ; palette_delays &2457 d0 d0 BNE &2429 ; initialise_timer_update_waterfall_and_high_score_colours &2459 b9 23 0a LDA &0a23,Y ; palette_colours &245c 20 66 24 JSR &2466 ; set_colour &245f ee 41 0a INC &0a41 ; palette_offset &2462 d0 ed BNE &2451 ; set_initial_colours_loop # Always branches &2464 60 RTS ; leave &2465 60 RTS ; set_colour &2466 49 07 EOR #&07 &2468 8d 21 fe STA &fe21 ; video ULA palette register &246b 18 CLC &246c 69 10 ADC #&10 &246e 8d 21 fe STA &fe21 ; video ULA palette register &2471 18 CLC &2472 69 30 ADC #&30 &2474 8d 21 fe STA &fe21 ; video ULA palette register &2477 18 CLC &2478 69 10 ADC #&10 &247a 8d 21 fe STA &fe21 ; video ULA palette register &247d 60 RTS ; rnd &247e ad 07 0a LDA &0a07 ; rnd_state &2481 29 48 AND #&48 &2483 69 38 ADC #&38 &2485 0a ASL A &2486 0a ASL A &2487 2e 09 0a ROL &0a09 ; rnd_state + 2 &248a 2e 08 0a ROL &0a08 ; rnd_state + 1 &248d 2e 07 0a ROL &0a07 ; rnd_state &2490 ad 07 0a LDA &0a07 ; rnd_state &2493 60 RTS ; unused # Source code fragment corresponding to &141f - &142c &2494 4f 4e 3a 4c 44 41 23 30 3a 4a 4d 50 53 4f 4e 53 ; ... ON:LDA#0:JMPSONSW:.NSONON:LDX#&EF:JSRNEGIN:B ... &24a4 57 3a 2e 4e 53 4f 4e 4f 4e 3a 4c 44 58 23 26 45 &24b4 46 3a 4a 53 52 4e 45 47 49 4e 3a 42 ; flip_table &24c0 00 08 04 0c 02 0a 06 0e 01 09 05 0d 03 0b 07 0f &24d0 80 88 84 8c 82 8a 86 8e 81 89 85 8d 83 8b 87 8f &24e0 40 48 44 4c 42 4a 46 4e 41 49 45 4d 43 4b 47 4f &24f0 c0 c8 c4 cc c2 ca c6 ce c1 c9 c5 cd c3 cb c7 cf &2500 20 28 24 2c 22 2a 26 2e 21 29 25 2d 23 2b 27 2f &2510 a0 a8 a4 ac a2 aa a6 ae a1 a9 a5 ad a3 ab a7 af &2520 60 68 64 6c 62 6a 66 6e 61 69 65 6d 63 6b 67 6f &2530 e0 e8 e4 ec e2 ea e6 ee e1 e9 e5 ed e3 eb e7 ef &2540 10 18 14 1c 12 1a 16 1e 11 19 15 1d 13 1b 17 1f &2550 90 98 94 9c 92 9a 96 9e 91 99 95 9d 93 9b 97 9f &2560 50 58 54 5c 52 5a 56 5e 51 59 55 5d 53 5b 57 5f &2570 d0 d8 d4 dc d2 da d6 de d1 d9 d5 dd d3 db d7 df &2580 30 38 34 3c 32 3a 36 3e 31 39 35 3d 33 3b 37 3f &2590 b0 b8 b4 bc b2 ba b6 be b1 b9 b5 bd b3 bb b7 bf &25a0 70 78 74 7c 72 7a 76 7e 71 79 75 7d 73 7b 77 7f &25b0 f0 f8 f4 fc f2 fa f6 fe f1 f9 f5 fd f3 fb f7 ff ; sprite_addresses_high_table ; 0 1 2 3 4 5 6 7 8 9 a b c d e f &25c0 39 3a 3a 3b 3d 3c 3c 3d 3e 3e 3f 3f 3b 42 3b 3b ; &00 &25d0 40 42 44 48 4a 4c 4e 39 40 42 45 48 4b 4d 4f 3a ; &10 &25e0 41 43 41 50 41 43 50 3f 41 42 46 49 4c 4d 50 3e ; &20 &25f0 43 44 46 49 4b 4e 4f 3b 4a 4a 47 47 4c 4e 51 51 ; &30 ; sprite_addresses_low_table ; 0 1 2 3 4 5 6 7 8 9 a b c d e f &2600 80 00 80 00 10 00 80 d0 30 f0 70 d0 e0 e0 d0 c0 ; &00 &2610 10 20 f0 40 b0 c8 e0 80 b0 80 90 c0 30 40 60 00 ; &10 &2620 c0 50 c0 60 c0 50 60 d0 50 f0 f8 c0 48 b8 a0 30 ; &20 &2630 b0 50 30 40 b0 40 e0 00 60 70 98 98 30 30 30 48 ; &30 ; stored_background # Temple &2640 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2650 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2660 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2670 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2680 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2690 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &26a0 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &26b0 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &26c0 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &26d0 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &26e0 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &26f0 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2700 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2710 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2720 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2730 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2740 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2750 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2760 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2770 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2780 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2790 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &27a0 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &27b0 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 1f 3f 3f 7f &27c0 0f 0f 0f 0f 0f 8f 8f 77 0f 0f 0f 0f 0f 0f 8f cf &27d0 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &27e0 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 2f 3f 3f 7f &27f0 0f 0f 0f 0f 0f 2f ef ef 0f 0f 0f 0f 0f 0f 0f 0f &2800 0f 0f 0f 0f 0f 0f 0f 1f 0f 0f 0f 0f 0f 0f 0f 0f &2810 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 1f 2e 2e 4c 6c &2820 0f 0f 0f df 33 00 a2 11 0f 0f 0f 0f 0f 8f 8f 47 &2830 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2840 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2850 0f 0f 0f 0f 0f 0f 6f 99 0f 0f 0f 0f 0f 0f 0f 8f &2860 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 1f 6e 98 &2870 0f 0f 0f 0f cf 23 11 22 0f 0f 0f 0f 0f 0f 0f 8f &2880 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &2890 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 1f 1f &28a0 0f 0f 0f 1f 3f fe 80 40 0f 8f 8f 8f cf 47 67 33 &28b0 0f 0f 0f 0f 0f 0f cf a3 0f 0f 0f 0f 0f 0f 0f 3f &28c0 0f 8f 47 c7 63 f5 62 ba 0f 1f 3f 6e a8 00 40 00 &28d0 0f 0f 8f 8f 8f 9f 76 44 0f 0f 0f 0f 8f 57 76 11 &28e0 0f 0f 0f 0f df f6 10 51 0f 0f 4f ef d9 b3 75 62 &28f0 0f 3f 4c a8 88 40 00 10 ee 80 00 00 a0 20 00 00 &2900 55 00 00 11 00 00 00 00 ef bb 11 22 44 22 00 44 &2910 0f 0f 0f cf 23 bb 55 11 0f 0f 0f 0f df f6 b2 51 &2920 0f 0f 0f 8f c7 f3 fd 22 7f 7f 7f dd 99 88 20 80 &2930 ff ff ff dd 44 22 00 00 0f 8f 8f 47 bb 11 44 11 &2940 3f 3e 6c e8 d0 c0 a8 77 af 75 e4 50 31 aa dd 22 &2950 2f 7f f9 b3 66 44 98 00 88 98 40 20 00 40 00 00 &2960 00 11 00 00 40 00 80 00 47 23 33 44 00 22 00 00 &2970 0f 0f 2f fd 74 ba 55 00 2f 3f 5d cc c4 88 88 88 &2980 0f 0f 1f ae dc 00 00 00 1f 3f ee 32 00 00 80 00 &2990 40 40 80 20 00 00 00 00 47 ab 33 11 44 00 00 00 &29a0 1f 6e 88 88 00 80 00 00 00 40 80 00 00 00 00 00 &29b0 80 11 00 00 00 00 00 00 47 57 66 ba 22 22 55 11 &29c0 cf 67 51 22 44 88 88 00 3f cc 00 00 00 00 00 00 &29d0 0f df 22 00 00 00 00 00 7e 88 20 80 00 00 00 00 &29e0 00 00 00 00 00 00 00 00 99 11 22 00 00 00 00 00 &29f0 71 fb cc 20 88 00 00 00 ee 10 80 10 00 00 00 00 &2a00 e6 a8 80 00 40 20 00 00 20 80 00 00 80 00 00 00 &2a10 88 20 00 00 00 00 00 00 a2 44 00 00 00 00 00 00 &2a20 dc 33 88 22 11 00 00 00 ee 44 98 88 20 80 00 00 &2a30 80 00 00 10 00 00 00 00 00 40 00 00 00 00 00 00 &2a40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2a50 88 00 11 00 00 00 00 00 fa 44 20 00 00 00 00 00 &2a60 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2a70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2a80 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2a90 00 60 00 00 00 00 00 00 40 00 00 00 00 00 00 00 &2aa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2ab0 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2ac0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2ad0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2ae0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2af0 00 00 00 00 00 00 00 00 33 11 44 00 11 11 22 22 &2b00 00 00 88 88 00 00 00 00 00 00 00 00 00 00 00 00 &2b10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2b20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2b30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2b40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2b50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2b60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2b70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2b80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2b90 00 00 00 00 00 00 00 00 00 00 00 00 11 32 32 33 &2ba0 00 00 00 00 00 88 aa 5f 00 00 00 00 00 00 aa 5f &2bb0 00 00 00 00 00 00 aa 5f 00 00 00 00 00 00 aa 5f &2bc0 00 00 00 00 00 00 aa 5f 00 00 00 00 00 00 aa 5f &2bd0 00 00 00 00 00 00 aa 5f 00 00 00 00 11 32 ba 5f &2be0 00 00 00 00 00 88 aa 5f 00 00 00 00 00 00 aa 5f &2bf0 00 00 00 00 00 00 aa 5f 00 00 00 00 00 00 aa 5f &2c00 00 00 00 00 00 00 aa 5f 00 00 00 00 00 00 aa 5f &2c10 00 00 00 00 00 00 aa 5f 00 00 00 00 11 32 ba 5f &2c20 00 00 00 00 00 88 88 88 00 00 00 00 00 00 00 00 &2c30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2c40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2c50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2c60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2c70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2c80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2c90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2ca0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2cb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2cc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2cd0 00 c4 88 df 77 11 00 00 57 67 af 6f ff 77 33 57 &2ce0 5f 5f af af ff ff 5f 5f 5f 5f 5f 5f ff ff 5f 5f &2cf0 5f 5f 5f 5f ff ff 5f 5f 5f 5f 5f 5f ff ff 5f 5f &2d00 5f 5f 5f 5f ff ff 5f 5f 5f 5f 5f 5f ff ff 5f 5f &2d10 5f 5f 5f 5f ff ff 5f 5f 5f 5f 5f 5f ff ff 7f 7d &2d20 5f 5f 5f 5f ff ff df d7 5f 5f 5f 5f ff ff 5f 5f &2d30 5f 5f 5f 5f ff ff 5f 5f 5f 5f 5f 5f ff ff 5f 5f &2d40 5f 5f 5f 5f ff ff 5f 5f 5f 5f 5f 5f ff ff 5f 5f &2d50 5f 5f 5f 4f ff ff 5f 5f 5f 4f 2f af ff ff 5f 5f &2d60 4c cc ae df ff dd 88 4c 00 64 22 6e cc 00 00 00 &2d70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2d80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2d90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2da0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2db0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2dc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2dd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2de0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2df0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2e00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2e10 c4 88 df 77 11 00 00 00 67 af 6f ff 55 11 11 11 &2e20 5f af af ff f5 f1 1f f1 5f 5f 5f ff ff ff ff ff &2e30 5f 5f 5f ff fd fc cf fc 5f 5f 5f ff f7 f7 7f f7 &2e40 5f 5f 5f ff ff ff ff ff 5f 5f 5f ff f5 f1 1f f1 &2e50 5f 5f 5f ff ff ff ff ff fe f5 fa fc fc fa ff ff &2e60 ff f5 fb f7 f7 fb ff ff 5f 5f 5f ff ff ff ff ff &2e70 5f 5f 5f ff f5 f1 1f f1 5f 5f 5f ff ff ff ff ff &2e80 5f 5f 5f ff fd fc cf fc 5f 5f 5f ff f7 f7 7f f7 &2e90 5f 5f 4f ff ff ff ff ff 4f 2f af ff f5 f1 1f f1 &2ea0 cc ae df ff 55 00 00 00 64 22 6e cc 00 00 00 00 &2eb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2ec0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2ed0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2ee0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2ef0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &2f00 99 6f 4f 8f 1f 2f 7f fc 99 6f 4f 8f 1f 2f 7f fc &2f10 99 6f 4f 8f 1f 2f 7f fc 99 6f 4f 8f 1f 2f 7f fc &2f20 99 6f 4f 8f 1f 2f 7f fc 99 6f 4f 8f 1f 2f 7f fc &2f30 99 6f 4f 8f 1f 2f 7f fc 99 6f 4f 8f 1f 2f 7f fc &2f40 99 6f 4f 8f 1f 2f 7f ff 99 6f 4f 8f 1f 2f 7f ef &2f50 99 6f 4f 8f 1f 2f 7f fc 99 7f 5f 9f 1f 3f 7f fd &2f60 1f f1 f1 f1 f1 f1 1f f1 fd fa f5 fa f8 fd bf 8f &2f70 4f fc f4 fc fc fc 4f 7c 7f f6 f5 f6 f6 f7 6f e7 &2f80 d7 fb f5 fb f3 d7 9f 1f 1f f1 f1 f1 f1 f1 1f f1 &2f90 0f 0f 0f 0f 0f 1e 0f 0f 3f 5f 0f 0f 1e 3c f0 f7 &2fa0 8f 4f 0f 0f 0f 96 e1 ed 1f 1f 1f 1f 1f 1f 1f 1f &2fb0 1f f1 f1 f1 f1 f1 1f f1 7d fa f5 fa f8 7d 2f 0f &2fc0 cf fc f4 fc fc fc cf fc 5f f6 f5 f6 f6 f7 5f c7 &2fd0 f7 fb f5 fb f3 f7 bf 3f 1f f1 f1 f1 f1 f1 1f f1 &2fe0 99 6f 2f 1f 8f 4f ef f3 99 6f 2f 1f 8f 4f ef f3 &2ff0 99 6f 2f 1f 8f 4f ef 7f 99 6f 2f 1f 8f 4f ef ff &3000 99 6f 2f 1f 8f 4f ef f3 99 6f 2f 1f 8f 4f ef f3 &3010 99 6f 2f 1f 8f 4f ef f3 99 6f 2f 1f 8f 4f ef f3 &3020 99 6f 2f 1f 8f 4f ef f3 99 6f 2f 1f 8f 4f ef f3 &3030 99 6f 2f 1f 8f 4f ef f3 99 6f 2f 1f 8f 4f ef f3 &3040 f0 f0 f0 0f f0 f0 0f f0 f0 f0 f0 0f f0 f0 0f f0 &3050 f0 f0 f0 0f f0 f0 0f f0 f0 f0 f0 0f f0 f0 0f f0 &3060 f0 f0 f0 0f f0 f0 0f f0 f0 f0 f0 0f f0 f0 0f f0 &3070 f0 f0 f0 0f f0 f0 0f f0 f0 f0 f0 0f f0 f0 0f f0 &3080 b7 b7 b7 3f b7 b7 3f b7 ef ef ef ef ef ef ef ef &3090 f0 f0 f0 0f f0 f0 0f f0 f1 f1 f1 1f f1 f1 1f f1 &30a0 1f f1 f1 f1 f1 f1 1f f1 8f 8f 8f 8f 8f 8f 8f 8f &30b0 4f 7c 7c 7c 7c 7c 4f 7c 6f e7 e7 e7 e7 e7 6f e7 &30c0 1f 1f 1f 1f 1f 1f 1f 1f 1f f1 f1 f1 f1 f1 1f f1 &30d0 0f 0f 0f 0f 0f 0f 0f 0f f7 f7 7f f7 7f f7 f7 f7 &30e0 ed ed cf ed cf ed ed ed 1f 1f 1f 1f 1f 1f 1f 1f &30f0 1f f1 f1 f1 f1 f1 1f f1 0f 0f 0f 0f 0f 0f 0f 0f &3100 cf fc fc fc fc fc cf fc 4f c7 c7 c7 c7 c7 4f c7 &3110 3f 3f 3f 3f 3f 3f 3f 3f 1f f1 f1 f1 f1 f1 1f f1 &3120 f0 f0 f0 0f f0 f0 0f f0 f0 f0 f0 0f f0 f0 0f f0 &3130 7f 7f 7f 7f 7f 7f 7f 7f de de de cf de de cf de &3140 f0 f0 f0 0f f0 f0 0f f0 f0 f0 f0 0f f0 f0 0f f0 &3150 f0 f0 f0 0f f0 f0 0f f0 f0 f0 f0 0f f0 f0 0f f0 &3160 f0 f0 f0 0f f0 f0 0f f0 f0 f0 f0 0f f0 f0 0f f0 &3170 f0 f0 f0 0f f0 f0 0f f0 f0 f0 f0 0f f0 f0 0f f0 &3180 f0 f0 ff 00 00 00 00 00 f0 f0 ff 00 00 00 00 00 &3190 f0 f0 ff 00 00 00 00 00 f0 f0 ff 00 00 00 00 00 &31a0 f0 f0 ff 00 00 00 00 00 f0 f0 ff 00 00 00 00 00 &31b0 f0 f0 ff 00 00 00 00 00 f0 f0 ff 00 00 00 00 00 &31c0 b7 b7 ff 00 00 00 00 00 ef ef ff 00 00 00 00 00 &31d0 f0 f0 ff 00 00 00 00 00 f1 f1 ff 11 33 32 32 33 &31e0 1f f1 f1 ff ff f4 f4 ff 8f 8f ff 0f ff e3 e3 ff &31f0 4f 7c fc 7f ff 0f 0f ff 6f e7 f7 cf ff f8 f8 ff &3200 1f 1f ff 1f ff f1 f1 ff 1f f1 f1 ff ff 0f 0f ff &3210 0f 0f ff 0f ff 7c 7c ff f7 f7 ff 0f ff f8 8f ff &3220 ed ed ff 0f ff f2 3e ff 1f 1f ff 1f ff f1 f1 ff &3230 1f f1 f1 ff ff f0 f0 ff 0f 0f ff 0f ff 8f 8f ff &3240 cf fc fc 7f ff 7c 7c ff 4f c7 f7 cf ff c7 c7 ff &3250 3f 3f ff 1f ff 1f 1f ff 1f f1 f1 ff ff f0 f0 ff &3260 f0 f0 ff 00 88 88 88 88 f0 f0 ff 00 00 00 00 00 &3270 7f 7f ff 00 00 00 00 00 de de ff 00 00 00 00 00 &3280 f0 f0 ff 00 00 00 00 00 f0 f0 ff 00 00 00 00 00 &3290 f0 f0 ff 00 00 00 00 00 f0 f0 ff 00 00 00 00 00 &32a0 f0 f0 ff 00 00 00 00 00 f0 f0 ff 00 00 00 00 00 &32b0 f0 f0 ff 00 00 00 00 00 f0 f0 ff 00 00 00 00 00 &32c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &32d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &32e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &32f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &3300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &3310 00 00 00 00 00 00 00 00 23 23 33 33 00 00 00 00 &3320 1f 1f ff ff 00 00 00 00 f0 f0 ff ff 00 00 00 00 &3330 c7 c7 ff ff 00 00 00 00 0f 0f ff ff 00 00 00 00 &3340 f8 f8 ff ff 00 00 00 00 f2 f2 ff ff 00 00 00 00 &3350 f0 f0 ff ff 00 11 11 11 f8 8f ff ff ff ff 00 00 &3360 f2 3e ff ff 11 ff ff ff e3 e3 ff ff 00 88 88 88 &3370 3e 3e ff ff 00 00 00 00 f1 f1 ff ff 00 00 00 00 &3380 1f 1f ff ff 00 00 00 00 f0 f0 ff ff 00 00 00 00 &3390 f8 f8 ff ff 00 00 00 00 c7 c7 ff ff 00 00 00 00 &33a0 88 88 88 88 00 00 00 00 00 00 00 00 00 00 00 00 &33b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &33c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &33d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &33e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &33f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &3400 11 32 74 74 65 23 75 fc 88 c4 e2 a6 2e 4c ea b7 &3410 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 ff &3420 00 00 00 00 00 00 00 ff 00 11 32 32 32 11 32 fe &3430 cc e2 f1 d3 1f 2e fd d3 00 00 00 00 00 00 00 ff &3440 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 ff &3450 00 00 00 00 00 00 00 ff 33 74 f8 f8 cb 47 fb f8 &3460 00 88 c4 4c 4c 88 c4 7f 00 00 00 00 00 00 00 ff &3470 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 ff &3480 00 11 32 32 32 11 32 ff cc e2 f1 d3 1f 2e fd d3 &3490 33 33 33 22 22 44 44 77 ff ff ff 00 00 00 00 ff &34a0 00 00 00 ff ff ff ff 00 44 44 44 cc cc ee ee 22 &34b0 33 74 f8 f8 cb 47 fb f8 00 88 c4 4c 4c 88 c4 ff &34c0 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 ff &34d0 00 00 00 00 00 00 00 ff 11 32 74 74 65 23 75 fc &34e0 88 c4 e2 a6 2e 4c ea b7 00 00 00 00 00 00 00 ff &34f0 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 ff &3500 00 00 11 11 11 00 11 ff 66 f9 f0 e1 87 9f f6 e1 &3510 00 00 88 88 88 00 88 ff 00 00 00 00 00 00 00 ff &3520 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 ff &3530 11 32 74 74 65 23 75 fc 88 c4 e2 a6 2e 4c ea b7 &3540 74 fc fc 74 fc fc fc 74 a6 b7 b7 a6 b7 b7 b7 a6 &3550 aa 55 bb cc 44 aa ff 00 bb 33 44 44 33 cc ff 00 &3560 55 22 bb 88 00 dd ff 00 76 ba 76 fe ba 76 fe 32 &3570 d3 d3 d3 d3 d3 d3 d3 d3 55 aa dd 66 aa dd ff 00 &3580 55 99 aa 22 11 66 ff 00 aa 99 55 44 88 66 ff 00 &3590 aa 55 bb 66 55 bb ff 00 f8 f8 f8 f8 f8 f8 f8 f8 &35a0 5d 6e 7f 5d 6e 7f 7f 4c 55 aa 66 88 88 55 ff 00 &35b0 66 66 99 99 66 99 ff 00 aa 55 66 11 11 aa ff 00 &35c0 fc f8 f8 cb 47 fb f8 f8 db d7 5f 5f db d7 7f 7f &35d0 77 77 ff 88 88 88 00 ff ff ff ff 00 00 00 00 ff &35e0 00 00 00 ff ff ff ff ff 22 22 11 ff ff ff ff ff &35f0 f9 fa fa fa bd be fe fe f3 f1 d3 1f 2e fd d3 d3 &3600 55 aa 66 88 88 55 ff 00 66 66 99 99 66 99 ff 00 &3610 aa 55 66 11 11 aa ff 00 fc 74 fc fc 74 fc fc 74 &3620 a6 b7 b7 a6 b7 b7 b7 a6 aa 55 bb cc 44 aa ff 00 &3630 bb 33 44 44 33 cc ff 00 55 22 bb 88 00 dd ff 00 &3640 55 bb 77 dd bb 77 ff 11 e1 e1 e1 e1 e1 e1 e1 e1 &3650 aa dd ee bb dd ee ff 88 aa 44 dd 11 00 bb ff 00 &3660 dd cc 22 22 cc 33 ff 00 55 aa dd 33 22 55 ff 00 &3670 74 fc fc 74 fc fc fc 74 a6 b7 b7 a6 b7 b7 b7 a6 &3680 ff 0f 0f 0f ff f0 f0 f0 ff f8 f8 f8 ff f1 f1 f1 &3690 ff f0 f0 f0 ff 0f 0f 0f ff c7 c7 c7 ff 0f 0f 0f &36a0 ff 0f 0f 0f ff f8 f8 f8 ff 4f 4f 4f ff f0 f0 f0 &36b0 ff 1f 1f 1f ff 8f 8f 8f ff f0 f0 f0 ff 4f 4f 4f &36c0 ff f1 f1 f1 ff 0f 0f 0f ff 0f 0f 0f ff 4f 4f 4f &36d0 ff 1f 1f 1f ff 0f 0f 0f ff 0f 0f 0f ff 7c 7c 7c &36e0 ff 7c 7c 7c ff f0 f0 f0 ff f0 f0 f0 ff c7 c7 c7 &36f0 ff c7 c7 c7 ff 0f 0f 0f ff 0f 0f 0f ff 4f 4f 4f &3700 f8 ff f8 ff f8 f8 f8 f8 7f ff 7f ff 7f 7e 6f 6f &3710 f0 0f 0f 0f ff f0 0f 0f f0 0f 0f 0f ff f0 0f 0f &3720 f0 0f 0f 0f ff f0 0f 0f f0 0f 0f 0f ff f0 0f 0f &3730 fe ff fe ff fe f6 7e 7e d3 ff d3 ff d3 d3 d3 d3 &3740 ff 0f 0f 0f ff 1f 1f 1f ff 0f 0f 0f ff f0 f0 f0 &3750 ff 7c 7c 7c ff f0 f0 f0 ff f0 f0 f0 ff c7 c7 c7 &3760 ff c7 c7 c7 ff 0f 0f 0f ff 0f 0f 0f ff 1f 1f 1f &3770 ff 0f 0f 0f ff f0 f0 f0 ff 2f 2f 2f ff f0 f0 f0 &3780 ff 0f 0f 0f ff e3 e3 e3 ff 7c 7c 7c ff 0f 0f 0f &3790 ff f0 f0 f0 ff 0f 0f 0f ff f0 f0 f0 ff 4f 4f 4f &37a0 ff 8f 8f 8f ff 0f 0f 0f ff 0f 0f 0f ff 0f 0f 0f &37b0 ff 1f 1f 1f ff f8 f8 f8 ff f0 f0 f0 ff f0 f0 f0 &37c0 ff 3e 3e 3e ff ff 00 00 ff f0 f0 f0 ff ff 00 00 &37d0 ff f0 f0 f0 ff ff 00 00 ff c7 c7 c7 ff ff 00 00 &37e0 ff 0f 0f 0f ff ff 00 00 ff 3e 3e 3e ff ff 00 00 &37f0 ff f0 f0 f0 ff ff 00 00 ff f0 f0 f0 ff ff 00 00 &3800 ff c7 c7 c7 ff ff 00 00 ff 0f 0f 0f ff ff 00 00 &3810 ff 3e 3e 3e ff ff 00 00 ff f0 f0 f0 ff ff 00 00 &3820 ff c7 c7 c7 ff ff 00 00 ff 0f 0f 0f ff ff 00 00 &3830 ff 1f 1f 1f ff ff 00 00 ff f0 f0 f0 ff ff 00 00 &3840 f8 ff f8 f8 f8 f8 ff 77 6f ff 7c 4f 4f 4f ff 88 &3850 0f ff f0 0f 0f 0f ff 00 0f ff f0 0f 0f 0f ff 00 &3860 0f ff f0 0f 0f 0f ff 00 0f ff f0 0f 0f 0f ff 00 &3870 7e ff f2 3e 3e 3e ff 11 d3 ff d3 d3 d3 d3 ff ee &3880 ff 0f 0f 0f ff ff 00 00 ff 1f 1f 1f ff ff 00 00 &3890 ff 0f 0f 0f ff ff 00 00 ff 0f 0f 0f ff ff 00 00 &38a0 ff 1f 1f 1f ff ff 00 00 ff f0 f0 f0 ff ff 00 00 &38b0 ff f0 f0 f0 ff ff 00 00 ff c7 c7 c7 ff ff 00 00 &38c0 ff 0f 0f 0f ff ff 00 00 ff 1f 1f 1f ff ff 00 00 &38d0 ff f0 f0 f0 ff ff 00 00 ff f0 f0 f0 ff ff 00 00 &38e0 ff c7 c7 c7 ff ff 00 00 ff 0f 0f 0f ff ff 00 00 &38f0 ff 0f 0f 0f ff ff 00 00 ff 8f 8f 8f ff ff 00 00 ; arrow_sprites &3900 77 47 47 47 8f 47 23 11 cc 4c 4c 4c 2e 4c 88 00 ; &00 # Down &3910 00 11 23 47 8f 47 23 11 00 00 ff 1f 1f 1f ff 00 ; &10 # Left &3920 00 11 ff 8f 8f 8f ff 11 00 88 4c 2e 1f 2e 4c 88 ; &20 # Right &3930 11 23 47 8f 47 47 47 77 00 88 4c 2e 4c 4c 4c cc ; &30 # Up &3940 00 11 ab cf 8f 8f 8f ff 88 4c 2e 2e 4c 88 4c cc ; &40 # Down left &3950 11 23 47 47 23 11 23 33 00 99 7f 1f 1f 1f 1f ff ; &50 # Down right &3960 ff 8f 8f 8f cf ab 11 00 cc 4c 88 4c 2e 2e 4c 88 ; &60 # Up left &3970 11 11 11 23 47 47 23 11 ff 1f 1f 1f 3f 5d 88 00 ; &70 # Up right ; sprite_00_data (SPRITE_PLAYER) ; sprite_17_data (SPRITE_CLONE) &3980 00 00 11 11 11 10 11 00 77 ff ff f9 fa f0 f0 f9 &3990 88 cc ee e6 ea e0 ea c4 00 00 00 00 00 00 00 00 &39a0 11 32 32 32 32 32 11 11 f4 f3 f0 f5 f3 f0 f8 f7 &39b0 ea f1 f0 f8 f4 f5 ea e2 00 77 f8 f3 e2 c4 88 00 &39c0 11 00 11 33 33 77 77 77 f0 f8 ff ff ff ff ff cc &39d0 e2 c4 ee ff ff ff ff ff 00 00 00 00 00 88 88 88 &39e0 77 77 77 77 33 30 77 ff 88 88 88 88 00 00 00 00 &39f0 77 77 77 77 33 30 33 33 88 88 88 88 00 00 88 cc ; sprite_01_data (SPRITE_PLAYER_MOVING) ; sprite_1f_data (SPRITE_CLONE_MOVING) &3a00 00 00 11 11 11 10 11 00 77 ff ff f9 fa f0 f0 f9 &3a10 88 cc ee e6 ea e0 ea c4 00 00 00 00 00 00 00 00 &3a20 11 32 32 32 32 32 11 11 f4 f3 f0 f1 f5 f3 f0 f8 &3a30 fb f0 f0 f0 f1 f1 ea ea 77 f8 f3 e2 c4 88 00 00 &3a40 11 00 00 11 11 33 33 33 f7 f8 ff ff ff ff ff cc &3a50 e2 c4 cc ee ee ff ff ff 00 00 00 00 00 00 00 00 &3a60 33 33 33 11 11 00 11 33 cc cc cc cc cc c0 cc cc &3a70 ff ff ff ee ee c0 ee ff 00 00 00 00 00 00 00 00 ; sprite_02_data (SPRITE_PLAYER_JUMPING_OR_DUCKING) &3a80 00 00 11 11 11 10 11 11 77 ff ff f9 fa f0 f0 f9 &3a90 88 cc ee e6 ea e0 ea e6 00 00 00 00 00 00 00 00 &3aa0 32 74 f8 fa fd f9 77 00 f4 f3 f1 f9 f1 f6 f0 f8 &3ab0 f9 f0 f0 f0 f1 ea e2 c4 00 88 cc f3 f1 fd 66 00 &3ac0 00 11 11 11 11 11 00 11 ff ff ff ff ff ff ff f7 &3ad0 ff ff ff ff ff ff ff e6 00 88 88 88 88 88 00 00 &3ae0 11 11 00 00 00 00 00 00 d9 dd cc 66 00 00 00 00 &3af0 c8 cc cc 66 00 00 00 00 00 00 00 00 00 00 00 00 ; sprite_03_data (SPRITE_PLAYER_ANKLE_KICK) ; sprite_37_data (SPRITE_CLONE_ATTACK_TWO) &3b00 00 00 00 00 11 11 33 75 00 00 77 ff ff ff ff ff &3b10 00 00 00 88 cc cc dd dd 00 00 00 00 00 88 c4 c4 &3b20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &3b30 75 74 32 32 32 32 11 11 ff fe f0 f0 f2 f2 f1 f0 &3b40 99 f7 f0 f0 f0 f1 e2 e2 ea e2 e2 c4 88 00 00 00 &3b50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &3b60 11 00 00 11 11 33 33 33 f0 f9 ff ff ff ff ff ff &3b70 e2 ee ff ff ff ff ff ff 00 00 00 88 cc ee ff ff &3b80 00 00 00 00 00 00 00 88 00 00 00 00 00 00 00 00 &3b90 33 11 00 00 00 00 00 00 ff ee ec 75 73 77 66 cc &3ba0 ff 33 00 00 00 00 00 00 ff ff 77 33 00 00 00 00 &3bb0 cc ee ff fe fc 31 11 00 00 00 00 80 88 cc ee ee ; sprite_0f_data (SPRITE_HIT_PLAYER) &3bc0 66 75 74 32 32 74 75 66 66 ea e2 c4 c4 e2 ea 66 ; sprite_0e_data (SPRITE_HIT_ENEMY) &3bd0 66 57 47 23 23 47 57 66 66 ae 2e 4c 4c 2e ae 66 ; sprite_0c_data (SPRITE_PLAYER_HEAD) &3be0 00 00 11 11 11 10 11 00 77 ff fd fa fa f0 f2 f9 &3bf0 88 cc e6 ea ea e0 ea c4 00 00 00 00 00 00 00 00 ; sprite_05_data (SPRITE_PLAYER_HIGH_KICK) &3c00 00 00 11 11 11 10 11 11 77 ff ff f9 fa f0 f0 f9 &3c10 88 cc ee e6 ea e0 ea d5 00 11 11 33 33 73 ea e8 &3c20 32 74 74 f9 f9 f8 77 11 f4 f3 f1 f9 f6 f5 ff f7 &3c30 fb f7 f7 ff ff ff ff ee cc cc 88 cc e2 ea 44 00 &3c40 00 00 00 00 00 00 00 00 ff ff ff ff ff 77 77 77 &3c50 ee cc cc cc cc cc 88 88 00 00 00 00 00 00 00 00 &3c60 00 00 00 00 00 00 00 00 77 77 77 77 77 60 77 77 &3c70 88 88 88 88 00 00 00 88 00 00 00 00 00 00 00 00 ; sprite_06_data (SPRITE_PLAYER_FLYING_KICK) &3c80 44 ea f9 fb fb fa fb f9 77 ff ff f9 fa f0 f0 f9 &3c90 88 cc ee e6 ea e0 ea e6 00 00 00 00 00 00 00 00 &3ca0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &3cb0 f8 74 32 11 11 11 00 33 f4 f3 f1 f1 f1 f6 f8 ff &3cc0 f9 f0 f0 f2 f2 fc f5 ff 00 88 88 c4 c4 c4 88 ff &3cd0 00 00 00 00 00 00 00 88 00 00 00 00 00 00 00 88 &3ce0 33 77 77 77 77 33 00 00 ff ff ff fd fb fb 22 66 &3cf0 ff ff ff ff ff 00 00 00 ff ff ff ff 00 00 00 00 &3d00 f9 f9 fb aa 00 00 00 00 88 88 00 00 00 00 00 00 ; sprite_04_data (SPRITE_PLAYER_ROUNDHOUSE_KICK) &3d10 00 00 00 00 11 11 77 f8 00 00 77 ff ff ff ff f1 &3d20 00 00 00 88 cc cc cc cc 00 00 00 00 00 00 00 00 &3d30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &3d40 f8 f9 75 74 32 11 00 00 f0 f0 f0 f8 f9 fb ff 77 &3d50 c4 e2 f1 f7 ff ff ff ff 00 00 00 ff ff ff ff ff &3d60 00 00 00 cc fe fe fe cc 00 00 00 44 cc cc cc 88 &3d70 00 00 00 00 00 00 00 00 77 77 77 77 77 77 77 77 &3d80 ff ff ff fe 99 88 88 88 ee 00 88 88 00 00 00 00 &3d90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &3da0 00 00 00 00 00 00 00 00 77 77 77 32 31 33 77 66 &3db0 88 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &3dc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; sprite_07_data (SPRITE_PLAYER_ANKLE_PUNCH) &3dd0 00 00 11 11 11 54 fb f9 77 ff ff f9 fa f0 f0 f9 &3de0 88 cc ee e6 ea e0 ea c4 00 00 00 00 00 00 00 00 &3df0 f8 f8 fa fa f9 fb 44 00 f4 f3 f1 f1 f7 f6 fe fe &3e00 ee f1 f0 f0 f2 fb e2 c4 00 00 88 c4 c4 e2 ea f9 &3e10 11 11 11 33 33 30 77 77 ff ff ff ff ff b3 32 22 &3e20 cc ee ff ff ff ff ff 77 f9 75 66 00 88 88 88 00 ; sprite_08_data (SPRITE_PLAYER_LUNGE_PUNCH) ; sprite_2f_data (SPRITE_CLONE_ATTACK_ONE) &3e30 00 00 00 00 00 00 00 00 00 00 00 11 33 77 76 76 &3e40 00 00 00 ee ff ff f5 fa 00 00 00 00 00 88 88 88 &3e50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &3e60 00 00 00 00 00 00 11 11 70 74 32 33 74 f9 f2 f0 &3e70 f0 f2 f5 f3 fc f8 f4 fc 80 88 00 ff f0 f0 f3 c4 &3e80 00 00 00 cc e2 ea 66 00 00 00 00 00 00 00 00 00 &3e90 11 11 00 00 00 00 00 00 f1 f3 fc 32 33 33 77 77 &3ea0 f4 fa f0 f1 ff ff ff ff 88 88 88 00 cc ee ee ff &3eb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &3ec0 00 00 fd fd fd dd 88 88 77 ff ff ff ff ee 00 00 &3ed0 ff ff 88 00 00 00 00 00 ff ff ff ff 66 60 77 77 &3ee0 00 00 00 00 00 00 00 88 00 00 00 00 00 00 00 00 ; sprite_09_data (SPRITE_PLAYER_HOOK_PUNCH) &3ef0 00 00 11 11 11 11 11 00 77 ff ff fc fd f0 f8 fa &3f00 88 cc ee ea e6 e0 e4 ea 00 00 00 00 00 00 66 f9 &3f10 11 32 32 74 75 75 33 11 f1 f0 f0 f0 f0 f0 f0 f0 &3f20 cc f7 f0 f0 f0 f7 cc c4 f9 e2 c4 c4 88 00 00 00 &3f30 11 00 00 11 11 33 33 33 f0 f8 ff ff ff ff ff ee &3f40 c4 88 cc ee ff ff ff ff 00 00 00 00 00 00 88 88 &3f50 77 77 77 77 77 60 ee ee cc 88 88 00 00 00 00 00 &3f60 77 77 77 77 33 30 33 33 88 88 88 00 00 00 88 cc ; sprite_0a_data (SPRITE_PLAYER_FLYING_PUNCH) &3f70 00 00 11 11 11 54 fb f9 77 ff ff f9 fa f0 f0 f9 &3f80 88 cc ee e6 ea e0 ea c4 00 00 00 00 00 00 00 00 &3f90 f8 f8 f9 75 74 75 22 11 f4 f3 f1 f1 f9 f6 f9 ff &3fa0 ee f1 f0 f0 f2 ff ff ee 00 00 88 c4 c4 e2 ea f9 &3fb0 33 77 77 77 77 33 11 00 ff ff f7 f7 ff fe fd 11 &3fc0 ee cc cc 88 00 cc cc 88 75 75 22 00 00 00 00 00 ; sprite_0b_data (SPRITE_PLAYER_DEFEATED) ; sprite_27_data (SPRITE_CLONE_DEFEATED) &3fd0 00 00 00 11 11 11 11 33 00 22 88 dd cc dd ff fe &3fe0 88 11 77 33 33 bb ff f7 00 00 88 88 88 cc cc cc &3ff0 33 33 33 33 30 76 77 33 ff ff ff ff ff ff ff 77 &4000 ff ff ff ff ff ff ff ee ee ee ec f9 fb 77 66 00 ; sprite_10_data (SPRITE_BUCHU) &4010 00 00 00 11 11 11 33 74 00 66 f9 f0 a5 5f a5 f0 &4020 00 00 00 88 88 4c c4 c4 00 00 00 00 00 00 77 f9 &4030 74 f8 f8 f9 f9 f8 74 76 f0 f4 f3 f0 f3 fc f1 f2 &4040 f3 f8 f0 f0 fc f5 f8 f0 e2 c4 c4 c4 88 00 88 88 &4050 75 32 32 33 22 33 23 57 fc f0 f0 f8 77 88 ff 47 &4060 f0 f8 f1 f3 dd 23 cf 0f 88 88 00 00 00 88 4c 4c &4070 57 47 8f 8f 8f 8f 8f 8f 47 0f 0f 0f 0f 1f 1f 2e &4080 0f 0f 0f 4f 8f 47 23 23 2e 2e 2e 1f 1f 1f 1f 1f &4090 47 47 47 23 33 74 74 77 2e 2e 4c 4c 4c 88 c4 cc &40a0 47 8f 47 eb f9 f9 74 33 2e 2e 4c 88 00 00 88 88 ; sprite_18_data (SPRITE_BUCHU_MOVING) &40b0 00 00 00 11 11 11 11 32 00 66 f9 f0 a5 f5 f0 f0 &40c0 00 00 00 88 88 c4 c4 c4 00 00 00 00 00 00 00 77 &40d0 74 74 f8 f9 f9 f8 f8 74 f0 f4 f3 f3 fc f1 f2 f4 &40e0 e2 f9 f0 fc f4 f9 f0 f0 f9 e2 c4 c4 c4 c4 88 88 &40f0 77 76 32 33 22 33 23 47 f8 f0 f0 f0 fc 33 cc bb &4100 f0 f0 f8 f1 f3 dd 23 cf 88 88 88 00 00 00 88 88 &4110 57 57 47 47 47 23 33 23 47 47 4f 0f 0f 0f 0f 0f &4120 0f 0f 0f 8f 8f 8f 8f 8f 88 88 88 4c 4c 4c 4c 4c &4130 23 23 23 23 11 32 32 11 1f 1f 1f 3f ff d5 f3 ee &4140 8f 0f 0f 1f ee ea f9 ff 88 88 88 00 00 00 00 00 ; sprite_28_data (SPRITE_BUCHU_ATTACK_ONE) # Flying &4150 00 00 22 75 75 ff ff eb 00 00 00 88 6e ff 0f 0f &4160 00 00 00 00 77 8f 0f 0f 00 00 00 33 74 fc 74 74 &4170 11 32 32 ed f0 f0 f1 f0 cc e2 5b bf 5b f1 f3 fc &4180 00 00 00 00 00 00 ee e2 eb eb fb dd 00 00 00 00 &4190 0f 0f 0f 0f 8f 47 23 11 0f 0f 0f 1f 1f 1f 3f cc &41a0 74 70 70 70 70 f8 f8 77 f0 f4 f2 f1 f0 f1 e6 88 &41b0 f7 f0 f1 ee 88 00 00 00 ee c4 cc 00 00 00 00 00 ; sprite_20_data (SPRITE_BUCHU_DEFEATED) ; sprite_22_data (SPRITE_NUNCHA_DEFEATED) ; sprite_24_data (SPRITE_CHAIN_DEFEATED) &41c0 00 00 00 00 00 ff f8 74 00 00 00 00 00 00 88 88 &41d0 00 00 00 00 00 33 75 f9 00 00 00 00 00 00 00 00 &41e0 77 47 47 47 8f 8f 8f 8f 88 88 88 88 88 4c 5d 3e &41f0 fb 47 47 47 23 23 ab c7 88 88 4c 4c 2e 2e 1f 1f &4200 47 47 47 23 67 fb f8 ff 1f 0f 0f 0f 0f 0f 8f ff &4210 8f 0f 0f 0f 0f 0f 1f ff 1f 1f 2e 2e 6e fd f1 ff ; sprite_11_data (SPRITE_STAR) &4220 00 11 33 33 33 32 11 11 ff ff fa f5 a0 f0 d2 f9 &4230 00 88 88 88 80 80 88 00 32 32 74 75 74 74 33 11 &4240 ff f8 f8 ff e3 c7 8f 0f 00 88 cc ff 7c 7d 6e 88 &4250 11 11 23 23 23 23 11 11 ff 0f 0f 0f 0f 2f 2f 2f &4260 88 88 88 4c 4c 4c 2e 2e 11 23 23 23 31 76 77 33 &4270 3f 3f 6f 6f 99 10 11 99 2e 2e 4c 4c 88 80 cc ee ; sprite_19_data (SPRITE_STAR_MOVING) &4280 00 11 33 33 33 32 11 11 ff ff fa f0 f5 f0 d2 f9 &4290 00 88 88 88 80 80 88 00 32 74 74 f9 f8 f8 77 11 &42a0 ff f8 f8 ff e3 cf 0f 0f 00 88 ff 7c 7d 6e cc 88 &42b0 11 11 11 11 11 11 00 00 ff 0f 0f 0f 0f 1f 9f 9f &42c0 88 88 88 88 4c 4c 4c 4c 00 00 00 00 00 00 00 00 &42d0 9f 9f 9f 9f 77 e8 ff 77 08 88 88 88 00 00 00 88 ; sprite_0d_data (SPRITE_STAR_PROJECTILE) &42e0 00 00 22 8e 17 44 00 00 00 00 00 00 00 00 00 00 ; sprite_29_data (SPRITE_STAR_ATTACK_ONE) # Throwing star &42f0 00 11 33 33 33 32 11 00 ff ff fa f0 f5 f0 d2 f9 &4300 00 88 88 88 80 80 88 00 11 32 74 f9 f8 f8 77 11 &4310 ff f8 f8 ff f1 fc be 1f 88 cc ea 6a ea e2 e2 cc &4320 11 11 23 23 23 23 11 11 ff 0f 0f 0f 0f 2f 2f 2f &4330 88 88 4c 4c 4c 4c 2e 2e 11 23 23 23 31 76 77 33 &4340 3f 2f 6f 7f e8 ee 77 88 2e 2e 4c 88 00 00 00 00 ; sprite_21_data (SPRITE_STAR_DEFEATED) ; sprite_25_data (SPRITE_FAN_DEFEATED) &4350 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &4360 00 00 00 00 00 00 66 9f 00 00 00 00 00 22 75 fd &4370 00 00 00 00 00 00 77 ff 00 00 00 00 00 00 00 00 &4380 00 00 00 77 ed fc ff 88 11 33 cf 0f 1f 3f ff 33 &4390 0f 0f 0f cf a7 87 8f 77 7c 7c be 5f 3f 1f 1f ee &43a0 ff f9 f5 f2 ff f0 f8 77 88 88 88 88 ff f0 f3 cc ; sprite_30_data (SPRITE_BUCHU_ATTACK_TWO) # Punching &43b0 00 00 00 00 00 00 00 00 00 33 74 f8 e9 db e9 f8 &43c0 00 00 88 c4 84 6e a6 e2 00 00 00 00 00 00 00 00 &43d0 11 11 11 11 11 11 11 11 f0 f2 f1 f1 f0 f8 f8 f4 &43e0 e2 e6 ea f1 ff f0 f0 f3 00 00 00 00 cc e2 ea ee &43f0 11 32 32 33 22 33 23 23 f3 f0 f0 fc 33 cc 7f ab &4400 fc f0 f2 f0 ff 33 cf 0f 88 cc ea cc 00 88 4c 4c &4410 23 23 47 47 47 47 47 47 ab 0f 0f 0f 0f 1f 1f 1f &4420 0f 0f 4f 8f 8f 47 23 23 4c 2e 2e 2e 1f 1f 1f 1f &4430 47 47 47 23 33 74 74 77 2e 2e 2e 4c 4c 88 c4 cc &4440 23 47 47 47 77 74 74 33 2e 2e 4c 4c 88 88 c4 cc ; sprite_31_data (SPRITE_STAR_ATTACK_TWO) # Kicking &4450 00 00 00 00 11 11 77 f8 00 00 66 ff ff ff ff 9f &4460 00 00 00 00 88 88 88 88 00 00 00 00 00 00 00 00 &4470 00 00 00 00 00 00 00 00 f8 f9 75 74 32 11 00 00 &4480 87 87 8f 8f 9f af cf 47 4c 6a 7d 7f 8f 0f 0f 0f &4490 00 00 00 ff 0f 0f 0f 3f 00 00 00 11 fb fb ea 00 &44a0 00 00 00 00 00 00 00 00 47 47 47 47 47 47 47 47 &44b0 1f 3e 7f 4c 88 88 88 88 cc 88 00 00 00 00 00 00 &44c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &44d0 47 47 57 32 31 33 77 66 88 88 00 00 00 00 00 00 &44e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; sprite_12_data (SPRITE_NUNCHA) &44f0 00 00 00 00 00 00 00 00 00 00 00 77 77 77 76 75 &4500 00 00 00 cc cc c4 c0 c4 00 00 00 00 00 00 00 00 &4510 22 73 77 57 9f be be 9f 70 fc 7c 7e fd f6 f6 be &4520 c0 f3 c7 cf c7 c7 8f 8f 00 88 4c 4c 2e 2e 1f 9f &4530 8f 9f 77 55 44 44 00 11 bf 3f 1f 1f 9f ff ff 0f &4540 0f 1f 1f 1f 3f ff ee 1f 9f 9f ae e6 e2 c4 88 00 &4550 11 23 23 23 47 47 47 47 0f 0f 0f 1f 1f 2e 2e 4c &4560 1f 0f 0f 0f 0f 8f 8f 47 00 88 88 88 4c 4c 4c 4c &4570 47 47 23 23 33 10 33 77 4c 4c 4c 4c 88 80 88 88 &4580 47 47 47 47 33 30 33 33 4c 4c 88 88 88 00 88 cc ; sprite_1a_data (SPRITE_NUNCHA_MOVING) &4590 00 00 00 00 00 00 00 00 00 00 00 77 77 77 76 75 &45a0 00 00 00 cc cc c4 c0 c4 00 00 00 00 00 00 00 00 &45b0 31 33 77 57 8f 9f bf 8f 70 fc 7c fe fd f2 f2 fe &45c0 c0 f3 c7 cf c7 c7 8f 8f 00 00 88 4c 4c 2e 2e 9f &45d0 8f 9f 77 99 88 00 00 11 ff 5f 1f 1f 9f ff ff 0f &45e0 0f 1f 1f 1f 3e ff ee 1f 9f 9f ae a6 c4 88 00 00 &45f0 11 11 23 23 23 47 47 47 0f 0f 0f 1f 1f 2e 2e 4c &4600 1f 1f 0f 0f 0f 8f 8f 47 00 00 88 88 88 4c 4c 4c &4610 23 23 11 00 00 00 00 00 2e 2e 1f bf fd 73 77 ee &4620 8f 8f 1f 2e ee c0 cc ee 88 88 00 00 00 00 00 00 ; sprite_32_data (SPRITE_NUNCHA_ATTACK_TWO) # Nunchaku forward &4630 00 00 00 00 00 00 00 00 00 00 00 77 77 77 76 75 &4640 00 00 00 cc cc c4 c0 c4 00 00 00 00 00 00 00 00 &4650 00 00 00 00 00 00 00 00 00 00 00 11 23 23 23 23 &4660 70 74 fc 3e 3f 3e 7f 0f c0 f3 c7 cf c7 ff f9 f9 &4670 00 11 b9 4c cc cc ae 2e 00 00 88 cc 66 22 00 00 &4680 11 11 11 00 00 00 00 11 0f 0f ff 9f 9f ff ff 0f &4690 ff af 2f 3f 7c fe ff 1f 2e 2e 4c 88 88 88 00 00 &46a0 00 00 00 00 00 00 00 00 11 11 11 23 23 23 23 23 &46b0 0f 0f 0f 0f 1f 1f 2e 2e 1f 1f 0f 0f 0f 8f 8f 47 &46c0 00 00 88 88 88 4c 4c 4c 00 00 00 00 00 00 00 00 &46d0 47 47 47 47 33 30 77 ff 4c 4c 88 88 00 00 00 00 &46e0 47 47 47 47 33 30 33 33 4c 4c 88 88 88 00 88 cc &46f0 00 00 00 00 00 00 00 00 ; sprite_2a_data (SPRITE_NUNCHA_ATTACK_ONE) # Nunchaku up &46f8 00 88 88 44 44 22 22 20 00 00 00 77 77 76 74 72 &4708 00 00 00 cc cc cc c4 c8 00 00 00 00 00 00 00 00 &4718 22 33 77 57 9f be be 9f 70 fc 7c 7e fd f6 f6 be &4728 c0 f7 c7 cf c7 c7 8f 8f 00 88 4c 4c 2e 2e 1f 9f &4738 8f 9f 77 11 00 00 00 11 bf 3f 1f 1f 9f ff ff 0f &4748 0f 1f 1f 1f 3f ff ee 1f 9f 9f ae e6 e2 c4 88 00 &4758 11 23 23 23 47 47 47 47 0f 0f 0f 1f 1f 2e 2e 4c &4768 1f 0f 0f 0f 8f 8f 47 47 00 88 88 4c 4c 4c 2e 2e &4778 47 47 23 23 33 10 33 77 4c 4c 4c 4c 88 80 88 88 &4788 23 23 23 23 11 10 11 11 2e 2e 4c 4c cc 80 cc ee ; sprite_3a_data (SPRITE_NUNCHA_ATTACK_THREE) # Nunchaku down; would also be sprite &3b &4798 00 00 00 00 00 00 00 00 00 00 00 77 77 76 74 72 &47a8 00 00 00 cc cc cc c4 c8 00 00 00 00 00 00 00 00 &47b8 00 33 47 47 8f 8f 8f 9f 70 fc 7c 7e 7d 3e 3e be &47c8 c0 f7 c7 cf c7 c7 8f 9f 00 00 88 4c 4c 2e 2e 2e &47d8 be be 77 11 11 11 33 77 f7 f7 9f 1f 7d ff ff 0f &47e8 3f 3f 7c fc bf ff ee 1f 2e 4c 88 88 00 00 00 00 &47f8 dd ab 23 23 47 47 47 47 0f 0f 0f 1f 1f 2e 2e 4c &4808 1f 0f 0f 0f 8f 8f 47 47 00 88 88 4c 4c 4c 2e 2e &4818 47 47 23 23 33 10 33 77 4c 4c 4c 4c 88 80 88 88 &4828 23 23 23 23 11 10 11 11 2e 2e 4c 4c cc 80 cc ee &4838 00 00 00 00 00 00 00 00 ; sprite_13_data (SPRITE_POLE) &4840 ff fe 32 32 32 74 75 75 00 ff f7 bb ff ff fe fd &4850 00 00 ff ff dd fe d9 d5 00 00 00 ff f7 c4 c4 c4 &4860 74 32 32 32 32 11 11 11 fd f8 fc f6 b7 b4 b4 b4 &4870 d5 f2 fa f4 bd b5 a6 a6 c4 c4 c4 88 00 00 00 00 &4880 11 00 00 11 11 11 11 11 b5 fe fe 1f 0f 0f 0f 0f &4890 a6 cc cc 2e 2e 2e 2e 1f 00 00 00 00 00 00 00 00 &48a0 00 00 00 11 23 33 33 11 9f 9f 9f 1f 2e 4c 88 88 &48b0 1f 9f 9f 9f 9f 66 77 77 00 00 00 00 00 00 00 00 ; sprite_1b_data (SPRITE_POLE_MOVING) &48c0 00 ff fe 32 32 32 74 75 00 ff ff d5 ff ff fe fd &48d0 00 00 ff ff fe dd d9 d5 00 00 ff f7 c4 c4 c4 c4 &48e0 75 74 74 32 32 11 11 11 fd f8 fc f6 b7 b4 b4 b4 &48f0 d5 f3 fa f4 bc b5 a6 a6 c4 c4 c4 88 88 00 00 00 &4900 11 00 00 11 11 11 11 11 b5 fe fe 1f 0f 0f 0f 1f &4910 a6 cc cc 2e 2e 2e 2e 2e 00 00 00 00 00 00 00 00 &4920 11 11 11 00 00 00 00 00 1f 1f 9f 9f 9f 77 ff ff &4930 2e 4c 4c 4c 88 88 cc cc 00 00 00 00 00 00 00 00 ; sprite_33_data (SPRITE_POLE_ATTACK_TWO) # Crouching &4940 00 00 00 00 00 00 00 00 00 00 00 00 00 00 33 77 &4950 00 00 00 00 00 00 88 cc 00 00 00 00 00 00 00 00 &4960 00 00 00 00 00 66 77 33 77 fe fd fd f8 fc f6 bf &4970 cc c8 c4 c4 c0 ea f5 bd 00 00 00 00 00 00 00 00 &4980 33 32 74 74 74 33 11 11 fe fd f9 f3 f7 fe 9f 0f &4990 b4 b4 b6 be ff ff 7e 3e 88 88 c4 c4 c4 c4 c4 cc &49a0 11 00 00 00 11 11 11 11 0f 8f 8f 47 8f 8f cf bb &49b0 1f 8f cf 4f 4f bb bb 33 cc ee ff bb 88 00 88 88 ; sprite_2b_data (SPRITE_POLE_ATTACK_ONE) # Pole forward &49c0 00 00 00 00 00 00 11 11 00 00 00 77 ff ff fd fa &49d0 00 00 00 00 88 88 80 88 00 00 00 00 00 00 00 00 &49e0 00 00 00 00 00 00 00 00 11 11 11 32 32 74 74 74 &49f0 fa f0 f9 7c b7 b4 bc bc 88 80 c4 ea b5 b5 b4 b6 &4a00 00 00 00 00 00 00 88 c4 00 00 00 00 00 00 00 00 &4a10 32 11 11 11 11 11 11 11 f7 f3 f9 ff 0f 0f 0f 0f &4a20 ff ff cc 2e 2e 2e 2e 1f fd fd 66 00 00 00 00 00 &4a30 ee ee 00 00 00 00 00 00 00 00 00 11 23 33 33 11 &4a40 9f 9f 9f 1f 2e 4c 88 88 1f 9f 9f 9f 9f 66 77 77 &4a50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; feedle_sprites_data # Two of the following are used for sprites &38 and &39: &4a60 00 55 bb ab 67 23 32 11 88 5d fe 79 e2 e2 e2 cc # Teapot &4a70 11 23 56 56 56 74 32 11 88 cc e6 e6 e6 6e cc 88 # Plate &4a80 00 11 76 74 77 67 67 33 44 ea f3 df 1f 3f cc 00 # Brick &4a90 00 00 22 11 33 77 22 00 00 66 ae 4c 88 44 00 00 # Dagger &4aa0 11 33 57 57 47 57 23 11 88 cc 6e ee 6e 6e 4c 88 # Yin-yang ; sprite_14_data (SPRITE_CHAIN) &4ab0 cc ea ec ea ee ea ea f9 00 33 47 57 77 76 74 fc &4ac0 00 88 cc cc c0 e4 e2 f5 00 00 00 00 00 00 00 00 &4ad0 74 74 32 11 00 00 00 00 b6 b6 b5 b4 9e 8f 8f 8f &4ae0 d6 d6 da d3 86 0e 1f 1f 88 c4 e2 f1 f9 f9 e2 e2 &4af0 00 00 00 00 11 11 23 23 8f 57 76 be 1f 0f 0f 0f &4b00 1f ae e6 d7 8f 0f 0f 0f cc 00 00 00 88 88 4c 4c &4b10 23 23 23 23 11 00 11 11 1f 2e 2e 4c 2e ee ee ee &4b20 8f 47 47 23 47 77 77 77 4c 4c 4c 4c 88 00 88 88 ; sprite_1c_data (SPRITE_CHAIN_MOVING) &4b30 66 75 ea f5 fd 75 75 75 00 00 33 47 57 77 76 74 &4b40 00 00 88 cc cc c0 e4 e2 00 00 00 00 00 00 00 00 &4b50 74 74 32 32 11 00 00 00 fc b6 b6 b5 b4 9e 8f 8f &4b60 f5 d6 d6 da d3 97 1f 1f 88 c4 e2 f1 f9 f9 e2 e2 &4b70 00 00 00 00 11 23 23 47 8f 8f 57 fe 3e 1f 0f 0f &4b80 1f 1f ae f7 c7 8f 0f 0f cc 00 00 00 88 4c 4c 2e &4b90 47 47 47 23 11 11 33 33 1f 2e 4c 4c 08 cc cc cc &4ba0 8f 47 23 23 01 33 33 33 2e 2e 2e 4c 88 88 cc cc ; sprite_34_data (SPRITE_CHAIN_ATTACK_TWO) # Kicking &4bb0 66 ea c8 ea ea ea ea f9 00 33 47 57 77 76 74 fc &4bc0 00 88 cc cc c0 e4 e2 f5 00 00 00 00 00 00 00 00 &4bd0 74 74 32 11 00 00 00 00 b6 b6 b5 b4 9e 8f 8f 8f &4be0 d6 d6 da d3 97 0e 1f 1f 88 c4 c4 e2 e2 f9 f1 e2 &4bf0 00 00 00 00 11 23 23 47 8f 57 76 be 1f 0f 0f 0f &4c00 1f af c7 c7 8f 0f 2f 6f cc 4c 4c 2e 2e 2e 1f 3f &4c10 47 47 47 23 11 00 11 11 1f 2e 2e 4c 2e ee ee ee &4c20 99 00 00 00 00 00 00 00 7f ff 66 00 00 00 00 00 ; sprite_3c_data (SPRITE_CHAIN_PROJECTILE) &4c30 00 00 00 00 44 ee bb 55 00 00 00 00 00 00 f5 aa &4c40 00 00 00 00 00 00 f5 aa ; sprite_2c_data (SPRITE_CHAIN_ATTACK_ONE) # Throwing chain &4c48 00 00 00 00 00 00 00 00 00 00 33 47 57 77 76 74 &4c58 00 00 88 cc cc c0 e4 e2 00 00 00 00 00 00 00 00 &4c68 00 00 00 00 00 00 00 00 74 76 db f9 f9 f8 fc be &4c78 f5 d7 d7 d3 96 fe f1 f0 00 00 00 00 88 88 f6 f5 &4c88 00 00 00 00 11 23 23 47 8f 8f 57 fe 3e 1f 0f 0f &4c98 ff 1f bf f7 c7 8f 0f 0f 88 c4 c4 88 88 4c 4c 2e &4ca8 47 47 47 23 11 11 33 33 1f 2e 4c 4c 08 cc cc cc &4cb8 8f 47 23 23 01 33 33 33 2e 2e 2e 4c 88 88 cc cc ; sprite_15_data (SPRITE_FAN) &4cc8 00 00 00 20 31 71 33 33 00 00 00 cc ee 8e 7f ff &4cd8 00 00 00 00 00 00 00 00 11 33 33 33 32 11 11 32 &4ce8 ff f8 f5 a0 f0 f3 eb fe 88 88 88 88 80 88 88 4c &4cf8 32 32 74 75 74 74 33 11 eb fa ef fe f3 c7 8f 0f &4d08 a6 6a c4 cc 4c 4c 6e ea 11 11 23 23 23 23 11 11 &4d18 ff 0e 0f 0f 0d 0e 0d 87 cc 88 88 4c 4c 4c 2e 2e &4d28 11 33 32 32 30 75 76 55 87 96 0f 0f ff 10 11 99 &4d38 a6 62 c4 4c 88 c4 c8 66 ; sprite_1d_data (SPRITE_FAN_MOVING) &4d40 00 00 00 20 31 71 33 33 00 00 00 cc ee 8e 7f ff &4d50 00 00 00 00 00 00 00 00 11 33 33 33 32 11 11 32 &4d60 ff f8 f5 a0 f0 d2 f9 ff 88 88 88 88 80 88 00 00 &4d70 32 74 74 f9 f8 f8 77 11 f8 f9 fe ed d6 af 1f 0f &4d80 88 c4 4c c4 4c c4 ee ea 11 23 23 23 23 23 11 11 &4d90 ff 0e 0f 0f 0d 0e 0d 0f 44 88 88 88 88 4c 4c 4c &4da0 11 11 23 23 33 30 33 22 1e 2c 1e 0f ff b8 fb ee &4db0 4c c4 88 88 00 88 c8 cc ; sprite_2d_data (SPRITE_FAN_ATTACK_ONE) # Throwing fan &4db8 00 00 00 20 31 71 33 33 00 00 00 cc ee 8e 7f ff &4dc8 00 00 00 00 00 00 00 00 11 33 33 33 33 11 00 11 &4dd8 ff f8 f5 a0 f0 d2 f9 ff 88 88 88 88 80 88 00 00 &4de8 33 32 32 74 74 74 33 11 f8 f8 fd ef 8f f7 d6 ed &4df8 88 88 cc ee 7d ee 6a a6 11 11 23 23 23 23 11 11 &4e08 de 3f 0e 0f 0d 0e 0d 87 6a a6 ea 4c 4c 4c 2e a6 &4e18 11 33 32 32 30 75 76 55 96 87 0f 1f fe 11 11 88 &4e28 62 a6 4c 88 c4 c8 66 00 ; sprite_3d_data (SPRITE_FAN_PROJECTILE) &4e30 66 57 65 56 65 56 75 66 00 00 88 4c c4 88 00 00 ; sprite_35_data (SPRITE_FAN_ATTACK_TWO) # Kicking &4e40 00 00 00 20 31 71 33 33 00 00 00 cc ee 8e 7f ff &4e50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &4e60 11 33 33 33 33 11 00 11 ff f8 f5 a0 f0 d2 f9 ff &4e70 88 88 88 88 80 88 00 00 00 00 00 00 00 00 00 00 &4e80 33 32 32 74 74 74 33 11 f8 f8 fd ef 8f f7 d6 ed &4e90 88 ee fd ee 4c cc 6a a6 00 00 00 00 00 00 00 00 &4ea0 11 11 11 11 11 11 11 33 3e 7f f8 f0 f0 f8 ff 8d &4eb0 6a ee f1 f0 f4 ff 4c 4c 00 00 00 88 c4 e2 fe bb &4ec0 33 77 33 33 11 00 00 00 8e 2d 59 3d ee 71 77 55 &4ed0 4c 88 00 00 00 00 80 88 00 00 00 00 00 00 00 00 ; sprite_16_data (SPRITE_SWORD) &4ee0 00 00 00 00 11 01 11 00 33 77 8f fe 7d ec f8 fd &4ef0 88 cc 0c c8 c4 80 c0 cc 00 00 00 00 00 00 00 00 &4f00 11 23 47 67 75 75 75 75 ff 7f 7d 3f 4f 7f 2f 3f &4f10 e6 df 8f 1f be 3e be 3e 00 00 88 88 88 88 88 88 &4f20 75 74 32 11 00 11 11 11 5f 9f f7 c7 9f 3f 6f df &4f30 be 7c f9 ea ee 2e 1f 1f 88 88 00 00 00 00 00 00 &4f40 11 33 67 23 23 33 74 77 9f 2e 2e 4c 4c 88 88 88 &4f50 1f 8f 8f 47 47 77 74 77 00 88 88 88 88 00 88 88 ; sprite_1e_data (SPRITE_SWORD_MOVING) &4f60 00 00 00 11 01 11 00 00 33 77 47 fe fd ec f8 fd &4f70 88 cc 0c c8 c4 80 c0 cc 00 00 00 00 00 00 00 00 &4f80 11 23 03 67 75 75 f9 fb ff 7f 7d 3f 4f 7f 2f 3f &4f90 e6 df 8f 1f be 3e be 3e 00 00 00 88 88 88 88 88 &4fa0 fb ea ea fb 77 66 11 11 5f 9f ff ff cf 8f 0f 1f &4fb0 fe f8 fb 6e 2e 2e 1f 1f 88 88 00 00 00 00 00 00 &4fc0 11 11 11 11 11 00 11 11 1f 3f 2e 3f 3f ff f3 ff &4fd0 1f 9f 9f 2e 2e cc e2 ee 00 00 00 00 00 00 00 00 ; sprite_36_data (SPRITE_SWORD_ATTACK_TWO) # Blocking down with sword &4fe0 00 00 00 44 ea f9 eb ea 00 00 33 77 8f fe 7d ec &4ff0 00 00 88 cc 0c c8 c4 80 00 00 00 00 00 00 00 00 &5000 fb fb eb eb 75 75 33 11 f8 fd 7f 7f 3f 4f 7f 2f &5010 c0 cc e6 df 8f 9f 3e be 00 00 00 00 88 88 88 88 &5020 11 00 00 00 00 00 11 11 2f df 8f 77 8f 8f 0f 0f &5030 be be 7e ff 7d 3f 1f 0f 88 88 88 88 00 88 88 cc &5040 11 23 23 23 23 33 74 77 1f 2e 2e 4c 4c 88 88 88 &5050 8f 47 23 23 47 77 74 77 cc 6e 6e 7f 99 00 88 88 ; sprite_23_data (SPRITE_POLE_DEFEATED) ; sprite_26_data (SPRITE_SWORD_DEFEATED) &5060 11 32 32 11 23 23 23 23 88 c4 c4 cc 4c 4c 4c 2e &5070 00 00 11 32 32 32 33 47 00 00 88 c4 c4 c4 88 4c &5080 23 23 23 11 55 fb f8 77 2e 1f 0f 0f 0f 0f 8f ff &5090 47 8f 0f 0f 0f 1f 1f ff 4c 4c 88 88 88 ee f1 ff ; sprite_2e_data (SPRITE_SWORD_ATTACK_ONE) # Lunging with sword &50a0 00 00 00 00 00 00 00 66 00 00 00 00 11 01 11 23 &50b0 33 77 07 fe 7d ec f8 7d 88 cc 0c c8 c4 80 c0 cc &50c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 33 ff &50d0 75 74 32 11 00 00 00 11 75 f9 e3 d7 8f 9f ef 1f &50e0 7f bf 5f 6f af 5f 1f ff c4 dd dd fa f8 fd 22 88 &50f0 33 ff c4 88 88 00 00 00 cc 00 00 00 00 00 00 00 &5100 11 23 23 47 47 77 f9 ff 0f 1f 2e 4c 88 00 00 00 &5110 0f 8f 47 23 47 77 74 77 88 4c 4c 4c 88 00 88 88 &5120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; unused # Would be sprite &3e &5130 00 00 00 00 00 00 20 11 00 40 00 45 00 08 01 14 &5140 00 54 00 04 11 89 00 04 ; unused # Would be sprite &3f &5148 00 00 00 00 40 00 00 00 00 00 20 00 00 11 40 00 &5158 00 02 88 02 00 20 08 01 00 11 80 00 05 00 80 04 &5168 00 00 20 00 88 08 00 00 00 00 20 00 00 00 00 20 &5178 02 00 44 01 98 04 00 02 20 00 84 01 2a 00 44 08 &5188 88 00 20 00 00 00 40 00 00 00 00 00 00 00 00 00 &5198 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &51a8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &51b8 00 00 00 00 00 00 00 00 ; unused # Source code fragment corresponding to &15aa - &15ba &51c0 0d &51c1 01 99 63 2e 54 49 4d 3a 44 45 43 54 49 4d 52 25 ; 409.TIM:DECTIMR%:BNETIMRET:LDA#2:STAC%:LDAY%:CMP#GRND%:BCSTIMRE ... &51d1 3a 42 4e 45 54 49 4d 52 45 54 3a 4c 44 41 23 32 &51e1 3a 53 54 41 43 25 3a 4c 44 41 59 25 3a 43 4d 50 &51f1 23 47 52 4e 44 25 3a 42 43 53 54 49 4d 52 45 ; YIE3?? # Filename has two embedded delete characters ; BBC1BBC2 BBC1BBC2 0532 # &5200 - &5731 is decrypted at &0e4f of YIE3 &5200 0d # Start of BASIC program &5201 00 00 0b 2a 46 58 31 33 2c 34 0d ; 0*FX13,4 # Disable v-sync events &520c 00 01 09 2a 46 58 31 39 0d ; 1*FX19 # Wait for vertical retrace &5215 00 05 44 4d 3d 26 41 30 30 3a 54 25 3d 26 36 32 ; 5M=&A00: # &0a00 = wave_state &5225 30 3a de 48 49 25 28 37 29 3a e3 49 25 3d 30 b8 ; T%=&620: # &0620 = high_score_names &5235 37 3a 48 49 25 28 49 25 29 3d 31 30 30 30 30 2d ; DIMHI%(7): &5245 31 30 30 30 2a 49 25 3a ed 3a 53 43 35 25 3d 4d ; FORI%=0TO7: &5255 2b 31 20 0d ; HI%(I%)=10000-1000*I%: # Initialise high scores ; NEXT: ; SC5%=M+1 # &0a01 = score ; ; ; &5259 00 14 4c eb 35 3a ef 31 39 2c 33 2c 30 3b 30 3b ; 20MODE5: &5269 32 33 3b 38 32 30 32 3b 30 3b 30 3b 30 3b 3a fb ; VDU19,3,0;0; # Set colour 3 to black &5279 31 33 31 3a f1 89 28 31 32 30 29 3b 3a ef 32 38 ; 23;8202;0;0;0;: # Disable cursor &5289 2c 30 2c 34 2c 31 39 2c 30 3a fb 31 3a d6 26 31 ; COLOUR131: &5299 31 30 30 3a 2a 46 58 31 34 2c 34 0d ; PRINTSPC(120);: ; VDU28,0,4,19,0: ; COLOUR1: ; CALL&1100: # Call to_initialise_vectors ; *FX14,4 # Enable v-sync events &52a5 00 19 13 2a 4c 4f 41 44 22 59 49 45 34 22 35 46 ; 25*LOAD"YIE4"5F80 &52b5 38 30 0d &52b8 00 1e 60 e3 49 25 3d 30 b8 33 3a ef 31 39 2c 49 ; 30FORI%=0TO3: &52c8 25 2c 30 3b 30 3b 3a ed 3a fb 31 33 31 3a ef 32 ; VDU19,I%,0;0;: # Set all colours to black &52d8 33 3b 31 33 2c 30 3b 30 3b 30 3b 30 2c 20 32 36 ; NEXT: &52e8 3a e6 30 2c 33 3a ec 30 2c 38 33 32 3a ec 31 32 ; COLOUR131: &52f8 37 39 2c 38 33 32 3a f0 38 35 2c 30 2c 31 30 32 ; VDU23;13,0;0;0;0, # R13: Displayed screen start address register (low) &5308 33 3a f0 38 35 2c 31 32 37 39 2c 31 30 32 33 0d ; 26: # Restore default windows ; GCOL0,3: ; MOVE0,832: ; MOVE1279,832: ; PLOT85,0,1023: ; PLOT85,1279,1023 &5318 00 28 58 fb 31 3a f1 8a 30 2c 31 29 3b 22 53 43 ; 40COLOUR1: &5328 4f 52 45 20 20 48 49 20 20 20 20 20 57 41 56 45 ; PRINTTAB(0,1);"SCORE HI WAVE"; &5338 22 3b 8a 31 34 2c 32 29 3b 22 52 45 53 54 22 3a ; TAB(14,2);"REST": &5348 fb 32 3a f1 8a 31 39 2c 31 29 3b 22 31 4f 4f 4f ; COLOUR2: &5358 4f 4f 4f 22 3a f2 44 49 47 49 54 28 37 2c 32 2c ; PRINTTAB(19,1);"1OOOOOO": &5368 48 49 25 28 30 29 29 0d ; PROCDIGIT(7,2,HI%(0)) &5370 00 32 55 e6 30 2c 32 3a ec 36 30 2c 38 39 32 3a ; 50GCOL0,2: &5380 df 31 32 32 30 2c 38 39 32 3a df 31 32 32 30 2c ; MOVE60,892: &5390 38 36 34 3a df 36 30 2c 38 36 34 3a df 36 30 2c ; DRAW1220,892: &53a0 38 39 32 3a fb 31 32 39 3a f1 8a 39 2c 34 29 3b ; DRAW1220,864: &53b0 22 4b 4f 22 3a fb 31 33 31 3a f1 22 20 4f 4f 4c ; DRAW60,864: &53c0 4f 4e 47 22 0d ; DRAW60,892: ; COLOUR129: ; PRINTTAB(9,4);"KO": ; COLOUR131: ; PRINT" OOLONG" &53c5 00 4b 2f ef 32 34 2c 30 3b 30 3b 31 32 37 39 3b ; 75VDU24,0;0;1279;348; # Define graphics window &53d5 33 34 38 3b 20 31 36 2c 20 32 36 3a d4 26 31 2c ; 16, # Clear graphics area &53e5 30 2c 32 30 2c 30 3a 2a 46 58 31 34 2c 34 0d ; 26: # Restore default windows ; SOUND&1,0,20,0: ; *FX14,4 # Enable v-sync events &53f4 00 58 49 d6 26 31 31 30 33 3a ef 32 33 3b 31 33 ; 88CALL&1103: # Call play_game &5404 2c 32 30 30 3b 30 3b 30 3b 30 2c 32 34 2c 30 3b ; VDU23;13,200;0;0;0, # R13: Displayed screen start address register (low) &5414 30 3b 31 32 37 39 3b 33 34 38 3b 20 3a fb 31 32 ; 24,0;0;1279;348; : # Define graphics window &5424 38 3a f1 8a 30 2c 30 29 3b 89 28 31 32 30 29 3b ; COLOUR128: &5434 3a ef 31 36 2c 20 32 36 0d ; PRINTTAB(0,0);SPC(120);: ; VDU16, # Clear graphics area ; 26 # Restore default windows &543d 00 5a 17 e7 3f 4d 3d 32 35 35 20 8c 50 25 3d 39 ; 90IF?M=255 THENP%=9:GOTO100 # Did the player quit? &544d 3a e5 8d 44 64 40 0d &5454 00 62 a8 53 43 25 3d 30 3a e3 49 25 3d 30 b8 34 ; 98SC%=0: # If not, check for new high score &5464 3a 53 43 25 3d 53 43 25 2b 49 25 3f 53 43 35 25 ; FORI%=0TO4: &5474 2a 31 30 5e 28 35 2d 49 25 29 3a ed 3a 50 25 3d ; SC%=SC%+I%?SC5%*10^(5-I%): &5484 39 3a e3 49 25 3d 30 b8 37 3a e7 53 43 25 3e 48 ; NEXT: &5494 49 25 28 49 25 29 20 e3 4a 25 3d 36 b8 49 25 88 ; P%=9: &54a4 2d 31 3a 48 49 25 28 4a 25 2b 31 29 3d 48 49 25 ; FORI%=0TO7: &54b4 28 4a 25 29 3a 24 28 54 25 2b 31 30 2b 31 30 2a ; IFSC%>HI%(I%) &54c4 4a 25 29 3d 24 28 54 25 2b 31 30 2a 4a 25 29 3a ; FORJ%=6TOI%STEP-1: &54d4 ed 3a 48 49 25 28 49 25 29 3d 53 43 25 3a 3f 28 ; HI%(J%+1)=HI%(J%): &54e4 54 25 2b 31 30 2a 49 25 29 3d 31 33 3a 50 25 3d ; $(T%+10+10*J%)=$(T%+10*J%): &54f4 49 25 3a 49 25 3d 38 0d ; NEXT: ; HI%(I%)=SC%: ; ?(T%+10*I%)=13: ; P%=I%: ; I%=8 &54fc 00 63 05 ed 0d ; 99NEXT &5501 00 64 63 ef 35 3a e3 49 25 3d 31 b8 30 88 2d 31 ; 100VDU5: # Write text at graphics cursor &5511 3a e6 30 2c 32 2b 49 25 3a ec 32 39 36 2b 49 25 ; FORI%=1TO0STEP-1: &5521 2a 38 2c 33 32 34 2d 49 25 2a 34 3a f1 22 8f 90 ; GCOL0,2+I%: &5531 91 92 93 94 95 96 97 83 84 22 3a ed 3a ef 34 3a ; MOVE296+I%*8,324-I%*4: &5541 fb 33 3a f1 8a 34 2c 32 29 22 81 31 39 38 35 20 ; PRINT" ": # Write "Yie Ar KUNG-FU" &5551 80 6f 6e 61 6d 69 22 3a ef 31 39 2c 30 2c 36 3b ; NEXT: &5561 30 3b 0d ; ; VDU4: # Write text at text cursor ; COLOUR3: ; PRINTTAB(4,2)" 1985 onami": ; VDU19,0,6;0; # Set colour 0 to cyan &5564 07 f8 47 e3 49 25 3d 30 b8 37 3a fb 31 3a f2 44 ; 2040FORI%=0TO7: &5574 49 47 49 54 28 33 2c 49 25 2b 32 34 2c 48 49 25 ; COLOUR1: &5584 28 49 25 29 29 3a fb 33 3a f1 8a 31 30 2c 49 25 ; PROCDIGIT(3,I%+24,HI%(I%)): &5594 2b 32 34 29 3b 24 28 54 25 2b 49 25 2a 31 30 29 ; COLOUR3: &55a4 3b 3a ed 3a fb 32 0d ; PRINTTAB(10,I%+24);$(T%+I%*10);: ; NEXT: ; COLOUR2 &55ab 08 02 0c 20 2a 46 58 31 35 2c 31 0d ; 2050 *FX15,1 # Flush input buffer &55b7 08 0c 23 e7 50 25 3d 39 e5 8d 54 6a 48 8b f1 8a ; 2060IFP%=9 # Is this a new high score? &55c7 31 30 2c 50 25 2b 32 34 29 3b 3a e3 49 25 3d 30 ; GOTO2090 # If not, skip asking for name &55d7 b8 38 0d ; ELSE ; PRINTTAB(10,P%+24); ; FORI%=0TO8 &55da 08 0d 40 53 43 25 3d a5 3a e7 28 53 43 25 3c 33 ; 2061SC%=GET: &55ea 33 84 53 43 25 3e 31 32 37 29 80 53 43 25 3c 3e ; &55fa 31 33 8c 8d 54 4d 48 8b ef 53 43 25 3a 3f 28 54 ; IF(SC%<33ORSC%>127)ANDSC%<>13 &560a 25 2b 50 25 2a 31 30 2b 49 25 29 3d 53 43 25 0d ; THEN2061 ; ELSE ; VDUSC%:?(T%+P%*10+I%)=SC% &561a 08 0e 2b e7 53 43 25 3c 3e 31 32 37 8c 8d 54 56 ; 2062IFSC%<>127 &562a 48 8b e7 49 25 3e 30 49 25 3d 49 25 2d 32 8b 49 ; THEN2070 &563a 25 3d 49 25 2d 31 3a ef 33 32 0d ; ELSE ; I%=I%-1: ; VDU32 &5645 08 16 13 e7 53 43 25 3d 31 33 49 25 3d 39 3a ed ; 2070IFSC%=13 &5655 8b ed 0d ; I%=9 ; NEXT ; ELSE ; NEXT &5658 08 2a 55 d4 26 33 30 30 2c 37 2c 37 2c 38 3a d4 ; 2090SOUND&300,7,7,8: # Play sound for high score table &5668 26 33 30 31 2c 38 2c 32 30 30 2c 33 30 3a d4 26 ; SOUND&301,8,200,30: &5678 33 30 32 2c 37 2c 30 2c 35 3a d4 26 33 30 33 2c ; SOUND&302,7,0,5: &5688 37 2c 31 32 2c 35 3a e3 49 25 3d 30 b8 34 30 30 ; SOUND&303,7,12,5: &5698 30 3a ed 3a f5 fd a6 28 2d 39 39 29 3a 2a 46 58 ; FORI%=0TO4000:NEXT &56a8 31 33 2c 34 0d ; REPEATUNTILINKEY(-99): # Wait for SPACE ; *FX13,4 # Disable v-sync events &56ad 08 30 09 2a 46 58 31 39 0d ; 2096*FX19 # Wait for vertical retrace &56b6 0b b8 09 e5 8d 54 5e 40 0d ; 3000GOTO30 # Start new game &56bf 27 10 2f dd f2 42 41 52 53 3a e3 49 25 3d 30 b8 ; 10000DEFPROCBARS: # Unused procedure &56cf 33 3a e6 30 2c 49 25 3a ec 49 25 2a 38 2c 30 3a ; FORI%=0TO3: &56df df 49 25 2a 38 2c 31 30 32 33 3a ed 3a e1 0d ; GCOL0,I%: ; MOVEI%*8,0: ; DRAWI%*8,1023: ; NEXT ; ENDPROC &56ee 3a 98 43 dd f2 44 49 47 49 54 28 58 25 2c 59 25 ; 15000DEFPROCDIGIT(X%,Y%,N%): &56fe 2c 4e 25 29 3a f1 8a 58 25 2c 59 25 29 3b 3a e3 ; PRINTTAB(X%,Y%);: &570e 4a 25 3d 35 b8 30 88 2d 31 3a ef 28 32 32 39 2b ; FORJ%=5TO0STEP-1: &571e 28 4e 25 81 31 30 5e 4a 25 29 83 31 30 29 3a ed ; VDU(229+(N%DIV10^J%)MOD10): &572e 3a e1 0d ; NEXT ; ENDPROC &5731 ff # End of BASIC program ; YIE4 ; 00005800 00005800 12C0 # Loaded at &5f80 - &723f by YIE3?? ; current_background # Waterfall &5f80 00 00 00 bb f4 f1 f0 f0 00 00 00 aa f5 f8 f0 f0 &5f90 00 00 00 00 33 fc f4 f0 00 00 00 00 88 f7 f0 f0 &5fa0 00 00 00 00 77 f8 f0 f0 00 00 00 00 44 ea f1 f0 &5fb0 00 00 00 00 22 ff f0 f0 00 00 00 00 00 00 dd f2 &5fc0 00 00 00 00 00 cc e2 e2 00 00 00 00 00 00 00 00 &5fd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &5fe0 00 00 00 00 00 00 00 11 00 00 00 00 00 00 ff ff &5ff0 00 00 00 00 00 dd ff ff 00 00 00 77 ff ef ff bf &6000 00 11 ff ff bf df ff af 00 bb ff 7f df 7f df bf &6010 00 00 88 cc ee 5f ff ff 00 00 00 33 77 ff df 6f &6020 00 00 88 cc ee ae ff bf 00 00 11 11 33 23 77 77 &6030 00 11 77 ef ff ef df af 00 00 bb ff ff bf 1f 4f &6040 00 ff ff df ff 4f 3f 9f 00 00 88 ee ff bf 5f df &6050 00 00 00 00 00 88 cc 6e 00 00 00 00 00 00 00 00 &6060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &6070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &6080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &6090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &60a0 00 00 00 00 00 00 11 32 00 00 00 00 00 11 fe f1 &60b0 00 00 00 33 fd f8 f0 f0 32 32 32 74 74 f8 f2 f7 &60c0 f0 f0 f0 f8 fc fe fe fe f0 f0 f0 f0 f2 f4 f7 f7 &60d0 f0 f0 f0 f2 f4 fa f9 f1 f0 f6 f7 ff ff ff ff ff &60e0 f0 f0 f0 f0 f8 fc fc fc f0 f0 f0 f0 f1 f1 f1 f3 &60f0 f0 f0 f0 f1 fb fe ff ff f0 f0 f0 f0 f0 f8 f0 f9 &6100 e6 c4 c4 c4 e6 ff ff df 00 00 00 00 00 00 88 88 &6110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11 11 &6120 33 33 33 57 77 ef ff ff ff ff df 6f ef df ef 9f &6130 bf ff 6f 9f 2f 4f 2f 0f ff ff ff ef ff 4f 6f cf &6140 5f af 0f 4f 0f 0f 0f 4f 6f 5f 9f 0f 8f 0f 2f 0f &6150 ef 3f af 3f 9f 2f 1f 0f 8f 4f cf 4f 0f 8f 0f 0f &6160 5f bf 1f 7f 2f 6f 1f 3f ef df af 5f 0f 2f 6f 1f &6170 ef 9f af 5f ef 8f 2f 0f 9f 4f ef 8f 2f 8f 5f 0f &6180 2f 4f 1f 8f 8f af ef 2f ef 6f 7f 6f bf 3f 7f 3f &6190 ee ae 3f df 5f bf ef 8f 00 00 00 00 00 88 88 88 &61a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &61b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 33 &61c0 00 00 00 00 00 00 ff f8 00 00 00 66 f9 f8 f8 f1 &61d0 00 11 32 74 74 f8 f8 f0 00 99 f6 f0 f0 f0 f0 f0 &61e0 fc f0 f0 f0 f1 f7 ff ff f0 f6 ff ff ff ff ff ef &61f0 f0 f0 fc ff ff ff ff ff f7 ff df ff ff ef bf ff &6200 ff ff ff bf ff ff ff bf ff ff ff ff ff bf ff ff &6210 f1 f1 f3 f3 f7 e7 ff df ff bf ff bf ff ff 5f 9f &6220 fc fc fa fc fe fe fe bf f3 f3 f7 f7 f7 f7 df ef &6230 ff ff ef bf 4f af cf 1f f9 fb ff ff 5f ef 5f cf &6240 bf 5f af 1f 0f 4f 0f 0f cc ee 7f bf 1f 2f 4f 9f &6250 00 00 00 00 88 dd ff ff 11 33 33 77 ef ff ff ff &6260 af df bf ef ef bf cf 6f af 4f 8f af 0f 0f 2f 0f &6270 5f 0f 0f 5f 0f 3f 2f af af 8f 4f 4f 8f 0f 0f 0f &6280 0f 0f 0f 0f 0f 0f 0f 1f 0f 0f 0f 0f 0f 0f 0f 0f &6290 4f 0f 1f 0f 0f 0f 0f 8f af 6f 5f af 7f bf ef 7f &62a0 5f af 6f df ef df af cf 8f 0f 0f 0f 0f 1f 0f 3f &62b0 0f 0f 0f 1f 4f 3f cf 0f 0f 0f 0f 0f df 3f 4f 2f &62c0 df 3f 2f 1f 1f 1f cf 7f 3f 3f bf 5f df 7f ff bf &62d0 df 8f df af 9f ef cf af 4c 88 4c 6e 3f 9f dd 6e &62e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &62f0 00 00 00 00 00 00 00 00 74 f8 f8 f9 f9 ff ff 77 &6300 f0 f0 f0 f2 f2 f6 f6 f6 f0 f4 f4 fc fc fc fe fe &6310 f0 f0 f0 f0 f0 f1 f3 f7 f3 f7 ff ff ff ef ff df &6320 df ff ff df ef ff af 5f bf ff ff ef bf 4f 9f 0f &6330 ef ff 6f df af 5f 1f 0f ef 7f df 7f 5f af 5f ff &6340 ff 5f af 7f af df bf ef ef 7f df 3f cf 2f 5f 8f &6350 ff ef df 2f 8f 5f 0f af 8f 2f 0f 6f 0f 0f 0f 8f &6360 7f ff 5f bf 5f ef bf 7f df bf ef df 0f af 0f cf &6370 af 0f 1f 0f 4f 0f 0f 0f 8f 2f 1f 2f 2f 1f 8f 2f &6380 5f 0f 5f 5f af 5f bf 7e ef 7f bf 6f ff e8 f0 b0 &6390 ff 6f ff ff ff f1 f3 f1 ff bf 7f ff ef df 6f bf &63a0 ef 4f af cf 8f 2f 8f 8f 4f 0f 8f 0f 1f 0f 0f 4f &63b0 0f 4f 8f 0f 0f 0f 0f 0f 4f 0f 0f 2f 0f 0f 8f 8f &63c0 0f 1f 0f 0f 0f 0f 2f 1f 1f 0f 9f af 4f 8f 8f 0f &63d0 1f 0f 0f 0f 0f 0f 0f 0f df ff 7f 7f bf ff 6f 3f &63e0 ff cf ef 7f ef df af 5f 2f 4f 0f 0f 0f 0f 0f 0f &63f0 0f 0f 0f 0f 2f 1f 8f 0f 0f 0f 0f 0f 0f 4f 4f 0f &6400 bf 4f 3f 2f 0f 1f 0f cf df ff 5f 7f bf af ff ff &6410 9f cf cf 9f bf ef df df 5f 3f bf 5f 1f 5f 1f bf &6420 08 06 0d 01 04 02 09 01 04 06 09 09 02 03 00 0d &6430 00 06 19 15 1d 11 1d 15 ff ff bf ff ff ff ff df &6440 ff ff ff ff df 7f cf af fe fe ff ff ff 7f ff 2f &6450 f7 f7 e7 ff ff df ff ef af 4f bf df bf af 5f df &6460 8f af 1f 4f 1f 0f 8f 0f cf 3f 2f 1f 2f 1f 4f 0f &6470 9f 0f 0f 0f 0f 1f 0f 5f 5f 6f 3f bf 5f 3f 6f 5f &6480 5f df bf ff bf 7f df 6f 5f bf af 5f 8f af 2f cf &6490 8f cf 8f 1f 0f 0f 1f 0f 0f 8f 0f 1f 9f 0f 0f 0f &64a0 af 2f 8f 0f 4f cf 8f cf 8f 0f 0f 8f 2f 0f 0f 0f &64b0 0f 0f 0f 0f 2f 0f 0f 8f 2f 9f 2f 1f 5f 2f 3f bf &64c0 fe 7c fc f8 f8 fc 7c f8 f0 f0 f0 f0 f0 f0 f0 f0 &64d0 f1 f1 f3 f3 f3 f3 f1 f3 df 7f ef df af ef cf 5f &64e0 4f 0f 0f 4f 0f 8f 0f 0f 4f 0f 4f 0f 6f 2f 0f 4f &64f0 1f 4f 1f 0f 2f 0f 1f 1f 0f 8f 8f cf 0f 8f 0f 0f &6500 7f 5f 6f 2f cf 8f 8f 8f 8f 0f 0f 0f 0f 1f 0f 0f &6510 0f 0f 0f 0f 0f 0f 4f 9f 7f 5f 7f 2f 6f 3f 5f 7f &6520 cf af cf 9f bf 4f 6f 8f 2f af 4f 0f 0f 0f 0f 1f &6530 0f 0f 0f 0f 1f 3f 6f af 2f 0f 0f 0f 8f 5f 6f 0f &6540 0f 2f 4f 0f 0f 0f 2f cf 5f 1f 1f 1f 0f 0f 1f 0f &6550 7f bf ff 7f df 7f 3f bf 9f 2f 8f df ef 8f df 8f &6560 02 8a 88 89 89 88 4d cc 0a 0d 06 05 04 01 04 04 &6570 11 11 08 04 0a 04 11 04 ff af ef ef ff df ef ff &6580 ef 8f df 9f 2f 8f 5f 4f df bf 1f 6f 0f 6f 2f 4f &6590 7f 5f ef 7f bf 4f af 2f 1f 1f 5f 2f 2f cf 1f 5f &65a0 8f 0f 2f 0f af 0f 0f 0f 2f 0f 0f 0f 0f 1f 0f 0f &65b0 1f 5f 0f 1f 4f 1f 0f 1f bf 6f 7f bf 7f 7f af 6f &65c0 6f bf 6f ef 1f ff 6f 8f 5f 4f 0f 4f 0f 0f 2f 6f &65d0 0f 0f 8f 0f 8f 8f 0f 0f 1f 2f 0f 0f 1f 0f 0f 1f &65e0 0f af 8f 4f 4f 4f 8f 4f 0f 0f 0f 0f 0f 0f 0f 0f &65f0 0f 0f 2f 0f 0f 1f 0f 2f 1f 2f 0f 5f 5f 3f 2f 9f &6600 fc fc fc 7c 7c fc fc fc f0 f0 f0 f0 f0 f0 f0 f0 &6610 f3 e3 f3 f3 f3 f3 e3 f3 8f ef cf af df cf af 4f &6620 1f 0f 0f 0f 0f 1f 0f 1f 4f 0f 4f 8f cf 8f cf 4f &6630 2f 1f 2f 0f 6f 2f 0f 2f 0f 0f 0f 8f 4f 6f 2f 2f &6640 4f 0f 4f 4f 4f 0f 9f 9f 0f 0f 0f 0f 0f 7f 4f ef &6650 1f 2f 0f 0f 0f 0f 0f 6f 4f df 2f 6f 1f 3f 1f 5f &6660 8f 8f 0f 8f 0f 8f 5f 0f 1f 2f 5f 6f 8f 0f 0f 0f &6670 8f 0f 0f 0f 2f 0f 0f 4f 0f 0f 0f 0f 0f 0f 5f ff &6680 1f 0f 0f 0f 2f 0f af 6f 0f 0f 5f 2f 7f 1f 1f 0f &6690 1f 6f 3f 1f 5f 8f df ff ef cf df 6f df ef ff 6f &66a0 6e 2e 5f 1f 5f 8f af 5f 05 02 02 04 01 89 89 8a &66b0 04 04 03 02 02 01 04 04 bb 33 23 77 33 33 77 bf &66c0 0f af 8f 2f ae df 4f 6e 0a 0f 0d 4b 0d 0b 05 03 &66d0 0f 0f 0f 0f 0f 0f 0f 0f 3f 7f 7f 2f af 2f af 1f &66e0 0f 0f 0f 0f 0f 8f 0f 0f 1f 0f 0f 0f 0f 0f 0f 0f &66f0 0f 6f 1f 2f 8f 1f 4f 9f ff af 7f bf 7f ff df 7f &6700 ef 3f df 6f 7f 8f af 4f 2f 0f 4f 1f 0f 4f 0f 8f &6710 8f 0f 0f 0f 0f 0f 8f 0f 0f 4f 1f 1f 0f 0f 2f 0f &6720 0f cf 0f 2f 4f 0f 8f 0f 0f 0f 0f 0f 0f 0f 0f 0f &6730 0f 0f 8f 2f 4f 0f 1f 0f 5f 2f bf 3f 6f bf 5f 2f &6740 f8 f8 f8 f8 f8 f8 f8 f8 f0 f0 f0 f0 f0 f0 f0 f0 &6750 f3 f3 f3 f3 f3 e3 f3 e3 ef 4f af cf 4f ef cf 8f &6760 0f 1f 1f 0f 1f 0f 0f 0f 5f ff 1f 8f 3f 9f 8f 4f &6770 4f 6f 8f 0f 8f 8f cf 0f 9f 1f 8f 8f 1f 1f df 1f &6780 ef df bf df 7f ef ff bf 7f af 8f 4f 4f 8f 8f 4f &6790 0f af 1f 0f 0f 0f 2f 2f 0f 3f 5f 1f 7f 3f bf 7f &67a0 8f 0f 8f 8f cf 4f 9f cf 0f 0f 1f 0f 0f 3f 7f 4f &67b0 1f 6f 8f 8f af 0f 0f 0f af 8f 2f 1f 1f 0f 0f 0f &67c0 af 5f 7f 2f 5f 2f 0f 1f 0f 0f 0f 8f 0f 4f 0f 0f &67d0 ef 5f 7f 2f 3f 1f 3f 0f ff 4f ef bf 9f 2f 7f 6f &67e0 0f af 5f 1f bf 1f 5f 2f 89 88 8a 88 09 04 00 8a &67f0 04 0a 05 09 04 05 00 0a 13 3f 37 15 09 0b 0a 06 &6800 cc 8c 88 8c 01 04 02 09 07 4f 6f 27 0a 0f 0d 8f &6810 0f 0f 0f 0f 0f 0f 0f 07 4f 0f 2f 4f 5f 0f 5f 2f &6820 0f 0f 0f 8f 0f 0f af 0f 2f 0f 0f 4f 0f 0f 0f 0f &6830 1f 5f 0f 1f 4f 1f 0f 1f bf 6f 7f 3f 5f 7f af 4f &6840 9f 8f cf 5f 8f cf 2f af 0f 2f 8f 4f 0f bf 0f 8f &6850 0f 0f 1f 0f 0f 0f 0f 4f 4f 2f 0f 0f 0f 0f 0f 0f &6860 2f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &6870 4f 0f 1f 0f 4f 0f 0f 0f df 2f 7f 7f 7f 3f df 7f &6880 f8 f8 f8 f8 f8 fc fc fc f0 f0 f0 f0 f0 f0 f0 f0 &6890 f3 f3 f3 f7 e7 f7 e7 f3 6f af 4f 8f cf af cf 8f &68a0 1f 0f 0f 0f 0f 1f 1f 1f 0f 8f 8f 8f cf 0f 0f af &68b0 8f 8f 1f 0f 0f 0f 4f 0f 7f 3f 3f bf 3f ef 7f df &68c0 ef 7f df 6f ff bf ff af 8f af ef 5f 1f 8f 0f 0f &68d0 1f 1f 0f 4f af 2f 3f 1f 7f 3f ff 5f ff 7f 6f ff &68e0 8f ef cf 8f cf cf ef ef 2f 4f 0f 0f 8f 0f 0f 1f &68f0 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &6900 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 8f 0f 2f 4f &6910 1f 1f 0f 0f 0f 0f 0f 3f 6f af 9f 0f 1f 6f 7f 5f &6920 9f 2f 5f 9f 5f 6f cf 0f 88 89 09 05 00 8a 8c 89 &6930 08 01 0a 00 09 04 02 02 00 09 19 0a 17 05 09 02 &6940 05 05 03 8d 8b 47 89 cc 8f 0a 0f 27 8f 0b 05 0f &6950 07 0f 0f 0f 0f 0f 0f 0f 0f 1f 1f 4f 2f 3f 1f 0f &6960 8f 0f 0f 0f 0f 0f 0f 8f 1f 0f 0f 4f 2f 0f 0f 4f &6970 0f 6f 1f 2f 1f 5f 0f 1f ff af 7f bf bf 6f 7f 3f &6980 5f cf bf 6f 9f af 4f 9f 2f 4f 0f 8f 0f 2f 0f 4f &6990 0f 0f 9f 0f 1f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &69a0 4f 0f 8f 0f 0f 0f 0f 0f 0f 2f 0f 0f 0f 0f 0f 0f &69b0 2f 0f 1f 2f cf 1f 0f 4f 9f df 3f 5f bf 5f 2f 9f &69c0 fc f8 f8 f8 f8 f8 f8 f8 f0 f0 f0 f0 f0 f0 f0 f0 &69d0 f3 e3 f3 f3 f3 f3 f3 e7 4f cf af df 6f 8f 6f cf &69e0 0f 0f 0f 1f 0f 8f 0f 0f af 8f 0f 0f 0f 0f 0f 0f &69f0 2f 0f 1f 0f 0f 0f 0f 1f ff 7f 7f ff 7f 3f 7f 3f &6a00 4f bf 6f df af ff ff e7 0f 1f 7f 4f 8f cf ef 9f &6a10 0f 0f 9f cf 4f 2f 2f 1f bf 7f 1f 9f 3f 6f 7f 3f &6a20 ef ff ff ef ef ff df ff 0f 2f 4f 4f 8f 8f 8f 0f &6a30 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 1f 2f &6a40 2f 0f 0f 0f 0f 0f 0f 4f 1f 2f 0f 1f 0f 0f 0f 0f &6a50 1f cf af 4f 5f 3f 0f 3f 2f 5f 6f 1f bf 4f 3f 7f &6a60 bf 6f 9f ef cf ff ef 6f 8d 89 4d 4e 2e 6e 7f bf &6a70 01 04 00 06 0d 05 04 08 0a 06 02 08 05 02 00 08 &6a80 ce ef ae cf 77 11 3b 33 23 ef 4f 8f 2f 47 af cf &6a90 0f 0f 8f 0f 0f 0f 0f 0f 1f 1f 2f 0f 0f 2f 0f 1f &6aa0 0f 0f af 0f 8f 0f af 0f 0f 0f 0f 0f 1f 0f 0f 4f &6ab0 4f 1f 0f 1f 0f 6f 1f 2f 5f 7f bf 5f ff af 7f bf &6ac0 af cf df bf 5f af df df 0f af 0f 8f 4f af 0f 9f &6ad0 0f 2f 0f 0f 8f 0f 0f 0f 0f 0f 0f 0f 0f 4f 0f 0f &6ae0 2f 0f 0f 0f 0f 8f 0f 0f 2f 0f 0f 0f 0f 0f 4f 0f &6af0 9f 0f 0f 5f 0f af 0f 5f bf 7f 9f 3f 5f bf bf df &6b00 f8 f8 f8 f8 f0 f0 f0 f8 f0 f0 f0 f0 f0 f0 f0 f0 &6b10 f7 df f7 e7 f7 f7 d7 f7 8f df 2f cf 9f 6f 1f af &6b20 8f 0f 8f 0f 0f 4f 0f 0f 0f 0f 0f 8f 0f 8f 0f 0f &6b30 1f 0f 0f 8f 9f 0f 0f 1f 3f ff 7f df 7f 8f af 2f &6b40 f7 f3 eb f9 f1 f9 fb eb 6f cf ef cf 6f af cf cf &6b50 8f cf 7f 4f 6f 4f af 2f 7f bf ff 7f bf 7f 3f 6f &6b60 6f ef df ef 5f ff ef ff 0f 0f 0f 0f 2f 4f cf 0f &6b70 0f 0f 0f 0f 8f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &6b80 1f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &6b90 0f 0f 0f 0f 0f 0f 0f 0f 1f 4f 2f 0f 2f 1f 0f 0f &6ba0 df af 6f ff 7f af 7f bf 5f 9f 3f 5f 5f 8f 9f 5f &6bb0 04 02 08 01 01 8a 8c 8c 03 0c 01 05 00 00 0a 08 &6bc0 15 33 15 13 19 15 1b 06 4f af 47 cf 8f ef 9b cf &6bd0 0f 0f 4f 0f 0f 0f 0f 5f 0f 5f 0f 0f 1f 0f 1f 0f &6be0 0f 4f 0f 8f 0f 8f 0f 4f 0f 0f 0f 0f 0f 0f 0f 0f &6bf0 1f 5f 0f 1f 4f 1f 0f 1f bf 6f 7f 3f 5f 7f af 5f &6c00 af cf af ef 5f cf ef df 2f 0f 8f 4f 2f cf 0f 4f &6c10 8f 0f 1f 0f 0f 2f 8f 0f 0f 0f 0f 1f 0f 2f 0f 2f &6c20 4f 9f af 4f 0f 4f 0f af 0f 0f 0f 0f 2f af 4f 4f &6c30 9f cf 9f 0f 5f bf 3f ff 7f bf 7f df 7f ff 7f ff &6c40 f8 f8 f8 f8 f8 f0 f0 f0 f0 f0 f0 f2 f0 f0 f0 f8 &6c50 e7 f7 d7 ff df ff f7 f7 df ef bf 4f bf 6f cf ff &6c60 1f 0f 0f 4f 0f cf 8f 4f 0f 0f 2f 0f 0f 1f 5f 0f &6c70 0f 0f 5f 3f 2f 0f 1f 2f 7f bf 5f ff 5f bf ff fc &6c80 fb fb e3 f3 f7 f7 f7 f3 af 4f ef 8f 6f df cf ef &6c90 5f cf 7f af 0f 2f 4f 1f 5f 3f 1f 3f 7f 2f 1f 7f &6ca0 5f af cf 4f af 8f 5f df 0f 0f 0f 0f 5f 0f 8f 0f &6cb0 0f 0f 8f 2f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f 0f &6cc0 0f 0f 0f 0f 0f 0f 0f 2f 0f 0f 0f 0f 0f 0f 0f 0f &6cd0 0f 6f 4f 2f 7f 2f 4f af 4f 0f 0f 0f 0f 8f 0f 0f &6ce0 1f 3f 7f 7f 7f df 6f 2a 2f cf af 6f df aa 11 0a &6cf0 8e 8a 8c 4d ff cf 8e 0e 02 04 04 02 0b 08 0a 04 &6d00 03 19 06 22 07 1d 0d 09 ef df df ef ef ff ff ff &6d10 8f 9f 4f 1f af 7f ff df 0f 5f 2f 2f bf bf 4c cc &6d20 8f 0f 8f 5f 0f af 8f ef 1f 0f 0f 4f 0f 0f 8f ef &6d30 0f 6f 1f 2f 8f 1f 4f 9f ff af 7f bf 6f ff df ff &6d40 df 6f ff ff ff f7 f6 f0 1f af ef fb f3 f1 f1 f1 &6d50 0f af 9f bf 9f ff 5f ff 9f bf 7f df bf fe f0 f0 &6d60 9f 0f df af df ff f7 f7 5f bf ff 6f bf 7f ff fe &6d70 5f ff ff ff fe f8 f0 f1 fe fc f8 f0 f0 f4 fe be &6d80 f1 f3 f1 f1 f3 f3 f1 f0 fc be fe be fc 7e fe fc &6d90 f3 f1 f0 f8 f8 f0 f0 f0 bf df ef df f7 f3 f3 f1 &6da0 af af 9f 5f 8f af ff ff 2f 8f 2f 1f 5f bf 9f df &6db0 9f 7f ff 7e fe fc fc f8 f8 f0 f1 f3 f3 f7 ef ff &6dc0 f3 f1 f1 f1 f1 f9 f8 f9 5f ef af 4f ff df bf ef &6dd0 4f 2f 8f 5f 3f 5f bf ef df 6f 3f 5f 6f bf 7f ff &6de0 2f af 4f cf 8f df 4f bf 0f 0f 1f 0f 0f 4f 2f 1f &6df0 0f 8f 1f 1f 4f 4f ef bf 0f 0f 3f 1f 5f ae ee 5d &6e00 0f 4f 1f bf ef ff 33 04 0f 1f 0f 8f 8f 4f af ef &6e10 2f 0f 5f 2f 2f 8f 5f 0f 8f 1f 2f 2f 9f 5f ae ee &6e20 4d 4e bd bb 33 77 e7 cf 05 d0 ff ff ff 8f 0f 0f &6e30 00 55 99 ff 7f 1e 1f 1f 02 02 00 08 06 31 fb ff &6e40 00 01 00 c0 ae af fe 5f 4c 00 02 02 05 04 08 02 &6e50 ff aa ee cc 01 02 01 07 89 00 00 08 00 10 3b 73 &6e60 33 11 11 04 05 04 0a 8b 57 37 67 73 11 11 00 00 &6e70 0f 27 5f bf bf ff ff 77 bf 1d 57 7f ff cf ee 77 &6e80 f0 f0 f2 f8 f8 f8 fc fe f0 f0 f0 f0 f0 f0 f0 f0 &6e90 fe f6 f0 f0 f0 f0 f4 f4 f0 f0 f4 f0 f0 f0 f9 f1 &6ea0 f7 f3 f0 f0 f4 fe be ff f8 f8 f0 f0 f0 f0 f0 f0 &6eb0 f1 f1 f0 f0 f0 f0 f0 f0 7c 7c f8 f0 f0 f0 f0 f0 &6ec0 f0 f0 f0 f0 f1 f0 f1 f1 f0 f0 f0 f0 f0 f8 f8 fc &6ed0 f0 f0 f0 f0 f4 f0 f0 f1 f2 f0 f0 f3 f0 f1 f7 eb &6ee0 fd f0 f0 f0 fc fe be fc ef ff f3 f0 f0 f0 f0 f0 &6ef0 f9 f9 f1 f1 f0 f0 f0 f0 ef ff bf ff ef f3 f1 f0 &6f00 fb f9 fd fd f9 f8 f0 f0 ff ff ff fe f2 a8 f9 f2 &6f10 ff fd e8 61 92 94 e0 fe fd d5 58 0c 60 61 f6 ff &6f20 df ef 9d d9 10 42 12 a0 df af 5f ee 44 20 32 73 &6f30 5d cc 00 41 18 19 73 c7 88 00 64 e6 ee ee 3e 1f &6f40 08 80 20 58 01 0a 24 73 df 67 77 3b 11 c8 76 77 &6f50 6f bf 7f dd cc 22 16 15 ee aa 88 00 00 35 33 bb &6f60 cf cf 07 87 8f 8f 4f cf 0f 0f 0f 0f 0f 0f 0f 0f &6f70 1f 0f 0f 0f 0f 0f 0f 0d 7f 6f 4f cf 8f 0f 0f 0f &6f80 7f 6f 2f 3f 2e cf 4f 4f 80 99 18 15 92 8f cb 7f &6f90 0d ca 76 ff df 7f df 2f 47 47 57 af af 9f 9f 3f &6fa0 8d cd 6c 2e 2f 0f 0f 8f 00 08 4d 0f 0f 87 8b 0f &6fb0 07 08 0e 85 0d 1c 1d 2d 7f ff ff ff ff df df df &6fc0 ff f8 f8 f0 f0 f0 f8 fe f0 f0 f2 f5 f7 df cf 9f &6fd0 f2 f6 fa fe fe fc fc fc f3 f3 f1 f0 f0 f0 f0 ff &6fe0 7f be fe f8 f0 f0 f0 f1 f0 f0 f0 f0 f0 f1 f9 f5 &6ff0 f0 f0 f4 fa ff ff ef 8f f2 f4 f0 f0 f0 f8 7f 3f &7000 f3 f7 ff f7 f3 f0 f0 fd fe fc fe fa f0 f0 f4 f8 &7010 f0 f0 f0 f9 f1 f2 f3 e7 f3 f0 f0 f0 dc fe 7c 7c &7020 fc f8 f0 f0 f0 f0 f1 f1 f0 f0 f2 f1 f0 f1 ff 8f &7030 f0 f1 f0 f1 f0 fd f7 ff f0 f0 f8 f0 f0 f0 f0 f0 &7040 f0 f0 f1 f1 f3 f0 f0 f1 fd ff bf ff af cf c7 ef &7050 ff bf 7f 3f 2f 0f 0e 7f ff 5f 8f 0f 0d 09 0a 00 &7060 80 89 dc fd 7f 3f 3f 07 77 77 c7 cf 8f 0f 0f 05 &7070 8f 0f 0f 0f 0f 2b 08 04 1f 0f 2f 0d 0c 02 0b 01 &7080 ff ff 5d 2f 0f 8f 07 05 ff df 8b 7f 0f 0f 08 05 &7090 d9 ff ff ef ff af 6f 04 ef ff cf 8f 0f 0f 0f 0f &70a0 8f 0f 0f 0f 0e 0b 0c 08 0f 0e 0d 0a 00 00 00 00 &70b0 0d 0d 09 08 00 02 01 0b 0b 0d 06 0b 15 1f 1f 1f &70c0 0f 07 0b 0d 0e df ff 7f 1f 2f af 27 af cf 6f ff &70d0 0f 1f 2f 3f 1f 1f ef 8f cf 0f 0f 0f 0f cf bf 0f &70e0 8f 0f 0f 0f 0f 4d 8f 0f 0f 0f 0f 0f 0f 0f 0e 0f &70f0 0f 0f 0f 0f 0f 0b 0f 04 9f 9f 1f 1f 1f 1f 0f 07 &7100 bf af 0f 0f 0d 08 04 00 cf 4f 0f 0b 02 08 00 00 &7110 ff 3f 2f 0f 03 09 02 00 ff ef 4f 0f 0f 0e 05 00 &7120 ff ef 0f 0e 09 04 00 00 ff 7f 3f 0f 07 02 01 00 &7130 0f 0f 0f 06 09 00 02 00 3e 1f 1f 0f 46 09 02 00 &7140 fb fe ff 2f 05 0a 00 00 f6 ff 3e 1f 0d 0a 01 00 &7150 e7 cf 8f 0f 0e 04 0a 00 3e 1f 1f 2f 0a 05 00 00 &7160 f3 e3 e7 ef 4f 05 02 00 0f 0f 0b 3d 05 02 00 00 &7170 3f 1f 1e 23 15 01 02 00 fa f7 ff 7f 17 07 09 44 &7180 f7 ef cf 0f 8f 0f 8e 0a ff 5f 2f 1f 2b 05 0a 01 &7190 3f cf 8e 1d 8e 04 00 00 08 88 04 8a 04 08 00 00 &71a0 0a 00 00 00 00 00 00 00 0a 04 01 00 00 00 00 00 &71b0 00 00 00 00 00 00 00 00 01 02 00 00 00 00 00 00 &71c0 0a 08 04 00 00 00 00 00 00 08 00 00 00 00 00 00 &71d0 01 01 02 01 00 00 00 00 05 00 08 05 00 00 00 00 &71e0 05 0c 0a 00 00 00 00 00 08 00 08 09 00 02 00 00 &71f0 05 01 02 00 01 00 00 00 ef 0f 0b 07 0a 01 00 00 &7200 bf cf 0f 03 0b 01 02 00 ef 0f 0f 0f 0e 05 09 02 &7210 0f 0f 0f 0f 0d 06 04 00 0e 0d 0a 07 02 08 00 00 &7220 ff 3f cf 0f 0d 04 02 08 0e 0c 0a 0c 0a 08 00 00 &7230 02 00 00 09 00 00 00 00 0b 03 09 00 04 00 00 00