If you are still using the old URL (datacrystal.romhacking.net), please update your bookmarks! The old URL may stop working soon.
The current URL is datacrystal.tcrf.net.
The current URL is datacrystal.tcrf.net.
Final Fantasy VI/ROM map/Assembly C13
< Final Fantasy VI | ROM map
Jump to navigation
Jump to search
C1/3050: 5A PHY C1/3051: DA PHX C1/3052: AD787B LDA $7B78 C1/3055: 2903 AND #$03 C1/3057: 0A ASL A C1/3058: AA TAX C1/3059: 8B PHB C1/305A: C220 REP #$20 C1/305C: BF22E4C2 LDA $C2E422,X C1/3060: AA TAX C1/3061: A00080 LDY #$8000 C1/3064: A9FF1F LDA #$1FFF C1/3067: 547F7F MVN $7F,$7F C1/306A: 7B TDC C1/306B: E220 SEP #$20 C1/306D: AB PLB C1/306E: FA PLX C1/306F: 7A PLY C1/3070: 60 RTS Adjust pose depending on status C1/3071: DA PHX C1/3072: C220 REP #$20 (16 bit accum./memory) C1/3074: BDBD2E LDA $2EBD,X C1/3077: 8510 STA $10 C1/3079: BDBF2E LDA $2EBF,X C1/307C: 8512 STA $12 C1/307E: 7B TDC C1/307F: E220 SEP #$20 (8 bit accum./memory) C1/3081: A510 LDA $10 C1/3083: 1004 BPL $3089 (Branch if not dead) C1/3085: A901 LDA #$01 C1/3087: 8035 BRA $30BE C1/3089: A511 LDA $11 C1/308B: 1004 BPL $3091 (Branch if not asleep) C1/308D: A90A LDA #$0A C1/308F: 802D BRA $30BE C1/3091: 2920 AND #$20 C1/3093: F004 BEQ $3099 (branch if not confused) C1/3095: A925 LDA #$25 C1/3097: 8025 BRA $30BE C1/3099: A513 LDA $13 C1/309B: 2910 AND #$10 C1/309D: F004 BEQ $30A3 (Branch if not in "spell-chanting" status) C1/309F: A909 LDA #$09 C1/30A1: 801B BRA $30BE C1/30A3: A510 LDA $10 C1/30A5: 2904 AND #$04 C1/30A7: F004 BEQ $30AD (Branch if not poisoned) C1/30A9: A90A LDA #$0A C1/30AB: 8011 BRA $30BE C1/30AD: A511 LDA $11 C1/30AF: 2902 AND #$02 C1/30B1: F004 BEQ $30B7 (Branch if not near fatal) C1/30B3: A90A LDA #$0A C1/30B5: 8007 BRA $30BE C1/30B7: BDBB61 LDA $61BB,X C1/30BA: D002 BNE $30BE C1/30BC: A906 LDA #$06 C1/30BE: 9DBF61 STA $61BF,X C1/30C1: FA PLX C1/30C2: 60 RTS C1/30C3: 5A PHY C1/30C4: DA PHX C1/30C5: 8B PHB C1/30C6: A97F LDA #$7F C1/30C8: 48 PHA C1/30C9: AB PLB C1/30CA: A20080 LDX #$8000 C1/30CD: A00001 LDY #$0100 C1/30D0: A908 LDA #$08 C1/30D2: 8516 STA $16 C1/30D4: BD0100 LDA $0001,X C1/30D7: 1D1000 ORA $0010,X C1/30DA: 1D1100 ORA $0011,X C1/30DD: 49FF EOR #$FF C1/30DF: 3D0000 AND $0000,X C1/30E2: 9D0000 STA $0000,X C1/30E5: 9E0100 STZ $0001,X C1/30E8: 9E1000 STZ $0010,X C1/30EB: 9E1100 STZ $0011,X C1/30EE: E8 INX C1/30EF: E8 INX C1/30F0: C616 DEC $16 C1/30F2: D0E0 BNE $30D4 C1/30F4: C220 REP #$20 C1/30F6: 8A TXA C1/30F7: 18 CLC C1/30F8: 691000 ADC #$0010 C1/30FB: AA TAX C1/30FC: 7B TDC C1/30FD: E220 SEP #$20 C1/30FF: 88 DEY C1/3100: D0CE BNE $30D0 C1/3102: AB PLB C1/3103: FA PLX C1/3104: 7A PLY C1/3105: 60 RTS C1/3106: 5A PHY C1/3107: DA PHX C1/3108: AD787B LDA $7B78 C1/310B: 2903 AND #$03 C1/310D: 0A ASL A C1/310E: AA TAX C1/310F: C220 REP #$20 C1/3111: BF22E4C2 LDA $C2E422,X C1/3115: AA TAX C1/3116: 7B TDC C1/3117: E220 SEP #$20 C1/3119: 8B PHB C1/311A: A97F LDA #$7F C1/311C: 48 PHA C1/311D: AB PLB C1/311E: A00001 LDY #$0100 C1/3121: A908 LDA #$08 C1/3123: 8516 STA $16 C1/3125: BD0100 LDA $0001,X C1/3128: 1D1000 ORA $0010,X C1/312B: 1D1100 ORA $0011,X C1/312E: 49FF EOR #$FF C1/3130: 3D0000 AND $0000,X C1/3133: 9D0000 STA $0000,X C1/3136: 9E0100 STZ $0001,X C1/3139: 9E1000 STZ $0010,X C1/313C: 9E1100 STZ $0011,X C1/313F: E8 INX C1/3140: E8 INX C1/3141: C616 DEC $16 C1/3143: D0E0 BNE $3125 C1/3145: C220 REP #$20 C1/3147: 8A TXA C1/3148: 18 CLC C1/3149: 691000 ADC #$0010 C1/314C: AA TAX C1/314D: 7B TDC C1/314E: E220 SEP #$20 C1/3150: 88 DEY C1/3151: D0CE BNE $3121 C1/3153: AB PLB C1/3154: FA PLX C1/3155: 7A PLY C1/3156: 60 RTS C1/3157: 5A PHY (from C1/2FAC, C1/2FC8, C1/2FDF, C1/3026) C1/3158: DA PHX C1/3159: 48 PHA C1/315A: 98 TYA C1/315B: 8510 STA $10 C1/315D: AD787B LDA $7B78 C1/3160: 2903 AND #$03 C1/3162: 0A ASL A C1/3163: AA TAX C1/3164: C220 REP #$20 C1/3166: BF22E4C2 LDA $C2E422,X C1/316A: AA TAX C1/316B: 7B TDC C1/316C: E220 SEP #$20 C1/316E: 68 PLA C1/316F: 20433D JSR $3D43 C1/3172: FA PLX C1/3173: 7A PLY C1/3174: 60 RTS C1/3175: 48 PHA (from only C1/2A15) C1/3176: 2903 AND #$03 C1/3178: AA TAX C1/3179: BF5BCFC2 LDA $C2CF5B,X C1/317D: AA TAX C1/317E: 6442 STZ $42 C1/3180: BDBD61 LDA $61BD,X C1/3183: 8543 STA $43 C1/3185: A571 LDA $71 C1/3187: C220 REP #$20 C1/3189: 0A ASL A C1/318A: 0A ASL A C1/318B: A8 TAY C1/318C: BDB761 LDA $61B7,X C1/318F: 18 CLC C1/3190: 7DC561 ADC $61C5,X C1/3193: 18 CLC C1/3194: 7DD461 ADC $61D4,X C1/3197: 8536 STA $36 C1/3199: BDB961 LDA $61B9,X C1/319C: 18 CLC C1/319D: 691000 ADC #$0010 C1/31A0: 7DC761 ADC $61C7,X C1/31A3: 8538 STA $38 C1/31A5: A542 LDA $42 C1/31A7: 092C0C ORA #$0C2C C1/31AA: 8542 STA $42 C1/31AC: 7B TDC C1/31AD: E220 SEP #$20 C1/31AF: A536 LDA $36 C1/31B1: 990003 STA $0300,Y C1/31B4: A537 LDA $37 C1/31B6: 2901 AND #$01 C1/31B8: F00D BEQ $31C7 C1/31BA: B97FA1 LDA $A17F,Y C1/31BD: AA TAX C1/31BE: BD0005 LDA $0500,X C1/31C1: 197FA7 ORA $A77F,Y C1/31C4: 9D0005 STA $0500,X C1/31C7: A539 LDA $39 C1/31C9: 2901 AND #$01 C1/31CB: F009 BEQ $31D6 C1/31CD: A538 LDA $38 C1/31CF: C9E0 CMP #$E0 C1/31D1: B00B BCS $31DE C1/31D3: 4CDC31 JMP $31DC C1/31D6: A538 LDA $38 C1/31D8: C997 CMP #$97 C1/31DA: 9002 BCC $31DE C1/31DC: A997 LDA #$97 C1/31DE: 990103 STA $0301,Y C1/31E1: C220 REP #$20 C1/31E3: A542 LDA $42 C1/31E5: 990203 STA $0302,Y C1/31E8: 7B TDC C1/31E9: E220 SEP #$20 C1/31EB: E671 INC $71 C1/31ED: 68 PLA C1/31EE: 60 RTS C1/31EF: 2903 AND #$03 (from only C1/339F) C1/31F1: 8536 STA $36 C1/31F3: A50E LDA $0E C1/31F5: 2903 AND #$03 C1/31F7: C536 CMP $36 C1/31F9: D06F BNE $326A C1/31FB: AA TAX C1/31FC: A8 TAY C1/31FD: ADEFE9 LDA $E9EF C1/3200: F007 BEQ $3209 C1/3202: A50E LDA $0E C1/3204: 4A LSR A C1/3205: 4A LSR A C1/3206: 4A LSR A C1/3207: 8004 BRA $320D C1/3209: A50E LDA $0E C1/320B: 4A LSR A C1/320C: 4A LSR A C1/320D: 2903 AND #$03 C1/320F: 8536 STA $36 C1/3211: BDCC64 LDA $64CC,X C1/3214: 0A ASL A C1/3215: 0A ASL A C1/3216: 18 CLC C1/3217: 6536 ADC $36 C1/3219: AA TAX C1/321A: BF73CFC2 LDA $C2CF73,X C1/321E: 0A ASL A C1/321F: 0A ASL A C1/3220: AA TAX C1/3221: C220 REP #$20 C1/3223: BF5FCFC2 LDA $C2CF5F,X C1/3227: 8DBC64 STA $64BC C1/322A: 18 CLC C1/322B: 698000 ADC #$0080 C1/322E: 8DC064 STA $64C0 C1/3231: 18 CLC C1/3232: 698001 ADC #$0180 C1/3235: 8DBE64 STA $64BE C1/3238: 18 CLC C1/3239: 698000 ADC #$0080 C1/323C: 8DC264 STA $64C2 C1/323F: A50E LDA $0E C1/3241: 290300 AND #$0003 C1/3244: 0A ASL A C1/3245: 0A ASL A C1/3246: 0A ASL A C1/3247: AA TAX C1/3248: BF37CFC2 LDA $C2CF37,X C1/324C: 8DC464 STA $64C4 C1/324F: BF39CFC2 LDA $C2CF39,X C1/3253: 8DC664 STA $64C6 C1/3256: BF3BCFC2 LDA $C2CF3B,X C1/325A: 8DC864 STA $64C8 C1/325D: BF3DCFC2 LDA $C2CF3D,X C1/3261: 8DCA64 STA $64CA C1/3264: 7B TDC C1/3265: E220 SEP #$20 C1/3267: EEBB64 INC $64BB C1/326A: 60 RTS C1/326B: DA PHX (from only C1/32A5) C1/326C: A50E LDA $0E C1/326E: 2903 AND #$03 C1/3270: C532 CMP $32 C1/3272: D029 BNE $329D C1/3274: AA TAX C1/3275: A8 TAY C1/3276: A50E LDA $0E C1/3278: 4A LSR A C1/3279: 4A LSR A C1/327A: 8536 STA $36 C1/327C: ADEFE9 LDA $E9EF C1/327F: F002 BEQ $3283 C1/3281: 4636 LSR $36 C1/3283: A536 LDA $36 C1/3285: 2903 AND #$03 C1/3287: 8536 STA $36 C1/3289: BDCC64 LDA $64CC,X C1/328C: 0A ASL A C1/328D: 0A ASL A C1/328E: 18 CLC C1/328F: 6536 ADC $36 C1/3291: AA TAX C1/3292: BF73CFC2 LDA $C2CF73,X C1/3296: F002 BEQ $329A C1/3298: A901 LDA #$01 C1/329A: 99D064 STA $64D0,Y C1/329D: FA PLX C1/329E: 60 RTS C1/329F: 48 PHA (from only C1/2A20) C1/32A0: 2903 AND #$03 C1/32A2: 8532 STA $32 C1/32A4: AA TAX C1/32A5: 206B32 JSR $326B C1/32A8: BDD064 LDA $64D0,X C1/32AB: 853C STA $3C C1/32AD: BF5BCFC2 LDA $C2CF5B,X C1/32B1: AA TAX C1/32B2: 643A STZ $3A C1/32B4: BDC361 LDA $61C3,X C1/32B7: C930 CMP #$30 C1/32B9: 9004 BCC $32BF C1/32BB: A940 LDA #$40 C1/32BD: 853A STA $3A C1/32BF: BDBE61 LDA $61BE,X C1/32C2: 29C0 AND #$C0 C1/32C4: 453A EOR $3A C1/32C6: 1DBD61 ORA $61BD,X C1/32C9: 29F1 AND #$F1 C1/32CB: 0DD464 ORA $64D4 C1/32CE: 8543 STA $43 C1/32D0: 6442 STZ $42 C1/32D2: A571 LDA $71 C1/32D4: 3A DEC A C1/32D5: 3A DEC A C1/32D6: C220 REP #$20 C1/32D8: 0A ASL A C1/32D9: 0A ASL A C1/32DA: A8 TAY C1/32DB: 7B TDC C1/32DC: E220 SEP #$20 C1/32DE: B90103 LDA $0301,Y C1/32E1: 18 CLC C1/32E2: 653C ADC $3C C1/32E4: 990103 STA $0301,Y C1/32E7: B90503 LDA $0305,Y C1/32EA: 18 CLC C1/32EB: 653C ADC $3C C1/32ED: 990503 STA $0305,Y C1/32F0: A571 LDA $71 C1/32F2: C220 REP #$20 C1/32F4: 0A ASL A C1/32F5: 0A ASL A C1/32F6: A8 TAY C1/32F7: BDB761 LDA $61B7,X C1/32FA: 18 CLC C1/32FB: 7DC561 ADC $61C5,X C1/32FE: 18 CLC C1/32FF: 7DD461 ADC $61D4,X C1/3302: 8536 STA $36 C1/3304: BDB961 LDA $61B9,X C1/3307: 18 CLC C1/3308: 7DC761 ADC $61C7,X C1/330B: 18 CLC C1/330C: 7DD261 ADC $61D2,X C1/330F: 8538 STA $38 C1/3311: 7B TDC C1/3312: E220 SEP #$20 C1/3314: A532 LDA $32 C1/3316: 0A ASL A C1/3317: 0A ASL A C1/3318: AA TAX C1/3319: 18 CLC C1/331A: BF83CFC2 LDA $C2CF83,X C1/331E: 100C BPL $332C C1/3320: 6536 ADC $36 C1/3322: 990003 STA $0300,Y C1/3325: A537 LDA $37 C1/3327: 6901 ADC #$01 C1/3329: 4C3533 JMP $3335 C1/332C: 6536 ADC $36 C1/332E: 990003 STA $0300,Y C1/3331: A537 LDA $37 C1/3333: 6900 ADC #$00 C1/3335: 2901 AND #$01 C1/3337: F013 BEQ $334C C1/3339: 863C STX $3C C1/333B: B97FA1 LDA $A17F,Y C1/333E: AA TAX C1/333F: BD0005 LDA $0500,X C1/3342: 197FA5 ORA $A57F,Y C1/3345: 9D0005 STA $0500,X C1/3348: A63C LDX $3C C1/334A: 8011 BRA $335D C1/334C: 863C STX $3C C1/334E: B97FA1 LDA $A17F,Y C1/3351: AA TAX C1/3352: BD0005 LDA $0500,X C1/3355: 197FA3 ORA $A37F,Y C1/3358: 9D0005 STA $0500,X C1/335B: A63C LDX $3C C1/335D: 18 CLC C1/335E: BF84CFC2 LDA $C2CF84,X C1/3362: 100A BPL $336E C1/3364: 6538 ADC $38 C1/3366: 853E STA $3E C1/3368: A539 LDA $39 C1/336A: 6901 ADC #$01 C1/336C: 8008 BRA $3376 C1/336E: 6538 ADC $38 C1/3370: 853E STA $3E C1/3372: A539 LDA $39 C1/3374: 6900 ADC #$00 C1/3376: 2901 AND #$01 C1/3378: F009 BEQ $3383 C1/337A: A53E LDA $3E C1/337C: C9E0 CMP #$E0 C1/337E: B00B BCS $338B C1/3380: 4C8933 JMP $3389 C1/3383: A53E LDA $3E C1/3385: C997 CMP #$97 C1/3387: 9002 BCC $338B C1/3389: A997 LDA #$97 C1/338B: 990103 STA $0301,Y C1/338E: C220 REP #$20 C1/3390: BF85CFC2 LDA $C2CF85,X C1/3394: 0542 ORA $42 C1/3396: 990203 STA $0302,Y C1/3399: 7B TDC C1/339A: E220 SEP #$20 C1/339C: E671 INC $71 C1/339E: 68 PLA C1/339F: 20EF31 JSR $31EF C1/33A2: 60 RTS C1/33A3: 48 PHA (from only C1/29BF) C1/33A4: 2903 AND #$03 C1/33A6: AA TAX C1/33A7: 6442 STZ $42 C1/33A9: BF5BCFC2 LDA $C2CF5B,X C1/33AD: AA TAX C1/33AE: BDCF61 LDA $61CF,X C1/33B1: D002 BNE $33B5 C1/33B3: 68 PLA C1/33B4: 60 RTS C1/33B5: 643A STZ $3A C1/33B7: BDC361 LDA $61C3,X C1/33BA: C930 CMP #$30 C1/33BC: 9004 BCC $33C2 C1/33BE: A940 LDA #$40 C1/33C0: 853A STA $3A C1/33C2: BDC361 LDA $61C3,X C1/33C5: C914 CMP #$14 C1/33C7: F009 BEQ $33D2 C1/33C9: C944 CMP #$44 C1/33CB: F005 BEQ $33D2 C1/33CD: 643C STZ $3C C1/33CF: 4CD633 JMP $33D6 C1/33D2: A91C LDA #$1C C1/33D4: 853C STA $3C C1/33D6: 6432 STZ $32 C1/33D8: BDBE61 LDA $61BE,X C1/33DB: 29C0 AND #$C0 C1/33DD: 453A EOR $3A C1/33DF: 1DBD61 ORA $61BD,X C1/33E2: 8543 STA $43 C1/33E4: 2940 AND #$40 C1/33E6: F005 BEQ $33ED C1/33E8: BDCF61 LDA $61CF,X C1/33EB: 8532 STA $32 C1/33ED: 20A534 JSR $34A5 C1/33F0: A571 LDA $71 C1/33F2: C220 REP #$20 C1/33F4: 0A ASL A C1/33F5: 0A ASL A C1/33F6: A8 TAY C1/33F7: BDB761 LDA $61B7,X C1/33FA: 18 CLC C1/33FB: 7DC561 ADC $61C5,X C1/33FE: 18 CLC C1/33FF: 7DD461 ADC $61D4,X C1/3402: 8536 STA $36 C1/3404: BDB961 LDA $61B9,X C1/3407: 18 CLC C1/3408: 7DC761 ADC $61C7,X C1/340B: 7DD261 ADC $61D2,X C1/340E: 6538 ADC $38 C1/3410: 8538 STA $38 C1/3412: DA PHX C1/3413: A532 LDA $32 C1/3415: 29FF00 AND #$00FF C1/3418: 0A ASL A C1/3419: AA TAX C1/341A: BFCAE3C2 LDA $C2E3CA,X C1/341E: 18 CLC C1/341F: 6536 ADC $36 C1/3421: 8536 STA $36 C1/3423: FA PLX C1/3424: 7B TDC C1/3425: E220 SEP #$20 C1/3427: BDCF61 LDA $61CF,X C1/342A: 3A DEC A C1/342B: 0A ASL A C1/342C: 0A ASL A C1/342D: 18 CLC C1/342E: 653C ADC $3C C1/3430: AA TAX C1/3431: 18 CLC C1/3432: BFDAE3C2 LDA $C2E3DA,X C1/3436: 100C BPL $3444 C1/3438: 6536 ADC $36 C1/343A: 990003 STA $0300,Y C1/343D: A537 LDA $37 C1/343F: 6901 ADC #$01 C1/3441: 4C4D34 JMP $344D C1/3444: 6536 ADC $36 C1/3446: 990003 STA $0300,Y C1/3449: A537 LDA $37 C1/344B: 6900 ADC #$00 C1/344D: 2901 AND #$01 C1/344F: F011 BEQ $3462 C1/3451: 863C STX $3C C1/3453: B97FA1 LDA $A17F,Y C1/3456: AA TAX C1/3457: BD0005 LDA $0500,X C1/345A: 197FA7 ORA $A77F,Y C1/345D: 9D0005 STA $0500,X C1/3460: A63C LDX $3C C1/3462: 18 CLC C1/3463: BFDBE3C2 LDA $C2E3DB,X C1/3467: 100A BPL $3473 C1/3469: 6538 ADC $38 C1/346B: 853E STA $3E C1/346D: A539 LDA $39 C1/346F: 6901 ADC #$01 C1/3471: 8008 BRA $347B C1/3473: 6538 ADC $38 C1/3475: 853E STA $3E C1/3477: A539 LDA $39 C1/3479: 6900 ADC #$00 C1/347B: 2901 AND #$01 C1/347D: F009 BEQ $3488 C1/347F: A53E LDA $3E C1/3481: C9E0 CMP #$E0 C1/3483: B00B BCS $3490 C1/3485: 4C8E34 JMP $348E (BRA 6) C1/3488: A53E LDA $3E C1/348A: C997 CMP #$97 C1/348C: 9002 BCC $3490 C1/348E: A997 LDA #$97 C1/3490: 990103 STA $0301,Y C1/3493: C220 REP #$20 C1/3495: BFDCE3C2 LDA $C2E3DC,X C1/3499: 0542 ORA $42 C1/349B: 990203 STA $0302,Y C1/349E: 7B TDC C1/349F: E220 SEP #$20 C1/34A1: E671 INC $71 C1/34A3: 68 PLA C1/34A4: 60 RTS C1/34A5: 6438 STZ $38 C1/34A7: 6439 STZ $39 C1/34A9: ADBA64 LDA $64BA C1/34AC: F008 BEQ $34B6 C1/34AE: DA PHX C1/34AF: A2F4FF LDX #$FFF4 C1/34B2: 8638 STX $38 C1/34B4: FA PLX C1/34B5: 60 RTS C1/34B6: BDC42E LDA $2EC4,X C1/34B9: 101F BPL $34DA C1/34BB: BDD161 LDA $61D1,X C1/34BE: D01A BNE $34DA C1/34C0: BDC161 LDA $61C1,X (The caster's current frame?_RuneLancer) C1/34C3: D015 BNE $34DA C1/34C5: DA PHX C1/34C6: BDC261 LDA $61C2,X C1/34C9: 2938 AND #$38 C1/34CB: 4A LSR A C1/34CC: 4A LSR A C1/34CD: 4A LSR A C1/34CE: AA TAX C1/34CF: A9FF LDA #$FF C1/34D1: 8539 STA $39 C1/34D3: BFA2E3C2 LDA $C2E3A2,X C1/34D7: 8538 STA $38 C1/34D9: FA PLX C1/34DA: 60 RTS C1/34DB: 48 PHA (from C1/29C2, C1/29FD, C1/2A1A, C1/2DCB) C1/34DC: 2903 AND #$03 C1/34DE: A8 TAY C1/34DF: AA TAX C1/34E0: BF011AC1 LDA $C11A01,X C1/34E4: 8536 STA $36 C1/34E6: BF57CFC2 LDA $C2CF57,X C1/34EA: 8540 STA $40 C1/34EC: BF5BCFC2 LDA $C2CF5B,X C1/34F0: AA TAX C1/34F1: AD697B LDA $7B69 C1/34F4: F003 BEQ $34F9 C1/34F6: DEC261 DEC $61C2,X C1/34F9: 6444 STZ $44 C1/34FB: 6445 STZ $45 C1/34FD: BDBC61 LDA $61BC,X C1/3500: 1DBD61 ORA $61BD,X C1/3503: 8542 STA $42 C1/3505: AD9A62 LDA $629A C1/3508: D03F BNE $3549 C1/350A: ADB8EC LDA $ECB8 (battle background ID) C1/350D: C921 CMP #$21 C1/350F: F005 BEQ $3516 C1/3511: AD452F LDA $2F45 C1/3514: F033 BEQ $3549 C1/3516: B9A562 LDA $62A5,Y C1/3519: D02E BNE $3549 C1/351B: B9A062 LDA $62A0,Y C1/351E: D029 BNE $3549 C1/3520: AD472F LDA $2F47 C1/3523: 2536 AND $36 C1/3525: D022 BNE $3549 C1/3527: BDC12E LDA $2EC1,X C1/352A: 29C2 AND #$C2 C1/352C: D01B BNE $3549 C1/352E: BDC22E LDA $2EC2,X C1/3531: 2980 AND #$80 C1/3533: D014 BNE $3549 C1/3535: BDC32E LDA $2EC3,X C1/3538: 2910 AND #$10 C1/353A: D00D BNE $3549 C1/353C: BDC42E LDA $2EC4,X C1/353F: 2908 AND #$08 C1/3541: D006 BNE $3549 C1/3543: A90C LDA #$0C C1/3545: 8536 STA $36 C1/3547: 8016 BRA $355F C1/3549: BDC161 LDA $61C1,X (The caster's current frame?_RuneLancer) C1/354C: D047 BNE $3595 C1/354E: BDC061 LDA $61C0,X C1/3551: D003 BNE $3556 C1/3553: BDBF61 LDA $61BF,X C1/3556: 0A ASL A C1/3557: 0A ASL A C1/3558: 8536 STA $36 C1/355A: BDD061 LDA $61D0,X C1/355D: F005 BEQ $3564 C1/355F: BDC261 LDA $61C2,X C1/3562: 8004 BRA $3568 C1/3564: BDC261 LDA $61C2,X C1/3567: 4A LSR A C1/3568: 4A LSR A C1/3569: 4A LSR A C1/356A: 8538 STA $38 C1/356C: ADBA64 LDA $64BA C1/356F: F007 BEQ $3578 C1/3571: ADEFE9 LDA $E9EF C1/3574: F002 BEQ $3578 C1/3576: 4638 LSR $38 C1/3578: A538 LDA $38 C1/357A: 2903 AND #$03 C1/357C: 18 CLC C1/357D: 6536 ADC $36 C1/357F: 9B TXY C1/3580: AA TAX C1/3581: BFA9C6C2 LDA $C2C6A9,X C1/3585: 8536 STA $36 C1/3587: 291F AND #$1F C1/3589: C907 CMP #$07 C1/358B: D005 BNE $3592 C1/358D: A644 LDX $44 C1/358F: CA DEX C1/3590: 8644 STX $44 C1/3592: BB TYX C1/3593: A536 LDA $36 C1/3595: 9DC361 STA $61C3,X C1/3598: 8536 STA $36 C1/359A: 6438 STZ $38 C1/359C: C930 CMP #$30 C1/359E: 9009 BCC $35A9 C1/35A0: 38 SEC C1/35A1: E930 SBC #$30 C1/35A3: 8536 STA $36 C1/35A5: A940 LDA #$40 C1/35A7: 8538 STA $38 C1/35A9: 643A STZ $3A C1/35AB: A536 LDA $36 C1/35AD: D004 BNE $35B3 C1/35AF: A908 LDA #$08 C1/35B1: 853A STA $3A C1/35B3: BDBE61 LDA $61BE,X C1/35B6: 29C0 AND #$C0 C1/35B8: 4538 EOR $38 C1/35BA: 0542 ORA $42 C1/35BC: 8542 STA $42 C1/35BE: 29C0 AND #$C0 C1/35C0: 4A LSR A C1/35C1: 4A LSR A C1/35C2: 053A ORA $3A C1/35C4: 853A STA $3A C1/35C6: 8DDAE9 STA $E9DA C1/35C9: 6436 STZ $36 C1/35CB: 6437 STZ $37 C1/35CD: AD697B LDA $7B69 C1/35D0: F010 BEQ $35E2 C1/35D2: A542 LDA $42 C1/35D4: 2940 AND #$40 C1/35D6: F005 BEQ $35DD C1/35D8: A0F8FF LDY #$FFF8 C1/35DB: 8003 BRA $35E0 C1/35DD: A00800 LDY #$0008 C1/35E0: 8436 STY $36 C1/35E2: 20A534 JSR $34A5 C1/35E5: FEC261 INC $61C2,X C1/35E8: A571 LDA $71 C1/35EA: C220 REP #$20 C1/35EC: 0A ASL A C1/35ED: 0A ASL A C1/35EE: A8 TAY C1/35EF: BDB761 LDA $61B7,X C1/35F2: 18 CLC C1/35F3: 7DD461 ADC $61D4,X C1/35F6: 18 CLC C1/35F7: 7DC561 ADC $61C5,X C1/35FA: 18 CLC C1/35FB: 6536 ADC $36 C1/35FD: 8536 STA $36 C1/35FF: BDB961 LDA $61B9,X C1/3602: 18 CLC C1/3603: 7DC761 ADC $61C7,X C1/3606: 7DD261 ADC $61D2,X C1/3609: 6538 ADC $38 C1/360B: 6544 ADC $44 C1/360D: 8538 STA $38 C1/360F: 7B TDC C1/3610: E220 SEP #$20 C1/3612: A53A LDA $3A C1/3614: AA TAX C1/3615: A902 LDA #$02 C1/3617: 8541 STA $41 C1/3619: 18 CLC C1/361A: BFA3CEC2 LDA $C2CEA3,X C1/361E: 100C BPL $362C C1/3620: 6536 ADC $36 C1/3622: 990003 STA $0300,Y C1/3625: A537 LDA $37 C1/3627: 6901 ADC #$01 C1/3629: 4C3536 JMP $3635 C1/362C: 6536 ADC $36 C1/362E: 990003 STA $0300,Y C1/3631: A537 LDA $37 C1/3633: 6900 ADC #$00 C1/3635: 2901 AND #$01 C1/3637: F011 BEQ $364A C1/3639: 863C STX $3C C1/363B: B97FA1 LDA $A17F,Y C1/363E: AA TAX C1/363F: BD0005 LDA $0500,X C1/3642: 197FA7 ORA $A77F,Y C1/3645: 9D0005 STA $0500,X C1/3648: A63C LDX $3C C1/364A: C8 INY C1/364B: E8 INX C1/364C: 18 CLC C1/364D: BFA3CEC2 LDA $C2CEA3,X C1/3651: 100B BPL $365E C1/3653: 6538 ADC $38 C1/3655: 853E STA $3E C1/3657: A539 LDA $39 C1/3659: 6901 ADC #$01 C1/365B: 4C6636 JMP $3666 C1/365E: 6538 ADC $38 C1/3660: 853E STA $3E C1/3662: A539 LDA $39 C1/3664: 6900 ADC #$00 C1/3666: 2901 AND #$01 C1/3668: F009 BEQ $3673 C1/366A: A53E LDA $3E C1/366C: C9E0 CMP #$E0 C1/366E: B00B BCS $367B C1/3670: 4C7936 JMP $3679 C1/3673: A53E LDA $3E C1/3675: C997 CMP #$97 (Phantom Train?) C1/3677: 9002 BCC $367B C1/3679: A997 LDA #$97 C1/367B: 990003 STA $0300,Y C1/367E: C8 INY C1/367F: E8 INX C1/3680: BFA3CEC2 LDA $C2CEA3,X C1/3684: 18 CLC C1/3685: 6540 ADC $40 C1/3687: 990003 STA $0300,Y C1/368A: C8 INY C1/368B: E8 INX C1/368C: BFA3CEC2 LDA $C2CEA3,X C1/3690: 0542 ORA $42 C1/3692: 990003 STA $0300,Y C1/3695: C8 INY C1/3696: E8 INX C1/3697: E671 INC $71 C1/3699: C641 DEC $41 C1/369B: F003 BEQ $36A0 C1/369D: 4C1936 JMP $3619 C1/36A0: 68 PLA C1/36A1: 60 RTS C1/36A2: 7B TDC C1/36A3: 642C STZ $2C C1/36A5: AA TAX C1/36A6: 48 PHA C1/36A7: BDCE61 LDA $61CE,X C1/36AA: D02B BNE $36D7 C1/36AC: BDC261 LDA $61C2,X C1/36AF: 3A DEC A C1/36B0: 2907 AND #$07 C1/36B2: F008 BEQ $36BC C1/36B4: BDC361 LDA $61C3,X C1/36B7: DDC461 CMP $61C4,X C1/36BA: F01B BEQ $36D7 C1/36BC: BDC361 LDA $61C3,X C1/36BF: 9DC461 STA $61C4,X C1/36C2: C930 CMP #$30 C1/36C4: 9003 BCC $36C9 C1/36C6: 38 SEC C1/36C7: E930 SBC #$30 C1/36C9: 8537 STA $37 C1/36CB: BDCD61 LDA $61CD,X C1/36CE: 853A STA $3A C1/36D0: 643B STZ $3B C1/36D2: A52C LDA $2C C1/36D4: 20E236 JSR $36E2 C1/36D7: E62C INC $2C C1/36D9: 68 PLA C1/36DA: 18 CLC C1/36DB: 6920 ADC #$20 C1/36DD: C980 CMP #$80 C1/36DF: D0C4 BNE $36A5 C1/36E1: 60 RTS C1/36E2: 48 PHA C1/36E3: 853C STA $3C C1/36E5: A53A LDA $3A C1/36E7: D005 BNE $36EE C1/36E9: 204737 JSR $3747 C1/36EC: 800A BRA $36F8 C1/36EE: 4A LSR A C1/36EF: 4A LSR A C1/36F0: 4A LSR A C1/36F1: 2903 AND #$03 C1/36F3: 0A ASL A C1/36F4: AA TAX C1/36F5: FC3F37 JSR ($373F,X) C1/36F8: 68 PLA C1/36F9: 2903 AND #$03 C1/36FB: AA TAX C1/36FC: BD2A20 LDA $202A,X C1/36FF: F03D BEQ $373E C1/3701: 8A TXA C1/3702: 0A ASL A C1/3703: AA TAX C1/3704: 8B PHB C1/3705: A97F LDA #$7F C1/3707: 48 PHA C1/3708: AB PLB C1/3709: C220 REP #$20 C1/370B: BFD2E97E LDA $7EE9D2,X C1/370F: A8 TAY C1/3710: BF1AE4C2 LDA $C2E41A,X C1/3714: AA TAX C1/3715: A90800 LDA #$0008 C1/3718: 853A STA $3A C1/371A: B90000 LDA $0000,Y C1/371D: 9D0000 STA $0000,X C1/3720: B91000 LDA $0010,Y C1/3723: 9D1000 STA $0010,X C1/3726: B92000 LDA $0020,Y C1/3729: 9D2000 STA $0020,X C1/372C: B93000 LDA $0030,Y C1/372F: 9D3000 STA $0030,X C1/3732: C8 INY C1/3733: C8 INY C1/3734: E8 INX C1/3735: E8 INX C1/3736: C63A DEC $3A C1/3738: D0E0 BNE $371A C1/373A: 7B TDC C1/373B: E220 SEP #$20 C1/373D: AB PLB C1/373E: 60 RTS Function Pointers (called from C1/36F5) (function) (value) C1/373F: 9A37 (0) C1/3741: E737 (1) C1/3743: 3438 (2) C1/3745: 8138 (3) C1/3747: A53C LDA $3C (from only C1/36E9) C1/3749: 0A ASL A C1/374A: AA TAX C1/374B: 8B PHB C1/374C: 6436 STZ $36 C1/374E: C220 REP #$20 C1/3750: BF1AE4C2 LDA $C2E41A,X C1/3754: 8538 STA $38 C1/3756: A8 TAY C1/3757: BF22E4C2 LDA $C2E422,X C1/375B: 18 CLC C1/375C: 6536 ADC $36 C1/375E: AA TAX C1/375F: A93F00 LDA #$003F C1/3762: 547F7F MVN $7F,$7F C1/3765: A538 LDA $38 C1/3767: 18 CLC C1/3768: 690002 ADC #$0200 C1/376B: A8 TAY C1/376C: A93F00 LDA #$003F C1/376F: 547F7F MVN $7F,$7F C1/3772: A538 LDA $38 C1/3774: 18 CLC C1/3775: 694000 ADC #$0040 C1/3778: A8 TAY C1/3779: A93F00 LDA #$003F C1/377C: 547F7F MVN $7F,$7F C1/377F: AFBA647E LDA $7E64BA C1/3783: 29FF00 AND #$00FF C1/3786: D00D BNE $3795 C1/3788: A538 LDA $38 C1/378A: 18 CLC C1/378B: 694002 ADC #$0240 C1/378E: A8 TAY C1/378F: A93F00 LDA #$003F C1/3792: 547F7F MVN $7F,$7F C1/3795: 7B TDC C1/3796: E220 SEP #$20 C1/3798: AB PLB C1/3799: 60 RTS C1/379A: A53C LDA $3C (from C1/36F5, X = 0) C1/379C: 0A ASL A C1/379D: AA TAX C1/379E: 8B PHB C1/379F: 6436 STZ $36 C1/37A1: C220 REP #$20 C1/37A3: BF12E4C2 LDA $C2E412,X C1/37A7: 853C STA $3C C1/37A9: BF1AE4C2 LDA $C2E41A,X C1/37AD: 8538 STA $38 C1/37AF: A8 TAY C1/37B0: BF22E4C2 LDA $C2E422,X C1/37B4: 18 CLC C1/37B5: 6536 ADC $36 C1/37B7: AA TAX C1/37B8: A93F00 LDA #$003F C1/37BB: 547F7F MVN $7F,$7F C1/37BE: A538 LDA $38 C1/37C0: 18 CLC C1/37C1: 690002 ADC #$0200 C1/37C4: A8 TAY C1/37C5: A93F00 LDA #$003F C1/37C8: 547F7F MVN $7F,$7F C1/37CB: A538 LDA $38 C1/37CD: 18 CLC C1/37CE: 694000 ADC #$0040 C1/37D1: A8 TAY C1/37D2: A93F00 LDA #$003F C1/37D5: 547F7F MVN $7F,$7F C1/37D8: A538 LDA $38 C1/37DA: 18 CLC C1/37DB: 694002 ADC #$0240 C1/37DE: A8 TAY C1/37DF: 20D238 JSR $38D2 C1/37E2: 7B TDC C1/37E3: E220 SEP #$20 C1/37E5: AB PLB C1/37E6: 60 RTS C1/37E7: A53C LDA $3C (from C1/36F5, X = 1) C1/37E9: 0A ASL A C1/37EA: AA TAX C1/37EB: 8B PHB C1/37EC: 6436 STZ $36 C1/37EE: C220 REP #$20 C1/37F0: BF12E4C2 LDA $C2E412,X C1/37F4: 853C STA $3C C1/37F6: BF1AE4C2 LDA $C2E41A,X C1/37FA: 8538 STA $38 C1/37FC: A8 TAY C1/37FD: BF22E4C2 LDA $C2E422,X C1/3801: 18 CLC C1/3802: 6536 ADC $36 C1/3804: AA TAX C1/3805: A93F00 LDA #$003F C1/3808: 547F7F MVN $7F,$7F C1/380B: A538 LDA $38 C1/380D: 18 CLC C1/380E: 690002 ADC #$0200 C1/3811: A8 TAY C1/3812: A93F00 LDA #$003F C1/3815: 547F7F MVN $7F,$7F C1/3818: A538 LDA $38 C1/381A: 18 CLC C1/381B: 694000 ADC #$0040 C1/381E: A8 TAY C1/381F: 20D238 JSR $38D2 C1/3822: A538 LDA $38 C1/3824: 18 CLC C1/3825: 694002 ADC #$0240 C1/3828: A8 TAY C1/3829: A93F00 LDA #$003F C1/382C: 547F7F MVN $7F,$7F C1/382F: 7B TDC C1/3830: E220 SEP #$20 C1/3832: AB PLB C1/3833: 60 RTS C1/3834: A53C LDA $3C (from C1/36F5, X = 2) C1/3836: 0A ASL A C1/3837: AA TAX C1/3838: 8B PHB C1/3839: 6436 STZ $36 C1/383B: C220 REP #$20 C1/383D: BF12E4C2 LDA $C2E412,X C1/3841: 853C STA $3C C1/3843: BF1AE4C2 LDA $C2E41A,X C1/3847: 8538 STA $38 C1/3849: A8 TAY C1/384A: BF22E4C2 LDA $C2E422,X C1/384E: 18 CLC C1/384F: 6536 ADC $36 C1/3851: AA TAX C1/3852: A93F00 LDA #$003F C1/3855: 547F7F MVN $7F,$7F C1/3858: A538 LDA $38 C1/385A: 18 CLC C1/385B: 690002 ADC #$0200 C1/385E: A8 TAY C1/385F: 20D238 JSR $38D2 C1/3862: A538 LDA $38 C1/3864: 18 CLC C1/3865: 694000 ADC #$0040 C1/3868: A8 TAY C1/3869: A93F00 LDA #$003F C1/386C: 547F7F MVN $7F,$7F C1/386F: A538 LDA $38 C1/3871: 18 CLC C1/3872: 694002 ADC #$0240 C1/3875: A8 TAY C1/3876: A93F00 LDA #$003F C1/3879: 547F7F MVN $7F,$7F C1/387C: 7B TDC C1/387D: E220 SEP #$20 C1/387F: AB PLB C1/3880: 60 RTS C1/3881: A53C LDA $3C (from C1/36F5, X = 3) C1/3883: 0A ASL A C1/3884: AA TAX C1/3885: 8B PHB C1/3886: A97F LDA #$7F C1/3888: 48 PHA C1/3889: AB PLB C1/388A: 6436 STZ $36 C1/388C: C220 REP #$20 C1/388E: BF12E4C2 LDA $C2E412,X C1/3892: 853C STA $3C C1/3894: BF1AE4C2 LDA $C2E41A,X C1/3898: 8538 STA $38 C1/389A: A8 TAY C1/389B: BF22E4C2 LDA $C2E422,X C1/389F: 18 CLC C1/38A0: 6536 ADC $36 C1/38A2: AA TAX C1/38A3: 20D238 JSR $38D2 C1/38A6: A538 LDA $38 C1/38A8: 18 CLC C1/38A9: 690002 ADC #$0200 C1/38AC: A8 TAY C1/38AD: A93F00 LDA #$003F C1/38B0: 547F7F MVN $7F,$7F C1/38B3: A538 LDA $38 C1/38B5: 18 CLC C1/38B6: 694000 ADC #$0040 C1/38B9: A8 TAY C1/38BA: A93F00 LDA #$003F C1/38BD: 547F7F MVN $7F,$7F C1/38C0: A538 LDA $38 C1/38C2: 18 CLC C1/38C3: 694002 ADC #$0240 C1/38C6: A8 TAY C1/38C7: A93F00 LDA #$003F C1/38CA: 547F7F MVN $7F,$7F C1/38CD: 7B TDC C1/38CE: E220 SEP #$20 C1/38D0: AB PLB C1/38D1: 60 RTS C1/38D2: DA PHX (from C1/37DF, C1/381F, C1/385F, C1/38A3) C1/38D3: A53A LDA $3A C1/38D5: 290700 AND #$0007 C1/38D8: 853A STA $3A C1/38DA: A90800 LDA #$0008 C1/38DD: 38 SEC C1/38DE: E53A SBC $3A C1/38E0: 853E STA $3E C1/38E2: BD0000 LDA $0000,X C1/38E5: 990000 STA $0000,Y C1/38E8: BD1000 LDA $0010,X C1/38EB: 991000 STA $0010,Y C1/38EE: BD2000 LDA $0020,X C1/38F1: 992000 STA $0020,Y C1/38F4: BD3000 LDA $0030,X C1/38F7: 993000 STA $0030,Y C1/38FA: E8 INX C1/38FB: E8 INX C1/38FC: C8 INY C1/38FD: C8 INY C1/38FE: C63E DEC $3E C1/3900: D0E0 BNE $38E2 C1/3902: A53A LDA $3A C1/3904: F025 BEQ $392B C1/3906: 8A TXA C1/3907: 18 CLC C1/3908: 653C ADC $3C C1/390A: AA TAX C1/390B: BD0000 LDA $0000,X C1/390E: 990000 STA $0000,Y C1/3911: BD1000 LDA $0010,X C1/3914: 991000 STA $0010,Y C1/3917: BD2000 LDA $0020,X C1/391A: 992000 STA $0020,Y C1/391D: BD3000 LDA $0030,X C1/3920: 993000 STA $0030,Y C1/3923: E8 INX C1/3924: E8 INX C1/3925: C8 INY C1/3926: C8 INY C1/3927: C63A DEC $3A C1/3929: D0E0 BNE $390B C1/392B: 68 PLA C1/392C: 18 CLC C1/392D: 653C ADC $3C C1/392F: 18 CLC C1/3930: 694000 ADC #$0040 C1/3933: AA TAX C1/3934: 60 RTS C1/3935: ADD288 LDA $88D2 (from C1/27FA, C1/2849) C1/3938: A8 TAY C1/3939: 0A ASL A C1/393A: AA TAX C1/393B: 862E STX $2E C1/393D: B9B988 LDA $88B9,Y C1/3940: 852C STA $2C C1/3942: BDDB80 LDA $80DB,X C1/3945: 1DDC80 ORA $80DC,X C1/3948: 3DE880 AND $80E8,X C1/394B: 853D STA $3D C1/394D: 643C STZ $3C C1/394F: A9C2 LDA #$C2 C1/3951: 8538 STA $38 C1/3953: BDF380 LDA $80F3,X C1/3956: 5D7E61 EOR $617E,X C1/3959: 2903 AND #$03 C1/395B: 0A ASL A C1/395C: 0A ASL A C1/395D: AA TAX C1/395E: C220 REP #$20 C1/3960: A53C LDA $3C C1/3962: 5F64C4C2 EOR $C2C464,X C1/3966: 853C STA $3C C1/3968: BF66C4C2 LDA $C2C466,X C1/396C: 8536 STA $36 C1/396E: A42E LDY $2E C1/3970: BB TYX C1/3971: B736 LDA [$36],Y C1/3973: A8 TAY C1/3974: BDC380 LDA $80C3,X (Get enemy's X-coord.) C1/3977: 8538 STA $38 C1/3979: BDCF80 LDA $80CF,X C1/397C: 853A STA $3A C1/397E: A560 LDA $60 C1/3980: 29FF00 AND #$00FF C1/3983: 0A ASL A C1/3984: 0A ASL A C1/3985: AA TAX C1/3986: 7B TDC C1/3987: E220 SEP #$20 C1/3989: 18 CLC C1/398A: B90000 LDA $0000,Y C1/398D: 1010 BPL $399F C1/398F: 6538 ADC $38 C1/3991: 9D0003 STA $0300,X C1/3994: A539 LDA $39 C1/3996: 6901 ADC #$01 C1/3998: 2901 AND #$01 C1/399A: D024 BNE $39C0 C1/399C: 4CAC39 JMP $39AC C1/399F: 6538 ADC $38 C1/39A1: 9D0003 STA $0300,X C1/39A4: A539 LDA $39 C1/39A6: 6900 ADC #$00 C1/39A8: 2901 AND #$01 C1/39AA: D014 BNE $39C0 C1/39AC: 8444 STY $44 C1/39AE: BD7FA1 LDA $A17F,X C1/39B1: A8 TAY C1/39B2: B90005 LDA $0500,Y C1/39B5: 1D7FA3 ORA $A37F,X C1/39B8: 990005 STA $0500,Y C1/39BB: A444 LDY $44 C1/39BD: 4CD139 JMP $39D1 C1/39C0: 8444 STY $44 C1/39C2: BD7FA1 LDA $A17F,X C1/39C5: A8 TAY C1/39C6: B90005 LDA $0500,Y C1/39C9: 1D7FA5 ORA $A57F,X C1/39CC: 990005 STA $0500,Y C1/39CF: A444 LDY $44 C1/39D1: C8 INY C1/39D2: E8 INX C1/39D3: B90000 LDA $0000,Y C1/39D6: 1010 BPL $39E8 C1/39D8: 18 CLC C1/39D9: 653A ADC $3A C1/39DB: 853E STA $3E C1/39DD: A53B LDA $3B C1/39DF: 6901 ADC #$01 C1/39E1: 2901 AND #$01 C1/39E3: F019 BEQ $39FE C1/39E5: 4CF539 JMP $39F5 (BRA would save a byte) C1/39E8: 18 CLC C1/39E9: 653A ADC $3A C1/39EB: 853E STA $3E C1/39ED: A53B LDA $3B C1/39EF: 6900 ADC #$00 C1/39F1: 2901 AND #$01 C1/39F3: F009 BEQ $39FE C1/39F5: A53E LDA $3E C1/39F7: C9E0 CMP #$E0 C1/39F9: B00B BCS $3A06 C1/39FB: 4C043A JMP $3A04 (BRA would save a byte) C1/39FE: A53E LDA $3E C1/3A00: C997 CMP #$97 (Phantom Train?) C1/3A02: 9002 BCC $3A06 C1/3A04: A997 LDA #$97 C1/3A06: 9D0003 STA $0300,X C1/3A09: C8 INY C1/3A0A: E8 INX C1/3A0B: C220 REP #$20 C1/3A0D: B90000 LDA $0000,Y C1/3A10: 053C ORA $3C C1/3A12: 9D0003 STA $0300,X C1/3A15: 7B TDC C1/3A16: E220 SEP #$20 C1/3A18: C8 INY C1/3A19: C8 INY C1/3A1A: E8 INX C1/3A1B: E8 INX C1/3A1C: E660 INC $60 C1/3A1E: C62C DEC $2C C1/3A20: F003 BEQ $3A25 C1/3A22: 4C8939 JMP $3989 (BRL would be better) C1/3A25: 60 RTS C1/3A26: AEC961 LDX $61C9 (from C1/3D2A, C1/28CA) C1/3A29: ECCB61 CPX $61CB C1/3A2C: F010 BEQ $3A3E C1/3A2E: 8ECB61 STX $61CB C1/3A31: 8636 STX $36 C1/3A33: ADB961 LDA $61B9 C1/3A36: 852C STA $2C C1/3A38: 20873A JSR $3A87 C1/3A3B: 8EB761 STX $61B7 C1/3A3E: AEE961 LDX $61E9 C1/3A41: ECEB61 CPX $61EB C1/3A44: F010 BEQ $3A56 C1/3A46: 8EEB61 STX $61EB C1/3A49: 8636 STX $36 C1/3A4B: ADD961 LDA $61D9 C1/3A4E: 852C STA $2C C1/3A50: 20873A JSR $3A87 C1/3A53: 8ED761 STX $61D7 C1/3A56: AE0962 LDX $6209 C1/3A59: EC0B62 CPX $620B C1/3A5C: F010 BEQ $3A6E C1/3A5E: 8E0B62 STX $620B C1/3A61: 8636 STX $36 C1/3A63: ADF961 LDA $61F9 C1/3A66: 852C STA $2C C1/3A68: 20873A JSR $3A87 C1/3A6B: 8EF761 STX $61F7 C1/3A6E: AE2962 LDX $6229 C1/3A71: EC2B62 CPX $622B C1/3A74: F010 BEQ $3A86 C1/3A76: 8E2B62 STX $622B C1/3A79: 8636 STX $36 C1/3A7B: AD1962 LDA $6219 C1/3A7E: 852C STA $2C C1/3A80: 20873A JSR $3A87 C1/3A83: 8E1762 STX $6217 C1/3A86: 60 RTS C1/3A87: 642D STZ $2D (from C1/3A38, C1/3A50, C1/3A68, C1/3A80) C1/3A89: A52C LDA $2C C1/3A8B: 18 CLC C1/3A8C: 6968 ADC #$68 C1/3A8E: 852C STA $2C C1/3A90: C220 REP #$20 C1/3A92: A536 LDA $36 C1/3A94: 29FF01 AND #$01FF C1/3A97: 38 SEC C1/3A98: E90001 SBC #$0100 C1/3A9B: 852E STA $2E C1/3A9D: A52E LDA $2E C1/3A9F: 100F BPL $3AB0 C1/3AA1: 49FFFF EOR #$FFFF C1/3AA4: 852E STA $2E C1/3AA6: 206718 JSR $1867 C1/3AA9: A531 LDA $31 C1/3AAB: 49FFFF EOR #$FFFF C1/3AAE: 8005 BRA $3AB5 C1/3AB0: 206718 JSR $1867 (from C1/3A9F) C1/3AB3: A531 LDA $31 C1/3AB5: 18 CLC C1/3AB6: 697800 ADC #$0078 C1/3AB9: AA TAX C1/3ABA: 7B TDC C1/3ABB: E220 SEP #$20 C1/3ABD: 60 RTS C1/3ABE: ADB8EC LDA $ECB8 (from C1/3D23, C1/3D27, load battle background ID) C1/3AC1: C92C CMP #$2C (is is the mine cart ride?) C1/3AC3: D004 BNE $3AC9 (branch if not) C1/3AC5: A904 LDA #$04 C1/3AC7: 8003 BRA $3ACC C1/3AC9: AD1F20 LDA $201F (Load encounter type) C1/3ACC: 0A ASL A C1/3ACD: 0A ASL A C1/3ACE: AA TAX C1/3ACF: BF03CFC2 LDA $C2CF03,X C1/3AD3: A8 TAY C1/3AD4: 8CB961 STY $61B9 C1/3AD7: BF04CFC2 LDA $C2CF04,X C1/3ADB: A8 TAY C1/3ADC: 8CD961 STY $61D9 C1/3ADF: BF05CFC2 LDA $C2CF05,X C1/3AE3: A8 TAY C1/3AE4: 8CF961 STY $61F9 C1/3AE7: BF06CFC2 LDA $C2CF06,X C1/3AEB: A8 TAY C1/3AEC: 8C1962 STY $6219 C1/3AEF: BF3EE4C2 LDA $C2E43E,X C1/3AF3: 8DBE61 STA $61BE C1/3AF6: BF3FE4C2 LDA $C2E43F,X C1/3AFA: 8DDE61 STA $61DE C1/3AFD: BF40E4C2 LDA $C2E440,X C1/3B01: 8DFE61 STA $61FE C1/3B04: BF41E4C2 LDA $C2E441,X C1/3B08: 8D1E62 STA $621E C1/3B0B: 22A3AFC2 JSR $C2AFA3 C1/3B0F: 6410 STZ $10 C1/3B11: ADAE2E LDA $2EAE C1/3B14: 8D6C7B STA $7B6C C1/3B17: A20000 LDX #$0000 C1/3B1A: 20433D JSR $3D43 C1/3B1D: A901 LDA #$01 C1/3B1F: 8510 STA $10 C1/3B21: ADCE2E LDA $2ECE C1/3B24: 8D6D7B STA $7B6D C1/3B27: A20020 LDX #$2000 C1/3B2A: 20433D JSR $3D43 C1/3B2D: A902 LDA #$02 C1/3B2F: 8510 STA $10 C1/3B31: ADEE2E LDA $2EEE C1/3B34: 8D6E7B STA $7B6E C1/3B37: A20040 LDX #$4000 C1/3B3A: 20433D JSR $3D43 C1/3B3D: A903 LDA #$03 C1/3B3F: 8510 STA $10 C1/3B41: AD0E2F LDA $2F0E C1/3B44: 8D6F7B STA $7B6F C1/3B47: A20060 LDX #$6000 C1/3B4A: 20433D JSR $3D43 C1/3B4D: A9D0 LDA #$D0 C1/3B4F: 851E STA $1E C1/3B51: AD1F20 LDA $201F (Load encounter type) C1/3B54: 0A ASL A C1/3B55: 0A ASL A C1/3B56: AA TAX C1/3B57: BF4EE4C2 LDA $C2E44E,X C1/3B5B: 8D107B STA $7B10 C1/3B5E: BF4FE4C2 LDA $C2E44F,X C1/3B62: 8D117B STA $7B11 C1/3B65: BF50E4C2 LDA $C2E450,X C1/3B69: 8D127B STA $7B12 C1/3B6C: BF51E4C2 LDA $C2E451,X C1/3B70: 8D137B STA $7B13 C1/3B73: AD1F20 LDA $201F (Load encounter type) C1/3B76: 0A ASL A C1/3B77: 0A ASL A C1/3B78: 0A ASL A C1/3B79: AA TAX C1/3B7A: C220 REP #$20 C1/3B7C: BF17CFC2 LDA $C2CF17,X C1/3B80: 8DC961 STA $61C9 C1/3B83: 1A INC A C1/3B84: 8DCB61 STA $61CB C1/3B87: ADC52E LDA $2EC5 C1/3B8A: 29FF00 AND #$00FF C1/3B8D: F014 BEQ $3BA3 C1/3B8F: E220 SEP #$20 C1/3B91: A901 LDA #$01 C1/3B93: 8DC52E STA $2EC5 C1/3B96: C220 REP #$20 C1/3B98: ADC961 LDA $61C9 C1/3B9B: 18 CLC C1/3B9C: 7FE3CEC2 ADC $C2CEE3,X C1/3BA0: 8DC961 STA $61C9 C1/3BA3: BF19CFC2 LDA $C2CF19,X C1/3BA7: 8DE961 STA $61E9 C1/3BAA: 1A INC A C1/3BAB: 8DEB61 STA $61EB C1/3BAE: ADE52E LDA $2EE5 C1/3BB1: 29FF00 AND #$00FF C1/3BB4: F014 BEQ $3BCA C1/3BB6: E220 SEP #$20 C1/3BB8: A901 LDA #$01 C1/3BBA: 8DE52E STA $2EE5 C1/3BBD: C220 REP #$20 C1/3BBF: ADE961 LDA $61E9 C1/3BC2: 18 CLC C1/3BC3: 7FE5CEC2 ADC $C2CEE5,X C1/3BC7: 8DE961 STA $61E9 C1/3BCA: BF1BCFC2 LDA $C2CF1B,X C1/3BCE: 8D0962 STA $6209 C1/3BD1: 1A INC A C1/3BD2: 8D0B62 STA $620B C1/3BD5: AD052F LDA $2F05 C1/3BD8: 29FF00 AND #$00FF C1/3BDB: F014 BEQ $3BF1 C1/3BDD: E220 SEP #$20 C1/3BDF: A901 LDA #$01 C1/3BE1: 8D052F STA $2F05 C1/3BE4: C220 REP #$20 C1/3BE6: AD0962 LDA $6209 C1/3BE9: 18 CLC C1/3BEA: 7FE7CEC2 ADC $C2CEE7,X C1/3BEE: 8D0962 STA $6209 C1/3BF1: BF1DCFC2 LDA $C2CF1D,X C1/3BF5: 8D2962 STA $6229 C1/3BF8: 1A INC A C1/3BF9: 8D2B62 STA $622B C1/3BFC: AD252F LDA $2F25 C1/3BFF: 29FF00 AND #$00FF C1/3C02: F014 BEQ $3C18 C1/3C04: E220 SEP #$20 C1/3C06: A901 LDA #$01 C1/3C08: 8D252F STA $2F25 C1/3C0B: C220 REP #$20 C1/3C0D: AD2962 LDA $6229 C1/3C10: 18 CLC C1/3C11: 7FE9CEC2 ADC $C2CEE9,X C1/3C15: 8D2962 STA $6229 C1/3C18: 9CD361 STZ $61D3 C1/3C1B: 9CF361 STZ $61F3 C1/3C1E: 9C1362 STZ $6213 C1/3C21: 9C3362 STZ $6233 C1/3C24: 7B TDC C1/3C25: E220 SEP #$20 C1/3C27: AEE011 LDX $11E0 (formation) C1/3C2A: E03E02 CPX #$023E (in the Colliseum fighting Shadow?) C1/3C2D: F005 BEQ $3C34 (branch if so) C1/3C2F: E03F02 CPX #$023F (this has a Pugs monster, mould is 6...) C1/3C32: D006 BNE $3C3A (branch if not) C1/3C34: A06800 LDY #$0068 C1/3C37: 8CB961 STY $61B9 C1/3C3A: 7B TDC C1/3C3B: AA TAX C1/3C3C: A8 TAY C1/3C3D: C220 REP #$20 C1/3C3F: BD4662 LDA $6246,X C1/3C42: C9FFFF CMP #$FFFF C1/3C45: F00D BEQ $3C54 C1/3C47: 18 CLC C1/3C48: 698000 ADC #$0080 C1/3C4B: 99C961 STA $61C9,Y C1/3C4E: BD4862 LDA $6248,X C1/3C51: 99B961 STA $61B9,Y C1/3C54: E8 INX C1/3C55: E8 INX C1/3C56: E8 INX C1/3C57: E8 INX C1/3C58: 98 TYA C1/3C59: 18 CLC C1/3C5A: 692000 ADC #$0020 C1/3C5D: A8 TAY C1/3C5E: C08000 CPY #$0080 C1/3C61: D0DC BNE $3C3F C1/3C63: 7B TDC C1/3C64: E220 SEP #$20 C1/3C66: A908 LDA #$08 C1/3C68: 8DBC61 STA $61BC C1/3C6B: A90A LDA #$0A C1/3C6D: 8DDC61 STA $61DC C1/3C70: A90C LDA #$0C C1/3C72: 8DFC61 STA $61FC C1/3C75: A90E LDA #$0E C1/3C77: 8D1C62 STA $621C C1/3C7A: A930 LDA #$30 C1/3C7C: 8DBD61 STA $61BD C1/3C7F: 8DDD61 STA $61DD C1/3C82: 8DFD61 STA $61FD C1/3C85: 8D1D62 STA $621D C1/3C88: A906 LDA #$06 C1/3C8A: 8DBF61 STA $61BF C1/3C8D: 8DDF61 STA $61DF C1/3C90: 8DFF61 STA $61FF C1/3C93: 8D1F62 STA $621F C1/3C96: A600 LDX $00 C1/3C98: 8EC061 STX $61C0 C1/3C9B: 8EE061 STX $61E0 C1/3C9E: 8E0062 STX $6200 C1/3CA1: 8E2062 STX $6220 C1/3CA4: 7B TDC C1/3CA5: 8D9800 STA $0098 C1/3CA8: 8DC261 STA $61C2 C1/3CAB: 1A INC A C1/3CAC: 1A INC A C1/3CAD: 8DE261 STA $61E2 C1/3CB0: 1A INC A C1/3CB1: 1A INC A C1/3CB2: 8D0262 STA $6202 C1/3CB5: 1A INC A C1/3CB6: 1A INC A C1/3CB7: 8D2262 STA $6222 C1/3CBA: 7B TDC C1/3CBB: AA TAX C1/3CBC: A8 TAY C1/3CBD: BDAE2E LDA $2EAE,X C1/3CC0: C9FF CMP #$FF C1/3CC2: F00D BEQ $3CD1 C1/3CC4: C8 INY C1/3CC5: 8A TXA C1/3CC6: 18 CLC C1/3CC7: 6920 ADC #$20 C1/3CC9: AA TAX C1/3CCA: E08000 CPX #$0080 C1/3CCD: D0EE BNE $3CBD C1/3CCF: 7B TDC C1/3CD0: A8 TAY C1/3CD1: BB TYX C1/3CD2: BF5EE4C2 LDA $C2E45E,X C1/3CD6: 8DD464 STA $64D4 C1/3CD9: 8A TXA C1/3CDA: 0A ASL A C1/3CDB: 0A ASL A C1/3CDC: 0A ASL A C1/3CDD: 0A ASL A C1/3CDE: 0A ASL A C1/3CDF: A8 TAY C1/3CE0: ADBA64 LDA $64BA C1/3CE3: F016 BEQ $3CFB C1/3CE5: A918 LDA #$18 C1/3CE7: 8510 STA $10 C1/3CE9: 7B TDC C1/3CEA: AA TAX C1/3CEB: BFD4CFC2 LDA $C2CFD4,X C1/3CEF: 99AD81 STA $81AD,Y C1/3CF2: 99807F STA $7F80,Y C1/3CF5: E8 INX C1/3CF6: C8 INY C1/3CF7: C610 DEC $10 C1/3CF9: D0F0 BNE $3CEB C1/3CFB: AD472F LDA $2F47 C1/3CFE: 8510 STA $10 C1/3D00: 7B TDC C1/3D01: AA TAX C1/3D02: A8 TAY C1/3D03: 4610 LSR $10 C1/3D05: 9010 BCC $3D17 C1/3D07: BD107B LDA $7B10,X C1/3D0A: 4901 EOR #$01 C1/3D0C: 9D107B STA $7B10,X C1/3D0F: B9BE61 LDA $61BE,Y C1/3D12: 4940 EOR #$40 C1/3D14: 99BE61 STA $61BE,Y C1/3D17: 98 TYA C1/3D18: 18 CLC C1/3D19: 6920 ADC #$20 C1/3D1B: A8 TAY C1/3D1C: E8 INX C1/3D1D: E00400 CPX #$0004 C1/3D20: D0E1 BNE $3D03 C1/3D22: 60 RTS This function is useless C1/3D23: 20BE3A JSR $3ABE (from only C1/008E) C1/3D26: 60 RTS C1/3D27: 20BE3A JSR $3ABE (from only C1/1142) C1/3D2A: 20263A JSR $3A26 C1/3D2D: A904 LDA #$04 C1/3D2F: CE9800 DEC $0098 C1/3D32: 48 PHA C1/3D33: 20D32D JSR $2DD3 C1/3D36: 20792F JSR $2F79 C1/3D39: EE9800 INC $0098 C1/3D3C: E60E INC $0E C1/3D3E: 68 PLA C1/3D3F: 3A DEC A C1/3D40: D0F0 BNE $3D32 C1/3D42: 60 RTS C1/3D43: C9FF CMP #$FF (from C1/316F, C1/3B1A, C1/3B2A, C1/3B3A, C1/3B4A) C1/3D45: D001 BNE $3D48 C1/3D47: 60 RTS C1/3D48: 8514 STA $14 (from only C1/3D45) C1/3D4A: 861C STX $1C C1/3D4C: AA TAX C1/3D4D: A510 LDA $10 C1/3D4F: 48 PHA C1/3D50: 48 PHA C1/3D51: DA PHX C1/3D52: A61C LDX $1C C1/3D54: 861A STX $1A C1/3D56: A514 LDA $14 C1/3D58: 0A ASL A C1/3D59: 18 CLC C1/3D5A: 6514 ADC $14 C1/3D5C: AA TAX C1/3D5D: A9C2 LDA #$C2 C1/3D5F: 8516 STA $16 C1/3D61: 8B PHB C1/3D62: A97F LDA #$7F C1/3D64: 48 PHA C1/3D65: AB PLB C1/3D66: BF45CEC2 LDA $C2CE45,X (High byte of pointer to start of character battle graphics) C1/3D6A: 8512 STA $12 C1/3D6C: C220 REP #$20 C1/3D6E: BF43CEC2 LDA $C2CE43,X (Pointer to start of character battle graphics) C1/3D72: 8510 STA $10 C1/3D74: A945C7 LDA #$C745 C1/3D77: 8514 STA $14 C1/3D79: A61A LDX $1A C1/3D7B: A90001 LDA #$0100 C1/3D7E: 851A STA $1A C1/3D80: A91000 LDA #$0010 C1/3D83: 8518 STA $18 C1/3D85: A714 LDA [$14] C1/3D87: C9FFFF CMP #$FFFF C1/3D8A: D00C BNE $3D98 C1/3D8C: 7B TDC C1/3D8D: 9D0000 STA $0000,X C1/3D90: E8 INX C1/3D91: E8 INX C1/3D92: C618 DEC $18 C1/3D94: D0F7 BNE $3D8D C1/3D96: 800E BRA $3DA6 C1/3D98: A8 TAY C1/3D99: B710 LDA [$10],Y C1/3D9B: 9D0000 STA $0000,X C1/3D9E: E8 INX C1/3D9F: E8 INX C1/3DA0: C8 INY C1/3DA1: C8 INY C1/3DA2: C618 DEC $18 C1/3DA4: D0F3 BNE $3D99 C1/3DA6: E614 INC $14 C1/3DA8: E614 INC $14 C1/3DAA: C61A DEC $1A C1/3DAC: D0D2 BNE $3D80 C1/3DAE: 7B TDC C1/3DAF: E220 SEP #$20 C1/3DB1: A61C LDX $1C C1/3DB3: A940 LDA #$40 C1/3DB5: 8512 STA $12 C1/3DB7: BDC003 LDA $03C0,X C1/3DBA: 0A ASL A C1/3DBB: 6610 ROR $10 C1/3DBD: 0A ASL A C1/3DBE: 6610 ROR $10 C1/3DC0: 0A ASL A C1/3DC1: 6610 ROR $10 C1/3DC3: 0A ASL A C1/3DC4: 6610 ROR $10 C1/3DC6: 0A ASL A C1/3DC7: 6610 ROR $10 C1/3DC9: 0A ASL A C1/3DCA: 6610 ROR $10 C1/3DCC: 0A ASL A C1/3DCD: 6610 ROR $10 C1/3DCF: 0A ASL A C1/3DD0: 6610 ROR $10 C1/3DD2: A510 LDA $10 C1/3DD4: 9DC003 STA $03C0,X C1/3DD7: BDC010 LDA $10C0,X C1/3DDA: 0A ASL A C1/3DDB: 6610 ROR $10 C1/3DDD: 0A ASL A C1/3DDE: 6610 ROR $10 C1/3DE0: 0A ASL A C1/3DE1: 6610 ROR $10 C1/3DE3: 0A ASL A C1/3DE4: 6610 ROR $10 C1/3DE6: 0A ASL A C1/3DE7: 6610 ROR $10 C1/3DE9: 0A ASL A C1/3DEA: 6610 ROR $10 C1/3DEC: 0A ASL A C1/3DED: 6610 ROR $10 C1/3DEF: 0A ASL A C1/3DF0: 6610 ROR $10 C1/3DF2: A510 LDA $10 C1/3DF4: 9DC010 STA $10C0,X C1/3DF7: E8 INX C1/3DF8: C612 DEC $12 C1/3DFA: D0BB BNE $3DB7 C1/3DFC: AB PLB C1/3DFD: FA PLX C1/3DFE: 68 PLA C1/3DFF: 0A ASL A C1/3E00: 0A ASL A C1/3E01: 0A ASL A C1/3E02: 0A ASL A C1/3E03: 0A ASL A C1/3E04: DA PHX C1/3E05: AA TAX C1/3E06: BDAE2E LDA $2EAE,X C1/3E09: C90E CMP #$0E C1/3E0B: D012 BNE $3E1F C1/3E0D: BDC62E LDA $2EC6,X C1/3E10: C901 CMP #$01 C1/3E12: D00B BNE $3E1F C1/3E14: ADA01E LDA $1EA0 C1/3E17: 2908 AND #$08 C1/3E19: F004 BEQ $3E1F C1/3E1B: FA PLX C1/3E1C: 7B TDC C1/3E1D: 8005 BRA $3E24 C1/3E1F: FA PLX C1/3E20: BF2BCEC2 LDA $C2CE2B,X C1/3E24: C220 REP #$20 C1/3E26: 0A ASL A C1/3E27: 0A ASL A C1/3E28: 0A ASL A C1/3E29: 0A ASL A C1/3E2A: 0A ASL A C1/3E2B: AA TAX C1/3E2C: 7B TDC C1/3E2D: E220 SEP #$20 C1/3E2F: 68 PLA C1/3E30: 0A ASL A C1/3E31: 0A ASL A C1/3E32: 0A ASL A C1/3E33: 0A ASL A C1/3E34: 0A ASL A C1/3E35: A8 TAY C1/3E36: 5A PHY C1/3E37: A918 LDA #$18 C1/3E39: 8510 STA $10 C1/3E3B: BF0063ED LDA $ED6300,X C1/3E3F: 99AD81 STA $81AD,Y C1/3E42: E8 INX C1/3E43: C8 INY C1/3E44: C610 DEC $10 C1/3E46: D0F3 BNE $3E3B C1/3E48: FA PLX C1/3E49: FEC461 INC $61C4,X C1/3E4C: 60 RTS C1/3E4D: 7B TDC (from C1/0091, C1/1145) C1/3E4E: AA TAX C1/3E4F: BF89C6C2 LDA $C2C689,X C1/3E53: 9D987F STA $7F98,X C1/3E56: BF91C6C2 LDA $C2C691,X C1/3E5A: 9DB87F STA $7FB8,X C1/3E5D: BF99C6C2 LDA $C2C699,X C1/3E61: 9DD87F STA $7FD8,X C1/3E64: BFA1C6C2 LDA $C2C6A1,X C1/3E68: 9DF87F STA $7FF8,X C1/3E6B: E8 INX C1/3E6C: E00800 CPX #$0008 C1/3E6F: D0DE BNE $3E4F C1/3E71: 60 RTS C1/3E72: A9FF LDA #$FF (from C1/111B, C1/936F) C1/3E74: 7B TDC C1/3E75: AA TAX C1/3E76: 9D5982 STA $8259,X C1/3E79: 9DF183 STA $83F1,X C1/3E7C: 9D8985 STA $8589,X C1/3E7F: 9D2187 STA $8721,X C1/3E82: E8 INX C1/3E83: E09801 CPX #$0198 C1/3E86: D0EE BNE $3E76 C1/3E88: AD0020 LDA $2000 C1/3E8B: 8522 STA $22 C1/3E8D: A90C LDA #$0C C1/3E8F: 8524 STA $24 C1/3E91: 20D918 JSR $18D9 C1/3E94: A526 LDA $26 C1/3E96: AA TAX C1/3E97: BFA4C4C2 LDA $C2C4A4,X C1/3E9B: 8510 STA $10 C1/3E9D: BFA5C4C2 LDA $C2C4A5,X C1/3EA1: 8511 STA $11 C1/3EA3: A9C2 LDA #$C2 C1/3EA5: 8512 STA $12 C1/3EA7: A25982 LDX #$8259 C1/3EAA: 8614 STX $14 C1/3EAC: A906 LDA #$06 C1/3EAE: 8516 STA $16 C1/3EB0: C220 REP #$20 C1/3EB2: A710 LDA [$10] C1/3EB4: 8518 STA $18 C1/3EB6: E610 INC $10 C1/3EB8: E610 INC $10 C1/3EBA: 7B TDC C1/3EBB: E220 SEP #$20 C1/3EBD: A400 LDY $00 C1/3EBF: A710 LDA [$10] C1/3EC1: 302C BMI $3EEF C1/3EC3: 0A ASL A C1/3EC4: 0A ASL A C1/3EC5: AA TAX C1/3EC6: BFE7B9C2 LDA $C2B9E7,X C1/3ECA: 38 SEC C1/3ECB: E518 SBC $18 C1/3ECD: 9114 STA ($14),Y C1/3ECF: C8 INY C1/3ED0: BFE8B9C2 LDA $C2B9E8,X C1/3ED4: 38 SEC C1/3ED5: E519 SBC $19 C1/3ED7: 9114 STA ($14),Y C1/3ED9: C8 INY C1/3EDA: BFE9B9C2 LDA $C2B9E9,X C1/3EDE: 9114 STA ($14),Y C1/3EE0: C8 INY C1/3EE1: BFEAB9C2 LDA $C2B9EA,X C1/3EE5: 9114 STA ($14),Y C1/3EE7: C8 INY C1/3EE8: A610 LDX $10 C1/3EEA: E8 INX C1/3EEB: 8610 STX $10 C1/3EED: 80D0 BRA $3EBF C1/3EEF: 9114 STA ($14),Y C1/3EF1: C220 REP #$20 C1/3EF3: E610 INC $10 C1/3EF5: A514 LDA $14 C1/3EF7: 18 CLC C1/3EF8: 694400 ADC #$0044 C1/3EFB: 8514 STA $14 C1/3EFD: 7B TDC C1/3EFE: E220 SEP #$20 C1/3F00: C616 DEC $16 C1/3F02: D0AC BNE $3EB0 C1/3F04: A600 LDX $00 C1/3F06: BD5982 LDA $8259,X C1/3F09: 9DF183 STA $83F1,X C1/3F0C: 9D8985 STA $8589,X C1/3F0F: 9D2187 STA $8721,X C1/3F12: E8 INX C1/3F13: E09801 CPX #$0198 C1/3F16: D0EE BNE $3F06 C1/3F18: 6414 STZ $14 C1/3F1A: A901 LDA #$01 C1/3F1C: 8512 STA $12 C1/3F1E: A600 LDX $00 C1/3F20: C612 DEC $12 C1/3F22: D012 BNE $3F36 C1/3F24: A911 LDA #$11 C1/3F26: 8512 STA $12 C1/3F28: A514 LDA $14 C1/3F2A: 0A ASL A C1/3F2B: A8 TAY C1/3F2C: B92F81 LDA $812F,Y (Get adjusted enemy width/8) C1/3F2F: 0A ASL A C1/3F30: 0A ASL A C1/3F31: 0A ASL A C1/3F32: 8510 STA $10 C1/3F34: E614 INC $14 C1/3F36: BD5982 LDA $8259,X C1/3F39: C9FF CMP #$FF C1/3F3B: F009 BEQ $3F46 C1/3F3D: 49FF EOR #$FF C1/3F3F: 1A INC A C1/3F40: 38 SEC C1/3F41: E920 SBC #$20 C1/3F43: 18 CLC C1/3F44: 6510 ADC $10 C1/3F46: 9DF183 STA $83F1,X C1/3F49: 9D2187 STA $8721,X C1/3F4C: E8 INX C1/3F4D: E8 INX C1/3F4E: E8 INX C1/3F4F: E8 INX C1/3F50: E09801 CPX #$0198 C1/3F53: D0CB BNE $3F20 C1/3F55: 6414 STZ $14 C1/3F57: A901 LDA #$01 C1/3F59: 8512 STA $12 C1/3F5B: A600 LDX $00 C1/3F5D: C612 DEC $12 C1/3F5F: D012 BNE $3F73 C1/3F61: A911 LDA #$11 C1/3F63: 8512 STA $12 C1/3F65: A514 LDA $14 C1/3F67: 0A ASL A C1/3F68: A8 TAY C1/3F69: B93081 LDA $8130,Y C1/3F6C: 0A ASL A C1/3F6D: 0A ASL A C1/3F6E: 0A ASL A C1/3F6F: 8510 STA $10 C1/3F71: E614 INC $14 C1/3F73: BD5A82 LDA $825A,X C1/3F76: C9FF CMP #$FF C1/3F78: F009 BEQ $3F83 C1/3F7A: 49FF EOR #$FF C1/3F7C: 1A INC A C1/3F7D: 38 SEC C1/3F7E: E920 SBC #$20 C1/3F80: 18 CLC C1/3F81: 6510 ADC $10 C1/3F83: 9D8A85 STA $858A,X C1/3F86: 9D2287 STA $8722,X C1/3F89: E8 INX C1/3F8A: E8 INX C1/3F8B: E8 INX C1/3F8C: E8 INX C1/3F8D: E09801 CPX #$0198 C1/3F90: D0CB BNE $3F5D C1/3F92: 7B TDC C1/3F93: A8 TAY C1/3F94: 98 TYA C1/3F95: 0A ASL A C1/3F96: AA TAX C1/3F97: BF74C4C2 LDA $C2C474,X C1/3F9B: 8510 STA $10 C1/3F9D: BF75C4C2 LDA $C2C475,X C1/3FA1: 8511 STA $11 C1/3FA3: A911 LDA #$11 C1/3FA5: 8512 STA $12 C1/3FA7: 7B TDC C1/3FA8: 99B988 STA $88B9,Y C1/3FAB: B210 LDA ($10) C1/3FAD: C9FF CMP #$FF C1/3FAF: F013 BEQ $3FC4 C1/3FB1: B9B988 LDA $88B9,Y C1/3FB4: 1A INC A C1/3FB5: 99B988 STA $88B9,Y C1/3FB8: A610 LDX $10 C1/3FBA: E8 INX C1/3FBB: E8 INX C1/3FBC: E8 INX C1/3FBD: E8 INX C1/3FBE: 8610 STX $10 C1/3FC0: C612 DEC $12 C1/3FC2: D0E7 BNE $3FAB C1/3FC4: C8 INY C1/3FC5: C00600 CPY #$0006 C1/3FC8: D0CA BNE $3F94 C1/3FCA: 60 RTS Data: ATB characters in the FWF C1/3FCB: B4 C1/3FCC: B5 C1/3FCD: B6 C1/3FCE: B7 C1/3FCF: B8 C1/3FD0: B9 C1/3FD1: BA C1/3FD2: BB C1/3FD3: BC C1/3FD4: BD C1/3FD5: 8C87 C1/3FD7: 8FC0 C1/3FD9: 8D9E C1/3FDB: 9D8C C1/3FDD: 8FFF C1/3FDF: FF Data: Absolute addressses of menu window graphics C1/3FE0: 0000ED C1/3FE3: 8003ED C1/3FE6: 0007ED C1/3FE9: 800AED C1/3FEC: 000EED C1/3FEF: 8011ED C1/3FF2: 0015ED C1/3FF5: 8018ED Data C1/3FF8: 571D00 C1/3FFB: 651D00 C1/3FFE: 731D00 C1/4001: 811D00 C1/4004: 8F1D00 C1/4007: 9D1D00 C1/400A: AB1D00 C1/400D: B91D00