;;; $8687: Initialisation AI - enemy $DE3F (Draygon) ;;; { $A5:8687 A2 30 00 LDX #$0030 ;\ ;| $A5:868A BD 17 A2 LDA $A217,x[$A5:A247] ;| $A5:868D 9F 20 C3 7E STA $7EC320,x[$7E:C350];} $7EC320..5F = [$A217..46] $A5:8691 CA DEX ;| $A5:8692 CA DEX ;| $A5:8693 10 F5 BPL $F5 [$868A] ;/ $A5:8695 A2 FE 0F LDX #$0FFE ;\ $A5:8698 A9 38 03 LDA #$0338 ;| ;| $A5:869B 9F 00 20 7E STA $7E2000,x[$7E:2FFE];} $7E2000..2FFF = 0338h $A5:869F CA DEX ;| $A5:86A0 CA DEX ;| $A5:86A1 10 F8 BPL $F8 [$869B] ;/ $A5:86A3 AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:86A6 A9 00 07 LDA #$0700 ;\ $A5:86A9 0A ASL A ;} Set enemy palette to 7 $A5:86AA 9D 96 0F STA $0F96,x[$7E:0F96] ;/ $A5:86AD A9 A5 00 LDA #$00A5 ;\ $A5:86B0 8D 8E 17 STA $178E [$7E:178E] ;| $A5:86B3 A9 42 93 LDA #$9342 ;} $178C..8E = $A59342 $A5:86B6 8D 8C 17 STA $178C [$7E:178C] ;/ $A5:86B9 A9 FF FF LDA #$FFFF ;\ $A5:86BC 8D 3C 18 STA $183C [$7E:183C] ;} Process off-screen enemies $A5:86BF A9 89 98 LDA #$9889 ;\ $A5:86C2 8D 92 0F STA $0F92 [$7E:0F92] ;} Draygon instruction = $9889 $A5:86C5 A9 44 99 LDA #$9944 ;\ $A5:86C8 8D D2 0F STA $0FD2 [$7E:0FD2] ;} Draygon's eye instruction = $9944 $A5:86CB A9 FC 99 LDA #$99FC ;\ $A5:86CE 8D 12 10 STA $1012 [$7E:1012] ;} Draygon's tail instruction = $99FC $A5:86D1 A9 13 98 LDA #$9813 ;\ $A5:86D4 8D 52 10 STA $1052 [$7E:1052] ;} Draygon's arms instruction = $9813 $A5:86D7 A9 00 04 LDA #$0400 ;\ $A5:86DA 8D 9A 17 STA $179A [$7E:179A] ;} $179A = 400h $A5:86DD A9 1B 87 LDA #$871B ;\ $A5:86E0 9D A8 0F STA $0FA8,x[$7E:0FA8] ;} $0FA8,X = $871B $A5:86E3 22 34 DF 88 JSL $88DF34[$88:DF34] ; Do a custom HDMA $A5:86E7 A9 0C 00 LDA #$000C ;\ $A5:86EA 85 A9 STA $A9 [$7E:00A9] ;} Set the Drayon IRQ command $A5:86EC 22 65 D8 88 JSL $88D865[$88:D865] ; More custom HDMA stuff $A5:86F0 A9 01 00 LDA #$0001 ;\ $A5:86F3 8F 0A 88 7E STA $7E880A[$7E:880A] ;} $7E880A = 1 (likely turret related) $A5:86F7 22 E2 A7 90 JSL $90A7E2[$90:A7E2] ; Disable and clear automap $A5:86FB 6B RTL } ;;; $86FC: Main AI - enemy $DE3F (Draygon) ;;; { $A5:86FC AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:86FF FC A8 0F JSR ($0FA8,x)[$A5:871B] ; Copy coordinates from main Draygon to other enemies $A5:8702 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:8705 8D BA 0F STA $0FBA [$7E:0FBA] $A5:8708 8D FA 0F STA $0FFA [$7E:0FFA] $A5:870B 8D 3A 10 STA $103A [$7E:103A] $A5:870E AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:8711 8D BE 0F STA $0FBE [$7E:0FBE] $A5:8714 8D FE 0F STA $0FFE [$7E:0FFE] $A5:8717 8D 3E 10 STA $103E [$7E:103E] $A5:871A 6B RTL } ; $871B: AI Script - Initialize (creates Draygon babies & waits) { $A5:871B 20 AA 87 JSR $87AA [$A5:87AA] ; Probably turrets shooting? $A5:871E AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:8721 AD AA 0F LDA $0FAA [$7E:0FAA] ; Counter $A5:8724 C9 00 01 CMP #$0100 $A5:8727 10 2D BPL $2D [$8756] $A5:8729 AD AA 0F LDA $0FAA [$7E:0FAA] ; Counter $A5:872C D0 24 BNE $24 [$8752] ; This is run only the first frame of this AI Script? { $A5:872E AE 30 03 LDX $0330 [$7E:0330] ; Stack pointer $A5:8731 A9 00 06 LDA #$0600 $A5:8734 95 D0 STA $D0,x [$7E:00D0] $A5:8736 A9 00 94 LDA #$9400 $A5:8739 95 D2 STA $D2,x [$7E:00D2] $A5:873B A9 B1 00 LDA #$00B1 $A5:873E 95 D4 STA $D4,x [$7E:00D4] $A5:8740 A9 00 6D LDA #$6D00 $A5:8743 95 D5 STA $D5,x [$7E:00D5] $A5:8745 AD 30 03 LDA $0330 [$7E:0330] ; Stack pointer $A5:8748 18 CLC $A5:8749 69 07 00 ADC #$0007 $A5:874C 8D 30 03 STA $0330 [$7E:0330] ; Stack pointer $A5:874F 20 D9 A0 JSR $A0D9 [$A5:A0D9] ; Create the Draygon babies } $A5:8752 EE AA 0F INC $0FAA [$7E:0FAA] ; Counter $A5:8755 60 RTS ; This is run after 0x100 frames. { $A5:8756 A9 8B 87 LDA #$878B $A5:8759 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:875C 9C AA 0F STZ $0FAA [$7E:0FAA] ; Counter $A5:875F AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:8762 8F 00 78 7E STA $7E7800[$7E:7800] $A5:8766 18 CLC $A5:8767 69 A0 02 ADC #$02A0 $A5:876A 8F 04 78 7E STA $7E7804[$7E:7804] $A5:876E AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:8771 8F 02 78 7E STA $7E7802[$7E:7802] $A5:8775 AF 00 78 7E LDA $7E7800[$7E:7800] $A5:8779 8D 7A 0F STA $0F7A [$7E:0F7A] ; X coord $A5:877C AF 02 78 7E LDA $7E7802[$7E:7802] $A5:8780 8D 7E 0F STA $0F7E [$7E:0F7E] ; Y coord $A5:8783 A9 18 00 LDA #$0018 $A5:8786 8F 1E 78 7E STA $7E781E[$7E:781E] $A5:878A 60 RTS } } ; $878B: AI Script - Init (babies moving towards right) { $A5:878B 20 AA 87 JSR $87AA [$A5:87AA] ; Probably turrets shooting? $A5:878E AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:8791 AD AA 0F LDA $0FAA [$7E:0FAA] ; Counter $A5:8794 C9 D0 04 CMP #$04D0 $A5:8797 10 07 BPL $07 [$87A0] ; This is run every frame { $A5:8799 20 3E A1 JSR $A13E [$A5:A13E] ; Make the babies move? $A5:879C EE AA 0F INC $0FAA [$7E:0FAA] ; Counter $A5:879F 60 RTS } ; This is run after 0x4D0 frames { $A5:87A0 A9 F4 87 LDA #$87F4 $A5:87A3 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:87A6 9C AA 0F STZ $0FAA [$7E:0FAA] ; Counter $A5:87A9 60 RTS } } ; $87AA: Routine - Unknown (16 callers?) ; This is probably the turrets shooting { $A5:87AA AD B6 05 LDA $05B6 [$7E:05B6] ; Frame counter $A5:87AD 29 3F 00 AND #$003F $A5:87B0 D0 29 BNE $29 [$87DB] ; Every 0x40 frames, this is run $A5:87B2 22 11 81 80 JSL $808111[$80:8111] $A5:87B6 29 03 00 AND #$0003 $A5:87B9 18 CLC $A5:87BA 69 02 00 ADC #$0002 $A5:87BD 0A ASL A $A5:87BE AA TAX $A5:87BF 0A ASL A $A5:87C0 A8 TAY ; X is now rand(2-5) * 2 [4-10] ; Y is now rand(2-5) * 4 [8-20] $A5:87C1 BF 00 88 7E LDA $7E8800,x[$7E:8808] $A5:87C5 D0 14 BNE $14 [$87DB] $A5:87C7 B9 DC 87 LDA $87DC,y[$A5:87EC] $A5:87CA 85 12 STA $12 [$7E:0012] $A5:87CC B9 DE 87 LDA $87DE,y[$A5:87EE] $A5:87CF 85 14 STA $14 [$7E:0014] $A5:87D1 A0 5E 8E LDY #$8E5E $A5:87D4 A9 03 00 LDA #$0003 $A5:87D7 22 27 80 86 JSL $868027[$86:8027] ; Spawn enemy specific projectiles $A5:87DB 60 RTS } ; Missing $A5:87DC? ; Missing $A5:87DE? ; Missing $A5:87EC? $A5:87E4 db 34, 00, 2F, 01, CC, 01, 01, 01, CC, 01, 5E, 01 ; $87F4: AI Script - Initiate a Swoop right { $A5:87F4 20 AA 87 JSR $87AA [$A5:87AA] ; Probably turrets shooting? $A5:87F7 AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:87FA 20 17 88 JSR $8817 [$A5:8817] ; No idea what this does $A5:87FD A9 B1 88 LDA #$88B1 $A5:8800 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8803 A9 D1 97 LDA #$97D1 $A5:8806 8D 92 0F STA $0F92 [$7E:0F92] ; Draygon PLM instructions $A5:8809 A9 01 00 LDA #$0001 $A5:880C 8D 94 0F STA $0F94 [$7E:0F94] $A5:880F A9 01 00 LDA #$0001 $A5:8812 8F 00 80 7E STA $7E8000[$7E:8000] $A5:8816 60 RTS } ; $8817: Routine - Unknown (1 caller above) ; Sets up speed and such? { $A5:8817 A9 80 01 LDA #$0180 $A5:881A 8D 28 0E STA $0E28 [$7E:0E28] $A5:881D AD 28 0E LDA $0E28 [$7E:0E28] $A5:8820 8D 24 0E STA $0E24 [$7E:0E24] $A5:8823 9C 22 0E STZ $0E22 [$7E:0E22] $A5:8826 9C 26 0E STZ $0E26 [$7E:0E26] $A5:8829 AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:882C AF 1E 78 7E LDA $7E781E[$7E:781E] $A5:8830 18 CLC $A5:8831 6D 22 0E ADC $0E22 [$7E:0E22] $A5:8834 8D 22 0E STA $0E22 [$7E:0E22] $A5:8837 EB XBA $A5:8838 29 FF 00 AND #$00FF $A5:883B 49 FF FF EOR #$FFFF $A5:883E 1A INC A $A5:883F 18 CLC $A5:8840 6D 24 0E ADC $0E24 [$7E:0E24] $A5:8843 CF 02 78 7E CMP $7E7802[$7E:7802] $A5:8847 30 20 BMI $20 [$8869] $A5:8849 8D 24 0E STA $0E24 [$7E:0E24] $A5:884C AE 26 0E LDX $0E26 [$7E:0E26] $A5:884F 9F 02 90 7E STA $7E9002,x[$7E:9002] $A5:8853 EE 26 0E INC $0E26 [$7E:0E26] $A5:8856 EE 26 0E INC $0E26 [$7E:0E26] $A5:8859 EE 26 0E INC $0E26 [$7E:0E26] $A5:885C EE 26 0E INC $0E26 [$7E:0E26] $A5:885F AD 26 0E LDA $0E26 [$7E:0E26] $A5:8862 C9 00 08 CMP #$0800 $A5:8865 30 C2 BMI $C2 [$8829] $A5:8869 AF 00 78 7E LDA $7E7800[$7E:7800] $A5:886D 30 0A BMI $0A [$8879] $A5:8879 22 67 B0 A0 JSL $A0B067[$A0:B067] ; A = |A| $A5:887D 18 CLC $A5:887E 6D F6 0A ADC $0AF6 [$7E:0AF6] ; X position in pixels? $A5:8881 22 67 B0 A0 JSL $A0B067[$A0:B067] ; A = |A| $A5:8885 85 2C STA $2C [$7E:002C] $A5:8887 64 2A STZ $2A [$7E:002A] $A5:8889 AD 26 0E LDA $0E26 [$7E:0E26] $A5:888C 4A LSR A $A5:888D 4A LSR A $A5:888E 85 2E STA $2E [$7E:002E] $A5:8890 64 30 STZ $30 [$7E:0030] $A5:8892 22 61 B7 A0 JSL $A0B761[$A0:B761] $A5:8896 A5 2C LDA $2C [$7E:002C] $A5:8898 8D AE 0F STA $0FAE [$7E:0FAE] ; X coord acceleration? $A5:889B A5 2A LDA $2A [$7E:002A] $A5:889D 8D B0 0F STA $0FB0 [$7E:0FB0] ; Subpixel acceleration? $A5:88A0 AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:88A3 AE 26 0E LDX $0E26 [$7E:0E26] $A5:88A6 9F 02 90 7E STA $7E9002,x[$7E:91A2] $A5:88AA 8E AA 0F STX $0FAA [$7E:0FAA] ; Counter $A5:88AD 8E AC 0F STX $0FAC [$7E:0FAC] $A5:88B0 60 RTS } ; $88B1: AI Script - Initiate a Swoop right 2 { $A5:88B1 20 AA 87 JSR $87AA [$A5:87AA] ; Probably turrets shooting? $A5:88B4 20 1C 93 JSR $931C [$A5:931C] ; Randomly spawn smoke on Draygon? $A5:88B7 AC 54 0E LDY $0E54 [$7E:0E54] ; Enemy Index $A5:88BA AE AA 0F LDX $0FAA [$7E:0FAA] ; Counter $A5:88BD E0 68 00 CPX #$0068 $A5:88C0 D0 0C BNE $0C [$88CE] ; Periodcally make arms go back? $A5:88C2 A9 06 9C LDA #$9C06 $A5:88C5 8D 52 10 STA $1052 [$7E:1052] ; Arm PLM instructions $A5:88C8 A9 01 00 LDA #$0001 $A5:88CB 8D 54 10 STA $1054 [$7E:1054] $A5:88CE BF 02 90 7E LDA $7E9002,x[$7E:91A2] $A5:88D2 99 7E 0F STA $0F7E,y[$7E:0F7E] ; Y coord $A5:88D5 CE AA 0F DEC $0FAA [$7E:0FAA] ; Counter $A5:88D8 CE AA 0F DEC $0FAA [$7E:0FAA] ; Counter $A5:88DB CE AA 0F DEC $0FAA [$7E:0FAA] ; Counter $A5:88DE CE AA 0F DEC $0FAA [$7E:0FAA] ; Counter $A5:88E1 AD AA 0F LDA $0FAA [$7E:0FAA] ; Counter $A5:88E4 F0 14 BEQ $14 [$88FA] ; Run every frame { ; Move Draygon I guess? $A5:88E6 AD 7C 0F LDA $0F7C [$7E:0F7C] ; X subpixel $A5:88E9 18 CLC $A5:88EA 6D B0 0F ADC $0FB0 [$7E:0FB0] ; Subpixel acceleration? $A5:88ED 8D 7C 0F STA $0F7C [$7E:0F7C] ; X subpixel $A5:88F0 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:88F3 6D AE 0F ADC $0FAE [$7E:0FAE] ; X coord acceleration? $A5:88F6 8D 7A 0F STA $0F7A [$7E:0F7A] ; X coord $A5:88F9 60 RTS } ; Run once counter is 0 { $A5:88FA A9 22 89 LDA #$8922 $A5:88FD 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8900 60 RTS } } ; $8922: AI Script - Swoop right 3. Perhaps only sets up speed for going out of the screen. { $A5:8922 20 AA 87 JSR $87AA [$A5:87AA] ; Probably turrets shooting? $A5:8925 AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:8928 A9 A0 02 LDA #$02A0 $A5:892B 38 SEC $A5:892C ED 7A 0F SBC $0F7A [$7E:0F7A] ; X coord $A5:892F 85 2C STA $2C [$7E:002C] $A5:8931 64 2A STZ $2A [$7E:002A] $A5:8933 AD AC 0F LDA $0FAC [$7E:0FAC] $A5:8936 4A LSR A $A5:8937 4A LSR A $A5:8938 85 2E STA $2E [$7E:002E] $A5:893A 64 30 STZ $30 [$7E:0030] $A5:893C 22 61 B7 A0 JSL $A0B761[$A0:B761] $A5:8940 A5 2C LDA $2C [$7E:002C] $A5:8942 8D AE 0F STA $0FAE [$7E:0FAE] ; X coord acceleration? $A5:8945 A5 2A LDA $2A [$7E:002A] $A5:8947 8D B0 0F STA $0FB0 [$7E:0FB0] ; Subpixel acceleration? $A5:894A A9 51 89 LDA #$8951 $A5:894D 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8950 60 RTS } ; $8951: AI Script - Swoop right 4. Going outside of the screen. { $A5:8951 20 AA 87 JSR $87AA [$A5:87AA] ; Probably turrets shooting? $A5:8954 AC 54 0E LDY $0E54 [$7E:0E54] ; Enemy Index $A5:8957 AE AA 0F LDX $0FAA [$7E:0FAA] ; Counter $A5:895A E0 68 00 CPX #$0068 $A5:895D D0 0C BNE $0C [$896B] ; Periodically change Arms PLM Instructions? $A5:895F A9 DA 9B LDA #$9BDA $A5:8962 8D 52 10 STA $1052 [$7E:1052] ; Arm PLM instructions $A5:8965 A9 01 00 LDA #$0001 $A5:8968 8D 54 10 STA $1054 [$7E:1054] $A5:896B BF 02 90 7E LDA $7E9002,x[$7E:9002] $A5:896F 99 7E 0F STA $0F7E,y[$7E:0F7E] ; Y coord $A5:8972 EE AA 0F INC $0FAA [$7E:0FAA] ; Counter $A5:8975 EE AA 0F INC $0FAA [$7E:0FAA] ; Counter $A5:8978 EE AA 0F INC $0FAA [$7E:0FAA] ; Counter $A5:897B EE AA 0F INC $0FAA [$7E:0FAA] ; Counter $A5:897E AD AA 0F LDA $0FAA [$7E:0FAA] ; Counter $A5:8981 CD AC 0F CMP $0FAC [$7E:0FAC] $A5:8984 F0 14 BEQ $14 [$899A] ; Runs every frame { $A5:8986 AD 7C 0F LDA $0F7C [$7E:0F7C] ; X subpixel $A5:8989 18 CLC $A5:898A 6D B0 0F ADC $0FB0 [$7E:0FB0] ; Subpixel acceleration? $A5:898D 8D 7C 0F STA $0F7C [$7E:0F7C] ; X subpixel $A5:8990 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:8993 6D AE 0F ADC $0FAE [$7E:0FAE] ; X coord acceleration? $A5:8996 8D 7A 0F STA $0F7A [$7E:0F7A] ; X coord $A5:8999 60 RTS } ; Runs when the counter reaches the destination { $A5:899A 9C AA 0F STZ $0FAA [$7E:0FAA] ; Counter ; Coinflip between 89B3 (another Swoop) and 8C8E (Mucus) $A5:899D AD E5 05 LDA $05E5 [$7E:05E5] ; RNG $A5:89A0 29 01 00 AND #$0001 $A5:89A3 F0 07 BEQ $07 [$89AC] $A5:89A5 A9 B3 89 LDA #$89B3 $A5:89A8 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:89AB 60 RTS $A5:89AC A9 8E 8C LDA #$8C8E $A5:89AF 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:89B2 60 RTS } } ; $89B3: AI Script - Initiate Swoop left ; Coinflip if this is chosen from "Initial swoop 3" AI Script. ; Just sets up some speeds and such? ; It remembers where Samus is relative to the screen edge and uses it for the acceleration? { $A5:89B3 20 AA 87 JSR $87AA [$A5:87AA] ; Probably turrets shooting? $A5:89B6 AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:89B9 AF 04 78 7E LDA $7E7804[$7E:7804] $A5:89BD 38 SEC $A5:89BE ED F6 0A SBC $0AF6 [$7E:0AF6] ; X position in pixels? $A5:89C1 22 67 B0 A0 JSL $A0B067[$A0:B067] ; A = |A| $A5:89C5 85 2C STA $2C [$7E:002C] $A5:89C7 64 2A STZ $2A [$7E:002A] $A5:89C9 AD 26 0E LDA $0E26 [$7E:0E26] $A5:89CC 4A LSR A $A5:89CD 4A LSR A $A5:89CE 85 2E STA $2E [$7E:002E] $A5:89D0 64 30 STZ $30 [$7E:0030] $A5:89D2 22 61 B7 A0 JSL $A0B761[$A0:B761] $A5:89D6 A5 2C LDA $2C [$7E:002C] $A5:89D8 8D AE 0F STA $0FAE [$7E:0FAE] ; X coord acceleration? $A5:89DB A5 2A LDA $2A [$7E:002A] $A5:89DD 8D B0 0F STA $0FB0 [$7E:0FB0] ; Subpixel acceleration? $A5:89E0 A9 00 8A LDA #$8A00 $A5:89E3 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:89E6 A9 BB 97 LDA #$97BB $A5:89E9 8D 92 0F STA $0F92 [$7E:0F92] ; Draygon PLM instructions $A5:89EC A9 01 00 LDA #$0001 $A5:89EF 8D 94 0F STA $0F94 [$7E:0F94] $A5:89F2 A9 00 00 LDA #$0000 $A5:89F5 8F 00 80 7E STA $7E8000[$7E:8000] $A5:89F9 AD AC 0F LDA $0FAC [$7E:0FAC] $A5:89FC 8D AA 0F STA $0FAA [$7E:0FAA] ; Counter $A5:89FF 60 RTS } ; $8A00: AI Script - Initiate swoop left 2 { $A5:8A00 20 AA 87 JSR $87AA [$A5:87AA] ; Probably turrets shooting? $A5:8A03 20 1C 93 JSR $931C [$A5:931C] ; Randomly spawn smoke on Draygon? $A5:8A06 AC 54 0E LDY $0E54 [$7E:0E54] ; Enemy Index $A5:8A09 AE AA 0F LDX $0FAA [$7E:0FAA] ; Counter $A5:8A0C E0 68 00 CPX #$0068 $A5:8A0F D0 0C BNE $0C [$8A1D] ; Periodically change Arm PLM instructions? { $A5:8A11 A9 13 98 LDA #$9813 $A5:8A14 8D 52 10 STA $1052 [$7E:1052] ; Arm PLM instructions $A5:8A17 A9 01 00 LDA #$0001 $A5:8A1A 8D 54 10 STA $1054 [$7E:1054] } $A5:8A1D BF 02 90 7E LDA $7E9002,x[$7E:91A2] $A5:8A21 99 7E 0F STA $0F7E,y[$7E:0F7E] ; Y coord $A5:8A24 CE AA 0F DEC $0FAA [$7E:0FAA] ; Counter $A5:8A27 CE AA 0F DEC $0FAA [$7E:0FAA] ; Counter $A5:8A2A CE AA 0F DEC $0FAA [$7E:0FAA] ; Counter $A5:8A2D CE AA 0F DEC $0FAA [$7E:0FAA] ; Counter $A5:8A30 AD AA 0F LDA $0FAA [$7E:0FAA] ; Counter $A5:8A33 F0 14 BEQ $14 [$8A49] ; Accelerate towards the left. $A5:8A35 AD 7C 0F LDA $0F7C [$7E:0F7C] ; X subpixel $A5:8A38 38 SEC $A5:8A39 ED B0 0F SBC $0FB0 [$7E:0FB0] ; Subpixel acceleration? $A5:8A3C 8D 7C 0F STA $0F7C [$7E:0F7C] ; X subpixel $A5:8A3F AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:8A42 ED AE 0F SBC $0FAE [$7E:0FAE] ; X coord acceleration? $A5:8A45 8D 7A 0F STA $0F7A [$7E:0F7A] ; X coord $A5:8A48 60 RTS ; $0FAA is 0 $A5:8A49 A9 50 8A LDA #$8A50 $A5:8A4C 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8A4F 60 RTS } ; $8A50: AI Script - Swoop left 3 ; This is after Draygon has hit the lowest point I think.. ; It only sets up the acceleration and such. { $A5:8A50 20 AA 87 JSR $87AA [$A5:87AA] ; Probably turrets shooting? $A5:8A53 AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:8A56 AF 00 78 7E LDA $7E7800[$7E:7800] $A5:8A5A 30 0A BMI $0A [$8A66] ; ; Code missing here.. ; $A5:8A66 49 FF FF EOR #$FFFF $A5:8A69 1A INC A $A5:8A6A 18 CLC $A5:8A6B 6D 7A 0F ADC $0F7A [$7E:0F7A] ; X coord $A5:8A6E 85 2C STA $2C [$7E:002C] $A5:8A70 64 2A STZ $2A [$7E:002A] $A5:8A72 AD AC 0F LDA $0FAC [$7E:0FAC] $A5:8A75 4A LSR A $A5:8A76 4A LSR A $A5:8A77 85 2E STA $2E [$7E:002E] $A5:8A79 64 30 STZ $30 [$7E:0030] $A5:8A7B 22 61 B7 A0 JSL $A0B761[$A0:B761] $A5:8A7F A5 2C LDA $2C [$7E:002C] $A5:8A81 8D AE 0F STA $0FAE [$7E:0FAE] ; X coord acceleration? $A5:8A84 A5 2A LDA $2A [$7E:002A] $A5:8A86 8D B0 0F STA $0FB0 [$7E:0FB0] ; Subpixel acceleration? $A5:8A89 A9 90 8A LDA #$8A90 $A5:8A8C 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8A8F 60 RTS } ; $8A90: AI Script - Swoop left 4 ; Draygon is now moving upwards and out of the screen { $A5:8A90 20 AA 87 JSR $87AA [$A5:87AA] ; Probably turrets shooting? $A5:8A93 20 1C 93 JSR $931C [$A5:931C] ; Randomly spawn smoke on Draygon? $A5:8A96 AC 54 0E LDY $0E54 [$7E:0E54] ; Enemy Index $A5:8A99 AE AA 0F LDX $0FAA [$7E:0FAA] ; Counter $A5:8A9C E0 68 00 CPX #$0068 $A5:8A9F D0 0C BNE $0C [$8AAD] ; Periodically change Arm PLM instructions? { $A5:8AA1 A9 E7 97 LDA #$97E7 $A5:8AA4 8D 52 10 STA $1052 [$7E:1052] ; Arm PLM instructions $A5:8AA7 A9 01 00 LDA #$0001 $A5:8AAA 8D 54 10 STA $1054 [$7E:1054] } $A5:8AAD BF 02 90 7E LDA $7E9002,x[$7E:9002] $A5:8AB1 99 7E 0F STA $0F7E,y[$7E:0F7E] ; Y coord $A5:8AB4 EE AA 0F INC $0FAA [$7E:0FAA] ; Counter $A5:8AB7 EE AA 0F INC $0FAA [$7E:0FAA] ; Counter $A5:8ABA EE AA 0F INC $0FAA [$7E:0FAA] ; Counter $A5:8ABD EE AA 0F INC $0FAA [$7E:0FAA] ; Counter $A5:8AC0 AD AA 0F LDA $0FAA [$7E:0FAA] ; Counter $A5:8AC3 CD AC 0F CMP $0FAC [$7E:0FAC] $A5:8AC6 F0 14 BEQ $14 [$8ADC] ; Runs every frame { $A5:8AC8 AD 7C 0F LDA $0F7C [$7E:0F7C] ; X subpixel $A5:8ACB 38 SEC $A5:8ACC ED B0 0F SBC $0FB0 [$7E:0FB0] ; Subpixel acceleration? $A5:8ACF 8D 7C 0F STA $0F7C [$7E:0F7C] ; X subpixel $A5:8AD2 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:8AD5 ED AE 0F SBC $0FAE [$7E:0FAE] ; X coord acceleration? $A5:8AD8 8D 7A 0F STA $0F7A [$7E:0F7A] ; X coord $A5:8ADB 60 RTS } ; Runs if done counting { ; Basically a coinflip of either $87F4 (Swoop right) or $8B0A (Mucus right). $A5:8ADC AD E5 05 LDA $05E5 [$7E:05E5] ; RNG $A5:8ADF 29 01 00 AND #$0001 $A5:8AE2 F0 18 BEQ $18 [$8AFC] $A5:8AE4 A9 F4 87 LDA #$87F4 $A5:8AE7 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8AEA 9C AA 0F STZ $0FAA [$7E:0FAA] ; Counter $A5:8AED AF 00 78 7E LDA $7E7800[$7E:7800] $A5:8AF1 8D 7A 0F STA $0F7A [$7E:0F7A] ; X coord $A5:8AF4 AF 02 78 7E LDA $7E7802[$7E:7802] $A5:8AF8 8D 7E 0F STA $0F7E [$7E:0F7E] ; Y coord $A5:8AFB 60 RTS } $A5:8AFC A9 0A 8B LDA #$8B0A $A5:8AFF 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8B02 AF 00 78 7E LDA $7E7800[$7E:7800] $A5:8B06 8D 7A 0F STA $0F7A [$7E:0F7A] ; X coord $A5:8B09 60 RTS } ; $8B0A: AI Script - Unk 5 { $A5:8B0A 20 AA 87 JSR $87AA [$A5:87AA] ; Probably turrets shooting? $A5:8B0D A9 B0 FF LDA #$FFB0 $A5:8B10 8D 7A 0F STA $0F7A [$7E:0F7A] ; X coord $A5:8B13 A9 80 01 LDA #$0180 $A5:8B16 8D 7E 0F STA $0F7E [$7E:0F7E] ; Y coord $A5:8B19 A9 00 00 LDA #$0000 $A5:8B1C 8D B0 0F STA $0FB0 [$7E:0FB0] ; Subpixel acceleration? $A5:8B1F A9 01 00 LDA #$0001 $A5:8B22 8D AE 0F STA $0FAE [$7E:0FAE] ; X coord acceleration? $A5:8B25 A9 00 00 LDA #$0000 $A5:8B28 8F 1A 78 7E STA $7E781A[$7E:781A] $A5:8B2C A9 06 9C LDA #$9C06 $A5:8B2F 8D 52 10 STA $1052 [$7E:1052] ; Arm PLM instructions $A5:8B32 A9 01 00 LDA #$0001 $A5:8B35 8D 54 10 STA $1054 [$7E:1054] $A5:8B38 A9 52 8B LDA #$8B52 $A5:8B3B 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8B3E A9 D1 97 LDA #$97D1 $A5:8B41 8D 92 0F STA $0F92 [$7E:0F92] ; Draygon PLM instructions $A5:8B44 A9 01 00 LDA #$0001 $A5:8B47 8D 94 0F STA $0F94 [$7E:0F94] $A5:8B4A A9 01 00 LDA #$0001 $A5:8B4D 8F 00 80 7E STA $7E8000[$7E:8000] $A5:8B51 60 RTS } ; $8B52: AI Script - Unk 6 { $A5:8B52 20 AA 87 JSR $87AA [$A5:87AA] ; Probably turrets shooting? $A5:8B55 20 1C 93 JSR $931C [$A5:931C] ; Randomly spawn smoke on Draygon? $A5:8B58 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:8B5B 38 SEC $A5:8B5C ED F6 0A SBC $0AF6 [$7E:0AF6] ; X position in pixels? $A5:8B5F 22 67 B0 A0 JSL $A0B067[$A0:B067] ; A = |A| $A5:8B63 C9 D0 00 CMP #$00D0 $A5:8B66 10 0E BPL $0E [$8B76] $A5:8B68 A9 AE 8B LDA #$8BAE $A5:8B6B 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8B6E A9 10 00 LDA #$0010 $A5:8B71 8F 06 78 7E STA $7E7806[$7E:7806] $A5:8B75 60 RTS $A5:8B76 A9 20 00 LDA #$0020 $A5:8B79 8D 32 0E STA $0E32 [$7E:0E32] $A5:8B7C AF 1A 78 7E LDA $7E781A[$7E:781A] $A5:8B80 22 B2 B0 A0 JSL $A0B0B2[$A0:B0B2] ; Cosine multiplication $A5:8B84 18 CLC $A5:8B85 69 80 01 ADC #$0180 $A5:8B88 8D 7E 0F STA $0F7E [$7E:0F7E] ; Y coord $A5:8B8B AF 1A 78 7E LDA $7E781A[$7E:781A] $A5:8B8F 18 CLC $A5:8B90 69 01 00 ADC #$0001 $A5:8B93 29 FF 00 AND #$00FF $A5:8B96 8F 1A 78 7E STA $7E781A[$7E:781A] $A5:8B9A AD 7C 0F LDA $0F7C [$7E:0F7C] ; X subpixel $A5:8B9D 18 CLC $A5:8B9E 6D B0 0F ADC $0FB0 [$7E:0FB0] ; Subpixel acceleration? $A5:8BA1 8D 7C 0F STA $0F7C [$7E:0F7C] ; X subpixel $A5:8BA4 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:8BA7 6D AE 0F ADC $0FAE [$7E:0FAE] ; X coord acceleration? $A5:8BAA 8D 7A 0F STA $0F7A [$7E:0F7A] ; X coord $A5:8BAD 60 RTS } ; $8BAE: AI Script - Unk 7 { $A5:8BAE 20 AA 87 JSR $87AA [$A5:87AA] ; Probably turrets shooting? $A5:8BB1 AD 66 0A LDA $0A66 [$7E:0A66] ; Set if mucus'ed or grabbed? $A5:8BB4 D0 63 BNE $63 [$8C19] $A5:8BB6 AD E5 05 LDA $05E5 [$7E:05E5] ; RNG $A5:8BB9 29 0F 00 AND #$000F $A5:8BBC D0 17 BNE $17 [$8BD5] $A5:8BBE AF 06 78 7E LDA $7E7806[$7E:7806] $A5:8BC2 3A DEC A $A5:8BC3 8F 06 78 7E STA $7E7806[$7E:7806] $A5:8BC7 F0 4B BEQ $4B [$8C14] $A5:8BC9 A0 90 9C LDY #$9C90 $A5:8BCC 8C 92 0F STY $0F92 [$7E:0F92] ; Draygon PLM instructions $A5:8BCF A9 01 00 LDA #$0001 $A5:8BD2 8D 94 0F STA $0F94 [$7E:0F94] $A5:8BD5 A9 20 00 LDA #$0020 $A5:8BD8 8D 32 0E STA $0E32 [$7E:0E32] $A5:8BDB AF 1A 78 7E LDA $7E781A[$7E:781A] $A5:8BDF 22 B2 B0 A0 JSL $A0B0B2[$A0:B0B2] ; Cosine multiplication $A5:8BE3 18 CLC $A5:8BE4 69 80 01 ADC #$0180 $A5:8BE7 8D 7E 0F STA $0F7E [$7E:0F7E] ; Y coord $A5:8BEA AF 1A 78 7E LDA $7E781A[$7E:781A] $A5:8BEE 18 CLC $A5:8BEF 69 01 00 ADC #$0001 $A5:8BF2 29 FF 00 AND #$00FF $A5:8BF5 8F 1A 78 7E STA $7E781A[$7E:781A] $A5:8BF9 AD 7C 0F LDA $0F7C [$7E:0F7C] ; X subpixel $A5:8BFC 18 CLC $A5:8BFD 6D B0 0F ADC $0FB0 [$7E:0FB0] ; Subpixel acceleration? $A5:8C00 8D 7C 0F STA $0F7C [$7E:0F7C] ; X subpixel $A5:8C03 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:8C06 6D AE 0F ADC $0FAE [$7E:0FAE] ; X coord acceleration? $A5:8C09 8D 7A 0F STA $0F7A [$7E:0F7A] ; X coord $A5:8C0C 30 05 BMI $05 [$8C13] $A5:8C0E C9 A0 02 CMP #$02A0 $A5:8C11 10 01 BPL $01 [$8C14] $A5:8C13 60 RTS $A5:8C19 A9 19 8E LDA #$8E19 $A5:8C1C 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8C1F 60 RTS } ; $8C8E: AI Script - Start a Mucus phase. Resets coords, acceleration etc. ; Coinflip if this is chosen from "Initial swoop 3" AI Script. { $A5:8C8E AF 04 78 7E LDA $7E7804[$7E:7804] $A5:8C92 8D 7A 0F STA $0F7A [$7E:0F7A] ; X coord $A5:8C95 A9 80 01 LDA #$0180 $A5:8C98 8D 7E 0F STA $0F7E [$7E:0F7E] ; Y coord $A5:8C9B A9 00 00 LDA #$0000 $A5:8C9E 8D B0 0F STA $0FB0 [$7E:0FB0] ; Subpixel acceleration? $A5:8CA1 A9 01 00 LDA #$0001 $A5:8CA4 8D AE 0F STA $0FAE [$7E:0FAE] ; X coord acceleration? $A5:8CA7 A9 00 00 LDA #$0000 $A5:8CAA 8F 1A 78 7E STA $7E781A[$7E:781A] $A5:8CAE A9 06 9C LDA #$9C06 $A5:8CB1 8D 52 10 STA $1052 [$7E:1052] ; Arm PLM instructions $A5:8CB4 A9 01 00 LDA #$0001 $A5:8CB7 8D 54 10 STA $1054 [$7E:1054] $A5:8CBA A9 D4 8C LDA #$8CD4 $A5:8CBD 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8CC0 A9 BB 97 LDA #$97BB $A5:8CC3 8D 92 0F STA $0F92 [$7E:0F92] ; Draygon PLM instructions $A5:8CC6 A9 01 00 LDA #$0001 $A5:8CC9 8D 94 0F STA $0F94 [$7E:0F94] $A5:8CCC A9 00 00 LDA #$0000 $A5:8CCF 8F 00 80 7E STA $7E8000[$7E:8000] $A5:8CD3 60 RTS } ; $8CD4: AI Script - Mucus after Initial swoop (move towards Samus if Draygon is not on the screen yet) { $A5:8CD4 20 AA 87 JSR $87AA [$A5:87AA] ; Probably turrets shooting? $A5:8CD7 20 1C 93 JSR $931C [$A5:931C] ; Randomly spawn smoke on Draygon? $A5:8CDA AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:8CDD 38 SEC $A5:8CDE ED F6 0A SBC $0AF6 [$7E:0AF6] ; X position in pixels? $A5:8CE1 22 67 B0 A0 JSL $A0B067[$A0:B067] ; A = |A| $A5:8CE5 C9 D0 00 CMP #$00D0 $A5:8CE8 10 0E BPL $0E [$8CF8] ; This runs once the player has Draygon scrolled into the screen. ; Basically Draygon won't start Mucusing until on the screen. { $A5:8CEA A9 30 8D LDA #$8D30 $A5:8CED 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8CF0 A9 10 00 LDA #$0010 $A5:8CF3 8F 06 78 7E STA $7E7806[$7E:7806] $A5:8CF7 60 RTS } ; Runs every frame { $A5:8CF8 A9 20 00 LDA #$0020 $A5:8CFB 8D 32 0E STA $0E32 [$7E:0E32] $A5:8CFE AF 1A 78 7E LDA $7E781A[$7E:781A] $A5:8D02 22 B2 B0 A0 JSL $A0B0B2[$A0:B0B2] ; Cosine multiplication $A5:8D06 18 CLC $A5:8D07 69 80 01 ADC #$0180 $A5:8D0A 8D 7E 0F STA $0F7E [$7E:0F7E] ; Y coord $A5:8D0D AF 1A 78 7E LDA $7E781A[$7E:781A] $A5:8D11 18 CLC $A5:8D12 69 01 00 ADC #$0001 $A5:8D15 29 FF 00 AND #$00FF $A5:8D18 8F 1A 78 7E STA $7E781A[$7E:781A] $A5:8D1C AD 7C 0F LDA $0F7C [$7E:0F7C] ; X subpixel $A5:8D1F 38 SEC $A5:8D20 ED B0 0F SBC $0FB0 [$7E:0FB0] ; Subpixel acceleration? $A5:8D23 8D 7C 0F STA $0F7C [$7E:0F7C] ; X subpixel $A5:8D26 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:8D29 ED AE 0F SBC $0FAE [$7E:0FAE] ; X coord acceleration? $A5:8D2C 8D 7A 0F STA $0F7A [$7E:0F7A] ; X coord $A5:8D2F 60 RTS } } ; $8D30: AI Script - Mucus after Initial swoop 2 (spawning Mucus) { $A5:8D30 AD 66 0A LDA $0A66 [$7E:0A66] ; Set if mucus'ed or grabbed? $A5:8D33 D0 63 BNE $63 [$8D98] ; Run if we are not Mucus'd { $A5:8D35 AD E5 05 LDA $05E5 [$7E:05E5] ; RNG $A5:8D38 29 0F 00 AND #$000F $A5:8D3B D0 17 BNE $17 [$8D54] ; Run with 1/16 chance { $A5:8D3D AF 06 78 7E LDA $7E7806[$7E:7806] $A5:8D41 3A DEC A $A5:8D42 8F 06 78 7E STA $7E7806[$7E:7806] $A5:8D46 F0 4B BEQ $4B [$8D93] $A5:8D48 A0 FE 98 LDY #$98FE $A5:8D4B 8C 92 0F STY $0F92 [$7E:0F92] ; Draygon PLM instructions $A5:8D4E A9 01 00 LDA #$0001 $A5:8D51 8D 94 0F STA $0F94 [$7E:0F94] } $A5:8D54 A9 20 00 LDA #$0020 $A5:8D57 8D 32 0E STA $0E32 [$7E:0E32] $A5:8D5A AF 1A 78 7E LDA $7E781A[$7E:781A] $A5:8D5E 22 B2 B0 A0 JSL $A0B0B2[$A0:B0B2] ; Cosine multiplication $A5:8D62 18 CLC $A5:8D63 69 80 01 ADC #$0180 $A5:8D66 8D 7E 0F STA $0F7E [$7E:0F7E] ; Y coord $A5:8D69 AF 1A 78 7E LDA $7E781A[$7E:781A] $A5:8D6D 18 CLC $A5:8D6E 69 01 00 ADC #$0001 $A5:8D71 29 FF 00 AND #$00FF $A5:8D74 8F 1A 78 7E STA $7E781A[$7E:781A] $A5:8D78 AD 7C 0F LDA $0F7C [$7E:0F7C] ; X subpixel $A5:8D7B 38 SEC $A5:8D7C ED B0 0F SBC $0FB0 [$7E:0FB0] ; Subpixel acceleration? $A5:8D7F 8D 7C 0F STA $0F7C [$7E:0F7C] ; X subpixel $A5:8D82 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:8D85 ED AE 0F SBC $0FAE [$7E:0FAE] ; X coord acceleration? $A5:8D88 8D 7A 0F STA $0F7A [$7E:0F7A] ; X coord $A5:8D8B 10 05 BPL $05 [$8D92] $A5:8D92 60 RTS } $A5:8D93 AD 66 0A LDA $0A66 [$7E:0A66] ; Set if mucus'ed or grabbed? $A5:8D96 F0 07 BEQ $07 [$8D9F] ; Run if Mucus'd { $A5:8D98 A9 19 8E LDA #$8E19 $A5:8D9B 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8D9E 60 RTS } $A5:8D9F A9 E7 97 LDA #$97E7 $A5:8DA2 8D 52 10 STA $1052 [$7E:1052] ; Arm PLM instructions $A5:8DA5 A9 01 00 LDA #$0001 $A5:8DA8 8D 54 10 STA $1054 [$7E:1054] $A5:8DAB A9 B2 8D LDA #$8DB2 $A5:8DAE 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8DB1 60 RTS } ; $8DB2: AI Script - Unk 11 { $A5:8DB2 20 1C 93 JSR $931C [$A5:931C] ; Randomly spawn smoke on Draygon? $A5:8DB5 AD 66 0A LDA $0A66 [$7E:0A66] ; Set if mucus'ed or grabbed? $A5:8DB8 D0 3F BNE $3F [$8DF9] $A5:8DBA A9 20 00 LDA #$0020 $A5:8DBD 8D 32 0E STA $0E32 [$7E:0E32] $A5:8DC0 AF 1A 78 7E LDA $7E781A[$7E:781A] $A5:8DC4 22 B2 B0 A0 JSL $A0B0B2[$A0:B0B2] ; Cosine multiplication $A5:8DC8 18 CLC $A5:8DC9 69 80 01 ADC #$0180 $A5:8DCC 8D 7E 0F STA $0F7E [$7E:0F7E] ; Y coord $A5:8DCF AF 1A 78 7E LDA $7E781A[$7E:781A] $A5:8DD3 18 CLC $A5:8DD4 69 01 00 ADC #$0001 $A5:8DD7 29 FF 00 AND #$00FF $A5:8DDA 8F 1A 78 7E STA $7E781A[$7E:781A] $A5:8DDE AD 7C 0F LDA $0F7C [$7E:0F7C] ; X subpixel $A5:8DE1 38 SEC $A5:8DE2 ED B0 0F SBC $0FB0 [$7E:0FB0] ; Subpixel acceleration? $A5:8DE5 8D 7C 0F STA $0F7C [$7E:0F7C] ; X subpixel $A5:8DE8 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:8DEB ED AE 0F SBC $0FAE [$7E:0FAE] ; X coord acceleration? $A5:8DEE 8D 7A 0F STA $0F7A [$7E:0F7A] ; X coord $A5:8DF1 10 05 BPL $05 [$8DF8] $A5:8DF3 C9 B0 FF CMP #$FFB0 $A5:8DF6 30 08 BMI $08 [$8E00] $A5:8DF8 60 RTS $A5:8E00 A9 F4 87 LDA #$87F4 $A5:8E03 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8E06 A9 B0 FF LDA #$FFB0 $A5:8E09 8D 7A 0F STA $0F7A [$7E:0F7A] ; X coord $A5:8E0C A9 B0 FF LDA #$FFB0 $A5:8E0F 8D 7E 0F STA $0F7E [$7E:0F7E] ; Y coord $A5:8E12 AD AC 0F LDA $0FAC [$7E:0FAC] $A5:8E15 8D AA 0F STA $0FAA [$7E:0FAA] ; Counter $A5:8E18 60 RTS } ; $8E19: AI Script - Samus was Mucus'd and Draygon is trying to grab her { $A5:8E19 20 AA 87 JSR $87AA [$A5:87AA] ; Probably turrets shooting? $A5:8E1C AD 66 0A LDA $0A66 [$7E:0A66] ; Set if mucus'ed or grabbed? $A5:8E1F D0 07 BNE $07 [$8E28] ; Mucus was removed before Draygon could catch us $A5:8E21 A9 54 91 LDA #$9154 $A5:8E24 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8E27 60 RTS ; Run if still Mucus'ed? { $A5:8E28 AD 86 0F LDA $0F86 [$7E:0F86] $A5:8E2B 09 00 04 ORA #$0400 $A5:8E2E 8D 86 0F STA $0F86 [$7E:0F86] $A5:8E31 A0 08 00 LDY #$0008 $A5:8E34 AF 00 80 7E LDA $7E8000[$7E:8000] $A5:8E38 D0 03 BNE $03 [$8E3D] $A5:8E3A A0 F8 FF LDY #$FFF8 $A5:8E3D 98 TYA $A5:8E3E 18 CLC $A5:8E3F 6D 7A 0F ADC $0F7A [$7E:0F7A] ; X coord $A5:8E42 38 SEC $A5:8E43 ED F6 0A SBC $0AF6 [$7E:0AF6] ; X position in pixels? $A5:8E46 22 67 B0 A0 JSL $A0B067[$A0:B067] ; A = |A| $A5:8E4A C9 08 00 CMP #$0008 $A5:8E4D 10 12 BPL $12 [$8E61] $A5:8E4F AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:8E52 38 SEC $A5:8E53 ED FA 0A SBC $0AFA [$7E:0AFA] $A5:8E56 22 67 B0 A0 JSL $A0B067[$A0:B067] ; A = |A| $A5:8E5A C9 08 00 CMP #$0008 $A5:8E5D 10 02 BPL $02 [$8E61] $A5:8E5F 80 48 BRA $48 [$8EA9] $A5:8E61 AD F6 0A LDA $0AF6 [$7E:0AF6] ; X position in pixels? $A5:8E64 38 SEC $A5:8E65 ED 7A 0F SBC $0F7A [$7E:0F7A] ; X coord $A5:8E68 85 12 STA $12 [$7E:0012] $A5:8E6A AD FA 0A LDA $0AFA [$7E:0AFA] $A5:8E6D 38 SEC $A5:8E6E ED 7E 0F SBC $0F7E [$7E:0F7E] ; Y coord $A5:8E71 85 14 STA $14 [$7E:0014] $A5:8E73 22 AE C0 A0 JSL $A0C0AE[$A0:C0AE] $A5:8E77 49 FF 00 EOR #$00FF $A5:8E7A 1A INC A $A5:8E7B 18 CLC $A5:8E7C 69 40 00 ADC #$0040 $A5:8E7F 29 FF 00 AND #$00FF $A5:8E82 8D 20 0E STA $0E20 [$7E:0E20] $A5:8E85 85 12 STA $12 [$7E:0012] $A5:8E87 A9 02 00 LDA #$0002 $A5:8E8A 85 14 STA $14 [$7E:0014] $A5:8E8C 22 43 B6 A0 JSL $A0B643[$A0:B643] $A5:8E90 A5 16 LDA $16 [$7E:0016] $A5:8E92 8D 24 0E STA $0E24 [$7E:0E24] $A5:8E95 A5 18 LDA $18 [$7E:0018] $A5:8E97 8D 26 0E STA $0E26 [$7E:0E26] $A5:8E9A A5 1A LDA $1A [$7E:001A] $A5:8E9C 8D 28 0E STA $0E28 [$7E:0E28] $A5:8E9F A5 1C LDA $1C [$7E:001C] $A5:8EA1 8D 2A 0E STA $0E2A [$7E:0E2A] $A5:8EA4 22 91 B6 A0 JSL $A0B691[$A0:B691] $A5:8EA8 60 RTS $A5:8EA9 A0 45 98 LDY #$9845 $A5:8EAC AF 00 80 7E LDA $7E8000[$7E:8000] $A5:8EB0 F0 03 BEQ $03 [$8EB5] $A5:8EB2 A0 38 9C LDY #$9C38 $A5:8EB5 8C 52 10 STY $1052 [$7E:1052] ; Arm PLM instructions $A5:8EB8 A9 01 00 LDA #$0001 $A5:8EBB 8D 54 10 STA $1054 [$7E:1054] $A5:8EBE A9 0D 00 LDA #$000D $A5:8EC1 22 84 F0 90 JSL $90F084[$90:F084] $A5:8EC5 29 FF FF AND #$FFFF $A5:8EC8 D0 3F BNE $3F [$8F09] $A5:8ECA A0 00 00 LDY #$0000 $A5:8ECD AF 00 80 7E LDA $7E8000[$7E:8000] $A5:8ED1 F0 03 BEQ $03 [$8ED6] $A5:8ED3 A0 01 00 LDY #$0001 $A5:8ED6 98 TYA $A5:8ED7 22 3B E2 90 JSL $90E23B[$90:E23B] $A5:8EDB A9 00 01 LDA #$0100 $A5:8EDE 8F 0C 78 7E STA $7E780C[$7E:780C] $A5:8EE2 A9 80 01 LDA #$0180 $A5:8EE5 8F 0E 78 7E STA $7E780E[$7E:780E] $A5:8EE9 A9 00 00 LDA #$0000 $A5:8EEC 8F 0A 78 7E STA $7E780A[$7E:780A] $A5:8EF0 8F 12 78 7E STA $7E7812[$7E:7812] $A5:8EF4 A9 C0 00 LDA #$00C0 $A5:8EF7 8F 10 78 7E STA $7E7810[$7E:7810] $A5:8EFB A9 00 08 LDA #$0800 $A5:8EFE 8F 16 78 7E STA $7E7816[$7E:7816] ; Draygon just grabbed Samus $A5:8F02 A9 1E 8F LDA #$8F1E $A5:8F05 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8F08 60 RTS } } ; $8F1E: AI Script: Draygon just grabbed Samus { $A5:8F1E AD 64 0A LDA $0A64 [$7E:0A64] $A5:8F21 89 01 00 BIT #$0001 $A5:8F24 F0 1D BEQ $1D [$8F43] ; ; Missing code here, that is run if Samus is grappled onto something. ; $A5:8F43 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:8F46 38 SEC $A5:8F47 E9 00 01 SBC #$0100 $A5:8F4A 22 67 B0 A0 JSL $A0B067[$A0:B067] ; A = |A| $A5:8F4E C9 02 00 CMP #$0002 $A5:8F51 10 12 BPL $12 [$8F65] $A5:8F53 AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:8F56 38 SEC $A5:8F57 E9 80 01 SBC #$0180 $A5:8F5A 22 67 B0 A0 JSL $A0B067[$A0:B067] ; A = |A| $A5:8F5E C9 02 00 CMP #$0002 $A5:8F61 10 02 BPL $02 [$8F65] $A5:8F63 80 4B BRA $4B [$8FB0] $A5:8F65 A9 00 01 LDA #$0100 $A5:8F68 38 SEC $A5:8F69 ED 7A 0F SBC $0F7A [$7E:0F7A] ; X coord $A5:8F6C 85 12 STA $12 [$7E:0012] $A5:8F6E A9 80 01 LDA #$0180 $A5:8F71 38 SEC $A5:8F72 ED 7E 0F SBC $0F7E [$7E:0F7E] ; Y coord $A5:8F75 85 14 STA $14 [$7E:0014] $A5:8F77 22 AE C0 A0 JSL $A0C0AE[$A0:C0AE] $A5:8F7B 49 FF 00 EOR #$00FF $A5:8F7E 1A INC A $A5:8F7F 18 CLC $A5:8F80 69 40 00 ADC #$0040 $A5:8F83 29 FF 00 AND #$00FF $A5:8F86 8D 20 0E STA $0E20 [$7E:0E20] $A5:8F89 85 12 STA $12 [$7E:0012] $A5:8F8B A9 02 00 LDA #$0002 $A5:8F8E 85 14 STA $14 [$7E:0014] $A5:8F90 22 43 B6 A0 JSL $A0B643[$A0:B643] $A5:8F94 A5 16 LDA $16 [$7E:0016] $A5:8F96 8D 24 0E STA $0E24 [$7E:0E24] $A5:8F99 A5 18 LDA $18 [$7E:0018] $A5:8F9B 8D 26 0E STA $0E26 [$7E:0E26] $A5:8F9E A5 1A LDA $1A [$7E:001A] $A5:8FA0 8D 28 0E STA $0E28 [$7E:0E28] $A5:8FA3 A5 1C LDA $1C [$7E:001C] $A5:8FA5 8D 2A 0E STA $0E2A [$7E:0E2A] $A5:8FA8 22 91 B6 A0 JSL $A0B691[$A0:B691] $A5:8FAC 20 A9 94 JSR $94A9 [$A5:94A9] $A5:8FAF 60 RTS $A5:8FB0 A9 D6 8F LDA #$8FD6 $A5:8FB3 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:8FB6 A0 22 99 LDY #$9922 $A5:8FB9 AF 00 80 7E LDA $7E8000[$7E:8000] $A5:8FBD F0 03 BEQ $03 [$8FC2] $A5:8FBF A0 B4 9C LDY #$9CB4 $A5:8FC2 98 TYA $A5:8FC3 9D 92 0F STA $0F92,x[$7E:0F92] ; Draygon PLM instructions $A5:8FC6 A9 01 00 LDA #$0001 $A5:8FC9 9D 94 0F STA $0F94,x[$7E:0F94] $A5:8FCC AD 86 0F LDA $0F86 [$7E:0F86] $A5:8FCF 09 00 04 ORA #$0400 $A5:8FD2 8D 86 0F STA $0F86 [$7E:0F86] $A5:8FD5 60 RTS } ; $8FD6: AI Script - Unk 14 { $A5:8FD6 AD 64 0A LDA $0A64 [$7E:0A64] $A5:8FD9 89 01 00 BIT #$0001 $A5:8FDC F0 1D BEQ $1D [$8FFB] $A5:8FFB AD E5 05 LDA $05E5 [$7E:05E5] ; RNG $A5:8FFE 29 FF 00 AND #$00FF $A5:9001 D0 0E BNE $0E [$9011] $A5:9003 A9 40 00 LDA #$0040 $A5:9006 8F 18 78 7E STA $7E7818[$7E:7818] $A5:900A A9 D4 90 LDA #$90D4 $A5:900D 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:9010 60 RTS $A5:9011 AF 0A 78 7E LDA $7E780A[$7E:780A] $A5:9015 8D 32 0E STA $0E32 [$7E:0E32] $A5:9018 AF 10 78 7E LDA $7E7810[$7E:7810] $A5:901C 22 B2 B0 A0 JSL $A0B0B2[$A0:B0B2] ; Cosine multiplication $A5:9020 18 CLC $A5:9021 6F 0C 78 7E ADC $7E780C[$7E:780C] $A5:9025 8D 7A 0F STA $0F7A [$7E:0F7A] ; X coord $A5:9028 AF 0A 78 7E LDA $7E780A[$7E:780A] $A5:902C 4A LSR A $A5:902D 4A LSR A $A5:902E 8D 32 0E STA $0E32 [$7E:0E32] $A5:9031 AF 10 78 7E LDA $7E7810[$7E:7810] $A5:9035 22 C6 B0 A0 JSL $A0B0C6[$A0:B0C6] $A5:9039 18 CLC $A5:903A 6F 0E 78 7E ADC $7E780E[$7E:780E] $A5:903E 8D 7E 0F STA $0F7E [$7E:0F7E] ; Y coord $A5:9041 BD A4 0F LDA $0FA4,x[$7E:0FA4] ; Room framecounter? $A5:9044 29 07 00 AND #$0007 $A5:9047 D0 2C BNE $2C [$9075] $A5:9049 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:904C 38 SEC $A5:904D E9 20 00 SBC #$0020 $A5:9050 85 12 STA $12 [$7E:0012] $A5:9052 AF 00 80 7E LDA $7E8000[$7E:8000] $A5:9056 F0 09 BEQ $09 [$9061] $A5:9058 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:905B 18 CLC $A5:905C 69 20 00 ADC #$0020 $A5:905F 85 12 STA $12 [$7E:0012] $A5:9061 AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:9064 38 SEC $A5:9065 E9 10 00 SBC #$0010 $A5:9068 85 14 STA $14 [$7E:0014] $A5:906A A9 3D 00 LDA #$003D $A5:906D 85 16 STA $16 [$7E:0016] $A5:906F 64 18 STZ $18 [$7E:0018] $A5:9071 22 26 BC B4 JSL $B4BC26[$B4:BC26] $A5:9075 AF 12 78 7E LDA $7E7812[$7E:7812] $A5:9079 18 CLC $A5:907A 69 00 20 ADC #$2000 $A5:907D 8F 12 78 7E STA $7E7812[$7E:7812] $A5:9081 AF 0A 78 7E LDA $7E780A[$7E:780A] $A5:9085 69 00 00 ADC #$0000 $A5:9088 8F 0A 78 7E STA $7E780A[$7E:780A] $A5:908C C9 A0 00 CMP #$00A0 $A5:908F 10 3C BPL $3C [$90CD] $A5:9091 AF 16 78 7E LDA $7E7816[$7E:7816] $A5:9095 38 SEC $A5:9096 E9 01 00 SBC #$0001 $A5:9099 8F 16 78 7E STA $7E7816[$7E:7816] $A5:909D 29 00 FF AND #$FF00 $A5:90A0 EB XBA $A5:90A1 18 CLC $A5:90A2 6F 10 78 7E ADC $7E7810[$7E:7810] $A5:90A6 29 FF 00 AND #$00FF $A5:90A9 8F 10 78 7E STA $7E7810[$7E:7810] $A5:90AD AF 14 78 7E LDA $7E7814[$7E:7814] $A5:90B1 38 SEC $A5:90B2 E9 00 40 SBC #$4000 $A5:90B5 8F 14 78 7E STA $7E7814[$7E:7814] $A5:90B9 AF 0E 78 7E LDA $7E780E[$7E:780E] $A5:90BD E9 00 00 SBC #$0000 $A5:90C0 8F 0E 78 7E STA $7E780E[$7E:780E] $A5:90C4 C9 40 00 CMP #$0040 $A5:90C7 30 04 BMI $04 [$90CD] $A5:90C9 20 A9 94 JSR $94A9 [$A5:94A9] $A5:90CC 60 RTS } ; $90D4: AI Script - Unk 15 { $A5:90D4 20 A9 94 JSR $94A9 [$A5:94A9] $A5:90D7 AF 18 78 7E LDA $7E7818[$7E:7818] $A5:90DB 3A DEC A $A5:90DC 8F 18 78 7E STA $7E7818[$7E:7818] $A5:90E0 F0 1C BEQ $1C [$90FE] $A5:90E2 C9 3F 00 CMP #$003F $A5:90E5 F0 01 BEQ $01 [$90E8] $A5:90E7 60 RTS $A5:90E8 A0 E8 9A LDY #$9AE8 $A5:90EB AF 00 80 7E LDA $7E8000[$7E:8000] $A5:90EF F0 03 BEQ $03 [$90F4] $A5:90F1 A0 A1 9E LDY #$9EA1 $A5:90F4 8C 12 10 STY $1012 [$7E:1012] ; Tail PLM instructions $A5:90F7 A9 01 00 LDA #$0001 $A5:90FA 8D 14 10 STA $1014 [$7E:1014] $A5:90FD 60 RTS $A5:90FE A9 D6 8F LDA #$8FD6 $A5:9101 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:9104 60 RTS } ; $9154: AI Script - Unknown (happens when Samus is mucus'd, then remove mucus before grabbed) { $A5:9154 20 AA 87 JSR $87AA [$A5:87AA] ; Probably turrets shooting? $A5:9157 AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:915A 38 SEC $A5:915B E9 04 00 SBC #$0004 $A5:915E 8D 7E 0F STA $0F7E [$7E:0F7E] ; Y coord $A5:9161 30 01 BMI $01 [$9164] $A5:9163 60 RTS $A5:9164 AD 86 0F LDA $0F86 [$7E:0F86] $A5:9167 29 FF FB AND #$FBFF $A5:916A 8D 86 0F STA $0F86 [$7E:0F86] $A5:916D A9 F4 87 LDA #$87F4 $A5:9170 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:9173 9C AA 0F STZ $0FAA [$7E:0FAA] ; Counter $A5:9176 AF 00 78 7E LDA $7E7800[$7E:7800] $A5:917A 8D 7A 0F STA $0F7A [$7E:0F7A] ; X coord $A5:917D AF 02 78 7E LDA $7E7802[$7E:7802] $A5:9181 8D 7E 0F STA $0F7E [$7E:0F7E] ; Y coord $A5:9184 60 RTS } ; $9185: AI Script - Unk 17 { $A5:9185 AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:9188 BD A4 0F LDA $0FA4,x[$7E:0FA4] ; Room framecounter? $A5:918B 29 0F 00 AND #$000F $A5:918E D0 2C BNE $2C [$91BC] $A5:9190 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:9193 38 SEC $A5:9194 E9 20 00 SBC #$0020 $A5:9197 85 12 STA $12 [$7E:0012] $A5:9199 AF 00 80 7E LDA $7E8000[$7E:8000] $A5:919D F0 09 BEQ $09 [$91A8] $A5:919F AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:91A2 18 CLC $A5:91A3 69 20 00 ADC #$0020 $A5:91A6 85 12 STA $12 [$7E:0012] $A5:91A8 AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:91AB 38 SEC $A5:91AC E9 10 00 SBC #$0010 $A5:91AF 85 14 STA $14 [$7E:0014] $A5:91B1 A9 3D 00 LDA #$003D $A5:91B4 85 16 STA $16 [$7E:0016] $A5:91B6 64 18 STZ $18 [$7E:0018] $A5:91B8 22 26 BC B4 JSL $B4BC26[$B4:BC26] $A5:91BC AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:91BF 4A LSR A $A5:91C0 4A LSR A $A5:91C1 85 12 STA $12 [$7E:0012] $A5:91C3 A9 00 01 LDA #$0100 $A5:91C6 4A LSR A $A5:91C7 4A LSR A $A5:91C8 38 SEC $A5:91C9 E5 12 SBC $12 [$7E:0012] $A5:91CB 85 12 STA $12 [$7E:0012] $A5:91CD AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:91D0 4A LSR A $A5:91D1 4A LSR A $A5:91D2 85 14 STA $14 [$7E:0014] $A5:91D4 A9 E0 01 LDA #$01E0 $A5:91D7 4A LSR A $A5:91D8 4A LSR A $A5:91D9 38 SEC $A5:91DA E5 14 SBC $14 [$7E:0014] $A5:91DC 85 14 STA $14 [$7E:0014] $A5:91DE 22 AE C0 A0 JSL $A0C0AE[$A0:C0AE] $A5:91E2 38 SEC $A5:91E3 E9 40 00 SBC #$0040 $A5:91E6 49 FF FF EOR #$FFFF $A5:91E9 1A INC A $A5:91EA 29 FF 00 AND #$00FF $A5:91ED 8F 06 88 7E STA $7E8806[$7E:8806] $A5:91F1 A9 01 00 LDA #$0001 $A5:91F4 85 14 STA $14 [$7E:0014] $A5:91F6 AF 06 88 7E LDA $7E8806[$7E:8806] $A5:91FA 29 FF 00 AND #$00FF $A5:91FD 85 12 STA $12 [$7E:0012] $A5:91FF 22 43 B6 A0 JSL $A0B643[$A0:B643] $A5:9203 A5 16 LDA $16 [$7E:0016] $A5:9205 8D 24 0E STA $0E24 [$7E:0E24] $A5:9208 A5 18 LDA $18 [$7E:0018] $A5:920A 8D 26 0E STA $0E26 [$7E:0E26] $A5:920D A5 1A LDA $1A [$7E:001A] $A5:920F 8D 28 0E STA $0E28 [$7E:0E28] $A5:9212 A5 1C LDA $1C [$7E:001C] $A5:9214 8D 2A 0E STA $0E2A [$7E:0E2A] $A5:9217 AF 06 88 7E LDA $7E8806[$7E:8806] $A5:921B 29 FF 00 AND #$00FF $A5:921E 8D 20 0E STA $0E20 [$7E:0E20] $A5:9221 22 91 B6 A0 JSL $A0B691[$A0:B691] $A5:9225 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:9228 38 SEC $A5:9229 E9 00 01 SBC #$0100 $A5:922C 22 67 B0 A0 JSL $A0B067[$A0:B067] ; A = |A| $A5:9230 C9 04 00 CMP #$0004 $A5:9233 10 12 BPL $12 [$9247] $A5:9235 AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:9238 38 SEC $A5:9239 E9 E0 01 SBC #$01E0 $A5:923C 22 67 B0 A0 JSL $A0B067[$A0:B067] ; A = |A| $A5:9240 C9 04 00 CMP #$0004 $A5:9243 10 02 BPL $02 [$9247] $A5:9245 80 03 BRA $03 [$924A] $A5:9247 4C 93 92 JMP $9293 [$A5:9293] $A5:924A 20 6C A0 JSR $A06C [$A5:A06C] $A5:924D A9 94 92 LDA #$9294 $A5:9250 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:9253 A9 03 00 LDA #$0003 ;\ $A5:9256 22 C1 8F 80 JSL $808FC1[$80:8FC1] ;} Queue elevator music track $A5:925A A9 A0 01 LDA #$01A0 $A5:925D 8D AA 0F STA $0FAA [$7E:0FAA] ; Counter $A5:9260 A9 B9 97 LDA #$97B9 $A5:9263 8D 92 0F STA $0F92 [$7E:0F92] ; Draygon PLM instructions $A5:9266 A9 01 00 LDA #$0001 $A5:9269 8D 94 0F STA $0F94 [$7E:0F94] $A5:926C AD 86 0F LDA $0F86 [$7E:0F86] $A5:926F 09 00 02 ORA #$0200 $A5:9272 8D 06 10 STA $1006 [$7E:1006] $A5:9275 8D 46 10 STA $1046 [$7E:1046] $A5:9278 A0 9C 99 LDY #$999C $A5:927B AF 00 80 7E LDA $7E8000[$7E:8000] $A5:927F F0 03 BEQ $03 [$9284] $A5:9284 8C D2 0F STY $0FD2 [$7E:0FD2] ; Eyes PLM instructions $A5:9287 A9 01 00 LDA #$0001 $A5:928A 8D D4 0F STA $0FD4 [$7E:0FD4] $A5:928D A9 4B 80 LDA #$804B $A5:9290 8D E8 0F STA $0FE8 [$7E:0FE8] $A5:9293 60 RTS } ; 9294: AI Script - Unk 18 { $A5:9294 20 EA 92 JSR $92EA [$A5:92EA] $A5:9297 CE AA 0F DEC $0FAA [$7E:0FAA] ; Counter $A5:929A AD AA 0F LDA $0FAA [$7E:0FAA] ; Counter $A5:929D F0 05 BEQ $05 [$92A4] $A5:929F 20 E0 9F JSR $9FE0 [$A5:9FE0] $A5:92A2 80 06 BRA $06 [$92AA] $A5:92A4 A9 AB 92 LDA #$92AB $A5:92A7 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:92AA 60 RTS } ; $92AB: AI Script - Unk 19 { $A5:92AB 20 EA 92 JSR $92EA [$A5:92EA] $A5:92AE 20 E0 9F JSR $9FE0 [$A5:9FE0] $A5:92B1 EE 7E 0F INC $0F7E [$7E:0F7E] ; Y coord $A5:92B4 AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:92B7 C9 40 02 CMP #$0240 $A5:92BA 30 2D BMI $2D [$92E9] $A5:92BC A9 ED 98 LDA #$98ED $A5:92BF 8D 92 0F STA $0F92 [$7E:0F92] ; Draygon PLM instructions $A5:92C2 A9 01 00 LDA #$0001 $A5:92C5 8D 94 0F STA $0F94 [$7E:0F94] $A5:92C8 AD 86 0F LDA $0F86 [$7E:0F86] $A5:92CB 09 00 02 ORA #$0200 $A5:92CE 8D 86 0F STA $0F86 [$7E:0F86] $A5:92D1 8D C6 0F STA $0FC6 [$7E:0FC6] $A5:92D4 AE 9F 07 LDX $079F [$7E:079F] $A5:92D7 BF 28 D8 7E LDA $7ED828,x[$7E:D82C] $A5:92DB 09 01 00 ORA #$0001 $A5:92DE 9F 28 D8 7E STA $7ED828,x[$7E:D82C] $A5:92E2 22 3D BB A0 JSL $A0BB3D[$A0:BB3D] $A5:92E6 20 C6 A0 JSR $A0C6 [$A5:A0C6] $A5:92E9 60 RTS } ; $92EA: Routine { $A5:92EA 5A PHY $A5:92EB DA PHX $A5:92EC AD B6 05 LDA $05B6 [$7E:05B6] ; Frame counter $A5:92EF 29 07 00 AND #$0007 $A5:92F2 D0 25 BNE $25 [$9319] $A5:92F4 22 11 81 80 JSL $808111[$80:8111] $A5:92F8 29 7F 00 AND #$007F $A5:92FB 18 CLC $A5:92FC 69 C0 00 ADC #$00C0 $A5:92FF 85 12 STA $12 [$7E:0012] $A5:9301 AD E5 05 LDA $05E5 [$7E:05E5] ; RNG $A5:9304 29 00 3F AND #$3F00 $A5:9307 EB XBA $A5:9308 18 CLC $A5:9309 69 90 01 ADC #$0190 $A5:930C 85 14 STA $14 [$7E:0014] $A5:930E A9 15 00 LDA #$0015 $A5:9311 85 16 STA $16 [$7E:0016] $A5:9313 64 18 STZ $18 [$7E:0018] $A5:9315 22 26 BC B4 JSL $B4BC26[$B4:BC26] $A5:9319 FA PLX $A5:931A 7A PLY $A5:931B 60 RTS } ; $931C: Routine (called a lot) ; I think it spawns random smoke on top of Draygon? { $A5:931C BD A4 0F LDA $0FA4,x[$7E:0FA4] ; Room framecounter? $A5:931F 29 7F 00 AND #$007F $A5:9322 D0 1D BNE $1D [$9341] ; Run every 0x80 frames { $A5:9324 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:9327 18 CLC $A5:9328 69 F0 FF ADC #$FFF0 $A5:932B 85 12 STA $12 [$7E:0012] $A5:932D AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:9330 18 CLC $A5:9331 69 F0 FF ADC #$FFF0 $A5:9334 85 14 STA $14 [$7E:0014] $A5:9336 A9 18 00 LDA #$0018 $A5:9339 85 16 STA $16 [$7E:0016] $A5:933B 64 18 STZ $18 [$7E:0018] $A5:933D 22 26 BC B4 JSL $B4BC26[$B4:BC26] ; Create a sprite } $A5:9341 60 RTS } ; $9342: Hmm, routine stored in $178C, called from $A0 (Drawing graphics related?) { $A5:9342 AD 11 09 LDA $0911 [$7E:0911] $A5:9345 38 SEC $A5:9346 ED 7A 0F SBC $0F7A [$7E:0F7A] ; X coord $A5:9349 38 SEC $A5:934A E9 C2 01 SBC #$01C2 $A5:934D 18 CLC $A5:934E 6F 3C 88 7E ADC $7E883C[$7E:883C] $A5:9352 85 B5 STA $B5 [$7E:00B5] $A5:9354 AD 15 09 LDA $0915 [$7E:0915] $A5:9357 38 SEC $A5:9358 ED 7E 0F SBC $0F7E [$7E:0F7E] ; Y coord $A5:935B 38 SEC $A5:935C E9 C0 00 SBC #$00C0 $A5:935F 18 CLC $A5:9360 6F 3E 88 7E ADC $7E883E[$7E:883E] $A5:9364 85 B7 STA $B7 [$7E:00B7] $A5:9366 6B RTL $A5:94A9 A0 08 00 LDY #$0008 $A5:94AC BF 00 80 7E LDA $7E8000,x[$7E:8000] $A5:94B0 D0 03 BNE $03 [$94B5] $A5:94B5 98 TYA $A5:94B6 18 CLC $A5:94B7 6D 7A 0F ADC $0F7A [$7E:0F7A] ; X coord $A5:94BA 8D F6 0A STA $0AF6 [$7E:0AF6] ; X position in pixels? $A5:94BD AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:94C0 18 CLC $A5:94C1 69 28 00 ADC #$0028 $A5:94C4 8D FA 0A STA $0AFA [$7E:0AFA] $A5:94C7 22 A1 B7 A0 JSL $A0B7A1[$A0:B7A1] $A5:94CB AD 64 0A LDA $0A64 [$7E:0A64] $A5:94CE 89 02 00 BIT #$0002 $A5:94D1 F0 09 BEQ $09 [$94DC] $A5:94D3 9C 64 0A STZ $0A64 [$7E:0A64] $A5:94D6 A9 54 91 LDA #$9154 $A5:94D9 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:94DC 60 RTS } ; $94DD: Not executed? { $A5:94DD 5A PHY $A5:94DE B9 00 00 LDA $0000,y[$A5:97D3] $A5:94E1 8D 92 0F STA $0F92 [$7E:0F92] ; Draygon PLM instructions $A5:94E4 B9 02 00 LDA $0002,y[$A5:97D5] $A5:94E7 8D D2 0F STA $0FD2 [$7E:0FD2] ; Eyes PLM instructions $A5:94EA B9 04 00 LDA $0004,y[$A5:97D7] $A5:94ED 8D 12 10 STA $1012 [$7E:1012] ; Tail PLM instructions $A5:94F0 B9 06 00 LDA $0006,y[$A5:97D9] $A5:94F3 8D 52 10 STA $1052 [$7E:1052] ; Arm PLM instructions $A5:94F6 A9 01 00 LDA #$0001 $A5:94F9 8D 94 0F STA $0F94 [$7E:0F94] $A5:94FC 8D D4 0F STA $0FD4 [$7E:0FD4] $A5:94FF 8D 14 10 STA $1014 [$7E:1014] $A5:9502 8D 54 10 STA $1054 [$7E:1054] $A5:9505 7A PLY $A5:9506 98 TYA $A5:9507 18 CLC $A5:9508 69 08 00 ADC #$0008 $A5:950B A8 TAY $A5:950C 6B RTL } ;;; $954D: Hurt AI - enemy $DE3F (Draygon) ;;; { $A5:954D A0 77 A2 LDY #$A277 $A5:9550 AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:9553 BD 9C 0F LDA $0F9C,x[$7E:0F9C] $A5:9556 89 02 00 BIT #$0002 $A5:9559 F0 03 BEQ $03 [$955E] $A5:955B A0 97 A2 LDY #$A297 $A5:955E A2 A0 C0 LDX #$C0A0 $A5:9561 A9 10 00 LDA #$0010 $A5:9564 8D 0B 06 STA $060B [$7E:060B] $A5:9567 B9 00 00 LDA $0000,y[$A5:A277] $A5:956A 9F 00 00 7E STA $7E0000,x[$7E:C0A0] $A5:956E E8 INX $A5:956F E8 INX $A5:9570 C8 INY $A5:9571 C8 INY $A5:9572 CE 0B 06 DEC $060B [$7E:060B] $A5:9575 D0 F0 BNE $F0 [$9567] $A5:9577 AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:957A BD 9C 0F LDA $0F9C,x[$7E:0F9C] $A5:957D 89 02 00 BIT #$0002 $A5:9580 D0 1A BNE $1A [$959C] $A5:9582 AF 1C 78 7E LDA $7E781C[$7E:781C] $A5:9586 0A ASL A $A5:9587 0A ASL A $A5:9588 A8 TAY $A5:9589 A2 00 00 LDX #$0000 $A5:958C B9 AF 96 LDA $96AF,y[$A5:96AF] $A5:958F 9F B2 C0 7E STA $7EC0B2,x[$7E:C0B2] $A5:9593 C8 INY $A5:9594 C8 INY $A5:9595 E8 INX $A5:9596 E8 INX $A5:9597 E0 08 00 CPX #$0008 $A5:959A D0 F0 BNE $F0 [$958C] $A5:959C A0 F7 A1 LDY #$A1F7 $A5:959F AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:95A2 BD 9C 0F LDA $0F9C,x[$7E:0F9C] $A5:95A5 89 02 00 BIT #$0002 $A5:95A8 F0 03 BEQ $03 [$95AD] $A5:95AA A0 97 A2 LDY #$A297 $A5:95AD A2 E0 C1 LDX #$C1E0 $A5:95B0 A9 10 00 LDA #$0010 $A5:95B3 8D 0B 06 STA $060B [$7E:060B] $A5:95B6 B9 00 00 LDA $0000,y[$A5:A1F7] $A5:95B9 9F 00 00 7E STA $7E0000,x[$7E:C1E0] $A5:95BD E8 INX $A5:95BE E8 INX $A5:95BF C8 INY $A5:95C0 C8 INY $A5:95C1 CE 0B 06 DEC $060B [$7E:060B] $A5:95C4 D0 F0 BNE $F0 [$95B6] $A5:95C6 AD 64 0A LDA $0A64 [$7E:0A64] $A5:95C9 89 01 00 BIT #$0001 $A5:95CC F0 1B BEQ $1B [$95E9] $A5:95CE ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; $A5:95E9 6B RTL } ;;; $95EA: Enemy touch - enemy $DE3F (Draygon) ;;; { $A5:95EA 22 97 A4 A0 JSL $A0A497[$A0:A497] $A5:95EE 80 1D BRA $1D [$960D] } ;;; $95F0: Enemy shot - enemy $DE7F (Draygon) ;;; { $A5:95F0 AF 1E 78 7E LDA $7E781E[$7E:781E] $A5:95F4 18 CLC $A5:95F5 69 08 00 ADC #$0008 $A5:95F8 C9 A0 00 CMP #$00A0 $A5:95FB 10 04 BPL $04 [$9601] $A5:95FD 8F 1E 78 7E STA $7E781E[$7E:781E] $A5:9601 22 A7 A6 A0 JSL $A0A6A7[$A0:A6A7] $A5:9605 80 06 BRA $06 [$960D] } ;;; $9607: Power bomb reaction - enemy $DE3F (Draygon) ;;; { $A5:9607 22 B7 A5 A0 JSL $A0A5B7[$A0:A5B7] $A5:960B 80 00 BRA $00 [$960D] } ;;; $960D: Draygon reaction ;;; { $A5:960D AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:9610 BD 8C 0F LDA $0F8C,x[$7E:0F8C] $A5:9613 F0 03 BEQ $03 [$9618] $A5:9615 4C AB 96 JMP $96AB [$A5:96AB] $A5:9618 A9 C5 C8 LDA #$C8C5 $A5:961B 8D 32 0D STA $0D32 [$7E:0D32] $A5:961E A0 67 98 LDY #$9867 $A5:9621 AF 00 80 7E LDA $7E8000[$7E:8000] $A5:9625 F0 03 BEQ $03 [$962A] $A5:9627 A0 5A 9C LDY #$9C5A $A5:962A 8C 92 0F STY $0F92 [$7E:0F92] ; Draygon PLM instructions $A5:962D A9 01 00 LDA #$0001 $A5:9630 8D 94 0F STA $0F94 [$7E:0F94] $A5:9633 A0 7A 99 LDY #$997A $A5:9636 AF 00 80 7E LDA $7E8000[$7E:8000] $A5:963A F0 03 BEQ $03 [$963F] $A5:963C A0 1C 9D LDY #$9D1C $A5:963F 8C D2 0F STY $0FD2 [$7E:0FD2] ; Eyes PLM instructions $A5:9642 A9 01 00 LDA #$0001 $A5:9645 8D D4 0F STA $0FD4 [$7E:0FD4] $A5:9648 A9 4B 80 LDA #$804B $A5:964B 8D E8 0F STA $0FE8 [$7E:0FE8] $A5:964E A9 85 91 LDA #$9185 $A5:9651 8D A8 0F STA $0FA8 [$7E:0FA8] $A5:9654 22 D4 E2 90 JSL $90E2D4[$90:E2D4] $A5:9658 9C 64 0A STZ $0A64 [$7E:0A64] $A5:965B A9 00 01 LDA #$0100 $A5:965E 38 SEC $A5:965F ED 7A 0F SBC $0F7A [$7E:0F7A] ; X coord $A5:9662 85 12 STA $12 [$7E:0012] $A5:9664 A9 E0 01 LDA #$01E0 $A5:9667 38 SEC $A5:9668 ED 7E 0F SBC $0F7E [$7E:0F7E] ; Y coord $A5:966B 85 14 STA $14 [$7E:0014] $A5:966D 22 AE C0 A0 JSL $A0C0AE[$A0:C0AE] $A5:9671 38 SEC $A5:9672 E9 40 00 SBC #$0040 $A5:9675 49 FF FF EOR #$FFFF $A5:9678 1A INC A $A5:9679 29 FF 00 AND #$00FF $A5:967C 8F 06 88 7E STA $7E8806[$7E:8806] $A5:9680 A9 01 00 LDA #$0001 $A5:9683 85 14 STA $14 [$7E:0014] $A5:9685 AF 06 88 7E LDA $7E8806[$7E:8806] $A5:9689 29 FF 00 AND #$00FF $A5:968C 85 12 STA $12 [$7E:0012] $A5:968E 22 43 B6 A0 JSL $A0B643[$A0:B643] $A5:9692 A5 16 LDA $16 [$7E:0016] $A5:9694 8F 10 80 7E STA $7E8010[$7E:8010] $A5:9698 A5 18 LDA $18 [$7E:0018] $A5:969A 8F 12 80 7E STA $7E8012[$7E:8012] $A5:969E A5 1A LDA $1A [$7E:001A] $A5:96A0 8F 14 80 7E STA $7E8014[$7E:8014] $A5:96A4 A5 1C LDA $1C [$7E:001C] $A5:96A6 8F 16 80 7E STA $7E8016[$7E:8016] $A5:96AA 6B RTL $A5:96AB 20 01 97 JSR $9701 [$A5:9701] $A5:96AE 6B RTL } $A5:96AF db 19, 03, 54, 02, 8F, 01, CA, 00, BA, 02, F4, 01, 4F, 01, AA, 00, 3B, 02, B5, 01, 2F, 01, 89, 00, DC, 01, 55, 01, EF, 00, 69, 00, 5C, 01, 16, 01, B0, 00, 69, 00, FD, 00, B6, 00, 70, 00, 49, 00, 7E, 00, 77, 00, 50, 00, 28, 00, 1F, 00, 17, 00, 10, 00, 08, 00, 82, 14, 94, 11, A6, 0E, B8, 0B, CA, 08, DC, 05, EE, 02, 00, 00 $A5:9701 A2 00 00 LDX #$0000 $A5:9704 AD 8C 0F LDA $0F8C [$7E:0F8C] $A5:9707 DD EF 96 CMP $96EF,x[$A5:96EF] $A5:970A 10 04 BPL $04 [$9710] $A5:970C E8 INX $A5:970D E8 INX $A5:970E 80 F4 BRA $F4 [$9704] $A5:9710 8A TXA $A5:9711 CF 1C 78 7E CMP $7E781C[$7E:781C] $A5:9715 F0 1E BEQ $1E [$9735] $A5:9717 8F 1C 78 7E STA $7E781C[$7E:781C] $A5:971B AF 1C 78 7E LDA $7E781C[$7E:781C] $A5:971F 0A ASL A $A5:9720 0A ASL A $A5:9721 A8 TAY $A5:9722 A2 00 00 LDX #$0000 $A5:9725 B9 AF 96 LDA $96AF,y[$A5:96B7] $A5:9728 9F B2 C0 7E STA $7EC0B2,x[$7E:C0B2] $A5:972C C8 INY $A5:972D C8 INY $A5:972E E8 INX $A5:972F E8 INX $A5:9730 E0 08 00 CPX #$0008 $A5:9733 D0 F0 BNE $F0 [$9725] $A5:9735 60 RTS $A5:973F 5A PHY $A5:9740 DA PHX $A5:9741 20 8B 97 JSR $978B [$A5:978B] $A5:9744 A9 15 00 LDA #$0015 $A5:9747 85 16 STA $16 [$7E:0016] $A5:9749 64 18 STZ $18 [$7E:0018] $A5:974B 22 26 BC B4 JSL $B4BC26[$B4:BC26] $A5:974F FA PLX $A5:9750 7A PLY $A5:9751 6B RTL $A5:9752 5A PHY $A5:9753 DA PHX $A5:9754 20 8B 97 JSR $978B [$A5:978B] $A5:9757 A9 03 00 LDA #$0003 $A5:975A 85 16 STA $16 [$7E:0016] $A5:975C 64 18 STZ $18 [$7E:0018] $A5:975E 22 26 BC B4 JSL $B4BC26[$B4:BC26] $A5:9762 FA PLX $A5:9763 7A PLY $A5:9764 6B RTL $A5:9765 5A PHY $A5:9766 DA PHX $A5:9767 20 8B 97 JSR $978B [$A5:978B] $A5:976A A9 1D 00 LDA #$001D $A5:976D 85 16 STA $16 [$7E:0016] $A5:976F 64 18 STZ $18 [$7E:0018] $A5:9771 22 26 BC B4 JSL $B4BC26[$B4:BC26] $A5:9775 FA PLX $A5:9776 7A PLY $A5:9777 6B RTL $A5:9778 5A PHY $A5:9779 DA PHX $A5:977A 20 8B 97 JSR $978B [$A5:978B] $A5:977D A9 18 00 LDA #$0018 $A5:9780 85 16 STA $16 [$7E:0016] $A5:9782 64 18 STZ $18 [$7E:0018] $A5:9784 22 26 BC B4 JSL $B4BC26[$B4:BC26] $A5:9788 FA PLX $A5:9789 7A PLY $A5:978A 6B RTL $A5:978B 22 11 81 80 JSL $808111[$80:8111] $A5:978F AD E5 05 LDA $05E5 [$7E:05E5] ; RNG $A5:9792 29 7F 00 AND #$007F $A5:9795 38 SEC $A5:9796 E9 40 00 SBC #$0040 $A5:9799 85 12 STA $12 [$7E:0012] $A5:979B AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:979E 18 CLC $A5:979F 65 12 ADC $12 [$7E:0012] $A5:97A1 85 12 STA $12 [$7E:0012] $A5:97A3 AD E5 05 LDA $05E5 [$7E:05E5] ; RNG $A5:97A6 29 00 7F AND #$7F00 $A5:97A9 EB XBA $A5:97AA 38 SEC $A5:97AB E9 40 00 SBC #$0040 $A5:97AE 85 14 STA $14 [$7E:0014] $A5:97B0 AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:97B3 18 CLC $A5:97B4 65 14 ADC $14 [$7E:0014] $A5:97B6 85 14 STA $14 [$7E:0014] $A5:97B8 60 RTS $A5:97B9 db 2F, 81, DD, 94, 89, 98, 44, 99, C6, 99, E7, 97, 95, 98, 7B, C4, 8D, C4, 01, 00, BB, A3, 2F, 81, DD, 94, 7E, 9C, D6, 9C, 68, 9D, DA, 9B, 95, 98, 7B, C4, 13, C5, 01, 00, E3, A6, 2F, 81, 05, 00, DF, A2, 05, 00, E9, A2, 05, 00, F3, A2, 05, 00, FD, A2, 05, 00, 07, A3, 05, 00, 11, A3, ED, 80, E7, 97 $A5:9813 db 01, 00, C5, A3, 01, 00, CF, A3, 01, 00, D9, A3, 40, 00, E3, A3, 2F, 81 $A5:9867 db 05, 00, 1B, A3, 05, 00, 25, A3, 05, 00, 2F, A3, 05, 00, 39, A3, ED, 80, 9B, 98 $A5:9889 db 95, 98, 7B, C4, 8D, C4, 01, 00, BB, A3, 2F, 81 $A5:9895 A9 0C 00 LDA #$000C $A5:9898 85 A9 STA $A9 [$7E:00A9] $A5:989A 6B RTL $A5:989B db 6E, 9F, 1B, 00, EF, 98, 23, 81, 08, 00, 3A, 81, 0C, 00, 65, 97, 52, 97, 3F, 97, 78, 97, 60, 9F, 25, 00, 10, 81, A5, 98 $A5:98ED db 7C, 80 $A5:98EF DA PHX $A5:98F0 AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:98F3 AD 86 0F LDA $0F86 [$7E:0F86] $A5:98F6 09 00 04 ORA #$0400 $A5:98F9 8D 86 0F STA $0F86 [$7E:0F86] $A5:98FC FA PLX $A5:98FD 6B RTL $A5:98FE db 01, 00, 43, A3, 02, 00, 4D, A3, 03, 00, 57, A3, 7C, 9F, 60, 9F, 4C, 00, 03, 00, 61, A3, 02, 00, 57, A3, 02, 00, 4D, A3, 01, 00, 43, A3, 2F, 81 $A5:997A db 23, 81, 04, 00, 04, 00, 93, A3, 04, 00, A7, A3, 04, 00, 9D, A3, 04, 00, B1, A3, 10, 81, 7E, 99, 20, 00, 89, A3 $A5:999C db 20, 00, 89, A3, 20, 00, 7F, A3, 20, 00, 75, A3, 01, 00, 6B, A3, 2F, 81, 01, 00, 93, A3, 2F, 81, 01, 00, 9D, A3, 2F, 81, 01, 00, A7, A3, 2F, 81, 01, 00, B1, A3, 2F, 81, 08, 00, 0B, A4, 07, 00, 1D, A4, 06, 00, 2F, A4, 06, 00, 41, A4, 06, 00, 53, A4, 06, 00, 65, A4, 06, 00, 77, A4, 06, 00, 65, A4, 06, 00, 53, A4, 06, 00, 41, A4, 06, 00, 2F, A4, 07, 00, 1D, A4, ED, 80, C6, 99 $A5:99FC db 0A, 9E, FF, FF, FF, FF, 10, 00, 2F, A4, 0A, 9E, FE, FF, FE, FF, 06, 00, 89, A4, 0A, 9E, FD, FF, FD, FF, 05, 00, A3, A4, 0A, 9E, FC, FF, FC, FF, 04, 00, C5, A4, 0A, 9E, FB, FF, FB, FF, 03, 00, EF, A4, 0A, 9E, FA, FF, FA, FF, 02, 00, 21, A5, 0A, 9E, F8, FF, F8, FF, 01, 00, 5B, A5, 0A, 9E, 00, 00, 00, 00, 10, 00, 9D, A5, 01, 00, 5B, A5, 02, 00, 21, A5, 03, 00, EF, A4, 04, 00, C5, A4, 05, 00, A3, A4, 06, 00, 89, A4, ED, 80, C6, 99 $A5:9B9A DA PHX $A5:9B9B 5A PHY $A5:9B9C A9 18 00 LDA #$0018 $A5:9B9F 8F 1E 78 7E STA $7E781E[$7E:781E] $A5:9BA3 AE 78 0F LDX $0F78 [$7E:0F78] $A5:9BA6 BF 06 00 A0 LDA $A00006,x[$A0:DE45] $A5:9BAA 22 5E A4 A0 JSL $A0A45E[$A0:A45E] $A5:9BAE 22 51 DF 91 JSL $91DF51[$91:DF51] $A5:9BB2 A9 20 00 LDA #$0020 $A5:9BB5 8D 40 18 STA $1840 [$7E:1840] $A5:9BB8 A9 07 00 LDA #$0007 $A5:9BBB 8D 3E 18 STA $183E [$7E:183E] $A5:9BBE AD F6 0A LDA $0AF6 [$7E:0AF6] ; X position in pixels? $A5:9BC1 85 12 STA $12 [$7E:0012] $A5:9BC3 AD FA 0A LDA $0AFA [$7E:0AFA] $A5:9BC6 18 CLC $A5:9BC7 69 10 00 ADC #$0010 $A5:9BCA 85 14 STA $14 [$7E:0014] $A5:9BCC A9 15 00 LDA #$0015 $A5:9BCF 85 16 STA $16 [$7E:0016] $A5:9BD1 64 18 STZ $18 [$7E:0018] $A5:9BD3 22 26 BC B4 JSL $B4BC26[$B4:BC26] $A5:9BD7 7A PLY $A5:9BD8 FA PLX $A5:9BD9 6B RTL $A5:9BDA db 05, 00, 07, A6, 05, 00, 11, A6, 05, 00, 1B, A6, 05, 00, 25, A6, 05, 00, 2F, A6, 05, 00, 39, A6, ED, 80, DA, 9B $A5:9C06 db 01, 00, ED, A6, 01, 00, F7, A6, 01, 00, 01, A7, 40, 00, 0B, A7, 2F, 81 $A5:9C38 db 01, 00, ED, A6, 01, 00, F7, A6, 01, 00, 01, A7, 08, 00, 0B, A7, 01, 00, 01, A7, 01, 00, F7, A6, 01, 00, ED, A6, 01, 00, F7, A6, 2F, 81, 05, 00, 43, A6, 05, 00, 4D, A6, 05, 00, 57, A6, 05, 00, 61, A6, ED, 80, 9B, 98 $A5:9C90 db 01, 00, 6B, A6, 02, 00, 75, A6, 03, 00, 7F, A6, AE, 9F, 60, 9F, 4C, 00, 03, 00, 89, A6, 02, 00, 7F, A6, 02, 00, 75, A6, 01, 00, 6B, A6, 2F, 81, 60, 9F, 73, 00, 06, 00, 6B, A6, 06, 00, 75, A6, 06, 00, 7F, A6, 06, 00, 89, A6, 06, 00, 7F, A6, 06, 00, 75, A6, 06, 00, 6B, A6, 2F, 81, 15, 00, 93, A6 $A5:9D1C db 23, 81, 04, 00, 04, 00, BB, A6, 04, 00, CF, A6, 04, 00, C5, A6, 04, 00, D9, A6, 10, 81, 20, 9D, 20, 00, B1, A6, 10, 00, A7, A6 $A5:9D50 db 01, 00, BB, A6, 2F, 81, 01, 00, C5, A6, 2F, 81, 01, 00, CF, A6 $A5:9D62 db 01, 00, D9, A6, 2F, 81, 08, 00, 79, A7, 07, 00, 8B, A7, 06, 00, 9D, A7, 06, 00, AF, A7, 06, 00, C1, A7, 06, 00, D3, A7, 06, 00, E5, A7, 06, 00, D3, A7, 06, 00, C1, A7, 06, 00, AF, A7, 06, 00, 9D, A7, 07, 00, 8B, A7, ED, 80, 68, 9D $A5:9E0A DA PHX $A5:9E0B 5A PHY $A5:9E0C B9 00 00 LDA $0000,y[$A5:99FE] $A5:9E0F 8F 3C 88 7E STA $7E883C[$7E:883C] $A5:9E13 B9 02 00 LDA $0002,y[$A5:9A00] $A5:9E16 8F 3E 88 7E STA $7E883E[$7E:883E] $A5:9E1A 7A PLY $A5:9E1B FA PLX $A5:9E1C C8 INY $A5:9E1D C8 INY $A5:9E1E C8 INY $A5:9E1F C8 INY $A5:9E20 6B RTL $A5:9EA1 db 0A, 9E, 01, 00, FF, FF, 02, 00, 9D, A7, 0A, 9E, 02, 00, FE, FF, 06, 00, F7, A7, 0A, 9E, 03, 00, FD, FF, 05, 00, 11, A8, 0A, 9E, 04, 00, FC, FF, 04, 00, 33, A8, 0A, 9E, 05, 00, FB, FF, 03, 00, 5D, A8, 0A, 9E, 06, 00, FA, FF, 02, 00, 8F, A8, 0A, 9E, 08, 00, F8, FF, 01, 00, C9, A8, 0A, 9E, 00, 00, 00, 00, 9A, 9B, 60, 9F, 25, 00, 03, 00, 0B, A9, 01, 00, C9, A8, 02, 00, 8F, A8, 03, 00, 5D, A8, 04, 00, 33, A8, 05, 00, 11, A8, 06, 00, F7, A7, ED, 80, 68, 9D $A5:9F60 DA PHX $A5:9F61 5A PHY $A5:9F62 B9 00 00 LDA $0000,y[$A5:9CA0] $A5:9F65 22 CB 90 80 JSL $8090CB[$80:90CB] $A5:9F69 7A PLY $A5:9F6A FA PLX $A5:9F6B C8 INY $A5:9F6C C8 INY $A5:9F6D 6B RTL $A5:9F6E DA PHX $A5:9F6F 5A PHY $A5:9F70 B9 00 00 LDA $0000,y[$A5:989D] $A5:9F73 22 4D 91 80 JSL $80914D[$80:914D] $A5:9F77 7A PLY $A5:9F78 FA PLX $A5:9F79 C8 INY $A5:9F7A C8 INY $A5:9F7B 6B RTL $A5:9F7C DA PHX $A5:9F7D 5A PHY $A5:9F7E AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:9F81 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:9F84 18 CLC $A5:9F85 69 E4 FF ADC #$FFE4 $A5:9F88 85 12 STA $12 [$7E:0012] $A5:9F8A AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:9F8D 18 CLC $A5:9F8E 69 F0 FF ADC #$FFF0 $A5:9F91 85 14 STA $14 [$7E:0014] $A5:9F93 22 11 81 80 JSL $808111[$80:8111] $A5:9F97 29 3F 00 AND #$003F $A5:9F9A 18 CLC $A5:9F9B 69 80 00 ADC #$0080 $A5:9F9E 8D 95 19 STA $1995 [$7E:1995] $A5:9FA1 A0 50 8E LDY #$8E50 $A5:9FA4 A9 02 00 LDA #$0002 $A5:9FA7 22 27 80 86 JSL $868027[$86:8027] ; Spawn enemy specific projectiles $A5:9FAB 7A PLY $A5:9FAC FA PLX $A5:9FAD 6B RTL $A5:9FAE DA PHX $A5:9FAF 5A PHY $A5:9FB0 AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:9FB3 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:9FB6 18 CLC $A5:9FB7 69 18 00 ADC #$0018 $A5:9FBA 85 12 STA $12 [$7E:0012] $A5:9FBC AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:9FBF 18 CLC $A5:9FC0 69 F0 FF ADC #$FFF0 $A5:9FC3 85 14 STA $14 [$7E:0014] $A5:9FC5 22 11 81 80 JSL $808111[$80:8111] $A5:9FC9 29 3F 00 AND #$003F $A5:9FCC 18 CLC $A5:9FCD 69 C0 00 ADC #$00C0 $A5:9FD0 8D 95 19 STA $1995 [$7E:1995] $A5:9FD3 A0 50 8E LDY #$8E50 $A5:9FD6 A9 02 00 LDA #$0002 $A5:9FD9 22 27 80 86 JSL $868027[$86:8027] ; Spawn enemy specific projectiles $A5:9FDD 7A PLY $A5:9FDE FA PLX $A5:9FDF 6B RTL $A5:9FE0 5A PHY $A5:9FE1 A2 3E 00 LDX #$003E $A5:9FE4 A0 14 00 LDY #$0014 $A5:9FE7 B9 DF A1 LDA $A1DF,y[$A5:A1F3] $A5:9FEA 18 CLC $A5:9FEB 69 40 00 ADC #$0040 $A5:9FEE 89 80 00 BIT #$0080 $A5:9FF1 F0 19 BEQ $19 [$A00C] $A5:9FF3 BF 78 F1 7E LDA $7EF178,x[$7E:F1B0] $A5:9FF7 18 CLC $A5:9FF8 79 AF A1 ADC $A1AF,y[$A5:A1B7] $A5:9FFB 9F 78 F1 7E STA $7EF178,x[$7E:F1B0] $A5:9FFF BF F8 F0 7E LDA $7EF0F8,x[$7E:F130] $A5:A003 69 00 00 ADC #$0000 $A5:A006 9F F8 F0 7E STA $7EF0F8,x[$7E:F130] $A5:A00A 80 17 BRA $17 [$A023] $A5:A00C BF 78 F1 7E LDA $7EF178,x[$7E:F1B6] $A5:A010 38 SEC $A5:A011 F9 AF A1 SBC $A1AF,y[$A5:A1C3] $A5:A014 9F 78 F1 7E STA $7EF178,x[$7E:F1B6] $A5:A018 BF F8 F0 7E LDA $7EF0F8,x[$7E:F136] $A5:A01C ED 24 0E SBC $0E24 [$7E:0E24] $A5:A01F 9F F8 F0 7E STA $7EF0F8,x[$7E:F136] $A5:A023 B9 DF A1 LDA $A1DF,y[$A5:A1F3] $A5:A026 18 CLC $A5:A027 69 80 00 ADC #$0080 $A5:A02A 89 80 00 BIT #$0080 $A5:A02D F0 19 BEQ $19 [$A048] $A5:A02F BF 78 F2 7E LDA $7EF278,x[$7E:F2B6] $A5:A033 18 CLC $A5:A034 79 B1 A1 ADC $A1B1,y[$A5:A1C5] $A5:A037 9F 78 F2 7E STA $7EF278,x[$7E:F2B6] $A5:A03B BF F8 F1 7E LDA $7EF1F8,x[$7E:F236] $A5:A03F 69 00 00 ADC #$0000 $A5:A042 9F F8 F1 7E STA $7EF1F8,x[$7E:F236] $A5:A046 80 17 BRA $17 [$A05F] $A5:A05F CA DEX $A5:A060 CA DEX $A5:A061 88 DEY $A5:A062 88 DEY $A5:A063 88 DEY $A5:A064 88 DEY $A5:A065 10 02 BPL $02 [$A069] $A5:A067 7A PLY $A5:A068 60 RTS $A5:A069 4C E7 9F JMP $9FE7 [$A5:9FE7] $A5:A06C DA PHX $A5:A06D 5A PHY $A5:A06E A2 3E 00 LDX #$003E $A5:A071 A9 00 00 LDA #$0000 $A5:A074 9F 78 EF 7E STA $7EEF78,x[$7E:EFB6] $A5:A078 CA DEX $A5:A079 CA DEX $A5:A07A 10 F8 BPL $F8 [$A074] $A5:A07C A2 02 00 LDX #$0002 $A5:A07F A0 14 00 LDY #$0014 $A5:A082 B9 C7 A1 LDA $A1C7,y[$A5:A1DB] $A5:A085 85 12 STA $12 [$7E:0012] $A5:A087 B9 C9 A1 LDA $A1C9,y[$A5:A1DD] $A5:A08A 85 14 STA $14 [$7E:0014] $A5:A08C A9 3B 00 LDA #$003B $A5:A08F 85 16 STA $16 [$7E:0016] $A5:A091 A9 00 0E LDA #$0E00 $A5:A094 85 18 STA $18 [$7E:0018] $A5:A096 22 26 BC B4 JSL $B4BC26[$B4:BC26] $A5:A09A 88 DEY $A5:A09B 88 DEY $A5:A09C 88 DEY $A5:A09D 88 DEY $A5:A09E CA DEX $A5:A09F 10 E1 BPL $E1 [$A082] $A5:A0A1 A2 02 00 LDX #$0002 $A5:A0A4 B9 C7 A1 LDA $A1C7,y[$A5:A1CF] $A5:A0A7 85 12 STA $12 [$7E:0012] $A5:A0A9 B9 C9 A1 LDA $A1C9,y[$A5:A1D1] $A5:A0AC 85 14 STA $14 [$7E:0014] $A5:A0AE A9 3C 00 LDA #$003C $A5:A0B1 85 16 STA $16 [$7E:0016] $A5:A0B3 A9 00 0E LDA #$0E00 $A5:A0B6 85 18 STA $18 [$7E:0018] $A5:A0B8 22 26 BC B4 JSL $B4BC26[$B4:BC26] $A5:A0BC 88 DEY $A5:A0BD 88 DEY $A5:A0BE 88 DEY $A5:A0BF 88 DEY $A5:A0C0 CA DEX $A5:A0C1 10 E1 BPL $E1 [$A0A4] $A5:A0C3 7A PLY $A5:A0C4 FA PLX $A5:A0C5 60 RTS $A5:A0C6 DA PHX $A5:A0C7 5A PHY $A5:A0C8 A2 3E 00 LDX #$003E $A5:A0CB A9 00 00 LDA #$0000 $A5:A0CE 9F 78 EF 7E STA $7EEF78,x[$7E:EFB6] $A5:A0D2 CA DEX $A5:A0D3 CA DEX $A5:A0D4 10 F8 BPL $F8 [$A0CE] $A5:A0D6 7A PLY $A5:A0D7 FA PLX $A5:A0D8 60 RTS ; $A0D9: Routine - Run once during initialization ; I think it creates the Draygon babies? { $A5:A0D9 DA PHX $A5:A0DA 5A PHY $A5:A0DB A9 10 00 LDA #$0010 $A5:A0DE 85 12 STA $12 [$7E:0012] $A5:A0E0 A9 80 01 LDA #$0180 $A5:A0E3 85 14 STA $14 [$7E:0014] $A5:A0E5 A9 3B 00 LDA #$003B $A5:A0E8 85 16 STA $16 [$7E:0016] $A5:A0EA A9 00 0E LDA #$0E00 $A5:A0ED 85 18 STA $18 [$7E:0018] $A5:A0EF 22 26 BC B4 JSL $B4BC26[$B4:BC26] $A5:A0F3 A9 10 00 LDA #$0010 $A5:A0F6 85 12 STA $12 [$7E:0012] $A5:A0F8 A9 80 01 LDA #$0180 $A5:A0FB 85 14 STA $14 [$7E:0014] $A5:A0FD A9 3B 00 LDA #$003B $A5:A100 85 16 STA $16 [$7E:0016] $A5:A102 A9 00 0E LDA #$0E00 $A5:A105 85 18 STA $18 [$7E:0018] $A5:A107 22 26 BC B4 JSL $B4BC26[$B4:BC26] $A5:A10B A9 10 00 LDA #$0010 $A5:A10E 85 12 STA $12 [$7E:0012] $A5:A110 A9 80 01 LDA #$0180 $A5:A113 85 14 STA $14 [$7E:0014] $A5:A115 A9 3B 00 LDA #$003B $A5:A118 85 16 STA $16 [$7E:0016] $A5:A11A A9 00 0E LDA #$0E00 $A5:A11D 85 18 STA $18 [$7E:0018] $A5:A11F 22 26 BC B4 JSL $B4BC26[$B4:BC26] $A5:A123 A9 10 00 LDA #$0010 $A5:A126 85 12 STA $12 [$7E:0012] $A5:A128 A9 80 01 LDA #$0180 $A5:A12B 85 14 STA $14 [$7E:0014] $A5:A12D A9 3B 00 LDA #$003B $A5:A130 85 16 STA $16 [$7E:0016] $A5:A132 A9 00 0E LDA #$0E00 $A5:A135 85 18 STA $18 [$7E:0018] $A5:A137 22 26 BC B4 JSL $B4BC26[$B4:BC26] $A5:A13B 7A PLY $A5:A13C FA PLX $A5:A13D 60 RTS } ; $A13E: Routine - Makes the babies move during the opener? { $A5:A13E 5A PHY $A5:A13F A2 3E 00 LDX #$003E ; Loop { $A5:A142 8A TXA $A5:A143 38 SEC $A5:A144 E9 38 00 SBC #$0038 $A5:A147 A8 TAY $A5:A148 B9 9F A1 LDA $A19F,y[$A5:A1A5] $A5:A14B 18 CLC $A5:A14C 6F 0C 88 7E ADC $7E880C[$7E:880C] $A5:A150 30 2F BMI $2F [$A181] $A5:A152 A8 TAY $A5:A153 B9 07 CE LDA $CE07,y[$A5:CE07] $A5:A156 C9 80 80 CMP #$8080 $A5:A159 F0 3B BEQ $3B [$A196] $A5:A15B B9 07 CE LDA $CE07,y[$A5:CE07] $A5:A15E 29 FF 00 AND #$00FF $A5:A161 22 EA AF A0 JSL $A0AFEA[$A0:AFEA] $A5:A165 18 CLC $A5:A166 7F F8 F0 7E ADC $7EF0F8,x[$7E:F136] $A5:A16A 9F F8 F0 7E STA $7EF0F8,x[$7E:F136] $A5:A16E B9 08 CE LDA $CE08,y[$A5:CE08] $A5:A171 29 FF 00 AND #$00FF $A5:A174 22 EA AF A0 JSL $A0AFEA[$A0:AFEA] $A5:A178 18 CLC $A5:A179 7F F8 F1 7E ADC $7EF1F8,x[$7E:F236] $A5:A17D 9F F8 F1 7E STA $7EF1F8,x[$7E:F236] $A5:A181 CA DEX $A5:A182 CA DEX $A5:A183 E0 38 00 CPX #$0038 $A5:A186 10 BA BPL $BA [$A142] } $A5:A188 AF 0C 88 7E LDA $7E880C[$7E:880C] $A5:A18C 1A INC A $A5:A18D 1A INC A $A5:A18E 1A INC A $A5:A18F 1A INC A $A5:A190 8F 0C 88 7E STA $7E880C[$7E:880C] $A5:A194 7A PLY $A5:A195 60 RTS $A5:A196 A9 00 00 LDA #$0000 $A5:A199 9F 78 EF 7E STA $7EEF78,x[$7E:EFB6] $A5:A19D 80 E2 BRA $E2 [$A181] } $A5:A19F db 80, FC, 00, FD, 80, FD, 00, FE $A5:A1AF db DA, D4, 39, 8E, 39, 8E, DA, D4, F1, 31, 13, FB, F1, 31, 13, FB, 39, 8E, DA, D4, DA, D4, 39, 8E, 59, FF, E5, 00, E5, FF, 59, 00, 9C, 00, 0D, 00, 63, 01, 0D, 00, 1A, 02, 59, 00, A6, 02, E5, 00, 68, 00 $A5:A1E3 db 58, 00 $A5:A1E7 db 48, 00 $A5:A1EB db 38, 00 $A5:A1EF db 28, 00 $A5:A1F3 db 18, 00 ;;; $A1F7: Palette - enemy $DE3F/$DEBF/$DEFF (Draygon / Draygon's tail / Draygon's arms) ;;; { $A5:A1F7 dw 3800, 3F57, 2E4D, 00E2, 0060, 3AB0, 220B, 1166, 0924, 0319, 0254, 018F, 00CA, 581B, 1892, 0145 } $A5:A217 db 00, 38, 57, 3F, 4D, 2E, E2, 00, 60, 00, B0, 3A, 0B, 22, 66, 11, 24, 09, 19, 03, 54, 02, 8F, 01, CA, 00, 1B, 58, 92, 18, 45, 01, 00, 38, 5A, 6B, 52, 56, E7, 28, 63, 18, B5, 62, 10, 4A, 6B, 39, 29, 31 $A5:A277 db 00, 38, 57, 3F, 4D, 2E, E2, 00, 60, 00, B0, 3A, 0B, 22, 66, 11, 24, 09, 19, 03, 54, 02, 8F, 01, CA, 00, 1B, 58, 92, 18, 45, 01, 00, 38, FF, 7F, FF, 7F, FF, 7F, FF, 7F, FF, 7F, FF, 7F, FF, 7F, FF, 7F, FF, 7F, FF, 7F, FF, 7F, FF, 7F, FF, 7F, FF, 7F, FF, 7F $A5:A2DF db 01, 00, 00, 00, 01, 00, 6B, AE $A5:A2E9 db 01, 00, 00, 00, 01, 00, CC, AE $A5:A2F3 db 01, 00, 00, 00, 01, 00, 23, AF $A5:A2FD db 01, 00, 00, 00, 01, 00, 7A, AF $A5:A307 db 01, 00, 00, 00, 01, 00, DB, AF $A5:A311 db 01, 00, 00, 00, 01, 00, 41, B0 $A5:A31B db 01, 00, 00, 00, 00, 00, 80, B3, 95, AA, 01, 00, 00, 00, 00, 00, A2, B3, 95, AA, 01, 00, 00, 00, 00, 00, C0, B3, 95, AA, 01, 00, 00, 00, 00, 00, E2, B3, 95, AA, 01, 00, 00, 00, 00, 00, 30, B3, 95, AA, 01, 00, 00, 00, 00, 00, 44, B3, 95, AA, 01, 00, 00, 00, 00, 00, 58, B3, 95, AA, 01, 00, 00, 00, 00, 00, 6C, B3, 95, AA, 01, 00, 00, 00, 00, 00, 04, B4 $A5:A375 db 01, 00, 00, 00, 00, 00, 18, B4 $A5:A37F db 01, 00, 00, 00, 00, 00, 2C, B4 $A5:A389 db 01, 00, 00, 00, 00, 00, 40, B4 $A5:A393 db 01, 00, 00, 00, 00, 00, 54, B4 $A5:A39D db 01, 00, 00, 00, 00, 00, 68, B4 $A5:A3A7 db 01, 00, 00, 00, 00, 00, 7C, B4 $A5:A3B1 db 01, 00, 00, 00, 00, 00, 90, B4 $A5:A3BB db 01, 00, 00, 00, 00, 00, A4, B4, 95, AA, 01, 00, 00, 00, 01, 00, 17, AC $A5:A3CF db 01, 00, 00, 00, 01, 00, 91, AC $A5:A3D9 db 01, 00, 00, 00, 01, 00, F7, AC $A5:A3E3 db 01, 00, 00, 00, 01, 00, 49, AD $A5:A40B db 02, 00, 1B, 00, 3F, 00, 47, B7 $A5:A415 db 37, 00, 21, 00, 9B, AD $A5:A41D db 02, 00, 17, 00, 3D, 00, 3B, B7 $A5:A427 db 37, 00, 21, 00, 9B, AD $A5:A42F db 02, 00, 13, 00, 3A, 00, 2A, B7 $A5:A439 db 37, 00, 21, 00, CF, AD $A5:A441 db 02, 00, 0E, 00, 35, 00, 19, B7 $A5:A44B db 37, 00, 21, 00, CF, AD $A5:A453 db 02, 00, 0C, 00, 2E, 00, 08, B7 $A5:A45D db 37, 00, 21, 00, 03, AE $A5:A465 db 02, 00, 0E, 00, 2D, 00, FC, B6 $A5:A46F db 37, 00, 21, 00, 03, AE $A5:A477 db 02, 00, 11, 00, 28, 00, E6, B6 $A5:A481 db 37, 00, 21, 00, 37, AE $A5:A489 db 03, 00, 0B, 00, 3C, 00, 2A, B7 $A5:A493 db 19, 00, 32, 00, D8, B7 $A5:A49B db 37, 00, 21, 00, 9B, AD $A5:A4A3 db 04, 00, 08, 00 $A5:A4A9 db 2A, B7 $A5:A4AD db 14, 00 $A5:A4B1 db D8, B7 $A5:A4B5 db 18, 00 $A5:A4B9 db D8, B7 $A5:A4BD db 37, 00, 21, 00, 9B, AD $A5:A4C5 db 05, 00, 09, 00 $A5:A4CB db 3B, B7 $A5:A4CF db 0F, 00 $A5:A4D3 db D8, B7 $A5:A4D7 db 13, 00 $A5:A4DB db D8, B7 $A5:A4DF db 19, 00 $A5:A4E3 db D1, B7 $A5:A4E7 db 37, 00, 21, 00, CF, AD $A5:A4EF db 06, 00, F8, FF $A5:A4F5 db 2A, B7 $A5:A4F9 db 07, 00 $A5:A4FD db D8, B7 $A5:A501 db 0C, 00 $A5:A505 db D8, B7 $A5:A509 db 13, 00 $A5:A50D db D1, B7 $A5:A511 db 1A, 00 $A5:A515 db D1, B7 $A5:A519 db 37, 00 $A5:A51D db 03, AE $A5:A521 db 07, 00, EC, FF $A5:A527 db FC, B6 $A5:A52B db FC, FF $A5:A52F db D8, B7 $A5:A533 db 05, 00 $A5:A537 db D8, B7 $A5:A53B db 0D, 00 $A5:A53F db D1, B7 $A5:A543 db 15, 00 $A5:A547 db D1, B7 $A5:A54B db 1B, 00 $A5:A54F db CA, B7 $A5:A553 db 37, 00 $A5:A557 db 37, AE $A5:A55B db 08, 00, ED, FF $A5:A561 db E6, B6 $A5:A565 db F9, FF $A5:A569 db D8, B7 $A5:A56D db 00, 00 $A5:A571 db D8, B7 $A5:A575 db 08, 00 $A5:A579 db D1, B7 $A5:A57D db 11, 00 $A5:A581 db D1, B7 $A5:A585 db 19, 00 $A5:A589 db CA, B7 $A5:A58D db 1D, 00 $A5:A591 db CA, B7 $A5:A595 db 37, 00 $A5:A599 db 37, AE $A5:A59D db 08, 00, F7, FF $A5:A5A3 db C4, B6 $A5:A5A7 db F8, FF $A5:A5AB db D8, B7 $A5:A5AF db FD, FF $A5:A5B3 db D8, B7 $A5:A5B7 db 06, 00 $A5:A5BB db D1, B7 $A5:A5BF db 10, 00 $A5:A5C3 db D1, B7 $A5:A5C7 db 18, 00 $A5:A5CB db CA, B7 $A5:A5CF db 1E, 00 $A5:A5D3 db CA, B7 $A5:A5D7 db 37, 00 $A5:A5DB db 37, AE $A5:A607 db 01, 00, 00, 00, 01, 00, E2, BA $A5:A611 db 01, 00, 00, 00, 01, 00, 43, BB $A5:A61B db 01, 00, 00, 00, 01, 00, 9A, BB $A5:A625 db 01, 00, 00, 00, 01, 00, F1, BB $A5:A62F db 01, 00, 00, 00, 01, 00, 52, BC $A5:A639 db 01, 00, 00, 00, 01, 00, B8, BC $A5:A643 db 01, 00, 00, 00, 00, 00, F7, BF, AB, AB, 01, 00, 00, 00, 00, 00, 19, C0, AB, AB, 01, 00, 00, 00, 00, 00, 37, C0, AB, AB, 01, 00, 00, 00, 00, 00, 59, C0, AB, AB, 01, 00, 00, 00, 00, 00, A7, BF, AB, AB, 01, 00, 00, 00, 00, 00, BB, BF, AB, AB, 01, 00, 00, 00, 00, 00, CF, BF, AB, AB, 01, 00, 00, 00, 00, 00, E3, BF, AB, AB, 01, 00, 00, 00, 00, 00, 7B, C0 $A5:A6A7 db 01, 00, 00, 00, 00, 00, A3, C0 $A5:A6B1 db 01, 00, 00, 00, 00, 00, B7, C0 $A5:A6BB db 01, 00, 00, 00, 00, 00, CB, C0 $A5:A6C5 db 01, 00, 00, 00, 00, 00, DF, C0 $A5:A6CF db 01, 00, 00, 00, 00, 00, F3, C0 $A5:A6D9 db 01, 00, 00, 00, 00, 00, 07, C1 $A5:A6E3 db 01, 00, 00, 00, 00, 00, 1B, C1, AB, AB, 01, 00, 00, 00, 01, 00, 2C, B8 $A5:A6F7 db 01, 00, 00, 00, 01, 00, A6, B8 $A5:A701 db 01, 00, 00, 00, 01, 00, 0C, B9 $A5:A70B db 01, 00, 00, 00, 01, 00, 5E, B9 $A5:A779 db 02, 00, E5, FF, 3F, 00, BE, C3 $A5:A783 db CE, FF, 21, 00, D3, B9 $A5:A78B db 02, 00, E9, FF, 3D, 00, B2, C3 $A5:A795 db CE, FF, 21, 00, D3, B9 $A5:A79D db 02, 00, ED, FF, 3A, 00, A1, C3 $A5:A7A7 db CE, FF, 21, 00, 07, BA $A5:A7AF db 02, 00, F2, FF, 35, 00, 90, C3 $A5:A7B9 db CE, FF, 21, 00, 07, BA $A5:A7C1 db 02, 00, F4, FF, 2E, 00, 7F, C3 $A5:A7CB db CE, FF, 21, 00, 7A, BA $A5:A7D3 db 02, 00, F2, FF, 2D, 00, 73, C3 $A5:A7DD db CE, FF, 21, 00, 7A, BA $A5:A7E5 db 02, 00, EF, FF, 28, 00, 5D, C3 $A5:A7EF db CE, FF, 21, 00, AE, BA $A5:A7F7 db 03, 00, F5, FF, 3C, 00, A1, C3 $A5:A801 db E7, FF, 32, 00, 4F, C4 $A5:A809 db CE, FF, 21, 00, D3, B9 $A5:A811 db 04, 00, F8, FF, 43, 00, A1, C3 $A5:A81B db EC, FF, 36, 00, 4F, C4 $A5:A823 db E8, FF, 31, 00, 4F, C4 $A5:A82B db CE, FF, 21, 00, D3, B9 $A5:A833 db 05, 00, F7, FF, 4D, 00, B2, C3 $A5:A83D db F1, FF, 3D, 00, 4F, C4 $A5:A845 db ED, FF, 36, 00, 4F, C4 $A5:A84D db E7, FF, 31, 00, 48, C4 $A5:A855 db CE, FF, 21, 00, 07, BA $A5:A85D db 06, 00, 08, 00, 4D, 00, A1, C3 $A5:A867 db F9, FF, 42, 00, 4F, C4 $A5:A86F db F4, FF, 3C, 00, 4F, C4 $A5:A877 db ED, FF, 37, 00, 48, C4 $A5:A87F db E6, FF, 32, 00, 48, C4 $A5:A887 db CE, FF, 21, 00, 07, BA $A5:A88F db 07, 00, 14, 00, 37, 00, 73, C3 $A5:A899 db 04, 00, 3D, 00, 4F, C4 $A5:A8A1 db FB, FF, 3F, 00, 4F, C4 $A5:A8A9 db F3, FF, 3E, 00, 48, C4 $A5:A8B1 db EB, FF, 3A, 00, 48, C4 $A5:A8B9 db E5, FF, 34, 00, 41, C4 $A5:A8C1 db CE, FF, 21, 00, 7A, BA $A5:A8C9 db 08, 00, 13, 00, 2E, 00, 5D, C3 $A5:A8D3 db 07, 00, 3A, 00, 4F, C4 $A5:A8DB db 00, 00, 40, 00, 4F, C4 $A5:A8E3 db F8, FF, 41, 00, 48, C4 $A5:A8EB db EF, FF, 43, 00, 48, C4 $A5:A8F3 db E7, FF, 3F, 00, 41, C4 $A5:A8FB db E3, FF, 35, 00, 41, C4 $A5:A903 db CE, FF, 21, 00, 7A, BA $A5:A90B db 08, 00, 09, 00, 25, 00, 3B, C3 $A5:A915 db 08, 00, 38, 00, 4F, C4 $A5:A91D db 03, 00, 41, 00, 4F, C4 $A5:A925 db FA, FF, 43, 00, 48, C4 $A5:A92D db F0, FF, 44, 00, 48, C4 $A5:A935 db E8, FF, 41, 00, 41, C4 $A5:A93D db E2, FF, 37, 00, 41, C4 $A5:A945 db CE, FF, 21, 00, AE, BA $A5:AA95 db 04, 00, EF, FF, F0, FF, 12, 00, 1E, 00, 4C, 80, F0, 95, C5, FF, BE, FF, 03, 00, E2, FF $A5:AAAD db 46, 80, 10, 00, 01, 00, 3C, 00, 35, 00, EA, 95, 46, 80, E4, FF, DB, FF, 3D, 00, F6, FF $A5:AAC5 db 46, 80 $A5:ABAB db 04, 00, EE, FF, F9, FF, 12, 00, 1E, 00, 4C, 80, F0, 95, F6, FF, C1, FF, 3E, 00, E6, FF $A5:ABC3 db 46, 80, C9, FF, 00, 00, EB, FF, 39, 00, EA, 95, 46, 80, C2, FF, DF, FF, 0F, 00, FB, FF $A5:AC17 db 18, 00, E5, 81, 02, 1C, 27, DD, 81, 0A, 2B, 27, ED, 81, FA, 0D, 27, F4, 01, EC, 50, 27, FC, 81, E4, 41, 27, F4, 81, F4, 60, 27, ED, 81, 0A, 1C, 27, E5, 81, 12, 2B, 27, F5, 81, 02, 0D, 27, FC, 01, F4, 50, 27, 04, 80, EC, 41, 27, FC, 81, FC, 60, 27, F5, 81, 12, 1C, 27, ED, 81, 1A, 2B, 27, FD, 81, 0A, 0D, 27, 04, 00, FC, 50, 27, 0C, 80, F4, 41, 27, 04, 80, 04, 60, 27, FC, 81, 1B, 1C, 27, F4, 81, 23, 2B, 27, 04, 80, 13, 0D, 27, 0B, 00, 05, 50, 27, 13, 80, FD, 41, 27, 0B, 80, 0D, 60, 27, 14, 00, F8, 81, F9, 2E, 27, E8, 01, 09, 4C, 27, F0, 81, 01, 3D, 27, FC, 81, F4, 62, 27, FC, 81, E4, 43, 27, 00, 80, 01, 2E, 27, F0, 01, 11, 4C, 27, F8, 81, 09, 3D, 27, 04, 80, FC, 62, 27, 04, 80, EC, 43, 27, 08, 80, 09, 2E, 27, F8, 01, 19, 4C, 27, 00, 80, 11, 3D, 27, 0C, 80, 04, 62, 27, 0C, 80, F4, 43, 27, 0F, 80, 12, 2E, 27, FF, 01, 22, 4C, 27, 07, 80, 1A, 3D, 27, 13, 80, 0D, 62, 27, 13, 80, FD, 43, 27, 10, 00, F9, 81, F9, 38, 27, 01, 80, F1, 29, 27, 04, 80, EC, 56, 27, FC, 81, E4, 45, 27, 00, 80, 00, 38, 27, 08, 80, F8, 29, 27, 0B, 80, F3, 56, 27, 03, 80, EB, 45, 27, 07, 80, 07, 38, 27, 0F, 80, FF, 29, 27, 12, 80, FA, 56, 27, 0A, 80, F2, 45, 27, 0E, 80, 0E, 38, 27, 16, 80, 06, 29, 27, 19, 80, 01, 56, 27, 11, 80, F9, 45, 27, 10, 00, 00, 80, F4, 68, 27, 00, 80, EC, 58, 27, 04, 80, E4, 09, 27, FC, 81, E4, 08, 27, 07, 80, FC, 68, 27, 07, 80, F4, 58, 27, 0B, 80, EC, 09, 27, 03, 80, EC, 08, 27, 0E, 80, 03, 68, 27, 0E, 80, FB, 58, 27, 12, 80, F3, 09, 27, 0A, 80, F3, 08, 27, 15, 80, 0A, 68, 27, 15, 80, 02, 58, 27, 19, 80, FA, 09, 27, 11, 80, FA, 08, 27, 0A, 00, FC, 81, F0, 21, 07, FC, 81, E0, 01, 07, F4, 81, F0, 20, 07, F4, 81, E0, 00, 07, F4, 01, 04, 23, 27, F4, 81, F4, 03, 27, FC, 81, 04, 24, 27, FC, 81, F4, 04, 27, F4, 81, 14, 26, 27, F4, 81, 04, 06, 27, 0A, 00, FB, 81, F0, 21, 07, FB, 81, E0, 01, 07, F3, 81, F0, 20, 07, F3, 81, E0, 00, 07, F3, 01, 04, 23, 27, F3, 81, F4, 03, 27, FB, 81, 04, 24, 27, FB, 81, F4, 04, 27, F3, 81, 14, 26, 27, F3, 81, 04, 06, 27, 0A, 00, FB, 81, F0, 21, 07, FB, 81, E0, 01, 07, F3, 81, F0, 20, 07, F3, 81, E0, 00, 07, F2, 01, 04, 23, 27, F2, 81, F4, 03, 27, FA, 81, 04, 24, 27, FA, 81, F4, 04, 27, F2, 81, 14, 26, 27, F2, 81, 04, 06, 27, 0A, 00, FB, 81, F0, 21, 07, FB, 81, E0, 01, 07, F3, 81, F0, 20, 07, F3, 81, E0, 00, 07, F2, 01, 04, 23, 27, F2, 81, F4, 03, 27, FA, 81, 04, 24, 27, FA, 81, F4, 04, 27, F1, 81, 14, 26, 27, F1, 81, 04, 06, 27, 13, 00, E5, 81, 02, 1C, 27, DD, 81, 0A, 2B, 27, ED, 81, FA, 0D, 27, F4, 01, EC, 50, 27, FC, 81, E4, 41, 27, F4, 81, F4, 60, 27, 00, 80, 01, 2E, 27, F0, 01, 11, 4C, 27, F8, 81, 09, 3D, 27, 04, 80, FC, 62, 27, 04, 80, EC, 43, 27, 09, 80, 09, 38, 27, 11, 80, 01, 29, 27, 14, 80, FC, 56, 27, 0C, 80, F4, 45, 27, 18, 80, 0C, 68, 27, 18, 80, 04, 58, 27, 1C, 80, FC, 09, 27, 14, 80, FC, 08, 27, 11, 00, F8, 81, F9, 2E, 27, E8, 01, 09, 4C, 27, F0, 81, 01, 3D, 27, FC, 81, F4, 62, 27, FC, 81, E4, 43, 27, 01, 80, 01, 38, 27, 09, 80, F9, 29, 27, 0C, 80, F4, 56, 27, 04, 80, EC, 45, 27, 10, 80, 04, 68, 27, 10, 80, FC, 58, 27, 14, 80, F4, 09, 27, 0C, 80, F4, 08, 27, 11, 80, 11, 38, 27, 19, 80, 09, 29, 27, 1C, 80, 04, 56, 27, 14, 80, FC, 45, 27, 11, 00, F9, 81, F9, 38, 27, 01, 80, F1, 29, 27, 04, 80, EC, 56, 27, FC, 81, E4, 45, 27, 08, 80, FC, 68, 27, 08, 80, F4, 58, 27, 0C, 80, EC, 09, 27, 04, 80, EC, 08, 27, 09, 80, 09, 38, 27, 11, 80, 01, 29, 27, 14, 80, FC, 56, 27, 0C, 80, F4, 45, 27, 10, 80, 11, 2E, 27, 00, 00, 21, 4C, 27, 08, 80, 19, 3D, 27, 14, 80, 0C, 62, 27, 14, 80, FC, 43, 27, 13, 00, 00, 80, F4, 68, 27, 00, 80, EC, 58, 27, 04, 80, E4, 09, 27, FC, 81, E4, 08, 27, 01, 80, 01, 38, 27, 09, 80, F9, 29, 27, 0C, 80, F4, 56, 27, 04, 80, EC, 45, 27, 08, 80, 09, 2E, 27, F8, 01, 19, 4C, 27, 00, 80, 11, 3D, 27, 0C, 80, 04, 62, 27, 0C, 80, F4, 43, 27, FD, 81, 1A, 1C, 27, F5, 81, 22, 2B, 27, 05, 80, 12, 0D, 27, 0C, 00, 04, 50, 27, 14, 80, FC, 41, 27, 0C, 80, 0C, 60, 27, 14, 00, F9, 81, F9, 38, 27, 01, 80, F1, 29, 27, 04, 80, EC, 56, 27, FC, 81, E4, 45, 27, 00, 80, 01, 2E, 27, F0, 01, 11, 4C, 27, F8, 81, 09, 3D, 27, 04, 80, FC, 62, 27, 04, 80, EC, 43, 27, F5, 81, 12, 1C, 27, ED, 81, 1A, 2B, 27, FD, 81, 0A, 0D, 27, 04, 00, FC, 50, 27, 0C, 80, F4, 41, 27, 04, 80, 04, 60, 27, 10, 80, 11, 2E, 27, 00, 00, 21, 4C, 27, 08, 80, 19, 3D, 27, 14, 80, 0C, 62, 27, 14, 80, FC, 43, 27, 14, 00, F8, 81, F9, 2E, 27, E8, 01, 09, 4C, 27, F0, 81, 01, 3D, 27, FC, 81, F4, 62, 27, FC, 81, E4, 43, 27, ED, 81, 0A, 1C, 27, E5, 81, 12, 2B, 27, F5, 81, 02, 0D, 27, FC, 01, F4, 50, 27, 04, 80, EC, 41, 27, FC, 81, FC, 60, 27, 08, 80, 09, 2E, 27, F8, 01, 19, 4C, 27, 00, 80, 11, 3D, 27, 0C, 80, 04, 62, 27, 0C, 80, F4, 43, 27, 11, 80, 11, 38, 27, 19, 80, 09, 29, 27, 1C, 80, 04, 56, 27, 14, 80, FC, 45, 27 $A5:B330 db FE, FF, 48, 21, 02, 00, 54, 15, 55, 15, 88, 21, 02, 00, 64, 15, 65, 15, FF, FF, FE, FF, 48, 21, 02, 00, 80, 15, 81, 15, 88, 21, 02, 00, 90, 15, 91, 15, FF, FF, FE, FF, 48, 21, 02, 00, 82, 15, 83, 15, 88, 21, 02, 00, 92, 15, 93, 15, FF, FF, FE, FF, 48, 21, 02, 00, 62, 15, 63, 15, 88, 21, 02, 00, 72, 15, 73, 15, FF, FF, FE, FF, 0C, 22, 03, 00, 86, 15, 9E, 15, 9F, 15, 4C, 22, 03, 00, 96, 15, 97, 15, 98, 15, 8C, 22, 03, 00, A6, 15, A7, 15, A8, 15, FF, FF, FE, FF, 0C, 22, 01, 00, 9D, 15, 4C, 22, 03, 00, AD, 15, AE, 15, AF, 15, 8C, 22, 03, 00, BD, 15, BE, 15, BF, 15, FF, FF, FE, FF, 0C, 22, 03, 00, A0, 15, A1, 15, A2, 15, 4C, 22, 03, 00, B0, 15, B1, 15, B2, 15, 8C, 22, 03, 00, B4, 15, B5, 15, B6, 15, FF, FF, FE, FF, 0C, 22, 03, 00, A3, 15, 84, 15, 85, 15, 4C, 22, 03, 00, B3, 15, 94, 15, 95, 15, 8C, 22, 03, 00, 74, 15, A4, 15, A5, 15, FF, FF, FE, FF, C8, 20, 02, 00, 40, 15, 41, 15, 08, 21, 02, 00, 50, 15, 51, 15, FF, FF, FE, FF, C8, 20, 02, 00, 60, 15, 61, 15, 08, 21, 02, 00, 70, 15, 71, 15, FF, FF, FE, FF, C8, 20, 02, 00, 0A, 15, 0B, 15, 08, 21, 02, 00, 1A, 15, 1B, 15, FF, FF, FE, FF, C8, 20, 02, 00, 0C, 15, 0D, 15, 08, 21, 02, 00, 1C, 15, 1D, 15, FF, FF, FE, FF, C8, 20, 02, 00, 34, 15, 35, 15, 08, 21, 02, 00, 44, 15, 45, 15, FF, FF, FE, FF, C8, 20, 02, 00, 0E, 15, 0F, 15, 08, 21, 02, 00, 1E, 15, 1F, 15, FF, FF, FE, FF, C8, 20, 02, 00, 2C, 15, 2D, 15, 08, 21, 02, 00, 3C, 15, 3D, 15, FF, FF, FE, FF, C8, 20, 02, 00, 2E, 15, 2F, 15, 08, 21, 02, 00, 3E, 15, 3F, 15, FF, FF, FE, FF, 00, 20, 10, 00, 00, 15, 01, 15, 02, 15, 03, 15, 04, 15, 05, 15, 06, 15, 07, 15, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, 40, 20, 10, 00, 10, 15, 11, 15, 12, 15, 13, 15, 14, 15, 15, 15, 16, 15, 17, 15, 18, 15, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, 80, 20, 10, 00, 20, 15, 21, 15, 22, 15, 23, 15, 24, 15, 25, 15, 26, 15, 27, 15, 28, 15, 29, 15, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, C0, 20, 10, 00, 30, 15, 31, 15, 32, 15, 33, 15, FF, 02, FF, 02, 36, 15, 37, 15, 38, 15, 39, 15, 3A, 15, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, 00, 21, 10, 00, 38, 03, 38, 03, 42, 15, 43, 15, FF, 02, FF, 02, 46, 15, 47, 15, 48, 15, 49, 15, 4A, 15, 4B, 15, 4C, 15, 4D, 15, 4E, 15, 38, 17, 40, 21, 10, 00, 38, 03, 38, 03, 38, 03, 53, 15, 54, 15, 55, 15, 56, 15, 57, 15, 58, 15, 59, 15, 5A, 15, 5B, 15, 5C, 15, 5D, 15, 5E, 15, 5F, 15, 80, 21, 10, 00, 38, 03, 38, 03, 38, 03, 38, 03, 64, 15, 65, 15, 66, 15, 67, 15, 68, 15, 69, 15, 6A, 15, 6B, 15, 6C, 15, 6D, 15, 6E, 15, 6F, 15, C0, 21, 10, 00, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, 75, 15, 76, 15, 77, 15, 78, 15, 79, 15, 7A, 15, 7B, 15, 7C, 15, 7D, 15, 7E, 15, 7F, 15, 00, 22, 10, 00, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, 86, 15, 9E, 15, 9F, 15, 89, 15, 8A, 15, 8B, 15, 8C, 15, 8D, 15, 8E, 15, 8F, 15, 40, 22, 10, 00, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, 96, 15, 97, 15, 98, 15, 99, 15, 9A, 15, 9B, 15, 9C, 15, 38, 03, 38, 03, 38, 03, 80, 22, 10, 00, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, A6, 15, A7, 15, A8, 15, A9, 15, AA, 15, AB, 15, AC, 15, 38, 03, 38, 03, 38, 03, C0, 22, 10, 00, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, 38, 03, B7, 15, B8, 15, B9, 15, BA, 15, BB, 15, BC, 15, 38, 03, 38, 03, 38, 03, 00, 23, 10, 00, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 08, 15, 09, 15, 38, 83, 38, 83, 38, 83, 40, 23, 10, 00, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 3B, 15, 19, 15, 38, 83, 38, 83, 38, 83, 80, 23, 10, 00, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 38, 83, 2A, 15, 2B, 15, 38, 83, 38, 83, 38, 83, FF, FF, 03, 00 $A5:B6E6 db 04, 00, F4, 01, F4, BB, 27, F4, 01, EC, AB, 27, F4, 01, FC, A4, 27, FC, 81, FC, A5, 27, 02, 00, F0, 81, F8, A0, 27, 00, 80, F8, A2, 27, 03, 00, F8, 01, 00, 97, 27, F0, 01, 00, 96, 27, 00, 80, F8, AE, 27, 03, 00, F8, 01, 00, D1, 27, F0, 01, 00, D0, 27, 00, 80, F8, C2, 27, 03, 00, FC, 01, 04, 87, 27, F4, 01, 04, 86, 27, FC, 81, F4, C4, 27, 02, 00, F8, 81, 00, 88, 27, F8, 81, F0, C6, 27, 03, 00, 00, 00, 00, BD, E1, 00, 00, 08, AD, E1, F8, 81, F0, C8, 21 $A5:B7CA db 01, 00 $A5:B7D1 db 01, 00 $A5:B7D8 db 01, 00 $A5:B82C db 18, 00, 0B, 80, 02, 1C, 67, 13, 80, 0A, 2B, 67, 03, 80, FA, 0D, 67, 04, 00, EC, 50, 67, F4, 81, E4, 41, 67, FC, 81, F4, 60, 67, 03, 80, 0A, 1C, 67, 0B, 80, 12, 2B, 67, FB, 81, 02, 0D, 67, FC, 01, F4, 50, 67, EC, 81, EC, 41, 67, F4, 81, FC, 60, 67, FB, 81, 12, 1C, 67, 03, 80, 1A, 2B, 67, F3, 81, 0A, 0D, 67, F4, 01, FC, 50, 67, E4, 81, F4, 41, 67, EC, 81, 04, 60, 67, F4, 81, 1B, 1C, 67, FC, 81, 23, 2B, 67, EC, 81, 13, 0D, 67, ED, 01, 05, 50, 67, DD, 81, FD, 41, 67, E5, 81, 0D, 60, 67, 14, 00, F8, 81, F9, 2E, 67, 10, 00, 09, 4C, 67, 00, 80, 01, 3D, 67, F4, 81, F4, 62, 67, F4, 81, E4, 43, 67, F0, 81, 01, 2E, 67, 08, 00, 11, 4C, 67, F8, 81, 09, 3D, 67, EC, 81, FC, 62, 67, EC, 81, EC, 43, 67, E8, 81, 09, 2E, 67, 00, 00, 19, 4C, 67, F0, 81, 11, 3D, 67, E4, 81, 04, 62, 67, E4, 81, F4, 43, 67, E1, 81, 12, 2E, 67, F9, 01, 22, 4C, 67, E9, 81, 1A, 3D, 67, DD, 81, 0D, 62, 67, DD, 81, FD, 43, 67, 10, 00, F7, 81, F9, 38, 67, EF, 81, F1, 29, 67, EC, 81, EC, 56, 67, F4, 81, E4, 45, 67, F0, 81, 00, 38, 67, E8, 81, F8, 29, 67, E5, 81, F3, 56, 67, ED, 81, EB, 45, 67, E9, 81, 07, 38, 67, E1, 81, FF, 29, 67, DE, 81, FA, 56, 67, E6, 81, F2, 45, 67, E2, 81, 0E, 38, 67, DA, 81, 06, 29, 67, D7, 81, 01, 56, 67, DF, 81, F9, 45, 67, 10, 00, F0, 81, F4, 68, 67, F0, 81, EC, 58, 67, EC, 81, E4, 09, 67, F4, 81, E4, 08, 67, E9, 81, FC, 68, 67, E9, 81, F4, 58, 67, E5, 81, EC, 09, 67, ED, 81, EC, 08, 67, E2, 81, 03, 68, 67, E2, 81, FB, 58, 67, DE, 81, F3, 09, 67, E6, 81, F3, 08, 67, DB, 81, 0A, 68, 67, DB, 81, 02, 58, 67, D7, 81, FA, 09, 67, DF, 81, FA, 08, 67 $A5:B9D3 db 0A, 00, F4, 81, F0, 21, 47, F4, 81, E0, 01, 47, FC, 81, F0, 20, 47, FC, 81, E0, 00, 47, 04, 00, 04, 23, 67, FC, 81, F4, 03, 67, F4, 81, 04, 24, 67, F4, 81, F4, 04, 67, FC, 81, 14, 26, 67, FC, 81, 04, 06, 67, 0A, 00, F5, 81, F0, 21, 47, F5, 81, E0, 01, 47, FD, 81, F0, 20, 47, FD, 81, E0, 00, 47, 05, 00, 04, 23, 67, FD, 81, F4, 03, 67, F5, 81, 04, 24, 67, F5, 81, F4, 04, 67, FD, 81, 14, 26, 67, FD, 81, 04, 06, 67 $A5:BA7A db 0A, 00, F5, 81, F0, 21, 47, F5, 81, E0, 01, 47, FD, 81, F0, 20, 47, FD, 81, E0, 00, 47, 06, 00, 04, 23, 67, FE, 81, F4, 03, 67, F6, 81, 04, 24, 67, F6, 81, F4, 04, 67, FE, 81, 14, 26, 67, FE, 81, 04, 06, 67, 0A, 00, F5, 81, F0, 21, 47, F5, 81, E0, 01, 47, FD, 81, F0, 20, 47, FD, 81, E0, 00, 47, 06, 00, 04, 23, 67, FE, 81, F4, 03, 67, F6, 81, 04, 24, 67, F6, 81, F4, 04, 67, FF, 81, 14, 26, 67, FF, 81, 04, 06, 67, 13, 00, 0B, 80, 02, 1C, 67, 13, 80, 0A, 2B, 67, 03, 80, FA, 0D, 67, 04, 00, EC, 50, 67, F4, 81, E4, 41, 67, FC, 81, F4, 60, 67, F0, 81, 01, 2E, 67, 08, 00, 11, 4C, 67, F8, 81, 09, 3D, 67, EC, 81, FC, 62, 67, EC, 81, EC, 43, 67, E7, 81, 09, 38, 67, DF, 81, 01, 29, 67, DC, 81, FC, 56, 67, E4, 81, F4, 45, 67, D8, 81, 0C, 68, 67, D8, 81, 04, 58, 67, D4, 81, FC, 09, 67, DC, 81, FC, 08, 67, 11, 00, F8, 81, F9, 2E, 67, 10, 00, 09, 4C, 67, 00, 80, 01, 3D, 67, F4, 81, F4, 62, 67, F4, 81, E4, 43, 67, EF, 81, 01, 38, 67, E7, 81, F9, 29, 67, E4, 81, F4, 56, 67, EC, 81, EC, 45, 67, E0, 81, 04, 68, 67, E0, 81, FC, 58, 67, DC, 81, F4, 09, 67, E4, 81, F4, 08, 67, DF, 81, 11, 38, 67, D7, 81, 09, 29, 67, D4, 81, 04, 56, 67, DC, 81, FC, 45, 67, 11, 00, F7, 81, F9, 38, 67, EF, 81, F1, 29, 67, EC, 81, EC, 56, 67, F4, 81, E4, 45, 67, E8, 81, FC, 68, 67, E8, 81, F4, 58, 67, E4, 81, EC, 09, 67, EC, 81, EC, 08, 67, E7, 81, 09, 38, 67, DF, 81, 01, 29, 67, DC, 81, FC, 56, 67, E4, 81, F4, 45, 67, E0, 81, 11, 2E, 67, F8, 01, 21, 4C, 67, E8, 81, 19, 3D, 67, DC, 81, 0C, 62, 67, DC, 81, FC, 43, 67, 13, 00, F0, 81, F4, 68, 67, F0, 81, EC, 58, 67, EC, 81, E4, 09, 67, F4, 81, E4, 08, 67, EF, 81, 01, 38, 67, E7, 81, F9, 29, 67, E4, 81, F4, 56, 67, EC, 81, EC, 45, 67, E8, 81, 09, 2E, 67, 00, 00, 19, 4C, 67, F0, 81, 11, 3D, 67, E4, 81, 04, 62, 67, E4, 81, F4, 43, 67, F3, 81, 1A, 1C, 67, FB, 81, 22, 2B, 67, EB, 81, 12, 0D, 67, EC, 01, 04, 50, 67, DC, 81, FC, 41, 67, E4, 81, 0C, 60, 67, 14, 00, F7, 81, F9, 38, 67, EF, 81, F1, 29, 67, EC, 81, EC, 56, 67, F4, 81, E4, 45, 67, F0, 81, 01, 2E, 67, 08, 00, 11, 4C, 67, F8, 81, 09, 3D, 67, EC, 81, FC, 62, 67, EC, 81, EC, 43, 67, FB, 81, 12, 1C, 67, 03, 80, 1A, 2B, 67, F3, 81, 0A, 0D, 67, F4, 01, FC, 50, 67, E4, 81, F4, 41, 67, EC, 81, 04, 60, 67, E0, 81, 11, 2E, 67, F8, 01, 21, 4C, 67, E8, 81, 19, 3D, 67, DC, 81, 0C, 62, 67, DC, 81, FC, 43, 67, 14, 00, F8, 81, F9, 2E, 67, 10, 00, 09, 4C, 67, 00, 80, 01, 3D, 67, F4, 81, F4, 62, 67, F4, 81, E4, 43, 67, 03, 80, 0A, 1C, 67, 0B, 80, 12, 2B, 67, FB, 81, 02, 0D, 67, FC, 01, F4, 50, 67, EC, 81, EC, 41, 67, F4, 81, FC, 60, 67, E8, 81, 09, 2E, 67, 00, 00, 19, 4C, 67, F0, 81, 11, 3D, 67, E4, 81, 04, 62, 67, E4, 81, F4, 43, 67, DF, 81, 11, 38, 67, D7, 81, 09, 29, 67, D4, 81, 04, 56, 67, DC, 81, FC, 45, 67 $A5:BFA7 db FE, FF, 54, 21, 02, 00, 55, 55, 54, 55, 94, 21, 02, 00, 65, 55, 64, 55, FF, FF, FE, FF, 54, 21, 02, 00, 81, 55, 80, 55, 94, 21, 02, 00, 91, 55, 90, 55, FF, FF, FE, FF, 54, 21, 02, 00, 83, 55, 82, 55, 94, 21, 02, 00, 93, 55, 92, 55, FF, FF, FE, FF, 54, 21, 02, 00, 63, 55, 62, 55, 94, 21, 02, 00, 73, 55, 72, 55, FF, FF, FE, FF, 0E, 22, 03, 00, 9F, 55, 9E, 55, 86, 55, 4E, 22, 03, 00, 98, 55, 97, 55, 96, 55, 8E, 22, 03, 00, A8, 55, A7, 55, A6, 55, FF, FF, FE, FF, 12, 22, 01, 00, 9D, 55, 4E, 22, 03, 00, AF, 55, AE, 55, AD, 55, 8E, 22, 03, 00, BF, 55, BE, 55, BD, 55, FF, FF, FE, FF, 0E, 22, 03, 00, A2, 55, A1, 55, A0, 55, 4E, 22, 03, 00, B2, 55, B1, 55, B0, 55, 8E, 22, 03, 00, B6, 55, B5, 55, B4, 55, FF, FF, FE, FF, 0E, 22, 03, 00, 85, 55, 84, 55, A3, 55, 4E, 22, 03, 00, 95, 55, 94, 55, B3, 55, 8E, 22, 03, 00, A5, 55, A4, 55, 74, 55, FF, FF, FE, FF, D4, 20, 02, 00, 41, 55, 40, 55, 14, 21, 02, 00, 51, 55, 50, 55, FF, FF $A5:C0A3 db FE, FF, D4, 20, 02, 00, 0B, 55, 0A, 55, 14, 21, 02, 00, 1B, 55, 1A, 55, FF, FF, FE, FF, D4, 20, 02, 00, 0D, 55, 0C, 55, 14, 21, 02, 00, 1D, 55, 1C, 55, FF, FF, FE, FF, D4, 20, 02, 00, 35, 55, 34, 55, 14, 21, 02, 00, 45, 55, 44, 55, FF, FF, FE, FF, D4, 20, 02, 00, 0F, 55, 0E, 55, 14, 21, 02, 00, 1F, 55, 1E, 55, FF, FF, FE, FF, D4, 20, 02, 00, 2D, 55, 2C, 55, 14, 21, 02, 00, 3D, 55, 3C, 55, FF, FF, FE, FF, D4, 20, 02, 00, 2F, 55, 2E, 55, 14, 21, 02, 00, 3F, 55, 3E, 55, FF, FF, FE, FF, 00, 20, 10, 00, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 07, 55, 06, 55, 05, 55, 04, 55, 03, 55, 02, 55, 01, 55, 00, 55, 40, 20, 10, 00, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 18, 55, 17, 55, 16, 55, 15, 55, 14, 55, 13, 55, 12, 55, 11, 55, 10, 55, 80, 20, 10, 00, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 29, 55, 28, 55, 27, 55, 26, 55, 25, 55, 24, 55, 23, 55, 22, 55, 21, 55, 20, 55, C0, 20, 10, 00, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 3A, 55, 39, 55, 38, 55, 37, 55, 36, 55, FF, 02, FF, 02, 33, 55, 32, 55, 31, 55, 30, 55, 00, 21, 10, 00, 38, 57, 4E, 55, 4D, 55, 4C, 55, 4B, 55, 4A, 55, 49, 55, 48, 55, 47, 55, 46, 55, FF, 02, FF, 02, 43, 55, 42, 55, 38, 43, 38, 43, 40, 21, 10, 00, 5F, 55, 5E, 55, 5D, 55, 5C, 55, 5B, 55, 5A, 55, 59, 55, 58, 55, 57, 55, 56, 55, 55, 55, 54, 55, 53, 55, 38, 43, 38, 43, 38, 43, 80, 21, 10, 00, 6F, 55, 6E, 55, 6D, 55, 6C, 55, 6B, 55, 6A, 55, 69, 55, 68, 55, 67, 55, 66, 55, 65, 55, 64, 55, 38, 43, 38, 43, 38, 43, 38, 43, C0, 21, 10, 00, 7F, 55, 7E, 55, 7D, 55, 7C, 55, 7B, 55, 7A, 55, 79, 55, 78, 55, 77, 55, 76, 55, 75, 55, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 00, 22, 10, 00, 8F, 55, 8E, 55, 8D, 55, 8C, 55, 8B, 55, 8A, 55, 89, 55, 9F, 55, 9E, 55, 86, 55, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 40, 22, 10, 00, 38, 43, 38, 43, 38, 43, 9C, 55, 9B, 55, 9A, 55, 99, 55, 98, 55, 97, 55, 96, 55, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 80, 22, 10, 00, 38, 43, 38, 43, 38, 43, AC, 55, AB, 55, AA, 55, A9, 55, A8, 55, A7, 55, A6, 55, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, C0, 22, 10, 00, 38, 43, 38, 43, 38, 43, BC, 55, BB, 55, BA, 55, B9, 55, B8, 55, B7, 55, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 38, 43, 00, 23, 10, 00, 38, C3, 38, C3, 38, C3, 09, 55, 08, 55, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 40, 23, 10, 00, 38, C3, 38, C3, 38, C3, 19, 55, 3B, 55, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 80, 23, 10, 00, 38, C3, 38, C3, 38, C3, 2B, 55, 2A, 55, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, 38, C3, FF, FF, 03, 00, 00, 00, F8, BD, 67, 00, 00, F0, AD, 67, F8, 81, 00, A9, 67 $A5:C35D db 04, 00, 04, 00, F4, BB, 67, 04, 00, EC, AB, 67, 04, 00, FC, A4, 67, F4, 81, FC, A5, 67, 02, 00, 00, 80, F8, A0, 67, F0, 81, F8, A2, 67, 03, 00, 00, 00, 00, 97, 67, 08, 00, 00, 96, 67, F0, 81, F8, AE, 67, 03, 00, 00, 00, 00, D1, 67, 08, 00, 00, D0, 67, F0, 81, F8, C2, 67, 03, 00, FC, 01, 04, 87, 67, 04, 00, 04, 86, 67, F4, 81, F4, C4, 67, 02, 00, F8, 81, 00, 88, 67, F8, 81, F0, C6, 67, 03, 00, 00, 00, 00, BD, E1, 00, 00, 08, AD, E1, F8, 81, F0, C8, 21 $A5:C441 db 01, 00, F8, 81, F8, 84, 67, 01, 00, F8, 81, F8, 82, 67, 01, 00, F8, 81, F8, 80, 67 ;;; $C46B: Initialisation AI - enemy $DE7F (Draygon's eye) ;;; { $A5:C46B AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:C46E A9 44 99 LDA #$9944 $A5:C471 9D 92 0F STA $0F92,x[$7E:0FD2] ; Eyes PLM instructions $A5:C474 A9 4B 80 LDA #$804B $A5:C477 9D A8 0F STA $0FA8,x[$7E:0FE8] $A5:C47A 6B RTL } $A5:C47B 5A PHY $A5:C47C B9 00 00 LDA $0000,y[$A5:988D] $A5:C47F 8D E8 0F STA $0FE8 [$7E:0FE8] $A5:C482 7A PLY $A5:C483 C8 INY $A5:C484 C8 INY $A5:C485 6B RTL ;;; $C486: Main AI - enemy $DE7F (Draygon's eye) ;;; { $A5:C486 AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:C489 FC A8 0F JSR ($0FA8,x)[$A5:C48D] $A5:C48C 6B RTL } $A5:C48D BD A4 0F LDA $0FA4,x[$7E:0FE4] ; Room framecounter? $A5:C490 29 7F 00 AND #$007F $A5:C493 D0 1C BNE $1C [$C4B1] $A5:C495 AD BA 0F LDA $0FBA [$7E:0FBA] $A5:C498 38 SEC $A5:C499 E9 18 00 SBC #$0018 $A5:C49C 85 12 STA $12 [$7E:0012] $A5:C49E AD BE 0F LDA $0FBE [$7E:0FBE] $A5:C4A1 38 SEC $A5:C4A2 E9 20 00 SBC #$0020 $A5:C4A5 85 14 STA $14 [$7E:0014] $A5:C4A7 A9 18 00 LDA #$0018 $A5:C4AA A0 09 E5 LDY #$E509 $A5:C4AD 22 97 80 86 JSL $868097[$86:8097] $A5:C4B1 AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:C4B4 AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:C4B7 38 SEC $A5:C4B8 E9 18 00 SBC #$0018 $A5:C4BB 85 12 STA $12 [$7E:0012] $A5:C4BD AD F6 0A LDA $0AF6 [$7E:0AF6] ; X position in pixels? $A5:C4C0 38 SEC $A5:C4C1 E5 12 SBC $12 [$7E:0012] $A5:C4C3 85 12 STA $12 [$7E:0012] $A5:C4C5 AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:C4C8 38 SEC $A5:C4C9 E9 20 00 SBC #$0020 $A5:C4CC 85 14 STA $14 [$7E:0014] $A5:C4CE AD FA 0A LDA $0AFA [$7E:0AFA] $A5:C4D1 38 SEC $A5:C4D2 E5 14 SBC $14 [$7E:0014] $A5:C4D4 85 14 STA $14 [$7E:0014] $A5:C4D6 22 AE C0 A0 JSL $A0C0AE[$A0:C0AE] $A5:C4DA DD B2 0F CMP $0FB2,x[$7E:0FF2] $A5:C4DD F0 33 BEQ $33 [$C512] $A5:C4DF A0 BA 99 LDY #$99BA $A5:C4E2 C9 20 00 CMP #$0020 $A5:C4E5 30 1B BMI $1B [$C502] $A5:C4E7 A0 B4 99 LDY #$99B4 $A5:C4EA C9 60 00 CMP #$0060 $A5:C4ED 30 13 BMI $13 [$C502] $A5:C4EF A0 C0 99 LDY #$99C0 $A5:C4F2 C9 A0 00 CMP #$00A0 $A5:C4F5 30 0B BMI $0B [$C502] $A5:C4F7 A0 AE 99 LDY #$99AE $A5:C4FA C9 E0 00 CMP #$00E0 $A5:C4FD 30 03 BMI $03 [$C502] $A5:C4FF A0 BA 99 LDY #$99BA $A5:C502 9D B2 0F STA $0FB2,x[$7E:0FF2] $A5:C505 98 TYA $A5:C506 9D 92 0F STA $0F92,x[$7E:0FD2] ; Eyes PLM instructions $A5:C509 A9 01 00 LDA #$0001 $A5:C50C 9D 94 0F STA $0F94,x[$7E:0FD4] $A5:C50F 9E 90 0F STZ $0F90,x[$7E:0FD0] $A5:C512 60 RTS $A5:C513 BD A4 0F LDA $0FA4,x[$7E:0FE4] ; Room framecounter? $A5:C516 29 7F 00 AND #$007F $A5:C519 D0 1C BNE $1C [$C537] $A5:C51B AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:C51E 18 CLC $A5:C51F 69 18 00 ADC #$0018 $A5:C522 85 12 STA $12 [$7E:0012] $A5:C524 AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:C527 38 SEC $A5:C528 E9 20 00 SBC #$0020 $A5:C52B 85 14 STA $14 [$7E:0014] $A5:C52D A9 18 00 LDA #$0018 $A5:C530 A0 09 E5 LDY #$E509 $A5:C533 22 97 80 86 JSL $868097[$86:8097] $A5:C537 AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:C53A AD 7A 0F LDA $0F7A [$7E:0F7A] ; X coord $A5:C53D 18 CLC $A5:C53E 69 18 00 ADC #$0018 $A5:C541 85 12 STA $12 [$7E:0012] $A5:C543 AD F6 0A LDA $0AF6 [$7E:0AF6] ; X position in pixels? $A5:C546 38 SEC $A5:C547 E5 12 SBC $12 [$7E:0012] $A5:C549 85 12 STA $12 [$7E:0012] $A5:C54B AD 7E 0F LDA $0F7E [$7E:0F7E] ; Y coord $A5:C54E 38 SEC $A5:C54F E9 20 00 SBC #$0020 $A5:C552 85 14 STA $14 [$7E:0014] $A5:C554 AD FA 0A LDA $0AFA [$7E:0AFA] $A5:C557 38 SEC $A5:C558 E5 14 SBC $14 [$7E:0014] $A5:C55A 85 14 STA $14 [$7E:0014] $A5:C55C 22 AE C0 A0 JSL $A0C0AE[$A0:C0AE] $A5:C560 DD B2 0F CMP $0FB2,x[$7E:0FF2] $A5:C563 F0 33 BEQ $33 [$C598] $A5:C565 A0 5C 9D LDY #$9D5C $A5:C568 C9 20 00 CMP #$0020 $A5:C56B 30 1B BMI $1B [$C588] $A5:C56D A0 50 9D LDY #$9D50 $A5:C570 C9 60 00 CMP #$0060 $A5:C573 30 13 BMI $13 [$C588] $A5:C575 A0 62 9D LDY #$9D62 $A5:C578 C9 A0 00 CMP #$00A0 $A5:C57B 30 0B BMI $0B [$C588] $A5:C57D A0 56 9D LDY #$9D56 $A5:C580 C9 E0 00 CMP #$00E0 $A5:C583 30 03 BMI $03 [$C588] $A5:C585 A0 5C 9D LDY #$9D5C $A5:C588 9D B2 0F STA $0FB2,x[$7E:0FF2] $A5:C58B 98 TYA $A5:C58C 9D 92 0F STA $0F92,x[$7E:0FD2] ; Eyes PLM instructions $A5:C58F A9 01 00 LDA #$0001 $A5:C592 9D 94 0F STA $0F94,x[$7E:0FD4] $A5:C595 9E 90 0F STZ $0F90,x[$7E:0FD0] $A5:C598 60 RTS ;;; $C599: Initialisation AI - enemy $DEBF (Draygon's tail) ;;; { $A5:C599 AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:C59C A9 FC 99 LDA #$99FC $A5:C59F 9D 92 0F STA $0F92,x[$7E:1012] ; Tail PLM instructions $A5:C5A2 A9 00 07 LDA #$0700 $A5:C5A5 0A ASL A $A5:C5A6 9D 96 0F STA $0F96,x[$7E:1016] $A5:C5A9 6B RTL } ;;; $C5AA: Main AI - enemy $DEBF (Draygon's tail) ;;; { $A5:C5AA 6B RTL } ;;; $C5AD: Initialisation AI - enemy $DEFF (Draygon's arms) ;;; { $A5:C5AD AE 54 0E LDX $0E54 [$7E:0E54] ; Enemy Index $A5:C5B0 A9 E7 97 LDA #$97E7 $A5:C5B3 9D 92 0F STA $0F92,x[$7E:1052] ; Arm PLM instructions $A5:C5B6 A9 00 07 LDA #$0700 $A5:C5B9 0A ASL A $A5:C5BA 9D 96 0F STA $0F96,x[$7E:1056] $A5:C5BD A9 02 00 LDA #$0002 $A5:C5C0 9D 9A 0F STA $0F9A,x[$7E:105A] $A5:C5C3 6B RTL } ;;; $C5C4: Main AI - enemy $DEFF (Draygon's arms) ;;; { $A5:C5C4 6B RTL } $A5:CE07 db 03, 00, 03 $A5:CE0B db 03, 00, 02 $A5:CE0F db 03, 00, 03 $A5:CE13 db 03, 00, 02 $A5:CE17 db 03, FF, 02 $A5:CE1B db 02, FF, 02 $A5:CE1F db 02, FE, 02 $A5:CE23 db 02, FE, 01 $A5:CE27 db 02, FD, 01 $A5:CE2B db 01, FD, 02 $A5:CE2F db 01, FE, 00 $A5:CE33 db 01, FE, 01 $A5:CE37 db 01, 00, 00 $A5:CE3B db 01, 00, 01 $A5:CE3F db 00, 01, 00 $A5:CE43 db 00, 02, 00 $A5:CE47 db 00, 02, 00 $A5:CE4B db 00, 02, 00 $A5:CE4F db FF, 03, 00 $A5:CE53 db 00, 03, FF $A5:CE57 db 00, 03, FF $A5:CE5B db 00, 04, FF $A5:CE5F db 00, 04, FF $A5:CE63 db FF, 04, 00 $A5:CE67 db FF, 04, FF $A5:CE6B db 00, 05, FF $A5:CE6F db FF, 04, FF $A5:CE73 db FF, 04, 00 $A5:CE77 db FF, 05, FF $A5:CE7B db FF, 04, FF $A5:CE7F db FF, 04, 00 $A5:CE83 db FF, 03, FF $A5:CE87 db FF, 03, 00 $A5:CE8B db FF, 03, FF $A5:CE8F db FF, 03, 00 $A5:CE93 db FF, 02, FF $A5:CE97 db 00, 01, FF $A5:CE9B db 00, 01, FF $A5:CE9F db FF, 00, 00 $A5:CEA3 db 00, FF, 00 $A5:CEA7 db 00, FF, 00 $A5:CEAB db 00, FF, 00 $A5:CEAF db 00, FE, 00 $A5:CEB3 db 00, FD, 00 $A5:CEB7 db 01, FD, 00 $A5:CEBB db 00, FD, 01 $A5:CEBF db 00, FC, 01 $A5:CEC3 db 01, FC, 00 $A5:CEC7 db 01, FC, 01 $A5:CECB db 00, FC, 01 $A5:CECF db 01, FD, 01 $A5:CED3 db 01, FD, 01 $A5:CED7 db 01, FD, 01 $A5:CEDB db 02, FD, 01 $A5:CEDF db 01, FD, 02 $A5:CEE3 db 01, FD, 01 $A5:CEE7 db 02, FE, 02 $A5:CEEB db 01, FD, 02 $A5:CEEF db 02, FE, 02 $A5:CEF3 db 01, FE, 02 $A5:CEF7 db 02, FE, 03 $A5:CEFB db 02, FF, 02 $A5:CEFF db 03, FE, 02 $A5:CF03 db 03, FE, 02 $A5:CF07 db 03, FE, 03 $A5:CF0B db 03, FE, 03 $A5:CF0F db 03, FE, 02 $A5:CF13 db 03, FE, 03 $A5:CF17 db 03, FF, 03 $A5:CF1B db 02, FF, 03 $A5:CF1F db 02, FF, 03 $A5:CF23 db 02, 00, 01 $A5:CF27 db 02, 00, 01 $A5:CF2B db 02, 00, 00 $A5:CF2F db 01, 01, 00 $A5:CF33 db 00, 02, 00 $A5:CF37 db 00, 02, FF $A5:CF3B db 00, 03, FF $A5:CF3F db FF, 03, FE $A5:CF43 db FF, 03, FF $A5:CF47 db FE, 03, FE $A5:CF4B db FE, 03, FE $A5:CF4F db FE, 03, FE $A5:CF53 db FE, 03, FE $A5:CF57 db FE, 03, FD $A5:CF5B db FE, 02, FE $A5:CF5F db FD, 02, FE $A5:CF63 db FE, 01, FD $A5:CF67 db FE, 01, FD $A5:CF6B db FE, 01, FD $A5:CF6F db FD, 01, FE $A5:CF73 db FD, 01, FD $A5:CF77 db FE, 00, FD $A5:CF7B db FD, FF, FD $A5:CF7F db FD, FF, FD $A5:CF83 db FD, FF, FD $A5:CF87 db FD, FF, FD $A5:CF8B db FE, FE, FE $A5:CF8F db FF, FE, 00 $A5:CF93 db 01, FE, 01 $A5:CF97 db 02, FE, 02 $A5:CF9B db 03, FE, 03 $A5:CF9F db 04, FF, 03 $A5:CFA3 db 03, 00, 03 $A5:CFA7 db 03, 00, 03 $A5:CFAB db 03, 00, 02 $A5:CFAF db 02, 02, 03 $A5:CFB3 db 02, 02, 02 $A5:CFB7 db 02, 02, 01 $A5:CFBB db 02, 02, 02 $A5:CFBF db 01, 03, 02 $A5:CFC3 db 01, 03, 02 $A5:CFC7 db 01, 03, 01 $A5:CFCB db 02, 03, 01 $A5:CFCF db 01, 02, 01 $A5:CFD3 db 01, 03, 02 $A5:CFD7 db 01, 03, 01 $A5:CFDB db 01, 03, 02 $A5:CFDF db 01, 02, 01 $A5:CFE3 db 02, 02, 01 $A5:CFE7 db 02, 02, 01 $A5:CFEB db 02, 02, 02 $A5:CFEF db 02, 02, 02 $A5:CFF3 db 02, 01, 02 $A5:CFF7 db 02, 01, 02 $A5:CFFB db 03, 01, 02 $A5:CFFF db 03, 01, 02 $A5:D003 db 03, 00, 03 $A5:D007 db 03, 01, 01 $A5:D00B db 02, 00, 01 $A5:D00F db 02, 00, 01 $A5:D013 db 02, 00, 01 $A5:D017 db 01, 00, 02 $A5:D01B db 01, FF, 02 $A5:D01F db 01, FF, 02 $A5:D023 db 01, FF, 01 $A5:D027 db 02, 00, 01 $A5:D02B db 01, FF, 02 $A5:D02F db 01, FF, 01 $A5:D033 db 02, FF, 01 $A5:D037 db 01, FF, 01 $A5:D03B db 02, FF, 01 $A5:D03F db 01, FF, 01 $A5:D043 db 01, FF, 02 $A5:D047 db 01, FF, 01 $A5:D04B db 01, FF, 01 $A5:D04F db 01, FF, 01 $A5:D053 db 01, FF, 01 $A5:D057 db 01, FE, 00 $A5:D05B db 01, FE, 01 $A5:D05F db 01, FE, 00 $A5:D063 db 01, FE, 01 $A5:D067 db 00, FE, 01 $A5:D06B db 00, FE, 00 $A5:D06F db 01, FE, 00 $A5:D073 db 00, FF, 00 $A5:D077 db 00, FF, 00 $A5:D07B db 00, FE, 00 $A5:D07F db 00, FE, 00 $A5:D083 db FF, FE, 00 $A5:D087 db 00, FF, FF $A5:D08B db FF, FE, 00 $A5:D08F db FF, FE, FF $A5:D093 db FF, FE, FF $A5:D097 db FF, FF, FF $A5:D09B db FF, FF, FF $A5:D09F db FE, FF, FF $A5:D0A3 db FF, 00, FE $A5:D0A7 db FF, 00, FF $A5:D0AB db FE, 01, FF $A5:D0AF db FE, 01, FF $A5:D0B3 db FE, 01, FF $A5:D0B7 db FF, 01, FE $A5:D0BB db FF, 01, FF $A5:D0BF db FF, 01, FF $A5:D0C3 db FF, 02, FF $A5:D0C7 db FF, 01, 00 $A5:D0CB db FF, 01, FF $A5:D0CF db 00, 01, FF $A5:D0D3 db 00, 02, 00 $A5:D0D7 db FF, 02, 00 $A5:D0DB db 00, 02, 00 $A5:D0DF db 00, 02, FF $A5:D0E3 db 00, 02, 00 $A5:D0E7 db 00, 01, 00 $A5:D0EB db 00, 01, 00 $A5:D0EF db 00, 02, 00 $A5:D0F3 db 00, 02, 00 $A5:D0F7 db 00, 01, 00 $A5:D0FB db 00, 02, 00 $A5:D0FF db 00, 02, 00 $A5:D103 db 01, 01, 00 $A5:D107 db 00, 01, 01 $A5:D10B db 00, 01, 01 $A5:D10F db 00, 02, 01 $A5:D113 db 01, 01, 00 $A5:D117 db 01, 01, 01 $A5:D11B db 02, 00, 01 $A5:D11F db 01, 01, 01 $A5:D123 db 02, 01, 01 $A5:D127 db 02, 01, 01 $A5:D12B db 02, 01, 01 $A5:D12F db 02, 01, 01 $A5:D133 db 02, 00, 02 $A5:D137 db 01, 00, 02 $A5:D13B db 01, 00, 02 $A5:D13F db 02, 00, 01 $A5:D143 db 02, 00, 01 $A5:D147 db 02, 00, 01 $A5:D14B db 02, 00, 01 $A5:D14F db 02, 00, 01 $A5:D153 db 01, 00, 02 $A5:D157 db 01, 00, 02 $A5:D15B db 01, FF, 01 $A5:D15F db 02, FF, 01 $A5:D163 db 01, 00, 02 $A5:D167 db 01, 00, 01 $A5:D16B db 01, FF, 01 $A5:D16F db 02, FF, 01 $A5:D173 db 01, FF, 01 $A5:D177 db 01, FF, 01 $A5:D17B db 01, FF, 01 $A5:D17F db 01, FF, 00 $A5:D183 db 01, FF, 01 $A5:D187 db 01, FE, 00 $A5:D18B db 01, FF, 00 $A5:D18F db 01, FE, 01 $A5:D193 db 00, FE, 01 $A5:D197 db 00, FE, 01 $A5:D19B db 00, FE, 01 $A5:D19F db 00, FF, 01 $A5:D1A3 db 00, FE, 01 $A5:D1A7 db 01, FE, 00 $A5:D1AB db 01, FE, 00 $A5:D1AF db 01, FE, 00 $A5:D1B3 db 01, FE, 00 $A5:D1B7 db 01, FE, 00 $A5:D1BB db 01, FE, 00 $A5:D1BF db 01, FE, 00 $A5:D1C3 db 00, FE, 01 $A5:D1C7 db 00, FE, 01 $A5:D1CB db 00, FF, 01 $A5:D1CF db 00, FF, 00 $A5:D1D3 db 01, FF, 00 $A5:D1D7 db 00, FE, 01 $A5:D1DB db 00, FF, 00 $A5:D1DF db 01, FF, 00 $A5:D1E3 db 00, FF, 01 $A5:D1E7 db 00, 01, 00 $A5:D1EB db 00, 01, 00 $A5:D1EF db 00, 01, 00 $A5:D1F3 db 00, 01, 00 $A5:D1F7 db 00, 02, 00 $A5:D1FB db 00, 02, FF $A5:D1FF db 00, 02, 00 $A5:D203 db 00, 01, 00 $A5:D207 db 00, 02, FF $A5:D20B db 00, 02, 00 $A5:D20F db 00, 01, FF $A5:D213 db 00, 02, 00 $A5:D217 db 00, 02, FF $A5:D21B db 00, 02, 00 $A5:D21F db 00, 02, FF $A5:D223 db 00, 01, 00 $A5:D227 db 00, 01, 00 $A5:D22B db 00, 02, FF $A5:D22F db 00, 01, 00 $A5:D233 db 00, 01, 00 $A5:D237 db 00, 02, 00 $A5:D23B db 00, 01, 00 $A5:D23F db 00, 02, 00 $A5:D243 db 00, 01, 01 $A5:D247 db 00, 01, 00 $A5:D24B db 01, 01, 00 $A5:D24F db 00, 01, 01 $A5:D253 db 00, 02, 01 $A5:D257 db 00, 01, 01 $A5:D25B db 01, 02, 01 $A5:D25F db 00, 01, 01 $A5:D263 db 01, 01, 01 $A5:D267 db 01, 01, 01 $A5:D26B db 01, 01, 01 $A5:D26F db 01, 00, 02 $A5:D273 db 01, 01, 01 $A5:D277 db 01, 01, 02 $A5:D27B db 01, 00, 01 $A5:D27F db 02, 00, 01 $A5:D283 db 02, 00, 01 $A5:D287 db 01, 00, 01 $A5:D28B db 01, FF, 01 $A5:D28F db 01, FF, 01 $A5:D293 db 01, FF, 02 $A5:D297 db 01, FF, 01 $A5:D29B db 01, FF, 01 $A5:D29F db 01, FF, 01 $A5:D2A3 db 01, FF, 01 $A5:D2A7 db 01, FF, 01 $A5:D2AB db 01, FF, 01 $A5:D2AF db 01, FF, 01 $A5:D2B3 db 01, FF, 01 $A5:D2B7 db 01, FF, 01 $A5:D2BB db 01, FF, 00 $A5:D2BF db 01, FF, 01 $A5:D2C3 db 01, FF, 01 $A5:D2C7 db 01, FF, 00 $A5:D2CB db 01, FF, 01 $A5:D2CF db 01, FF, 00 $A5:D2D3 db 01, FF, 01 $A5:D2D7 db 00, FF, 01 $A5:D2DB db 01, FF, 00 $A5:D2DF db 01, FF, 01 $A5:D2E3 db 00, FF, 01 $A5:D2E7 db 00, FF, 01 $A5:D2EB db 01, FF, 00 $A5:D2EF db 01, FF, 00 $A5:D2F3 db 01, FF, 00 $A5:D2F7 db 01, FE, 00 $A5:D2FB db 00, FE, 01 $A5:D2FF db 00, FF, 01 $A5:D303 db 00, FF, 00 $A5:D307 db 01, FE, 00 $A5:D30B db 01, FE, 00 $A5:D30F db 00, FE, 00 $A5:D313 db 01, FE, 00 $A5:D317 db 00, FE, 01 $A5:D31B db 00, FE, 00 $A5:D31F db 00, FE, 01 $A5:D323 db 00, FE, 00 $A5:D327 db 00, FE, 00 $A5:D32B db 00, FE, 01 $A5:D32F db 00, FE, 00 $A5:D333 db 00, FE, 00 $A5:D337 db 00, FE, 00 $A5:D33B db 00, FE, 00 $A5:D33F db 00, FE, 00 $A5:D343 db 00, FF, 00 $A5:D347 db 00, FF, 00 $A5:D34B db FF, FF, 00 $A5:D34F db 00, FF, 00 $A5:D353 db 00, FF, FF $A5:D357 db 00, FF, FF $A5:D35B db FF, 00, FF $A5:D35F db 00, 01, FF $A5:D363 db 00, 01, FF $A5:D367 db FF, 01, 00 $A5:D36B db FF, 01, FF $A5:D36F db 00, 02, FF $A5:D373 db FF, 02, 00 $A5:D377 db FF, 02, 00 $A5:D37B db FF, 01, FF $A5:D37F db 00, 02, FF $A5:D383 db FF, 01, 00 $A5:D387 db FF, 02, 00 $A5:D38B db FF, 01, 00 $A5:D38F db 00, 02, FF $A5:D393 db 00, 02, FF $A5:D397 db 00, 02, 00 $A5:D39B db 00, 01, FF $A5:D39F db 00, 01, 00 $A5:D3A3 db 00, 01, 00 $A5:D3A7 db FF, 01, 00 $A5:D3AB db 00, 01, 00 $A5:D3AF db 00, 02, 00 $A5:D3B3 db 00, 02, 00 $A5:D3B7 db 00, 01, 00 $A5:D3BB db 00, 01, 00 $A5:D3BF db 00, 02, 00 $A5:D3C3 db 00, 01, 00 $A5:D3C7 db 00, 01, 00 $A5:D3CB db 01, 01, 00 $A5:D3CF db 00, 01, 00 $A5:D3D3 db 00, 02, 00 $A5:D3D7 db 00, 01, 00 $A5:D3DB db 00, 01, 00 $A5:D3DF db 00, 02, 01 $A5:D3E3 db 00, 01, 00 $A5:D3E7 db 00, 01, 00 $A5:D3EB db 00, 02, 00 $A5:D3EF db 00, 01, 00 $A5:D3F3 db 00, 01, 00 $A5:D3F7 db 00, 01, 00 $A5:D3FB db 00, 02, 00 $A5:D3FF db 00, 02, 00 $A5:D403 db 00, 02, 00 $A5:D407 db 00, 02, 00 $A5:D40B db 00, 02, FF $A5:D40F db 00, 01, 00 $A5:D413 db 00, 02, 00 $A5:D417 db FF, 02, 00 $A5:D41B db 00, 01, 00 $A5:D41F db FF, 01, 00 $A5:D423 db 00, 01, 00 $A5:D427 db FF, 00, 00 $A5:D42B db 00, FF, 00 $A5:D42F db 00, FF, 00 $A5:D433 db 00, FE, 00 $A5:D437 db 00, FE, 00 $A5:D43B db 00, FE, 01 $A5:D43F db 00, FE, 00 $A5:D443 db 00, FE, 00 $A5:D447 db 01, FE, 00 $A5:D44B db 00, FD, 01 $A5:D44F db 00, FE, 01 $A5:D453 db 00, FE, 01 $A5:D457 db 00, FD, 01 $A5:D45B db 01, FE, 00 $A5:D45F db 01, FE, 01 $A5:D463 db 00, FF, 01 $A5:D467 db 01, FE, 01 $A5:D46B db 01, FF, 01 $A5:D46F db 01, FF, 01 $A5:D473 db 01, FF, 01 $A5:D477 db 01, FF, 01 $A5:D47B db 01, FF, 01 $A5:D47F db 01, 00, 02 $A5:D483 db 01, 00, 01 $A5:D487 db 02, 01, 01 $A5:D48B db 01, 01, 02 $A5:D48F db 01, 01, 01 $A5:D493 db 01, 01, 01 $A5:D497 db 02, 01, 01 $A5:D49B db 01, 01, 00 $A5:D49F db 01, 01, 01 $A5:D4A3 db 01, 02, 00 $A5:D4A7 db 01, 02, 00 $A5:D4AB db 00, 02, 01 $A5:D4AF db 00, 02, 00 $A5:D4B3 db 00, 02, 00 $A5:D4B7 db 00, 02, FF $A5:D4BB db 00, 02, 00 $A5:D4BF db FF, 02, 00 $A5:D4C3 db FF, 01, FF $A5:D4C7 db FF, 01, FF $A5:D4CB db FF, 02, FF $A5:D4CF db FF, 01, FF $A5:D4D3 db FF, 01, FE $A5:D4D7 db FF, 00, FF $A5:D4DB db FE, 00, FF $A5:D4DF db FE, FF, FF $A5:D4E3 db FE, 00, FF $A5:D4E7 db FF, FF, FF $A5:D4EB db FF, 00, FF $A5:D4EF db 00, 01, 00 $A5:D4F3 db 01, 01, 00 $A5:D4F7 db 01, 02, 01 $A5:D4FB db 01, 02, 01 $A5:D4FF db 01, 02, 02 $A5:D503 db 01, 01, 01 $A5:D507 db 02, 01, 01 $A5:D50B db 01, 01, 02 $A5:D50F db 01, 00, 02 $A5:D513 db 01, 00, 01 $A5:D517 db 02, 00, 01 $A5:D51B db 02, FF, 01 $A5:D51F db 02, 00, 01 $A5:D523 db 01, 00, 02 $A5:D527 db 01, 00, 02 $A5:D52B db 01, FF, 01 $A5:D52F db 02, 00, 01 $A5:D533 db 02, 00, 02 $A5:D537 db 01, FE, 02 $A5:D53B db 02, FF, 02 $A5:D53F db 01, FE, 02 $A5:D543 db 02, FE, 01 $A5:D547 db 02, FF, 02 $A5:D54B db 01, FE, 02 $A5:D54F db 02, FE, 01 $A5:D553 db 02, FE, 01 $A5:D557 db 02, FE, 01 $A5:D55B db 02, FD, 01 $A5:D55F db 02, FD, 01 $A5:D563 db 01, FD, 02 $A5:D567 db 01, FD, 01 $A5:D56B db 01, FD, 01 $A5:D56F db 01, FD, 01 $A5:D573 db 01, FD, 01 $A5:D577 db 00, FD, 01 $A5:D57B db 01, FD, 00 $A5:D57F db 01, FD, 00 $A5:D583 db 00, FE, 01 $A5:D587 db 00, FE, 00 $A5:D58B db 00, FE, FF $A5:D58F db 00, FF, FF $A5:D593 db FF, 00, FF $A5:D597 db 00, 01, FF $A5:D59B db FF, 01, FE $A5:D59F db FF, 01, FF $A5:D5A3 db FF, 02, FF $A5:D5A7 db FE, 02, FF $A5:D5AB db FF, 02, FF $A5:D5AF db FF, 03, FE $A5:D5B3 db FF, 03, FF $A5:D5B7 db 00, 03, FF $A5:D5BB db FF, 03, 00 $A5:D5BF db FF, 03, 00 $A5:D5C3 db 00, 03, 00 $A5:D5C7 db 00, 03, 00 $A5:D5CB db 00, 03, 01 $A5:D5CF db 00, 03, 01 $A5:D5D3 db 00, 03, 01 $A5:D5D7 db 01, 03, 01 $A5:D5DB db 01, 02, 01 $A5:D5DF db 01, 02, 01 $A5:D5E3 db 01, 02, 01 $A5:D5E7 db 02, 01, 01 $A5:D5EB db 01, 01, 02 $A5:D5EF db 01, 01, 01 $A5:D5F3 db 02, 00, 01 $A5:D5F7 db 02, 00, 01 $A5:D5FB db 02, FF, 02 $A5:D5FF db 01, FF, 02 $A5:D603 db 01, FE, 02 $A5:D607 db 01, FE, 02 $A5:D60B db 01, FE, 02 $A5:D60F db 01, FD, 01 $A5:D613 db 02, FD, 01 $A5:D617 db 01, FD, 02 $A5:D61B db 01, FD, 01 $A5:D61F db 01, FD, 01 $A5:D623 db 01, FD, 01 $A5:D627 db 01, FD, 00 $A5:D62B db 01, FD, 01 $A5:D62F db 00, FD, 00 $A5:D633 db 01, FE, 00 $A5:D637 db 00, FD, 00 $A5:D63B db FF, FE, 00 $A5:D63F db FF, FE, 00 $A5:D643 db FF, FE, FF $A5:D647 db FF, FE, FE $A5:D64B db FF, FF, FE $A5:D64F db FE, FF, FE $A5:D653 db FE, FF, FD $A5:D657 db FD, 00, FE $A5:D65B db FD, 01, FD $A5:D65F db FE, 01, FE $A5:D663 db FE, 01, FF $A5:D667 db FF, 02, 00 $A5:D66B db 01, 02, 01 $A5:D66F db 02, 01, 02 $A5:D673 db 02, 01, 03 $A5:D677 db 02, 01, 03 $A5:D67B db 03, 00, 02 $A5:D67F db 03, 00, 02 $A5:D683 db 02, 00, 03 $A5:D687 db 02, 00, 02 $A5:D68B db 02, 00, 02 $A5:D68F db 02, 00, 03 $A5:D693 db 01, 00, 01 $A5:D697 db 01, 00, 01 $A5:D69B db 01, 00, 01 $A5:D69F db 01, 00, 01 $A5:D6A3 db 02, 00, 01 $A5:D6A7 db 01, 00, 01 $A5:D6AB db 01, 00, 01 $A5:D6AF db 01, 00, 01 $A5:D6B3 db 01, 00, 01 $A5:D6B7 db 01, 00, 01 $A5:D6BB db 01, 00, 01 $A5:D6BF db 01, 00, 01 $A5:D6C3 db 01, 00, 01 $A5:D6C7 db 01, 00, 01 $A5:D6CB db 01, 00, 01 $A5:D6CF db 02, 00, 01 $A5:D6D3 db 01, 00, 01 $A5:D6D7 db 01, 00, 01 $A5:D6DB db 01, 00, 01 $A5:D6DF db 01, FF, 01 $A5:D6E3 db 01, 00, 01 $A5:D6E7 db 01, 00, 01 $A5:D6EB db 01, 00, 01 $A5:D6EF db 01, 00, 01 $A5:D6F3 db 01, FF, 01 $A5:D6F7 db 01, 00, 01 $A5:D6FB db 01, 00, 01 $A5:D6FF db 01, 00, 01 $A5:D703 db 01, FF, 01 $A5:D707 db 01, 00, 01 $A5:D70B db 01, 00, 01 $A5:D70F db 01, FF, 01 $A5:D713 db 01, FF, 01 $A5:D717 db 01, 00, 00 $A5:D71B db 01, 00, 01 $A5:D71F db 01, 00, 01 $A5:D723 db 01, 00, 01 $A5:D727 db 01, FF, 01 $A5:D72B db 01, FF, 01 $A5:D72F db 01, FF, 01 $A5:D733 db 01, FF, 01 $A5:D737 db 01, FF, 01 $A5:D73B db 01, FF, 01 $A5:D73F db 01, FF, 01 $A5:D743 db 01, 00, 01 $A5:D747 db 00, FF, 01 $A5:D74B db 01, 00, 01 $A5:D74F db 01, FF, 01 $A5:D753 db 01, 00, 01 $A5:D757 db 01, FF, 01 $A5:D75B db 01, FF, 00 $A5:D75F db 01, 00, 01 $A5:D763 db 01, FF, 01 $A5:D767 db 01, FF, 00 $A5:D76B db 01, FF, 01 $A5:D76F db 00, FF, 01 $A5:D773 db 01, FF, 00 $A5:D777 db 01, FF, 00 $A5:D77B db 00, FF, 00 $A5:D77F db 00, FF, 00 $A5:D783 db 00, FF, 00 $A5:D787 db 00, FF, 00 $A5:D78B db 00, FF, FF $A5:D78F db 00, FF, FF $A5:D793 db FF, FF, 00 $A5:D797 db FF, 00, FF $A5:D79B db FF, FF, FF $A5:D79F db FF, FF, FF $A5:D7A3 db FF, 00, FF $A5:D7A7 db FF, 01, FF $A5:D7AB db 00, 01, FF $A5:D7AF db FF, 01, 00 $A5:D7B3 db FF, 01, FF $A5:D7B7 db 00, 01, FF $A5:D7BB db 00, 01, FF $A5:D7BF db 00, 02, 00 $A5:D7C3 db FF, 01, 00 $A5:D7C7 db 00, 01, 00 $A5:D7CB db FF, 02, 00 $A5:D7CF db 00, 01, 00 $A5:D7D3 db 00, 01, 00 $A5:D7D7 db 00, 01, 00 $A5:D7DB db 00, 01, 00 $A5:D7DF db 00, 01, 00 $A5:D7E3 db 01, 01, 00 $A5:D7E7 db 00, 01, 00 $A5:D7EB db 00, 01, 00 $A5:D7EF db 00, 01, 00 $A5:D7F3 db 00, 01, 00 $A5:D7F7 db 01, 01, 00 $A5:D7FB db 00, 01, 00 $A5:D7FF db 00, 01, 00 $A5:D803 db 00, 01, 00 $A5:D807 db 00, 01, 00 $A5:D80B db 00, 01, 00 $A5:D80F db 00, 01, 00 $A5:D813 db 00, 02, 00 $A5:D817 db 00, 01, 00 $A5:D81B db 00, 01, 00 $A5:D81F db 00, 01, 00 $A5:D823 db 00, 01, 00 $A5:D827 db 00, 01, 00 $A5:D82B db 00, 01, 00 $A5:D82F db 00, 01, 00 $A5:D833 db 00, 01, 00 $A5:D837 db FF, 01, 00 $A5:D83B db 00, 01, 00 $A5:D83F db 00, 01, 00 $A5:D843 db 00, 01, 00 $A5:D847 db 00, 02, 00 $A5:D84B db 00, 01, 00 $A5:D84F db 00, 01, 00 $A5:D853 db 00, 01, 00 $A5:D857 db 00, 01, 00 $A5:D85B db 00, 01, 00 $A5:D85F db FF, 01, 00 $A5:D863 db 00, 01, 00 $A5:D867 db 00, 01, 00 $A5:D86B db 00, 01, 00 $A5:D86F db 00, 01, 00 $A5:D873 db 00, 01, 00 $A5:D877 db 00, 01, 00 $A5:D87B db 00, 01, 00 $A5:D87F db 00, 01, 00 $A5:D883 db 00, 01, 00 $A5:D887 db 00, 01, 00 $A5:D88B db 00, 01, 00 $A5:D88F db 00, 01, 00 $A5:D893 db 00, 01, 00 $A5:D897 db 00, 01, 00 $A5:D89B db 00, 01, 00 $A5:D89F db 00, 01, 00 $A5:D8A3 db 00, 01, 00 $A5:D8A7 db 00, 01, 00 $A5:D8AB db 00, 01, 00 $A5:D8AF db 00, 01, 00 $A5:D8B3 db 00, 02, 00 $A5:D8B7 db 00, 01, 00 $A5:D8BB db 00, 01, FF $A5:D8BF db 00, 02, 00 $A5:D8C3 db 00, 01, FF $A5:D8C7 db 00, 01, 00 $A5:D8CB db FF, 01, 00 $A5:D8CF db FF, 00, 00 $A5:D8D3 db FF, 01, FF $A5:D8D7 db FF, 01, FF $A5:D8DB db FE, 01, FF $A5:D8DF db FF, 00, FF $A5:D8E3 db FF, FF, FF $A5:D8E7 db FF, 00, FF $A5:D8EB db FE, 00, FF $A5:D8EF db FF, 00, FF $A5:D8F3 db FF, FF, FF $A5:D8F7 db 00, FF, FF $A5:D8FB db 00, FF, 00 $A5:D8FF db 00, FF, 00 $A5:D903 db 00, FF, 01 $A5:D907 db 00, FF, 01 $A5:D90B db 00, FF, 01 $A5:D90F db 01, FF, 01 $A5:D913 db 00, FF, 01 $A5:D917 db 01, FF, 01 $A5:D91B db 01, 00, 01 $A5:D91F db 01, FF, 01 $A5:D923 db 01, 00, 01 $A5:D927 db 01, 00, 01 $A5:D92B db 01, 00, 01 $A5:D92F db 02, 00, 01 $A5:D933 db 01, 00, 01 $A5:D937 db 01, 00, 01 $A5:D93B db 01, 01, 01 $A5:D93F db 01, 00, 01 $A5:D943 db 01, 01, 01 $A5:D947 db 01, 00, 01 $A5:D94B db 01, 00, 01 $A5:D94F db 01, 01, 01 $A5:D953 db 01, 01, 01 $A5:D957 db 01, 01, 01 $A5:D95B db 01, 00, 00 $A5:D95F db 01, 01, 01 $A5:D963 db 01, 01, 00 $A5:D967 db 01, 01, 01 $A5:D96B db 01, 01, 01 $A5:D96F db 01, 01, 01 $A5:D973 db 01, 00, 01 $A5:D977 db 00, 01, 01 $A5:D97B db 01, 01, 01 $A5:D97F db 01, 01, 01 $A5:D983 db 01, 01, 01 $A5:D987 db 01, 01, 01 $A5:D98B db 00, 01, 01 $A5:D98F db 01, 00, 01 $A5:D993 db 01, 00, 01 $A5:D997 db 01, 00, 01 $A5:D99B db 01, 00, 01 $A5:D99F db 01, 00, 01 $A5:D9A3 db 01, 00, 01 $A5:D9A7 db 01, 01, 01 $A5:D9AB db 01, 00, 01 $A5:D9AF db 01, 00, 01 $A5:D9B3 db 01, FF, 01 $A5:D9B7 db 02, 00, 01 $A5:D9BB db 01, 00, 01 $A5:D9BF db 01, 00, 01 $A5:D9C3 db 00, FF, 01 $A5:D9C7 db 00, FF, 01 $A5:D9CB db 01, FF, 00 $A5:D9CF db 01, FF, 00 $A5:D9D3 db 01, FF, 00 $A5:D9D7 db 01, FF, 01 $A5:D9DB db 00, FF, 01 $A5:D9DF db 00, FF, 01 $A5:D9E3 db 00, FE, 01 $A5:D9E7 db 00, FE, 01 $A5:D9EB db 00, FF, 01 $A5:D9EF db 00, FF, 01 $A5:D9F3 db 00, FF, 00 $A5:D9F7 db 01, FE, 00 $A5:D9FB db 01, FF, 00 $A5:D9FF db 00, FF, 01 $A5:DA03 db 00, FF, 00 $A5:DA07 db 01, FF, 00 $A5:DA0B db 00, FF, 00 $A5:DA0F db 01, FF, 00 $A5:DA13 db 00, FF, 00 $A5:DA17 db 00, FF, 00 $A5:DA1B db FF, 00, FF $A5:DA1F db FF, 01, FF $A5:DA23 db 00, 01, FF $A5:DA27 db 00, 01, FF $A5:DA2B db FF, 01, 00 $A5:DA2F db FF, 01, 00 $A5:DA33 db FF, 00, FF $A5:DA37 db 00, 01, FF $A5:DA3B db 00, 01, FF $A5:DA3F db 00, 01, FF $A5:DA43 db 00, 01, FF $A5:DA47 db 00, 01, FF $A5:DA4B db 00, 01, 00 $A5:DA4F db FF, 01, 00 $A5:DA53 db 00, 01, 00 $A5:DA57 db 00, 01, FF $A5:DA5B db 00, 02, 00 $A5:DA5F db 00, 01, 00 $A5:DA63 db 00, 02, 00 $A5:DA67 db 00, 01, 01 $A5:DA6B db 00, 02, 00 $A5:DA6F db 00, 01, 00 $A5:DA73 db 01, 01, 00 $A5:DA77 db 00, 02, 01 $A5:DA7B db 00, 01, 01 $A5:DA7F db 00, 01, 01 $A5:DA83 db 00, 01, 01 $A5:DA87 db 01, 01, 01 $A5:DA8B db 01, 01, 01 $A5:DA8F db 01, 00, 01 $A5:DA93 db 01, 00, 01 $A5:DA97 db 00, FF, 01 $A5:DA9B db 01, FF, 01 $A5:DA9F db 00, FF, 01 $A5:DAA3 db 01, 00, 00 $A5:DAA7 db 01, FF, 00 $A5:DAAB db 01, FF, 00 $A5:DAAF db 01, FF, 01 $A5:DAB3 db 00, FF, 01 $A5:DAB7 db 00, FF, 01 $A5:DABB db 00, FF, 01 $A5:DABF db 00, FF, 00 $A5:DAC3 db 01, FE, 00 $A5:DAC7 db 01, FF, 00 $A5:DACB db 00, FF, 01 $A5:DACF db 00, FF, 00 $A5:DAD3 db 00, FE, 00 $A5:DAD7 db 01, FE, 00 $A5:DADB db 00, FE, 00 $A5:DADF db 00, FE, 00 $A5:DAE3 db 00, FF, 00 $A5:DAE7 db 00, FF, FF $A5:DAEB db 00, FE, 00 $A5:DAEF db 00, FF, FF $A5:DAF3 db 00, FF, 00 $A5:DAF7 db FF, FF, 00 $A5:DAFB db FF, FF, FF $A5:DAFF db FF, 00, 00 $A5:DB03 db FF, 00, FF $A5:DB07 db FF, 00, FF $A5:DB0B db FF, 00, FF $A5:DB0F db FF, 01, FF $A5:DB13 db FF, 00, FF $A5:DB17 db FF, 01, FF $A5:DB1B db FF, 01, 00 $A5:DB1F db FF, 01, 00 $A5:DB23 db 00, 01, 01 $A5:DB27 db 00, 01, 01 $A5:DB2B db 01, 01, 01 $A5:DB2F db 01, 00, 01 $A5:DB33 db 01, 00, 01 $A5:DB37 db 01, 00, 02 $A5:DB3B db 01, 00, 01 $A5:DB3F db 01, 00, 01 $A5:DB43 db 01, 00, 01 $A5:DB47 db 01, 00, 01 $A5:DB4B db 01, 00, 01 $A5:DB4F db 01, FF, 01 $A5:DB53 db 01, 00, 01 $A5:DB57 db 01, FF, 01 $A5:DB5B db 01, FF, 01 $A5:DB5F db 01, FF, 01 $A5:DB63 db 01, FF, 01 $A5:DB67 db 01, FF, 01 $A5:DB6B db 00, FF, 01 $A5:DB6F db 01, FF, 01 $A5:DB73 db 01, 00, 01 $A5:DB77 db 00, 01, 01 $A5:DB7B db 00, 01, 00 $A5:DB7F db 00, 01, 00 $A5:DB83 db 00, 02, 00 $A5:DB87 db 00, 01, 00 $A5:DB8B db 00, 01, 00 $A5:DB8F db 00, 01, 00 $A5:DB93 db 00, 02, 00 $A5:DB97 db 00, 02, 00 $A5:DB9B db FF, 02, 00 $A5:DB9F db 00, 02, 00 $A5:DBA3 db 00, 02, FF $A5:DBA7 db 00, 01, 00 $A5:DBAB db 00, 01, FF $A5:DBAF db 00, 01, 00 $A5:DBB3 db 00, 01, 00 $A5:DBB7 db FF, 01, 00 $A5:DBBB db 00, 01, 00 $A5:DBBF db 00, 01, 00 $A5:DBC3 db 00, 01, FF $A5:DBC7 db 00, 01, 00 $A5:DBCB db 01, 01, 00 $A5:DBCF db 00, 01, 01 $A5:DBD3 db 01, 00, 01 $A5:DBD7 db 01, 00, 01 $A5:DBDB db 01, 00, 00 $A5:DBDF db 01, 00, 01 $A5:DBE3 db 01, 00, 00 $A5:DBE7 db 01, 00, 01 $A5:DBEB db 01, FF, 01 $A5:DBEF db 01, FF, 01 $A5:DBF3 db 01, FF, 01 $A5:DBF7 db 00, FF, 01 $A5:DBFB db 01, FF, 01 $A5:DBFF db 01, FE, 00 $A5:DC03 db 01, FF, 01 $A5:DC07 db 00, FE, 01 $A5:DC0B db 01, FF, 00 $A5:DC0F db 01, FF, 00 $A5:DC13 db 01, FE, 00 $A5:DC17 db 00, FF, 01 $A5:DC1B db 00, FF, 01 $A5:DC1F db 00, FF, 00 $A5:DC23 db 01, FE, 00 $A5:DC27 db 00, FF, 00 $A5:DC2B db 00, FE, 01 $A5:DC2F db 00, FF, 00 $A5:DC33 db 00, FF, 00 $A5:DC37 db 00, FF, 00 $A5:DC3B db 01, FF, 00 $A5:DC3F db 00, FF, 00 $A5:DC43 db 00, 01, 00 $A5:DC47 db 00, 01, 00 $A5:DC4B db 00, 01, 00 $A5:DC4F db 00, 01, 01 $A5:DC53 db 00, 01, 00 $A5:DC57 db 00, 01, 00 $A5:DC5B db 00, 01, 00 $A5:DC5F db 01, 01, 00 $A5:DC63 db 00, 01, 00 $A5:DC67 db 01, 01, 00 $A5:DC6B db 00, 01, 01 $A5:DC6F db 00, 01, 00 $A5:DC73 db 01, 01, 00 $A5:DC77 db 01, 01, 01 $A5:DC7B db 00, 01, 01 $A5:DC7F db 01, 01, 01 $A5:DC83 db 00, 01, 01 $A5:DC87 db 01, 01, 00 $A5:DC8B db 01, 00, 01 $A5:DC8F db 01, 01, 01 $A5:DC93 db 01, 01, 00 $A5:DC97 db 01, 00, 00 $A5:DC9B db 01, 01, 00 $A5:DC9F db 01, 01, 00 $A5:DCA3 db 01, 01, 00 $A5:DCA7 db 01, 01, 00 $A5:DCAB db 01, 01, 00 $A5:DCAF db 01, 00, 00 $A5:DCB3 db 01, 01, 00 $A5:DCB7 db 01, 00, 01 $A5:DCBB db 01, 01, 01 $A5:DCBF db 01, 00, 01 $A5:DCC3 db 01, 00, 01 $A5:DCC7 db 01, 00, 01 $A5:DCCB db 01, 00, 01 $A5:DCCF db 01, FF, 01 $A5:DCD3 db 01, FF, 01 $A5:DCD7 db 01, FF, 01 $A5:DCDB db 01, FF, 01 $A5:DCDF db 01, FF, 01 $A5:DCE3 db 01, FF, 01 $A5:DCE7 db 00, FF, 01 $A5:DCEB db 00, FF, 01 $A5:DCEF db 00, FF, 00 $A5:DCF3 db 01, FF, 00 $A5:DCF7 db 00, FF, 00 $A5:DCFB db 01, FF, 00 $A5:DCFF db 00, FF, 00 $A5:DD03 db 00, FF, 00 $A5:DD07 db 00, FF, 00 $A5:DD0B db 00, FF, 00 $A5:DD0F db 00, FF, 00 $A5:DD13 db 00, FF, 00 $A5:DD17 db FF, FF, 00 $A5:DD1B db 00, FE, 00 $A5:DD1F db 00, FF, FF $A5:DD23 db 00, FE, 00 $A5:DD27 db 00, FF, FF $A5:DD2B db 00, FF, 00 $A5:DD2F db FF, FF, 00 $A5:DD33 db FF, FF, 00 $A5:DD37 db 00, FF, FF $A5:DD3B db 00, FF, FF $A5:DD3F db FF, FF, 00 $A5:DD43 db FF, 00, 00 $A5:DD47 db FF, 00, 00 $A5:DD4B db FF, 00, FF $A5:DD4F db FF, 00, FF $A5:DD53 db 00, 01, FF $A5:DD57 db FF, 01, FF $A5:DD5B db 00, 01, FF $A5:DD5F db 00, 01, FF $A5:DD63 db 00, 01, 00 $A5:DD67 db FF, 01, 00 $A5:DD6B db FF, 01, 00 $A5:DD6F db FF, 01, 00 $A5:DD73 db 00, 01, FF $A5:DD77 db 00, 01, 00 $A5:DD7B db FF, 01, 00 $A5:DD7F db 00, 01, 00 $A5:DD83 db 00, 01, FF $A5:DD87 db 00, 02, 00 $A5:DD8B db 00, 01, 00 $A5:DD8F db 00, 02, 00 $A5:DD93 db 00, 01, 00 $A5:DD97 db 00, 01, 00 $A5:DD9B db 00, 01, 01 $A5:DD9F db 00, 02, 00 $A5:DDA3 db 00, 01, 01 $A5:DDA7 db 00, 01, 01 $A5:DDAB db 00, 01, 00 $A5:DDAF db 01, 01, 00 $A5:DDB3 db 01, 01, 00 $A5:DDB7 db 01, 01, 01 $A5:DDBB db 00, 01, 01 $A5:DDBF db 80, 80 $A5:DDC3 db 80, 80 $A5:DDC7 db 01, FF, 02 $A5:DDCB db 01, FF, 02 $A5:DDCF db 01, FF, 01 $A5:DDD3 db 02, FF, 01 $A5:DDD7 db 02, FF, 01 $A5:DDDB db 01, FF, 02 $A5:DDDF db 01, FE, 01 $A5:DDE3 db 02, FE, 01 $A5:DDE7 db 01, FF, 02 $A5:DDEB db 01, FE, 01 $A5:DDEF db 01, FE, 02 $A5:DDF3 db 01, FE, 01 $A5:DDF7 db 01, FD, 02 $A5:DDFB db 01, FE, 01 $A5:DDFF db 01, FE, 01 $A5:DE03 db 01, FE, 01 $A5:DE07 db 01, FD, 01 $A5:DE0B db 01, FE, 01 $A5:DE0F db 01, FD, 01 $A5:DE13 db 01, FD, 01 $A5:DE17 db 01, FD, 00 $A5:DE1B db 01, FD, 01 $A5:DE1F db 00, FD, 00 $A5:DE23 db 01, FE, 00 $A5:DE27 db 00, FF, 00 $A5:DE2B db FF, FF, 00 $A5:DE2F db FF, FF, FF $A5:DE33 db FF, 00, FF $A5:DE37 db FF, 01, FF $A5:DE3B db FF, 01, FE $A5:DE3F db FF, 02, FF $A5:DE43 db FE, 02, FF $A5:DE47 db FE, 03, FF $A5:DE4B db FE, 02, FF $A5:DE4F db FE, 03, FF $A5:DE53 db FE, 02, FF $A5:DE57 db FF, 03, FF $A5:DE5B db FF, 04, FF $A5:DE5F db FF, 03, FF $A5:DE63 db FF, 03, 00 $A5:DE67 db 00, 03, FF $A5:DE6B db 00, 03, 00 $A5:DE6F db 00, 03, 01 $A5:DE73 db 00, 03, 00 $A5:DE77 db 01, 03, 01 $A5:DE7B db 00, 02, 01 $A5:DE7F db 01, 03, 01 $A5:DE83 db 01, 02, 01 $A5:DE87 db 01, 02, 02 $A5:DE8B db 01, 02, 01 $A5:DE8F db 02, 01, 01 $A5:DE93 db 02, 01, 01 $A5:DE97 db 02, 01, 01 $A5:DE9B db 02, 00, 02 $A5:DE9F db 01, 00, 02 $A5:DEA3 db 02, FF, 02 $A5:DEA7 db 01, FF, 02 $A5:DEAB db 02, FF, 02 $A5:DEAF db 01, FF, 02 $A5:DEB3 db 02, FF, 01 $A5:DEB7 db 02, FE, 01 $A5:DEBB db 02, FE, 01 $A5:DEBF db 02, FE, 01 $A5:DEC3 db 01, FD, 01 $A5:DEC7 db 01, FE, 01 $A5:DECB db 01, FD, 01 $A5:DECF db 01, FD, 00 $A5:DED3 db 01, FD, 00 $A5:DED7 db 00, FC, 01 $A5:DEDB db 00, FD, FF $A5:DEDF db 00, FD, 00 $A5:DEE3 db 00, FD, FF $A5:DEE7 db 00, FD, FF $A5:DEEB db FF, FD, FF $A5:DEEF db 00, FE, FF $A5:DEF3 db FF, FE, FF $A5:DEF7 db FE, FE, FF $A5:DEFB db FF, FE, FF $A5:DEFF db FE, FE, FF $A5:DF03 db FF, FF, FE $A5:DF07 db FF, FF, FE $A5:DF0B db FF, 00, FE $A5:DF0F db FF, 01, FF $A5:DF13 db FE, 01, FF $A5:DF17 db FE, 02, FF $A5:DF1B db FF, 02, FE $A5:DF1F db FF, 03, FF $A5:DF23 db 00, 03, FF $A5:DF27 db FF, 02, 00 $A5:DF2B db 00, 02, 00 $A5:DF2F db 00, 03, 00 $A5:DF33 db 01, 02, 01 $A5:DF37 db 01, 02, 00 $A5:DF3B db 02, 02, 01 $A5:DF3F db 01, 02, 01 $A5:DF43 db 02, 02, 02