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 C07
< Final Fantasy VI | ROM map
Jump to navigation
Jump to search
C0/7077: A600 LDX $00 C0/7079: 9B TXY C0/707A: B95018 LDA $1850,Y C0/707D: 9D6708 STA $0867,X C0/7080: C221 REP #$21 C0/7082: 8A TXA C0/7083: 692900 ADC #$0029 C0/7086: AA TAX C0/7087: 7B TDC C0/7088: E220 SEP #$20 (8 bit accum./memory) C0/708A: C8 INY C0/708B: C01000 CPY #$0010 C0/708E: D0EA BNE $707A C0/7090: 60 RTS C0/7091: A600 LDX $00 C0/7093: 9B TXY C0/7094: BD6708 LDA $0867,X C0/7097: 29E7 AND #$E7 C0/7099: 851A STA $1A C0/709B: B95018 LDA $1850,Y C0/709E: 2918 AND #$18 C0/70A0: 051A ORA $1A C0/70A2: 995018 STA $1850,Y C0/70A5: C221 REP #$21 C0/70A7: 8A TXA C0/70A8: 692900 ADC #$0029 C0/70AB: AA TAX C0/70AC: 7B TDC C0/70AD: E220 SEP #$20 (8 bit accum./memory) C0/70AF: C8 INY C0/70B0: C01000 CPY #$0010 C0/70B3: D0DF BNE $7094 C0/70B5: 60 RTS C0/70B6: A929 LDA #$29 (from C0/BE79, C0/BEE7) C0/70B8: 8D0242 STA $4202 C0/70BB: A600 LDX $00 C0/70BD: 8A TXA C0/70BE: 4A LSR A C0/70BF: 8D0342 STA $4203 C0/70C2: EA NOP C0/70C3: EA NOP C0/70C4: EA NOP C0/70C5: C220 REP #$20 (16 bit accum./memory) C0/70C7: AD1642 LDA $4216 C0/70CA: 9D9907 STA $0799,X C0/70CD: 7B TDC C0/70CE: E220 SEP #$20 (8 bit accum./memory) C0/70D0: E8 INX C0/70D1: E8 INX C0/70D2: E06200 CPX #$0062 C0/70D5: D0E6 BNE $70BD C0/70D7: 60 RTS C0/70D8: CCFB07 CPY $07FB C0/70DB: D011 BNE $70EE C0/70DD: A0D907 LDY #$07D9 C0/70E0: 8CFB07 STY $07FB C0/70E3: 8CFD07 STY $07FD C0/70E6: 8CFF07 STY $07FF C0/70E9: 8C0108 STY $0801 C0/70EC: 802E BRA $711C C0/70EE: CCFD07 CPY $07FD C0/70F1: D00E BNE $7101 C0/70F3: A0D907 LDY #$07D9 C0/70F6: 8CFD07 STY $07FD C0/70F9: 8CFF07 STY $07FF C0/70FC: 8C0108 STY $0801 C0/70FF: 801B BRA $711C C0/7101: CCFF07 CPY $07FF C0/7104: D00B BNE $7111 C0/7106: A0D907 LDY #$07D9 C0/7109: 8CFF07 STY $07FF C0/710C: 8C0108 STY $0801 C0/710F: 800B BRA $711C C0/7111: CC0108 CPY $0801 C0/7114: D006 BNE $711C C0/7116: A0D907 LDY #$07D9 C0/7119: 8C0108 STY $0801 C0/711C: 60 RTS C0/711D: A400 LDY $00 C0/711F: B96708 LDA $0867,Y C0/7122: 2940 AND #$40 C0/7124: F014 BEQ $713A C0/7126: B96708 LDA $0867,Y C0/7129: 2907 AND #$07 C0/712B: CD6D1A CMP $1A6D (Is this the active party?) C0/712E: D00A BNE $713A C0/7130: C220 REP #$20 (16 bit accum./memory) C0/7132: A582 LDA $82 C0/7134: 998D08 STA $088D,Y C0/7137: 7B TDC C0/7138: E220 SEP #$20 (8 bit accum./memory) C0/713A: C221 REP #$21 C0/713C: 98 TYA C0/713D: 692900 ADC #$0029 C0/7140: A8 TAY C0/7141: 7B TDC C0/7142: E220 SEP #$20 (8 bit accum./memory) C0/7144: C09002 CPY #$0290 C0/7147: D0D6 BNE $711F C0/7149: 60 RTS C0/714A: A20308 LDX #$0803 (from C0/5450, C0/9A6A, C0/BEF8) C0/714D: 8E8121 STX $2181 C0/7150: A900 LDA #$00 C0/7152: 8D8321 STA $2183 C0/7155: 641B STZ $1B (initializes $1B) C0/7157: ACFB07 LDY $07FB C0/715A: C0D907 CPY #$07D9 C0/715D: F03B BEQ $719A <-4 C0/715F: B96708 LDA $0867,Y C0/7162: 2940 AND #$40 C0/7164: D012 BNE $7178 <-5 C0/7166: A0D907 LDY #$07D9 C0/7169: 8CFB07 STY $07FB C0/716C: 8CFD07 STY $07FD C0/716F: 8CFF07 STY $07FF C0/7172: 8C0108 STY $0801 C0/7175: 4C4F72 JMP $724F <-6 C0/7178: B96708 LDA $0867,Y ->5 C0/717B: 2907 AND #$07 C0/717D: CD6D1A CMP $1A6D (Is this the active party?) C0/7180: D018 BNE $719A <-4 C0/7182: A582 LDA $82 C0/7184: 998D08 STA $088D,Y C0/7187: A583 LDA $83 C0/7189: 998E08 STA $088E,Y C0/718C: ADFB07 LDA $07FB C0/718F: 8D8021 STA $2180 C0/7192: ADFC07 LDA $07FC C0/7195: 8D8021 STA $2180 C0/7198: E61B INC $1B C0/719A: ACFD07 LDY $07FD ->4 C0/719D: C0D907 CPY #$07D9 C0/71A0: F038 BEQ $71DA <-7 C0/71A2: B96708 LDA $0867,Y C0/71A5: 2940 AND #$40 C0/71A7: D00F BNE $71B8 <-8 C0/71A9: A0D907 LDY #$07D9 C0/71AC: 8CFD07 STY $07FD C0/71AF: 8CFF07 STY $07FF C0/71B2: 8C0108 STY $0801 C0/71B5: 4C4F72 JMP $724F <-6 C0/71B8: B96708 LDA $0867,Y ->8 C0/71BB: 2907 AND #$07 C0/71BD: CD6D1A CMP $1A6D (Is this the active party?) C0/71C0: D018 BNE $71DA <-7 C0/71C2: A582 LDA $82 C0/71C4: 998D08 STA $088D,Y C0/71C7: A583 LDA $83 C0/71C9: 998E08 STA $088E,Y C0/71CC: ADFD07 LDA $07FD C0/71CF: 8D8021 STA $2180 C0/71D2: ADFE07 LDA $07FE C0/71D5: 8D8021 STA $2180 C0/71D8: E61B INC $1B C0/71DA: ACFF07 LDY $07FF ->7 C0/71DD: C0D907 CPY #$07D9 C0/71E0: F034 BEQ $7216 <-9 C0/71E2: B96708 LDA $0867,Y C0/71E5: 2940 AND #$40 C0/71E7: D00B BNE $71F4 <-10 C0/71E9: A0D907 LDY #$07D9 C0/71EC: 8CFF07 STY $07FF C0/71EF: 8C0108 STY $0801 C0/71F2: 805B BRA $724F <-6 C0/71F4: B96708 LDA $0867,Y ->10 C0/71F7: 2907 AND #$07 C0/71F9: CD6D1A CMP $1A6D (Is this the active party?) C0/71FC: D018 BNE $7216 <-9 C0/71FE: A582 LDA $82 C0/7200: 998D08 STA $088D,Y C0/7203: A583 LDA $83 C0/7205: 998E08 STA $088E,Y C0/7208: ADFF07 LDA $07FF C0/720B: 8D8021 STA $2180 C0/720E: AD0008 LDA $0800 C0/7211: 8D8021 STA $2180 C0/7214: E61B INC $1B C0/7216: AC0108 LDY $0801 ->9 C0/7219: C0D907 CPY #$07D9 C0/721C: F031 BEQ $724F <-6 C0/721E: B96708 LDA $0867,Y C0/7221: 2940 AND #$40 C0/7223: D008 BNE $722D <-11 C0/7225: A0D907 LDY #$07D9 C0/7228: 8C0108 STY $0801 C0/722B: 8022 BRA $724F <-6 C0/722D: B96708 LDA $0867,Y ->11 C0/7230: 2907 AND #$07 C0/7232: CD6D1A CMP $1A6D (Is this the active party?) C0/7235: D018 BNE $724F <-6 C0/7237: A582 LDA $82 C0/7239: 998D08 STA $088D,Y C0/723C: A583 LDA $83 C0/723E: 998E08 STA $088E,Y C0/7241: AD0108 LDA $0801 C0/7244: 8D8021 STA $2180 C0/7247: AD0208 LDA $0802 C0/724A: 8D8021 STA $2180 C0/724D: E61B INC $1B C0/724F: A600 LDX $00 ->6 C0/7251: BC9907 LDY $0799,X ->13 C0/7254: CCFB07 CPY $07FB C0/7257: F03C BEQ $7295 <-12 C0/7259: CCFD07 CPY $07FD C0/725C: F037 BEQ $7295 <-12 C0/725E: CCFF07 CPY $07FF C0/7261: F032 BEQ $7295 <-12 C0/7263: CC0108 CPY $0801 C0/7266: F02D BEQ $7295 <-12 C0/7268: B96708 LDA $0867,Y C0/726B: 2940 AND #$40 C0/726D: F026 BEQ $7295 <-12 C0/726F: B96708 LDA $0867,Y C0/7272: 2907 AND #$07 C0/7274: CD6D1A CMP $1A6D (Is this the active party?) C0/7277: D01C BNE $7295 <-12 C0/7279: A582 LDA $82 C0/727B: 998D08 STA $088D,Y C0/727E: A583 LDA $83 C0/7280: 998E08 STA $088E,Y C0/7283: BD9907 LDA $0799,X C0/7286: 8D8021 STA $2180 C0/7289: 851C STA $1C C0/728B: BD9A07 LDA $079A,X C0/728E: 8D8021 STA $2180 C0/7291: 851D STA $1D C0/7293: E61B INC $1B C0/7295: E8 INX ->12 C0/7296: E8 INX C0/7297: E02000 CPX #$0020 C0/729A: D0B5 BNE $7251 <-13 C0/729C: A9B0 LDA #$B0 C0/729E: 8D8021 STA $2180 C0/72A1: A907 LDA #$07 C0/72A3: 8D8021 STA $2180 C0/72A6: E61B INC $1B C0/72A8: A600 LDX $00 C0/72AA: BC9907 LDY $0799,X ->16 C0/72AD: B96708 LDA $0867,Y C0/72B0: 2940 AND #$40 C0/72B2: F024 BEQ $72D8 <-14 C0/72B4: B96708 LDA $0867,Y C0/72B7: 2907 AND #$07 C0/72B9: F00F BEQ $72CA <-15 C0/72BB: CD6D1A CMP $1A6D (Is this the active party?) C0/72BE: F018 BEQ $72D8 <-14 C0/72C0: DA PHX C0/72C1: BE8D08 LDX $088D,Y C0/72C4: 9B TXY C0/72C5: FA PLX C0/72C6: C482 CPY $82 C0/72C8: D00E BNE $72D8 <-14 C0/72CA: BD9907 LDA $0799,X ->15 C0/72CD: 8D8021 STA $2180 C0/72D0: BD9A07 LDA $079A,X C0/72D3: 8D8021 STA $2180 C0/72D6: E61B INC $1B C0/72D8: E8 INX ->14 C0/72D9: E8 INX C0/72DA: E02000 CPX #$0020 C0/72DD: D0CB BNE $72AA <-16 C0/72DF: A22000 LDX #$0020 C0/72E2: BC9907 LDY $0799,X ->18 C0/72E5: B96708 LDA $0867,Y C0/72E8: 2940 AND #$40 C0/72EA: F00E BEQ $72FA <-17 C0/72EC: BD9907 LDA $0799,X C0/72EF: 8D8021 STA $2180 C0/72F2: BD9A07 LDA $079A,X C0/72F5: 8D8021 STA $2180 C0/72F8: E61B INC $1B C0/72FA: E8 INX ->17 C0/72FB: E8 INX C0/72FC: E06000 CPX #$0060 C0/72FF: D0E1 BNE $72E2 <-18 C0/7301: A51B LDA $1B C0/7303: 0A ASL A C0/7304: 85DD STA $DD C0/7306: 9C9807 STZ $0798 C0/7309: 60 RTS C0/730A: 000C C0/730C: 1824 C0/730E: A559 LDA $59 C0/730F: D022 BNE $7334 C0/7312: B97C08 LDA $087C,Y C0/7315: 2940 AND #$40 C0/7317: F01B BEQ $7334 C0/7319: A6E5 LDX $E5 C0/731B: E00000 CPX #$0000 C0/731E: D014 BNE $7334 C0/7320: A5E7 LDA $E7 C0/7322: C9CA CMP #$CA C0/7324: D00E BNE $7334 C0/7326: A584 LDA $84 C0/7328: D00A BNE $7334 C0/732A: AD5E05 LDA $055E C0/732D: D005 BNE $7334 C0/732F: C09002 CPY #$0290 C0/7332: B001 BCS $7335 C0/7334: 60 RTS C0/7335: B97A08 LDA $087A,Y C0/7338: 851E STA $1E C0/733A: 8522 STA $22 C0/733C: 1A INC A C0/733D: 2586 AND $86 C0/733F: 8520 STA $20 C0/7341: A51E LDA $1E C0/7343: 3A DEC A C0/7344: 2586 AND $86 C0/7346: 8524 STA $24 C0/7348: B97B08 LDA $087B,Y C0/734B: 18 CLC C0/734C: 6920 ADC #$20 C0/734E: 8521 STA $21 C0/7350: 8525 STA $25 C0/7352: B97B08 LDA $087B,Y C0/7355: 3A DEC A C0/7356: 2587 AND $87 C0/7358: 18 CLC C0/7359: 6920 ADC #$20 C0/735B: 851F STA $1F C0/735D: B97B08 LDA $087B,Y C0/7360: 1A INC A C0/7361: 2587 AND $87 C0/7363: 18 CLC C0/7364: 6920 ADC #$20 C0/7366: 8523 STA $23 C0/7368: A97E LDA #$7E C0/736A: 48 PHA C0/736B: AB PLB C0/736C: 641B STZ $1B C0/736E: B21E LDA ($1E) C0/7370: C920 CMP #$20 C0/7372: 901C BCC $7390 C0/7374: E61B INC $1B C0/7376: B220 LDA ($20) C0/7378: C920 CMP #$20 C0/737A: 9014 BCC $7390 C0/737C: E61B INC $1B C0/737E: B222 LDA ($22) C0/7380: C920 CMP #$20 C0/7382: 900C BCC $7390 C0/7384: E61B INC $1B C0/7386: B224 LDA ($24) C0/7388: C920 CMP #$20 C0/738A: 9004 BCC $7390 C0/738C: 7B TDC C0/738D: 48 PHA C0/738E: AB PLB C0/738F: 60 RTS C0/7390: 851A STA $1A (from C0/7372, C0/737A, C0/7382, C0/738A) C0/7392: 7B TDC C0/7393: 48 PHA C0/7394: AB PLB C0/7395: 8C6205 STY $0562 C0/7398: A51A LDA $1A C0/739A: AA TAX C0/739B: BC9907 LDY $0799,X C0/739E: 8C6005 STY $0560 C0/73A1: A51B LDA $1B C0/73A3: 8D5F05 STA $055F C0/73A6: A901 LDA #$01 C0/73A8: 8D5E05 STA $055E C0/73AB: 60 RTS C0/73AC: AD5E05 LDA $055E (from only C0/013D) C0/73AF: C901 CMP #$01 C0/73B1: D01B BNE $73CE C0/73B3: AC0308 LDY $0803 C0/73B6: B96908 LDA $0869,Y C0/73B9: D013 BNE $73CE C0/73BB: B96A08 LDA $086A,Y C0/73BE: 290F AND #$0F C0/73C0: D00C BNE $73CE C0/73C2: B96C08 LDA $086C,Y C0/73C5: D007 BNE $73CE C0/73C7: B96D08 LDA $086D,Y C0/73CA: 290F AND #$0F C0/73CC: F001 BEQ $73CF C0/73CE: 60 RTS C0/73CF: A902 LDA #$02 (from C0/73CC) C0/73D1: 8D5E05 STA $055E C0/73D4: AC6005 LDY $0560 C0/73D7: C220 REP #$20 (16 bit accum./memory) C0/73D9: B96A08 LDA $086A,Y C0/73DC: 4A LSR A C0/73DD: 4A LSR A C0/73DE: 4A LSR A C0/73DF: 4A LSR A C0/73E0: 8526 STA $26 C0/73E2: B96D08 LDA $086D,Y C0/73E5: 4A LSR A C0/73E6: 4A LSR A C0/73E7: 4A LSR A C0/73E8: 4A LSR A C0/73E9: 8528 STA $28 C0/73EB: 7B TDC C0/73EC: E220 SEP #$20 (8 bit accum./memory) C0/73EE: 6427 STZ $27 C0/73F0: 6429 STZ $29 C0/73F2: A526 LDA $26 C0/73F4: 8D5705 STA $0557 C0/73F7: 38 SEC C0/73F8: ED4105 SBC $0541 C0/73FB: 1005 BPL $7402 C0/73FD: E627 INC $27 C0/73FF: 4502 EOR $02 C0/7401: 1A INC A C0/7402: 8526 STA $26 C0/7404: A528 LDA $28 C0/7406: 8D5805 STA $0558 C0/7409: 38 SEC C0/740A: ED4205 SBC $0542 C0/740D: 1005 BPL $7414 C0/740F: E629 INC $29 C0/7411: 4502 EOR $02 C0/7413: 1A INC A C0/7414: 8528 STA $28 C0/7416: C902 CMP #$02 C0/7418: B009 BCS $7423 C0/741A: A526 LDA $26 C0/741C: C902 CMP #$02 C0/741E: B003 BCS $7423 C0/7420: 4CBB74 JMP $74BB C0/7423: A528 LDA $28 C0/7425: C526 CMP $26 C0/7427: B024 BCS $744D C0/7429: C220 REP #$20 (16 bit accum./memory) C0/742B: EB XBA C0/742C: 0A ASL A C0/742D: 8D0442 STA $4204 C0/7430: 7B TDC C0/7431: E220 SEP #$20 (8 bit accum./memory) C0/7433: A526 LDA $26 C0/7435: 8D0642 STA $4206 C0/7438: EA NOP C0/7439: EA NOP C0/743A: EA NOP C0/743B: EA NOP C0/743C: EA NOP C0/743D: EA NOP C0/743E: EA NOP C0/743F: AE1442 LDX $4214 C0/7442: 8E4905 STX $0549 C0/7445: A20002 LDX #$0200 C0/7448: 8E4705 STX $0547 C0/744B: 8024 BRA $7471 C0/744D: A526 LDA $26 C0/744F: C220 REP #$20 (16 bit accum./memory) C0/7451: EB XBA C0/7452: 0A ASL A C0/7453: 8D0442 STA $4204 C0/7456: 7B TDC C0/7457: E220 SEP #$20 (8 bit accum./memory) C0/7459: A528 LDA $28 C0/745B: 8D0642 STA $4206 C0/745E: EA NOP C0/745F: EA NOP C0/7460: EA NOP C0/7461: EA NOP C0/7462: EA NOP C0/7463: EA NOP C0/7464: EA NOP C0/7465: AE1442 LDX $4214 C0/7468: 8E4705 STX $0547 C0/746B: A20002 LDX #$0200 C0/746E: 8E4905 STX $0549 C0/7471: A527 LDA $27 C0/7473: F00E BEQ $7483 C0/7475: C220 REP #$20 (16 bit accum./memory) C0/7477: AD4705 LDA $0547 C0/747A: 4502 EOR $02 C0/747C: 1A INC A C0/747D: 8D4705 STA $0547 C0/7480: 7B TDC C0/7481: E220 SEP #$20 (8 bit accum./memory) C0/7483: A529 LDA $29 C0/7485: F00E BEQ $7495 C0/7487: C220 REP #$20 (16 bit accum./memory) C0/7489: AD4905 LDA $0549 C0/748C: 4502 EOR $02 C0/748E: 1A INC A C0/748F: 8D4905 STA $0549 C0/7492: 7B TDC C0/7493: E220 SEP #$20 (8 bit accum./memory) C0/7495: AE4705 LDX $0547 C0/7498: 8E4B05 STX $054B C0/749B: 8E4F05 STX $054F C0/749E: AE4905 LDX $0549 C0/74A1: 8E4D05 STX $054D C0/74A4: 8E5105 STX $0551 C0/74A7: A600 LDX $00 C0/74A9: 8E7300 STX $0073 C0/74AC: 8E7500 STX $0075 C0/74AF: 8E7700 STX $0077 C0/74B2: 8E7900 STX $0079 C0/74B5: 8E7B00 STX $007B C0/74B8: 8E7D00 STX $007D C0/74BB: B97F08 LDA $087F,Y C0/74BE: 0A ASL A C0/74BF: 0A ASL A C0/74C0: 0A ASL A C0/74C1: 851A STA $1A C0/74C3: B96808 LDA $0868,Y C0/74C6: 29E7 AND #$E7 C0/74C8: 051A ORA $1A C0/74CA: 996808 STA $0868,Y C0/74CD: AD5F05 LDA $055F C0/74D0: 18 CLC C0/74D1: 6902 ADC #$02 C0/74D3: 2903 AND #$03 C0/74D5: 997F08 STA $087F,Y C0/74D8: AA TAX C0/74D9: BF2D58C0 LDA $C0582D,X C0/74DD: 997708 STA $0877,Y C0/74E0: AD6D1A LDA $1A6D (Load the active party) C0/74E3: 8D5D05 STA $055D C0/74E6: B96708 LDA $0867,Y C0/74E9: 2907 AND #$07 C0/74EB: 8D6D1A STA $1A6D (Store to the active party) C0/74EE: B97C08 LDA $087C,Y C0/74F1: 29F0 AND #$F0 C0/74F3: 0904 ORA #$04 C0/74F5: 997C08 STA $087C,Y C0/74F8: 997D08 STA $087D,Y C0/74FB: A0D907 LDY #$07D9 C0/74FE: 8CFD07 STY $07FD C0/7501: 8CFF07 STY $07FF C0/7504: 8C0108 STY $0801 C0/7507: AC6205 LDY $0562 C0/750A: 7B TDC C0/750B: 998208 STA $0882,Y C0/750E: AD5F05 LDA $055F C0/7511: 997F08 STA $087F,Y C0/7514: AA TAX C0/7515: BF2D58C0 LDA $C0582D,X C0/7519: 997708 STA $0877,Y C0/751C: B97C08 LDA $087C,Y C0/751F: 997D08 STA $087D,Y C0/7522: 29F0 AND #$F0 C0/7524: 0904 ORA #$04 C0/7526: 997C08 STA $087C,Y C0/7529: B98908 LDA $0889,Y C0/752C: 85E5 STA $E5 C0/752E: 8DF405 STA $05F4 C0/7531: B98A08 LDA $088A,Y C0/7534: 85E6 STA $E6 C0/7536: 8DF505 STA $05F5 C0/7539: B98B08 LDA $088B,Y C0/753C: 18 CLC C0/753D: 69CA ADC #$CA C0/753F: 85E7 STA $E7 C0/7541: 8DF605 STA $05F6 C0/7544: A20000 LDX #$0000 C0/7547: 8E9405 STX $0594 C0/754A: A9CA LDA #$CA C0/754C: 8D9605 STA $0596 C0/754F: A901 LDA #$01 C0/7551: 8DC705 STA $05C7 C0/7554: A20300 LDX #$0003 C0/7557: 86E8 STX $E8 C0/7559: AC0308 LDY $0803 C0/755C: B97C08 LDA $087C,Y C0/755F: 997D08 STA $087D,Y C0/7562: 29F0 AND #$F0 C0/7564: 0904 ORA #$04 C0/7566: 997C08 STA $087C,Y C0/7569: A5E1 LDA $E1 C0/756B: 0920 ORA #$20 C0/756D: 85E1 STA $E1 C0/756F: A901 LDA #$01 C0/7571: 8D9807 STA $0798 C0/7574: 20ED2F JSR $2FED C0/7577: 60 RTS C0/7578: A547 LDA $47 C0/757A: 2903 AND #$03 C0/757C: AA TAX C0/757D: BF0A73C0 LDA $C0730A,X C0/7581: 85DC STA $DC C0/7583: A906 LDA #$06 C0/7585: 85DE STA $DE C0/7587: 7B TDC C0/7588: E220 SEP #$20 (8 bit accum./memory) C0/758A: A5DC LDA $DC C0/758C: AA TAX C0/758D: BC0308 LDY $0803,X C0/7590: 84DA STY $DA C0/7592: C5DD CMP $DD C0/7594: 9003 BCC $7599 C0/7596: 4C5676 JMP $7656 C0/7599: B96908 LDA $0869,Y C0/759C: D0F8 BNE $7596 C0/759E: B96A08 LDA $086A,Y C0/75A1: 290F AND #$0F C0/75A3: D0F1 BNE $7596 C0/75A5: B96C08 LDA $086C,Y C0/75A8: D0EC BNE $7596 C0/75AA: B96D08 LDA $086D,Y C0/75AD: 290F AND #$0F C0/75AF: D0E5 BNE $7596 C0/75B1: B97C08 LDA $087C,Y C0/75B4: 307E BMI $7634 C0/75B6: B96808 LDA $0868,Y C0/75B9: 29E0 AND #$E0 C0/75BB: C980 CMP #$80 C0/75BD: F075 BEQ $7634 C0/75BF: B98C08 LDA $088C,Y C0/75C2: 29C0 AND #$C0 C0/75C4: D06E BNE $7634 C0/75C6: C0B007 CPY #$07B0 C0/75C9: F06F BEQ $763A C0/75CB: BE7A08 LDX $087A,Y C0/75CE: 8C0442 STY $4204 C0/75D1: A929 LDA #$29 C0/75D3: 8D0642 STA $4206 C0/75D6: 48 PHA (3 cycles) C0/75D7: 68 PLA (4 cycles) C0/75D8: 48 PHA (3 cycles) C0/75D9: 68 PLA (4 cycles) C0/75DA: AD1442 LDA $4214 C0/75DD: 0A ASL A C0/75DE: DF00207E CMP $7E2000,X C0/75E2: D006 BNE $75EA C0/75E4: A9FF LDA #$FF C0/75E6: 9F00207E STA $7E2000,X C0/75EA: B96708 LDA $0867,Y C0/75ED: 104B BPL $763A C0/75EF: 20E17C JSR $7CE1 C0/75F2: BE7A08 LDX $087A,Y C0/75F5: BF00007F LDA $7F0000,X C0/75F9: AA TAX C0/75FA: BF00767E LDA $7E7600,X C0/75FE: 2903 AND #$03 C0/7600: 998808 STA $0888,Y C0/7603: A5DC LDA $DC C0/7605: D022 BNE $7629 C0/7607: B97C08 LDA $087C,Y C0/760A: 290F AND #$0F C0/760C: C902 CMP #$02 C0/760E: D019 BNE $7629 C0/7610: A5B8 LDA $B8 C0/7612: 2904 AND #$04 C0/7614: F006 BEQ $761C C0/7616: A5B2 LDA $B2 C0/7618: C902 CMP #$02 C0/761A: F00B BEQ $7627 C0/761C: BE7A08 LDX $087A,Y C0/761F: AD1442 LDA $4214 C0/7622: 0A ASL A C0/7623: 9F00207E STA $7E2000,X C0/7627: 8011 BRA $763A C0/7629: BE7A08 LDX $087A,Y C0/762C: AD1442 LDA $4214 C0/762F: 0A ASL A C0/7630: 9F00207E STA $7E2000,X C0/7634: 202D7C JSR $7C2D C0/7637: 200E73 JSR $730E C0/763A: B97C08 LDA $087C,Y C0/763D: 290F AND #$0F C0/763F: 3A DEC A C0/7640: D003 BNE $7645 C0/7642: 4CE976 JMP $76E9 C0/7645: 3A DEC A C0/7646: D003 BNE $764B C0/7648: 4CDE76 JMP $76DE C0/764B: 3A DEC A C0/764C: F014 BEQ $7662 C0/764E: 3A DEC A C0/764F: F016 BEQ $7667 C0/7651: CC0308 CPY $0803 C0/7654: F011 BEQ $7667 C0/7656: E6DC INC $DC C0/7658: E6DC INC $DC C0/765A: C6DE DEC $DE C0/765C: F003 BEQ $7661 C0/765E: 4C8775 JMP $7587 C0/7661: 60 RTS C0/7662: 20B17B JSR $7BB1 (from C0/764C) C0/7665: 80EF BRA $7656 C0/7667: C220 REP #$20 (16 bit accum./memory) C0/7669: 7B TDC C0/766A: 997108 STA $0871,Y C0/766D: 997308 STA $0873,Y C0/7670: E220 SEP #$20 (8 bit accum./memory) C0/7672: A5E5 LDA $E5 C0/7674: C900 CMP #$00 C0/7676: D063 BNE $76DB C0/7678: A5E6 LDA $E6 C0/767A: C900 CMP #$00 C0/767C: D05D BNE $76DB C0/767E: A5E7 LDA $E7 C0/7680: C9CA CMP #$CA C0/7682: D057 BNE $76DB C0/7684: B97D08 LDA $087D,Y C0/7687: CC0308 CPY $0803 C0/768A: D00E BNE $769A C0/768C: B96708 LDA $0867,Y C0/768F: 2907 AND #$07 C0/7691: CD6D1A CMP $1A6D (Is this the active party?) C0/7694: D004 BNE $769A C0/7696: A902 LDA #$02 C0/7698: 8035 BRA $76CF C0/769A: B97D08 LDA $087D,Y C0/769D: 290F AND #$0F C0/769F: C902 CMP #$02 C0/76A1: D004 BNE $76A7 C0/76A3: A900 LDA #$00 C0/76A5: 8028 BRA $76CF C0/76A7: 851A STA $1A C0/76A9: B97C08 LDA $087C,Y C0/76AC: 29F0 AND #$F0 C0/76AE: 051A ORA $1A C0/76B0: 997C08 STA $087C,Y C0/76B3: B97C08 LDA $087C,Y C0/76B6: 2920 AND #$20 C0/76B8: D013 BNE $76CD C0/76BA: B96808 LDA $0868,Y C0/76BD: 2918 AND #$18 C0/76BF: 4A LSR A C0/76C0: 4A LSR A C0/76C1: 4A LSR A C0/76C2: 997F08 STA $087F,Y C0/76C5: AA TAX C0/76C6: BF2D58C0 LDA $C0582D,X C0/76CA: 997708 STA $0877,Y C0/76CD: 8087 BRA $7656 C0/76CF: 851A STA $1A C0/76D1: B97C08 LDA $087C,Y C0/76D4: 29F0 AND #$F0 C0/76D6: 051A ORA $1A C0/76D8: 997C08 STA $087C,Y C0/76DB: 4C5676 JMP $7656 C0/76DE: ADB91E LDA $1EB9 C0/76E1: 3003 BMI $76E6 C0/76E3: 205F48 JSR $485F C0/76E6: 4C5676 JMP $7656 C0/76E9: B98208 LDA $0882,Y C0/76EC: F00A BEQ $76F8 C0/76EE: 3A DEC A C0/76EF: 998208 STA $0882,Y C0/76F2: 4C5676 JMP $7656 C0/76F5: 4C8377 JMP $7783 C0/76F8: B98608 LDA $0886,Y C0/76FB: F0F8 BEQ $76F5 C0/76FD: B97E08 LDA $087E,Y C0/7700: F0F3 BEQ $76F5 C0/7702: C0B007 CPY #$07B0 C0/7705: F062 BEQ $7769 C0/7707: 85B3 STA $B3 C0/7709: C905 CMP #$05 C0/770B: B05C BCS $7769 C0/770D: 20037D JSR $7D03 C0/7710: A61E LDX $1E C0/7712: B97C08 LDA $087C,Y C0/7715: 3052 BMI $7769 C0/7717: 2910 AND #$10 C0/7719: D021 BNE $773C C0/771B: BF00207E LDA $7E2000,X C0/771F: 301B BMI $773C C0/7721: C220 REP #$20 (16 bit accum./memory) C0/7723: 7B TDC C0/7724: 997108 STA $0871,Y C0/7727: 997308 STA $0873,Y C0/772A: E220 SEP #$20 (8 bit accum./memory) C0/772C: C0B007 CPY #$07B0 C0/772F: F005 BEQ $7736 C0/7731: CC0308 CPY $0803 C0/7734: D003 BNE $7739 C0/7736: 20087E JSR $7E08 C0/7739: 4C5676 JMP $7656 C0/773C: 8C0442 STY $4204 C0/773F: A929 LDA #$29 C0/7741: 8D0642 STA $4206 C0/7744: B97C08 LDA $087C,Y C0/7747: 3020 BMI $7769 C0/7749: B96808 LDA $0868,Y C0/774C: 29E0 AND #$E0 C0/774E: C980 CMP #$80 C0/7750: F017 BEQ $7769 C0/7752: B98C08 LDA $088C,Y C0/7755: 29C0 AND #$C0 C0/7757: D010 BNE $7769 C0/7759: AD1442 LDA $4214 C0/775C: 0A ASL A C0/775D: 9F00207E STA $7E2000,X C0/7761: BF00007F LDA $7F0000,X C0/7765: AA TAX C0/7766: 20A97C JSR $7CA9 C0/7769: 20777E JSR $7E77 C0/776C: C0B007 CPY #$07B0 C0/776F: F005 BEQ $7776 C0/7771: CC0308 CPY $0803 C0/7774: D003 BNE $7779 C0/7776: 20087E JSR $7E08 C0/7779: B98608 LDA $0886,Y C0/777C: 3A DEC A C0/777D: 998608 STA $0886,Y C0/7780: 4C5676 JMP $7656 C0/7783: C220 REP #$20 (16 bit accum./memory) C0/7785: B98308 LDA $0883,Y C0/7788: 852A STA $2A C0/778A: 7B TDC C0/778B: E220 SEP #$20 (8 bit accum./memory) C0/778D: B98508 LDA $0885,Y C0/7790: 852C STA $2C C0/7792: A72A LDA [$2A] C0/7794: 3006 BMI $779C C0/7796: 997708 STA $0877,Y C0/7799: 4C0178 JMP $7801 C0/779C: C9A0 CMP #$A0 (from C0/7794) C0/779E: 9003 BCC $77A3 C0/77A0: 4CBF77 JMP $77BF (BRA fool!) C0/77A3: 38 SEC (from C0/779E) C0/77A4: E980 SBC #$80 C0/77A6: 851A STA $1A C0/77A8: 2903 AND #$03 C0/77AA: 997F08 STA $087F,Y C0/77AD: 1A INC A C0/77AE: 997E08 STA $087E,Y C0/77B1: A51A LDA $1A C0/77B3: 4A LSR A C0/77B4: 4A LSR A C0/77B5: 1A INC A C0/77B6: 998608 STA $0886,Y C0/77B9: 209A7B JSR $7B9A C0/77BC: 4CE976 JMP $76E9 C0/77BF: C9B0 CMP #$B0 C0/77C1: B01E BCS $77E1 C0/77C3: 38 SEC C0/77C4: E99C SBC #$9C C0/77C6: 851A STA $1A C0/77C8: 1A INC A C0/77C9: 997E08 STA $087E,Y C0/77CC: A51A LDA $1A C0/77CE: AA TAX C0/77CF: BF547FC0 LDA $C07F54,X C0/77D3: 997F08 STA $087F,Y C0/77D6: A901 LDA #$01 C0/77D8: 998608 STA $0886,Y C0/77DB: 209A7B JSR $7B9A C0/77DE: 4CE976 JMP $76E9 C0/77E1: C9C6 CMP #$C6 C0/77E3: B009 BCS $77EE C0/77E5: 38 SEC C0/77E6: E9C0 SBC #$C0 C0/77E8: 997508 STA $0875,Y C0/77EB: 4C0178 JMP $7801 C0/77EE: 38 SEC C0/77EF: E9C6 SBC #$C6 C0/77F1: 0A ASL A C0/77F2: AA TAX C0/77F3: C220 REP #$20 (16 bit accum./memory) C0/77F5: BF0778C0 LDA $C07807,X C0/77F9: 852D STA $2D C0/77FB: 7B TDC C0/77FC: E220 SEP #$20 (8 bit accum./memory) C0/77FE: 6C2D00 JMP ($002D) C0/7801: 209A7B JSR $7B9A C0/7804: 4CE976 JMP $76E9 Movement Action's Jump Table: C0/7807: 7B78 C0/7809: 8678 C0/780B: 9178 C0/780D: 057A C0/780F: 0000 C0/7811: 0000 C0/7813: AB78 C0/7815: B778 C0/7817: C478 C0/7819: D178 C0/781B: DE78 C0/781D: 2879 C0/781F: 0000 C0/7821: 0000 C0/7823: 0000 C0/7825: 1E7A C0/7827: 0000 C0/7829: 657A C0/782B: 0000 C0/782D: 0000 C0/782F: 0000 C0/7831: 0000 C0/7833: 947A C0/7835: 9C7A C0/7837: 0000 C0/7839: 0000 C0/783B: A47A C0/783D: 6979 C0/783F: 8379 C0/7841: 9D79 C0/7843: B779 C0/7845: D179 C0/7847: EB79 C0/7849: 0000 C0/784B: 0000 C0/784D: 0000 C0/784F: 0000 C0/7851: 0000 C0/7853: 0000 C0/7855: 0000 C0/7857: 0000 C0/7859: 0000 C0/785B: 0000 C0/785D: 0000 C0/785F: 0000 C0/7861: 0000 C0/7863: 0000 C0/7865: 0000 C0/7867: 0000 C0/7869: 0000 C0/786B: 0000 C0/786D: CF7A C0/786F: 0C7B C0/7871: 197B C0/7873: 267B C0/7875: 4B7B C0/7877: 0000 C0/7879: 70 Set entity to walk when moving C0/787B: B96808 LDA $0868,Y C0/787E: 0901 ORA #$01 C0/7880: 996808 STA $0868,Y C0/7883: 4C0178 JMP $7801 Set entity to stay still when moving C0/7886: B96808 LDA $0868,Y C0/7889: 29FE AND #$FE C0/788B: 996808 STA $0868,Y C0/788E: 4C0178 JMP $7801 Set entity layering priority C0/7891: A00100 LDY #$0001 C0/7894: B72A LDA [$2A],Y C0/7896: 0A ASL A C0/7897: 851A STA $1A C0/7899: A4DA LDY $DA C0/789B: B96808 LDA $0868,Y C0/789E: 29F9 AND #$F9 C0/78A0: 051A ORA $1A C0/78A2: 996808 STA $0868,Y C0/78A5: 209A7B JSR $7B9A C0/78A8: 4C0178 JMP $7801 Turn current entity up C0/78AB: 7B TDC C0/78AC: 997F08 STA $087F,Y C0/78AF: A904 LDA #$04 C0/78B1: 997708 STA $0877,Y C0/78B4: 4C0178 JMP $7801 Turn current entity right C0/78B7: A901 LDA #$01 C0/78B9: 997F08 STA $087F,Y C0/78BC: A947 LDA #$47 C0/78BE: 997708 STA $0877,Y C0/78C1: 4C0178 JMP $7801 Turn current entity down C0/78C4: A902 LDA #$02 C0/78C6: 997F08 STA $087F,Y C0/78C9: A901 LDA #$01 C0/78CB: 997708 STA $0877,Y C0/78CE: 4C0178 JMP $7801 Turn current entity left C0/78D1: A903 LDA #$03 C0/78D3: 997F08 STA $087F,Y C0/78D6: A907 LDA #$07 C0/78D8: 997708 STA $0877,Y C0/78DB: 4C0178 JMP $7801 Unhide current entity? (move. act. D0) C0/78DE: B96708 LDA $0867,Y C0/78E1: 3041 BMI $7924 C0/78E3: 0980 ORA #$80 C0/78E5: 996708 STA $0867,Y C0/78E8: B96808 LDA $0868,Y C0/78EB: 29F9 AND #$F9 C0/78ED: 996808 STA $0868,Y C0/78F0: B98008 LDA $0880,Y C0/78F3: 29CF AND #$CF C0/78F5: 0920 ORA #$20 C0/78F7: 998008 STA $0880,Y C0/78FA: B98108 LDA $0881,Y C0/78FD: 29CF AND #$CF C0/78FF: 0920 ORA #$20 C0/7901: 998108 STA $0881,Y C0/7904: 5A PHY C0/7905: 8C0442 STY $4204 C0/7908: A929 LDA #$29 C0/790A: 8D0642 STA $4206 C0/790D: EA NOP C0/790E: EA NOP C0/790F: EA NOP C0/7910: EA NOP C0/7911: EA NOP C0/7912: EA NOP C0/7913: EA NOP C0/7914: AC1442 LDY $4214 C0/7917: C01000 CPY #$0010 C0/791A: B008 BCS $7924 C0/791C: B95018 LDA $1850,Y C0/791F: 0980 ORA #$80 C0/7921: 995018 STA $1850,Y C0/7924: 7A PLY C0/7925: 4C0178 JMP $7801 Hide current entity C0/7928: B96708 LDA $0867,Y C0/792B: 297F AND #$7F C0/792D: 996708 STA $0867,Y C0/7930: 7B TDC C0/7931: 997D08 STA $087D,Y C0/7934: B97C08 LDA $087C,Y C0/7937: 29F0 AND #$F0 C0/7939: 997C08 STA $087C,Y C0/793C: BE7A08 LDX $087A,Y C0/793F: A9FF LDA #$FF C0/7941: 9F00207E STA $7E2000,X C0/7945: 5A PHY C0/7946: 8C0442 STY $4204 C0/7949: A929 LDA #$29 C0/794B: 8D0642 STA $4206 C0/794E: EA NOP C0/794F: EA NOP C0/7950: EA NOP C0/7951: EA NOP C0/7952: EA NOP C0/7953: EA NOP C0/7954: EA NOP C0/7955: AC1442 LDY $4214 C0/7958: C01000 CPY #$0010 C0/795B: B008 BCS $7965 C0/795D: B95018 LDA $1850,Y C0/7960: 297F AND #$7F C0/7962: 995018 STA $1850,Y C0/7965: 7A PLY C0/7966: 4C0178 JMP $7801 Set event bit $1E80 + xx ($1E80 + $0xx) C0/7969: 5A PHY C0/796A: A00100 LDY #$0001 C0/796D: B72A LDA [$2A],Y C0/796F: 20EDBA JSR $BAED C0/7972: B9801E LDA $1E80,Y C0/7975: 1FFCBAC0 ORA $C0BAFC,X C0/7979: 99801E STA $1E80,Y C0/797C: 7A PLY C0/797D: 209A7B JSR $7B9A C0/7980: 4C0178 JMP $7801 Set event bit $1EA0 + xx ($1E80 + $1xx) C0/7983: 5A PHY C0/7984: A00100 LDY #$0001 C0/7987: B72A LDA [$2A],Y C0/7989: 20EDBA JSR $BAED C0/798C: B9A01E LDA $1EA0,Y C0/798F: 1FFCBAC0 ORA $C0BAFC,X C0/7993: 99A01E STA $1EA0,Y C0/7996: 7A PLY C0/7997: 209A7B JSR $7B9A C0/799A: 4C0178 JMP $7801 Set event bit $1EC0 + xx ($1E80 + $2xx) C0/799D: 5A PHY C0/799E: A00100 LDY #$0001 C0/79A1: B72A LDA [$2A],Y C0/79A3: 20EDBA JSR $BAED C0/79A6: B9C01E LDA $1EC0,Y C0/79A9: 1FFCBAC0 ORA $C0BAFC,X C0/79AD: 99C01E STA $1EC0,Y C0/79B0: 7A PLY C0/79B1: 209A7B JSR $7B9A C0/79B4: 4C0178 JMP $7801 Clear event bit $1E80 + xx ($1E80 + $0xx) C0/79B7: 5A PHY C0/79B8: A00100 LDY #$0001 C0/79BB: B72A LDA [$2A],Y C0/79BD: 20EDBA JSR $BAED C0/79C0: B9801E LDA $1E80,Y C0/79C3: 3F04BBC0 AND $C0BB04,X C0/79C7: 99801E STA $1E80,Y C0/79CA: 7A PLY C0/79CB: 209A7B JSR $7B9A C0/79CE: 4C0178 JMP $7801 Clear event bit $1EA0 + xx ($1E80 + $1xx) C0/79D1: 5A PHY C0/79D2: A00100 LDY #$0001 C0/79D5: B72A LDA [$2A],Y C0/79D7: 20EDBA JSR $BAED C0/79DA: B9A01E LDA $1EA0,Y C0/79DD: 3F04BBC0 AND $C0BB04,X C0/79E1: 99A01E STA $1EA0,Y C0/79E4: 7A PLY C0/79E5: 209A7B JSR $7B9A C0/79E8: 4C0178 JMP $7801 Clear event bit $1EC0 + xx ($1E80 + $2xx) C0/79EB: 5A PHY C0/79EC: A00100 LDY #$0001 C0/79EF: B72A LDA [$2A],Y C0/79F1: 20EDBA JSR $BAED C0/79F4: B9C01E LDA $1EC0,Y C0/79F7: 3F04BBC0 AND $C0BB04,X C0/79FB: 99C01E STA $1EC0,Y C0/79FE: 7A PLY C0/79FF: 209A7B JSR $7B9A C0/7A02: 4C0178 JMP $7801 Place entity on vehicle xx C0/7A05: A00100 LDY #$0001 C0/7A08: B72A LDA [$2A],Y C0/7A0A: 29E0 AND #$E0 C0/7A0C: 851A STA $1A C0/7A0E: A4DA LDY $DA C0/7A10: B96808 LDA $0868,Y C0/7A13: 051A ORA $1A C0/7A15: 996808 STA $0868,Y C0/7A18: 209A7B JSR $7B9A C0/7A1B: 4C0178 JMP $7801 Set position to (xx, yy) C0/7A1E: BE7A08 LDX $087A,Y C0/7A21: A9FF LDA #$FF C0/7A23: 9F00207E STA $7E2000,X C0/7A27: A00100 LDY #$0001 C0/7A2A: B72A LDA [$2A],Y C0/7A2C: C220 REP #$20 (16 bit accum./memory) C0/7A2E: 0A ASL A C0/7A2F: 0A ASL A C0/7A30: 0A ASL A C0/7A31: 0A ASL A C0/7A32: 851E STA $1E C0/7A34: 7B TDC C0/7A35: E220 SEP #$20 (8 bit accum./memory) C0/7A37: C8 INY C0/7A38: B72A LDA [$2A],Y C0/7A3A: A4DA LDY $DA C0/7A3C: C220 REP #$20 (16 bit accum./memory) C0/7A3E: 0A ASL A C0/7A3F: 0A ASL A C0/7A40: 0A ASL A C0/7A41: 0A ASL A C0/7A42: 996D08 STA $086D,Y C0/7A45: A51E LDA $1E C0/7A47: 996A08 STA $086A,Y C0/7A4A: E220 SEP #$20 (8 bit accum./memory) C0/7A4C: 7B TDC C0/7A4D: 996C08 STA $086C,Y C0/7A50: 996908 STA $0869,Y C0/7A53: 20E17C JSR $7CE1 C0/7A56: 201756 JSR $5617 C0/7A59: 209A7B JSR $7B9A C0/7A5C: 209A7B JSR $7B9A C0/7A5F: 209A7B JSR $7B9A C0/7A62: 4C5676 JMP $7656 Center entity on screen C0/7A65: BE7A08 LDX $087A,Y C0/7A68: A9FF LDA #$FF C0/7A6A: 9F00207E STA $7E2000,X C0/7A6E: C220 REP #$20 (16 bit accum./memory) C0/7A70: AE0308 LDX $0803 C0/7A73: BD6A08 LDA $086A,X C0/7A76: 996A08 STA $086A,Y C0/7A79: BD6D08 LDA $086D,X C0/7A7C: 996D08 STA $086D,Y C0/7A7F: 7B TDC C0/7A80: E220 SEP #$20 (8 bit accum./memory) C0/7A82: 996C08 STA $086C,Y C0/7A85: 996908 STA $0869,Y C0/7A88: 20E17C JSR $7CE1 C0/7A8B: 201756 JSR $5617 C0/7A8E: 209A7B JSR $7B9A C0/7A91: 4C5676 JMP $7656 Make entity jump (low) C0/7A94: A90F LDA #$0F C0/7A96: 998708 STA $0887,Y C0/7A99: 4C0178 JMP $7801 Make entity jump (high) C0/7A9C: A95F LDA #$5F C0/7A9E: 998708 STA $0887,Y C0/7AA1: 4C0178 JMP $7801 Pause for xx/60 seconds C0/7AA4: C220 REP #$20 (16 bit accum./memory) C0/7AA6: 7B TDC C0/7AA7: 997108 STA $0871,Y C0/7AAA: 997308 STA $0873,Y C0/7AAD: E220 SEP #$20 (8 bit accum./memory) C0/7AAF: C0B007 CPY #$07B0 C0/7AB2: F005 BEQ $7AB9 C0/7AB4: CC0308 CPY $0803 C0/7AB7: D003 BNE $7ABC C0/7AB9: 20087E JSR $7E08 C0/7ABC: 5A PHY C0/7ABD: A00100 LDY #$0001 C0/7AC0: B72A LDA [$2A],Y C0/7AC2: 7A PLY C0/7AC3: 998208 STA $0882,Y C0/7AC6: 209A7B JSR $7B9A C0/7AC9: 209A7B JSR $7B9A C0/7ACC: 4C5676 JMP $7656 Jump out of the queue to $aaaaaa+$CA0000 C0/7ACF: AD5E05 LDA $055E C0/7AD2: D035 BNE $7B09 C0/7AD4: A6E5 LDX $E5 C0/7AD6: E00000 CPX #$0000 C0/7AD9: D02E BNE $7B09 C0/7ADB: A5E7 LDA $E7 C0/7ADD: C9CA CMP #$CA C0/7ADF: D028 BNE $7B09 C0/7AE1: 5A PHY C0/7AE2: A00100 LDY #$0001 C0/7AE5: B72A LDA [$2A],Y C0/7AE7: 85E5 STA $E5 C0/7AE9: C8 INY C0/7AEA: B72A LDA [$2A],Y C0/7AEC: 85E6 STA $E6 C0/7AEE: C8 INY C0/7AEF: B72A LDA [$2A],Y C0/7AF1: 18 CLC C0/7AF2: 69CA ADC #$CA C0/7AF4: 85E7 STA $E7 C0/7AF6: A00300 LDY #$0003 C0/7AF9: 8CE800 STY $00E8 C0/7AFC: 7A PLY C0/7AFD: 209A7B JSR $7B9A C0/7B00: 209A7B JSR $7B9A C0/7B03: 209A7B JSR $7B9A C0/7B06: 209A7B JSR $7B9A C0/7B09: 4C5676 JMP $7656 Randomly branch backward xx bytes in the queue C0/7B0C: 202E06 JSR $062E (Random number generator) C0/7B0F: C980 CMP #$80 C0/7B11: B013 BCS $7B26 C0/7B13: 209A7B JSR $7B9A C0/7B16: 4C0178 JMP $7801 Randomly branch forward xx bytes in the queue C0/7B19: 202E06 JSR $062E (Random number generator) C0/7B1C: C980 CMP #$80 C0/7B1E: B02B BCS $7B4B C0/7B20: 209A7B JSR $7B9A C0/7B23: 4C0178 JMP $7801 Branch backward xx bytes in the queue C0/7B26: A00100 LDY #$0001 C0/7B29: B72A LDA [$2A],Y C0/7B2B: 851A STA $1A C0/7B2D: A4DA LDY $DA C0/7B2F: B98308 LDA $0883,Y C0/7B32: 38 SEC C0/7B33: E51A SBC $1A C0/7B35: 998308 STA $0883,Y C0/7B38: B98408 LDA $0884,Y C0/7B3B: E900 SBC #$00 C0/7B3D: 998408 STA $0884,Y C0/7B40: B98508 LDA $0885,Y C0/7B43: E900 SBC #$00 C0/7B45: 998508 STA $0885,Y C0/7B48: 4CE976 JMP $76E9 Branch forward xx bytes in the queue C0/7B4B: A00100 LDY #$0001 C0/7B4E: B72A LDA [$2A],Y C0/7B50: 851A STA $1A C0/7B52: A4DA LDY $DA C0/7B54: B98308 LDA $0883,Y C0/7B57: 18 CLC C0/7B58: 651A ADC $1A C0/7B5A: 998308 STA $0883,Y C0/7B5D: B98408 LDA $0884,Y C0/7B60: 6900 ADC #$00 C0/7B62: 998408 STA $0884,Y C0/7B65: B98508 LDA $0885,Y C0/7B68: 6900 ADC #$00 C0/7B6A: 998508 STA $0885,Y C0/7B6D: 4CE976 JMP $76E9 End queue C0/7B70: 7B TDC C0/7B71: 998508 STA $0885,Y C0/7B74: B97C08 LDA $087C,Y C0/7B77: 29F0 AND #$F0 C0/7B79: 997C08 STA $087C,Y C0/7B7C: C220 REP #$20 (16 bit accum./memory) C0/7B7E: 7B TDC C0/7B7F: 997108 STA $0871,Y C0/7B82: 997308 STA $0873,Y C0/7B85: 998308 STA $0883,Y C0/7B88: E220 SEP #$20 (8 bit accum./memory) C0/7B8A: C0B007 CPY #$07B0 C0/7B8D: F005 BEQ $7B94 C0/7B8F: CC0308 CPY $0803 C0/7B92: D003 BNE $7B97 C0/7B94: 20087E JSR $7E08 C0/7B97: 4C5676 JMP $7656 C0/7B9A: C221 REP #$21 C0/7B9C: B98308 LDA $0883,Y C0/7B9F: 690100 ADC #$0001 C0/7BA2: 998308 STA $0883,Y C0/7BA5: 7B TDC C0/7BA6: E220 SEP #$20 (8 bit accum./memory) C0/7BA8: B98508 LDA $0885,Y C0/7BAB: 6900 ADC #$00 C0/7BAD: 998508 STA $0885,Y C0/7BB0: 60 RTS C0/7BB1: 202E06 JSR $062E (Random number generator) (from C0/7662) C0/7BB4: 2903 AND #$03 C0/7BB6: 1A INC A C0/7BB7: 85B3 STA $B3 C0/7BB9: 20037D JSR $7D03 C0/7BBC: A61E LDX $1E C0/7BBE: BF00207E LDA $7E2000,X C0/7BC2: 105B BPL $7C1F C0/7BC4: BF00007F LDA $7F0000,X C0/7BC8: AA TAX C0/7BC9: BF00777E LDA $7E7700,X C0/7BCD: 1050 BPL $7C1F C0/7BCF: B98808 LDA $0888,Y C0/7BD2: 3A DEC A C0/7BD3: D016 BNE $7BEB C0/7BD5: BF00767E LDA $7E7600,X C0/7BD9: 2907 AND #$07 C0/7BDB: C901 CMP #$01 C0/7BDD: F016 BEQ $7BF5 C0/7BDF: BF00767E LDA $7E7600,X C0/7BE3: 2907 AND #$07 C0/7BE5: C904 CMP #$04 C0/7BE7: F00C BEQ $7BF5 C0/7BE9: 8034 BRA $7C1F C0/7BEB: BF00767E LDA $7E7600,X C0/7BEF: 2907 AND #$07 C0/7BF1: C902 CMP #$02 C0/7BF3: D02A BNE $7C1F C0/7BF5: 20A97C JSR $7CA9 C0/7BF8: 8C0442 STY $4204 C0/7BFB: A929 LDA #$29 C0/7BFD: 8D0642 STA $4206 C0/7C00: EA NOP C0/7C01: EA NOP C0/7C02: EA NOP C0/7C03: EA NOP C0/7C04: EA NOP C0/7C05: EA NOP C0/7C06: EA NOP C0/7C07: EA NOP C0/7C08: AD1442 LDA $4214 C0/7C0B: 0A ASL A C0/7C0C: A61E LDX $1E C0/7C0E: 9F00207E STA $7E2000,X C0/7C12: A5B3 LDA $B3 C0/7C14: 997E08 STA $087E,Y C0/7C17: 3A DEC A C0/7C18: 997F08 STA $087F,Y C0/7C1B: 20777E JSR $7E77 C0/7C1E: 60 RTS C0/7C1F: 7B TDC (from C0/7BE9, C0/7BF3) C0/7C20: 997108 STA $0871,Y C0/7C23: 997208 STA $0872,Y C0/7C26: 997308 STA $0873,Y C0/7C29: 997408 STA $0874,Y C0/7C2C: 60 RTS C0/7C2D: B96808 LDA $0868,Y (from C0/7634) C0/7C30: 2906 AND #$06 C0/7C32: D035 BNE $7C69 C0/7C34: BE7A08 LDX $087A,Y C0/7C37: BF00007F LDA $7F0000,X C0/7C3B: AA TAX C0/7C3C: BF00767E LDA $7E7600,X C0/7C40: C9F7 CMP #$F7 C0/7C42: F050 BEQ $7C94 C0/7C44: 2904 AND #$04 C0/7C46: D04C BNE $7C94 C0/7C48: BF00767E LDA $7E7600,X C0/7C4C: 2908 AND #$08 C0/7C4E: F008 BEQ $7C58 C0/7C50: B98008 LDA $0880,Y C0/7C53: 0930 ORA #$30 C0/7C55: 998008 STA $0880,Y C0/7C58: BF00767E LDA $7E7600,X C0/7C5C: 2910 AND #$10 C0/7C5E: F008 BEQ $7C68 C0/7C60: B98108 LDA $0881,Y C0/7C63: 0930 ORA #$30 C0/7C65: 998108 STA $0881,Y C0/7C68: 60 RTS C0/7C69: 4A LSR A (from C0/7C32) C0/7C6A: 3A DEC A C0/7C6B: D013 BNE $7C80 C0/7C6D: B98008 LDA $0880,Y C0/7C70: 0930 ORA #$30 C0/7C72: 998008 STA $0880,Y C0/7C75: B98108 LDA $0881,Y C0/7C78: 29CF AND #$CF C0/7C7A: 0920 ORA #$20 C0/7C7C: 998108 STA $0881,Y C0/7C7F: 60 RTS C0/7C80: 3A DEC A (from C0/7C6B) C0/7C81: D011 BNE $7C94 C0/7C83: B98008 LDA $0880,Y C0/7C86: 0930 ORA #$30 C0/7C88: 998008 STA $0880,Y C0/7C8B: B98108 LDA $0881,Y C0/7C8E: 0930 ORA #$30 C0/7C90: 998108 STA $0881,Y C0/7C93: 60 RTS C0/7C94: B98008 LDA $0880,Y (from C0/7C42, C0/7C46, C0/7C81) C0/7C97: 29CF AND #$CF C0/7C99: 0920 ORA #$20 C0/7C9B: 998008 STA $0880,Y C0/7C9E: B98108 LDA $0881,Y C0/7CA1: 29CF AND #$CF C0/7CA3: 0920 ORA #$20 C0/7CA5: 998108 STA $0881,Y C0/7CA8: 60 RTS C0/7CA9: B96808 LDA $0868,Y (from C0/7766, C0/7BF5) C0/7CAC: 2906 AND #$06 C0/7CAE: D0B9 BNE $7C69 C0/7CB0: BF00767E LDA $7E7600,X C0/7CB4: C9F7 CMP #$F7 C0/7CB6: F0DC BEQ $7C94 C0/7CB8: 2904 AND #$04 C0/7CBA: D0D8 BNE $7C94 C0/7CBC: BF00767E LDA $7E7600,X C0/7CC0: 2908 AND #$08 C0/7CC2: D00A BNE $7CCE C0/7CC4: B98008 LDA $0880,Y C0/7CC7: 29CF AND #$CF C0/7CC9: 0920 ORA #$20 C0/7CCB: 998008 STA $0880,Y C0/7CCE: BF00767E LDA $7E7600,X C0/7CD2: 2910 AND #$10 C0/7CD4: D00A BNE $7CE0 C0/7CD6: B98108 LDA $0881,Y C0/7CD9: 29CF AND #$CF C0/7CDB: 0920 ORA #$20 C0/7CDD: 998108 STA $0881,Y C0/7CE0: 60 RTS C0/7CE1: C220 REP #$20 (from C0/5263, C0/5299, C0/5413, C0/75EF, C0/7A53, C0/7A88, C0/7D04)(16 bit accum./memory) C0/7CE3: B96A08 LDA $086A,Y C0/7CE6: 4A LSR A C0/7CE7: 4A LSR A C0/7CE8: 4A LSR A C0/7CE9: 4A LSR A C0/7CEA: E220 SEP #$20 (8 bit accum./memory) C0/7CEC: 2586 AND $86 C0/7CEE: 997A08 STA $087A,Y C0/7CF1: C220 REP #$20 (16 bit accum./memory) C0/7CF3: B96D08 LDA $086D,Y C0/7CF6: 4A LSR A C0/7CF7: 4A LSR A C0/7CF8: 4A LSR A C0/7CF9: 4A LSR A C0/7CFA: E220 SEP #$20 (8 bit accum./memory) C0/7CFC: 2587 AND $87 C0/7CFE: 997B08 STA $087B,Y C0/7D01: 7B TDC C0/7D02: 60 RTS C0/7D03: AA TAX (from C0/4730, C0/4EA0, C0/770D, C0/770D) C0/7D04: 20E17C JSR $7CE1 C0/7D07: B97A08 LDA $087A,Y C0/7D0A: 18 CLC C0/7D0B: 7F207DC0 ADC $C07D20,X C0/7D0F: 2586 AND $86 C0/7D11: 851E STA $1E C0/7D13: B97B08 LDA $087B,Y C0/7D16: 18 CLC C0/7D17: 7F257DC0 ADC $C07D25,X C0/7D1B: 2587 AND $87 C0/7D1D: 851F STA $1F C0/7D1F: 60 RTS C0/7D20: 0000 C0/7D22: 0100 C0/7D24: FF00FF00 C0/7D28: 0100 C0/7D2A: A673 LDX $73 (from C0/7E1C, C0/7E73) C0/7D2C: 3032 BMI $7D60 C0/7D2E: C220 REP #$20 (16 bit accum./memory) C0/7D30: 8A TXA C0/7D31: 4A LSR A C0/7D32: 4A LSR A C0/7D33: 4A LSR A C0/7D34: 4A LSR A C0/7D35: E220 SEP #$20 (8 bit accum./memory) C0/7D37: 8D0242 STA $4202 C0/7D3A: AD5305 LDA $0553 C0/7D3D: 8D0342 STA $4203 C0/7D40: EA NOP C0/7D41: EA NOP C0/7D42: C220 REP #$20 (16 bit accum./memory) C0/7D44: AD1642 LDA $4216 C0/7D47: 8577 STA $77 C0/7D49: 7B TDC C0/7D4A: E220 SEP #$20 (8 bit accum./memory) C0/7D4C: AD5505 LDA $0555 C0/7D4F: 8D0342 STA $4203 C0/7D52: EA NOP C0/7D53: EA NOP C0/7D54: C220 REP #$20 (16 bit accum./memory) C0/7D56: AD1642 LDA $4216 C0/7D59: 857B STA $7B C0/7D5B: 7B TDC C0/7D5C: E220 SEP #$20 (8 bit accum./memory) C0/7D5E: 8039 BRA $7D99 C0/7D60: C220 REP #$20 (16 bit accum./memory) C0/7D62: 8A TXA C0/7D63: 4502 EOR $02 C0/7D65: 1A INC A C0/7D66: 4A LSR A C0/7D67: 4A LSR A C0/7D68: 4A LSR A C0/7D69: 4A LSR A C0/7D6A: E220 SEP #$20 (8 bit accum./memory) C0/7D6C: 8D0242 STA $4202 C0/7D6F: AD5305 LDA $0553 C0/7D72: 8D0342 STA $4203 C0/7D75: EA NOP C0/7D76: EA NOP C0/7D77: C220 REP #$20 (16 bit accum./memory) C0/7D79: AD1642 LDA $4216 C0/7D7C: 4502 EOR $02 C0/7D7E: 1A INC A C0/7D7F: 8577 STA $77 C0/7D81: 7B TDC C0/7D82: E220 SEP #$20 (8 bit accum./memory) C0/7D84: AD5505 LDA $0555 C0/7D87: 8D0342 STA $4203 C0/7D8A: EA NOP C0/7D8B: EA NOP C0/7D8C: C220 REP #$20 (16 bit accum./memory) C0/7D8E: AD1642 LDA $4216 C0/7D91: 4502 EOR $02 C0/7D93: 1A INC A C0/7D94: 857B STA $7B C0/7D96: 7B TDC C0/7D97: E220 SEP #$20 (8 bit accum./memory) C0/7D99: A675 LDX $75 C0/7D9B: 3031 BMI $7DCE C0/7D9D: C220 REP #$20 (16 bit accum./memory) C0/7D9F: 8A TXA C0/7DA0: 4A LSR A C0/7DA1: 4A LSR A C0/7DA2: 4A LSR A C0/7DA3: 4A LSR A C0/7DA4: E220 SEP #$20 (8 bit accum./memory) C0/7DA6: 8D0242 STA $4202 C0/7DA9: AD5405 LDA $0554 C0/7DAC: 8D0342 STA $4203 C0/7DAF: EA NOP C0/7DB0: EA NOP C0/7DB1: C220 REP #$20 (16 bit accum./memory) C0/7DB3: AD1642 LDA $4216 C0/7DB6: 8579 STA $79 C0/7DB8: 7B TDC C0/7DB9: E220 SEP #$20 (8 bit accum./memory) C0/7DBB: AD5605 LDA $0556 C0/7DBE: 8D0342 STA $4203 C0/7DC1: EA NOP C0/7DC2: EA NOP C0/7DC3: C220 REP #$20 (16 bit accum./memory) C0/7DC5: AD1642 LDA $4216 C0/7DC8: 857D STA $7D C0/7DCA: 7B TDC C0/7DCB: E220 SEP #$20 (8 bit accum./memory) C0/7DCD: 60 RTS C0/7DCE: C220 REP #$20 (from C0/7D9B)(16 bit accum./memory) C0/7DD0: 8A TXA C0/7DD1: 4502 EOR $02 C0/7DD3: 1A INC A C0/7DD4: 4A LSR A C0/7DD5: 4A LSR A C0/7DD6: 4A LSR A C0/7DD7: 4A LSR A C0/7DD8: E220 SEP #$20 (8 bit accum./memory) C0/7DDA: 8D0242 STA $4202 C0/7DDD: AD5405 LDA $0554 C0/7DE0: 8D0342 STA $4203 C0/7DE3: EA NOP C0/7DE4: EA NOP C0/7DE5: C220 REP #$20 (16 bit accum./memory) C0/7DE7: AD1642 LDA $4216 C0/7DEA: 4502 EOR $02 C0/7DEC: 1A INC A C0/7DED: 8579 STA $79 C0/7DEF: 7B TDC C0/7DF0: E220 SEP #$20 (8 bit accum./memory) C0/7DF2: AD5605 LDA $0556 C0/7DF5: 8D0342 STA $4203 C0/7DF8: EA NOP C0/7DF9: EA NOP C0/7DFA: C220 REP #$20 (16 bit accum./memory) C0/7DFC: AD1642 LDA $4216 C0/7DFF: 4502 EOR $02 C0/7E01: 1A INC A C0/7E02: 857D STA $7D C0/7E04: 7B TDC C0/7E05: E220 SEP #$20 (8 bit accum./memory) C0/7E07: 60 RTS C0/7E08: AD5905 LDA $0559 (from C0/495D, C0/4A10, C0/7736, C0/7776, C0/7AB9, C0/7B94, C0/BD19) C0/7E0B: F013 BEQ $7E20 C0/7E0D: C0B007 CPY #$07B0 C0/7E10: D00D BNE $7E1F C0/7E12: AE2110 LDX $1021 C0/7E15: 8673 STX $73 C0/7E17: AE2310 LDX $1023 C0/7E1A: 8675 STX $75 C0/7E1C: 202A7D JSR $7D2A C0/7E1F: 60 RTS C0/7E20: AC0308 LDY $0803 C0/7E23: AD2D06 LDA $062D C0/7E26: C9FF CMP #$FF C0/7E28: F012 BEQ $7E3C C0/7E2A: A5AF LDA $AF C0/7E2C: BE7108 LDX $0871,Y C0/7E2F: 1001 BPL $7E32 C0/7E31: 3A DEC A C0/7E32: CD2C06 CMP $062C C0/7E35: 900C BCC $7E43 C0/7E37: CD2D06 CMP $062D C0/7E3A: B007 BCS $7E43 C0/7E3C: BE7108 LDX $0871,Y C0/7E3F: 8673 STX $73 C0/7E41: 8008 BRA $7E4B C0/7E43: A600 LDX $00 C0/7E45: 8673 STX $73 C0/7E47: 8677 STX $77 C0/7E49: 867B STX $7B C0/7E4B: AD2F06 LDA $062F C0/7E4E: C9FF CMP #$FF C0/7E50: F012 BEQ $7E64 C0/7E52: A5B0 LDA $B0 C0/7E54: BE7308 LDX $0873,Y C0/7E57: 1001 BPL $7E5A C0/7E59: 3A DEC A C0/7E5A: CD2E06 CMP $062E C0/7E5D: 900C BCC $7E6B C0/7E5F: CD2F06 CMP $062F C0/7E62: B007 BCS $7E6B C0/7E64: BE7308 LDX $0873,Y C0/7E67: 8675 STX $75 C0/7E69: 8008 BRA $7E73 C0/7E6B: A600 LDX $00 C0/7E6D: 8675 STX $75 C0/7E6F: 8679 STX $79 C0/7E71: 867D STX $7D C0/7E73: 202A7D JSR $7D2A C0/7E76: 60 RTS C0/7E77: B97508 LDA $0875,Y C0/7E7A: AA TAX C0/7E7B: BFCA7EC0 LDA $C07ECA,X C0/7E7F: 851B STA $1B C0/7E81: B97E08 LDA $087E,Y C0/7E84: 3A DEC A C0/7E85: 0A ASL A C0/7E86: AA TAX C0/7E87: BFD47EC0 LDA $C07ED4,X C0/7E8B: 8D0242 STA $4202 C0/7E8E: A51B LDA $1B C0/7E90: 8D0342 STA $4203 C0/7E93: EA NOP C0/7E94: EA NOP C0/7E95: EA NOP C0/7E96: C220 REP #$20 (16 bit accum./memory) C0/7E98: AD1642 LDA $4216 C0/7E9B: 5FF47EC0 EOR $C07EF4,X C0/7E9F: 1001 BPL $7EA2 C0/7EA1: 1A INC A C0/7EA2: 997108 STA $0871,Y C0/7EA5: 7B TDC C0/7EA6: E220 SEP #$20 (8 bit accum./memory) C0/7EA8: BF147FC0 LDA $C07F14,X C0/7EAC: 8D0242 STA $4202 C0/7EAF: A51B LDA $1B C0/7EB1: 8D0342 STA $4203 C0/7EB4: EA NOP C0/7EB5: EA NOP C0/7EB6: EA NOP C0/7EB7: C220 REP #$20 (16 bit accum./memory) C0/7EB9: AD1642 LDA $4216 C0/7EBC: 5F347FC0 EOR $C07F34,X C0/7EC0: 1001 BPL $7EC3 C0/7EC2: 1A INC A C0/7EC3: 997308 STA $0873,Y C0/7EC6: 7B TDC C0/7EC7: E220 SEP #$20 (8 bit accum./memory) C0/7EC9: 60 RTS C0/7ECA: 0102 ORA ($02,X) C0/7ECC: 0408 TSB $08 C0/7ECE: 1020 BPL $7EF0 C0/7ED0: 1008 BPL $7EDA C0/7ED2: 0402 TSB $02 C0/7ED4: 0000 BRK #$00 C0/7ED6: 40 RTI C0/7ED7: 0000 BRK #$00 C0/7ED9: 0040 BRK #$40 C0/7EDB: 0040 BRK #$40 C0/7EDD: 0040 BRK #$40 C0/7EDF: 0040 BRK #$40 C0/7EE1: 0040 BRK #$40 C0/7EE3: 0020 BRK #$20 C0/7EE5: 0040 BRK #$40 C0/7EE7: 0040 BRK #$40 C0/7EE9: 0020 BRK #$20 C0/7EEB: 0020 BRK #$20 C0/7EED: 0040 BRK #$40 C0/7EEF: 0040 BRK #$40 C0/7EF1: 0020 BRK #$20 C0/7EF3: 0000 BRK #$00 C0/7EF5: 0000 BRK #$00 C0/7EF7: 0000 BRK #$00 C0/7EF9: 00FF BRK #$FF C0/7EFB: FF000000 SBC $000000,X C0/7EFF: 00FF BRK #$FF C0/7F01: FFFFFF00 SBC $00FFFF,X C0/7F05: 0000 BRK #$00 C0/7F07: 0000 BRK #$00 C0/7F09: 0000 BRK #$00 C0/7F0B: 00FF BRK #$FF C0/7F0D: FFFFFFFF SBC $FFFFFF,X C0/7F11: FFFFFF40 SBC $40FFFF,X C0/7F15: 0000 BRK #$00 C0/7F17: 0040 BRK #$40 C0/7F19: 0000 BRK #$00 C0/7F1B: 0040 BRK #$40 C0/7F1D: 0040 BRK #$40 C0/7F1F: 0040 BRK #$40 C0/7F21: 0040 BRK #$40 C0/7F23: 0040 BRK #$40 C0/7F25: 0020 BRK #$20 C0/7F27: 0020 BRK #$20 C0/7F29: 0040 BRK #$40 C0/7F2B: 0040 BRK #$40 C0/7F2D: 0020 BRK #$20 C0/7F2F: 0020 BRK #$20 C0/7F31: 0040 BRK #$40 C0/7F33: 00FF BRK #$FF C0/7F35: FF000000 SBC $000000,X C0/7F39: 0000 BRK #$00 C0/7F3B: 00FF BRK #$FF C0/7F3D: FF000000 SBC $000000,X C0/7F41: 00FF BRK #$FF C0/7F43: FFFFFFFF SBC $FFFFFF,X C0/7F47: FF000000 SBC $000000,X C0/7F4B: 0000 BRK #$00 C0/7F4D: 0000 BRK #$00 C0/7F4F: 00FF BRK #$FF C0/7F51: FFFFFF00 SBC $00FFFF,X C0/7F55: 0102 ORA ($02,X) C0/7F57: 0301 ORA $01,S C0/7F59: 0103 ORA ($03,X) C0/7F5B: 0300 ORA $00,S C0/7F5D: 0101 ORA ($01,X) C0/7F5F: 0202 COP #$02 C0/7F61: 0303 ORA $03,S C0/7F63: 00 Dialogue initializing, this is called when a map is loaded/refreshed C0/7F64: 9C6805 STZ $0568 (from C0/BF7C) C0/7F67: 64C5 STZ $C5 (store #$00 to $C5) C0/7F69: 64CC STZ $CC (store #$00 to $CC) C0/7F6B: 64D3 STZ $D3 (store #$00 to $D3) C0/7F6D: 64C9 STZ $C9 (store #$00 to $C9) C0/7F6F: 64CA STZ $CA (store #$00 to $CA) C0/7F71: A9CD LDA #$CD C0/7F73: 85CB STA $CB (set bank byte of dialogue to CD) C0/7F75: 9C6D05 STZ $056D (store #$00 to $056D) C0/7F78: 9C6E05 STZ $056E (store #$00 to $056E) C0/7F7B: 9C6F05 STZ $056F (store #$00 to $056F) C0/7F7E: 9C8205 STZ $0582 (store #$00 to $0582) C0/7F81: 64D0 STZ $D0 (store #$00 to $D0) C0/7F83: 64D1 STZ $D1 (store #$00 to $D1) C0/7F85: A980 LDA #$80 C0/7F87: 85CF STA $CF C0/7F89: A600 LDX $00 C0/7F8B: 86C1 STX $C1 (store #$0000 to $C1) C0/7F8D: 86C3 STX $C3 (store #$0000 to $C3) C0/7F8F: 8E6905 STX $0569 (store #$0000 to $0569) C0/7F92: 8E6B05 STX $056B (store #$0000 to $056B) C0/7F95: A20007 LDX #$0700 C0/7F98: 86C6 STX $C6 C0/7F9A: A904 LDA #$04 C0/7F9C: 85BF STA $BF (set initial line position in pixels to 4?) C0/7F9E: 64C0 STZ $C0 C0/7FA0: A9E0 LDA #$E0 C0/7FA2: 85C8 STA $C8 (set initial line length in pixels to 224, more accurately, how many pixels left until the next line) C0/7FA4: A20390 LDX #$9003 C0/7FA7: 8E8121 STX $2181 C0/7FAA: A97E LDA #$7E C0/7FAC: 8D8321 STA $2183 C0/7FAF: A28000 LDX #$0080 C0/7FB2: 9C8021 STZ $2180 C0/7FB5: CA DEX C0/7FB6: D0FA BNE $7FB2 C0/7FB8: 20A988 JSR $88A9 (clear some more stuff out) C0/7FBB: 207E85 JSR $857E (JMP fool!, do some DMA stuff) C0/7FBE: 60 RTS Dialogue Loading function: C0/7FBF: A9CD LDA #$CD (Initial bank is CD) C0/7FC1: 85CB STA $CB (This is kept in location $CB) C0/7FC3: C220 REP #$20 (16 bit accum./memory) C0/7FC5: A5D0 LDA $D0 (get memory D0) C0/7FC7: 0A ASL A (times 2 since pointers are 2 bytes) C0/7FC8: AA TAX (this gives us the index X) C0/7FC9: BF02E6CC LDA $CCE602,X (Loads pointer to dialogue X) C0/7FCD: 85C9 STA $C9 (The pointer goes in $C9) C0/7FCF: A5D0 LDA $D0 (Which dialogue is this?) C0/7FD1: CF00E6CC CMP $CCE600 (Checks to see whether bank byte needs is right or needs to be CE) C0/7FD5: 9005 BCC $7FDC (Branch if less to the pointer above) C0/7FD7: 7B TDC (bank byte needs to be incremented, and this is pointless...) C0/7FD8: E220 SEP #$20 (8 bit accum./memory) C0/7FDA: E6CB INC $CB (Since it wasn't less, we increment the bank byte) C0/7FDC: 7B TDC (Either way it is correct now, so clear the accumulator) C0/7FDD: E220 SEP #$20 (8 bit accum./memory) C0/7FDF: A901 LDA #$01 (Put a 1 in the accumulator) C0/7FE1: 8D6805 STA $0568 (Store 1 into $0568) C0/7FE4: 60 RTS Location name loading function: C0/7FE5: 9C6705 STZ $0567 (set the timer for location names to 0) C0/7FE8: ADB91E LDA $1EB9 (load an event byte) C0/7FEB: 2940 AND #$40 C0/7FED: D005 BNE $7FF4 (Branch if party switching with Y enabled, although there's no "first time" check, so Phoenix Cave's location will never display. BUG!) C0/7FEF: AD4507 LDA $0745 (load location flag) C0/7FF2: D004 BNE $7FF8 (branch if #$08 flag is set) C0/7FF4: 9C4507 STZ $0745 C0/7FF7: 60 RTS C0/7FF8: A964 LDA #$64 (from C0/7FF2) C0/7FFA: 8D6705 STA $0567 (set timer to 64 frames) C0/7FFD: A9CE LDA #$CE C0/7FFF: 85CB STA $CB (bank of location names) C0/8001: AD2005 LDA $0520 C0/8004: 0A ASL A C0/8005: AA TAX C0/8006: C221 REP #$21 C0/8008: BF0084E6 LDA $E68400,X (Pointer to location name) C0/800C: 6900F1 ADC #$F100 (they are relative, so add the offset) C0/800F: 85C9 STA $C9 (store location to look) C0/8011: 7B TDC C0/8012: E220 SEP #$20 (8 bit accum./memory) C0/8014: 64C0 STZ $C0 C0/8016: A400 LDY $00 C0/8018: B7C9 LDA [$C9],Y (load the location name) C0/801A: F00D BEQ $8029 (branch if hit a null terminator) C0/801C: AA TAX C0/801D: BFC08FC4 LDA $C48FC0,X (load width for variable font cell) C0/8021: 18 CLC C0/8022: 65C0 ADC $C0 C0/8024: 85C0 STA $C0 C0/8026: C8 INY C0/8027: 80EF BRA $8018 (loop and keep grabbing letters) C0/8029: A9E0 LDA #$E0 C0/802B: 38 SEC C0/802C: E5C0 SBC $C0 C0/802E: 4A LSR A C0/802F: 85BF STA $BF C0/8031: A8 TAY C0/8032: 8C0442 STY $4204 (whatever is left, store as to be divided) C0/8035: A910 LDA #$10 (16...) C0/8037: 8D0642 STA $4206 (divide Y by 16) C0/803A: EA NOP C0/803B: EA NOP C0/803C: EA NOP C0/803D: EA NOP C0/803E: EA NOP C0/803F: EA NOP C0/8040: EA NOP C0/8041: AD1442 LDA $4214 (load the division result) C0/8044: 8D0242 STA $4202 (store as a multiplier) C0/8047: A920 LDA #$20 (32...) C0/8049: 8D0342 STA $4203 (multiply previous result by 32) C0/804C: EA NOP C0/804D: EA NOP C0/804E: EA NOP C0/804F: AC1642 LDY $4216 (get the multiplication result) C0/8052: 84C1 STY $C1 C0/8054: 204D82 JSR $824D C0/8057: 200986 JSR $8609 C0/805A: AD6805 LDA $0568 C0/805D: 10F5 BPL $8054 C0/805F: 64D3 STZ $D3 C0/8061: 64CC STZ $CC C0/8063: 20A82E JSR $2EA8 (JMP!) C0/8066: 60 RTS