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 C19: Difference between revisions
< Final Fantasy VI | ROM map
Jump to navigation
Jump to search
(clean up) |
mNo edit summary |
||
Line 2,016: | Line 2,016: | ||
C1/A00F: 4C7D9F JMP $9F7D | C1/A00F: 4C7D9F JMP $9F7D | ||
C1/A012: 60 RTS | C1/A012: 60 RTS | ||
{{Internal Data|game=Fantasy VI}} |
Revision as of 04:49, 5 June 2016
C1/9001 unknow
C1/9001: A9FF LDA #$FF C1/9003: 9D8626 STA $2686,X C1/9006: A980 LDA #$80 C1/9008: 9D8726 STA $2687,X C1/900B: 9E8826 STZ $2688,X C1/900E: 9E8926 STZ $2689,X C1/9011: 9E8A26 STZ $268A,X C1/9014: AD077B LDA $7B07 C1/9017: 8540 STA $40 C1/9019: 20B78C JSR $8CB7 C1/901C: 9014 BCC $9032 C1/901E: 20D28C JSR $8CD2 C1/9021: 7B TDC C1/9022: A8 TAY C1/9023: B9077B LDA $7B07,Y C1/9026: 9D8626 STA $2686,X C1/9029: E8 INX C1/902A: C8 INY C1/902B: C00500 CPY #$0005 C1/902E: D0F3 BNE $9023 C1/9030: 800A BRA $903C
C1/9032: BD8926 LDA $2689,X C1/9035: C963 CMP #$63 C1/9037: B003 BCS $903C C1/9039: FE8926 INC $2689,X C1/903C: 60 RTS
C1/903D: AE037B LDX $7B03 C1/9040: AC057B LDY $7B05 C1/9043: B99A2B LDA $2B9A,Y C1/9046: DD8626 CMP $2686,X C1/9049: D001 BNE $904C C1/904B: 60 RTS
C1/904C: BD8626 LDA $2686,X C1/904F: C9FF CMP #$FF C1/9051: F011 BEQ $9064 C1/9053: 20188A JSR $8A18 C1/9056: BD8726 LDA $2687,X C1/9059: 2918 AND #$18 C1/905B: F0EE BEQ $904B C1/905D: BD8A26 LDA $268A,X C1/9060: 252C AND $2C C1/9062: D0E7 BNE $904B C1/9064: B9862B LDA $2B86,Y C1/9067: 8D3B7B STA $7B3B C1/906A: B9872B LDA $2B87,Y C1/906D: 8D3C7B STA $7B3C C1/9070: BD8626 LDA $2686,X C1/9073: 8D397B STA $7B39 C1/9076: BD8726 LDA $2687,X C1/9079: 8D3A7B STA $7B3A C1/907C: 20D589 JSR $89D5 C1/907F: B0CA BCS $904B C1/9081: AE037B LDX $7B03 C1/9084: AC057B LDY $7B05 C1/9087: 7B TDC C1/9088: AA TAX C1/9089: AC057B LDY $7B05 C1/908C: B99A2B LDA $2B9A,Y C1/908F: 9D077B STA $7B07,X C1/9092: E8 INX C1/9093: C8 INY C1/9094: E00500 CPX #$0005 C1/9097: D0F3 BNE $908C C1/9099: AE037B LDX $7B03 C1/909C: AC057B LDY $7B05 C1/909F: BD8626 LDA $2686,X C1/90A2: 999A2B STA $2B9A,Y C1/90A5: BD8726 LDA $2687,X C1/90A8: 999B2B STA $2B9B,Y C1/90AB: BD8826 LDA $2688,X C1/90AE: 999C2B STA $2B9C,Y C1/90B1: BD8A26 LDA $268A,X C1/90B4: 999E2B STA $2B9E,Y C1/90B7: A901 LDA #$01 C1/90B9: 999D2B STA $2B9D,Y C1/90BC: BD8926 LDA $2689,X C1/90BF: C902 CMP #$02 C1/90C1: 9005 BCC $90C8 C1/90C3: DE8926 DEC $2689,X C1/90C6: 8013 BRA $90DB
C1/90C8: A9FF LDA #$FF C1/90CA: 9D8626 STA $2686,X C1/90CD: A980 LDA #$80 C1/90CF: 9D8726 STA $2687,X C1/90D2: 9E8826 STZ $2688,X C1/90D5: 9E8926 STZ $2689,X C1/90D8: 9E8A26 STZ $268A,X C1/90DB: AD077B LDA $7B07 C1/90DE: 8540 STA $40 C1/90E0: 20B78C JSR $8CB7 C1/90E3: 9014 BCC $90F9 C1/90E5: 20D28C JSR $8CD2 C1/90E8: 7B TDC C1/90E9: A8 TAY C1/90EA: B9077B LDA $7B07,Y C1/90ED: 9D8626 STA $2686,X C1/90F0: E8 INX C1/90F1: C8 INY C1/90F2: C00500 CPY #$0005 C1/90F5: D0F3 BNE $90EA C1/90F7: 800A BRA $9103 C1/90F9: BD8926 LDA $2689,X C1/90FC: C963 CMP #$63 C1/90FE: B003 BCS $9103 C1/9100: FE8926 INC $2689,X C1/9103: 60 RTS
C1/9104 targeting gor magitek attacks (data)
C1/9104: 43 43 C1/9106: 43 6A C1/9108: 03 6A C1/910A: 43 43
C1/910C magitek attacks for Terra
C1/910C: 00 01 C1/910E: 02 03 C1/9110: 04 05 C1/9112: 06 07
C1/9114 magitek attacks for everyone except Terra
C1/9114: 00 01 C1/9116: 02 FF C1/9118: 04 FF C1/911A: FF FF
C1/911C unknow
C1/911C: A940 LDA #$40 (from C1/5529, X = 41) C1/911E: 8DC27B STA $7BC2 C1/9121: 4C9577 JMP $7795
C1/9124 JSL unknow
C1/9124: 2043AB JSR $AB43 C1/9127: 9CB062 STZ $62B0 C1/912A: 20E594 JSR $94E5 C1/912D: 20F494 JSR $94F4 C1/9130: 9CD062 STZ $62D0 C1/9133: 9CD162 STZ $62D1 C1/9136: 6B RTL
C1/9137 JSL unknow
C1/9137: 20E594 JSR $94E5 C1/913A: 200395 JSR $9503 C1/913D: 2085B0 JSR $B085 C1/9140: 9CD062 STZ $62D0 C1/9143: 9CD162 STZ $62D1 C1/9146: 6B RTL
C1/9147 battle dynamics command 0C
C1/9147: 2058AB JSR $AB58 (from C1/956B, X = C) C1/914A: 20C399 JSR $99C3 C1/914D: A00100 LDY #$0001 C1/9150: B178 LDA ($78),Y C1/9152: 48 PHA C1/9153: B176 LDA ($76),Y (param. 1 for command 0C) C1/9155: 48 PHA C1/9156: C916 CMP #$16 C1/9158: D01A BNE $9174 C1/915A: A00100 LDY #$0001 C1/915D: B178 LDA ($78),Y C1/915F: C904 CMP #$04 C1/9161: 9005 BCC $9168 C1/9163: A22210 LDX #$1022 C1/9166: 8003 BRA $916B C1/9168: A2500F LDX #$0F50 C1/916B: 861E STX $1E C1/916D: 7B TDC C1/916E: 20B39C JSR $9CB3 (Load graphic data for spell animation) C1/9171: 205BAC JSR $AC5B C1/9174: 68 PLA C1/9175: AA TAX C1/9176: 68 PLA C1/9177: C904 CMP #$04 C1/9179: B012 BCS $918D C1/917B: 0A ASL A C1/917C: 0A ASL A C1/917D: 0A ASL A C1/917E: 0A ASL A C1/917F: 0A ASL A C1/9180: A8 TAY C1/9181: E0FF00 CPX #$00FF C1/9184: F007 BEQ $918D C1/9186: BF9AE4C2 LDA $C2E49A,X C1/918A: 99BB61 STA $61BB,Y C1/918D: 60 RTS
C1/918E unknow (data)
C1/918E: 880F C1/9190: 960F C2/9192: A40F C1/9194: B20F
C1/9196 battle dynamic commands (table)
Pointers (call at C1/956B) (function) (value) C1/9196: 9496 (exits)(00) (Nothing - RTS) C1/9198: A797 (01) C1/919A: 5598 (02) (Cause text box to show, msg. is param. 1?) C1/919C: 0996 (03) C1/919E: 9496 (exits)(04) (Nothing - RTS) C1/91A0: E293 (exits)(05) (Nothing - RTS) C1/91A2: 60B7 (06) (Show command animation (if reflected, just see wall), command is parm. 1, attack is param. 2, param. 3-???) C1/91A4: 9096 (07) (Adds 10h to the target's script start???) C1/91A6: E293 (exits)(08) (Nothing - RTS) C1/91A8: 9BA7 (09) (Reflected animation, command is parm. 1, attack is param. 2, param. 3-???) C1/91AA: 1997 (0A) C1/91AC: B3A4 (0B) (Display damage numerals, dmg. is param 1???) C1/91AE: 4791 (0C) C1/91B0: C399 (0D) C1/91B2: 76AB (0E) C1/91B4: 67FD (0F) (Do special battle event, index is param. 1) C1/91B6: 3598 (10) (Loads a pointer to battle dialogue, bank 2: parm. 1 is which dialogue) C1/91B8: 2897 (11) C1/91BA: 2993 (12) C1/91BC: 9C93 (13) (Monster entry (and exit???) special animations) C1/91BE: CC91 (14) C1/91C0: 8FA9 (15) C1/91C2: 76AB (16) C1/91C4: 76AB (17) C1/91C6: 76AB (18) C1/91C8: 76AB (19) C1/91CA: 76AB (1A)
C1/91CC JSR battle dynamics #$14
C1/91CC: 223DE6C2 JSL $C2E63D (from C1/956B, X = 14) C1/91D0: 60 RTS
C1/91D1 JSL unknow
C1/91D1: 20860E JSR $0E86 C1/91D4: 207C25 JSR $257C C1/91D7: 226BA9C2 JSL $C2A96B (JML would work here!) C1/91DB: 6B RTL
C1/91DC unknow
C1/91DC: EEBF62 INC $62BF C1/91DF: 20E594 JSR $94E5 C1/91E2: 7B TDC C1/91E3: 205692 JSR $9256 C1/91E6: 48 PHA C1/91E7: 09E0 ORA #$E0 C1/91E9: AA TAX C1/91EA: 8514 STA $14 C1/91EC: 8516 STA $16 C1/91EE: 8518 STA $18 C1/91F0: A28001 LDX #$0180 C1/91F3: 8610 STX $10 C1/91F5: A940 LDA #$40 C1/91F7: 8512 STA $12 C1/91F9: 2053EB JSR $EB53 C1/91FC: 68 PLA C1/91FD: 1A INC A C1/91FE: C920 CMP #$20 C1/9200: D0E1 BNE $91E3 C1/9202: 9CBF62 STZ $62BF C1/9205: 7B TDC C1/9206: AA TAX C1/9207: 8610 STX $10 C1/9209: 4C3CC2 JMP $C23C
C1/920C unknow
C1/920C: EEBF62 INC $62BF C1/920F: 20E594 JSR $94E5 C1/9212: 7B TDC C1/9213: AA TAX C1/9214: 9E807F STZ $7F80,X C1/9217: E8 INX C1/9218: E08000 CPX #$0080 C1/921B: D0F7 BNE $9214 C1/921D: 202A02 JSR $022A C1/9220: A90F LDA #$0F C1/9222: 8DAC61 STA $61AC C1/9225: A91F LDA #$1F C1/9227: 205692 JSR $9256 C1/922A: 48 PHA C1/922B: 09E0 ORA #$E0 C1/922D: AA TAX C1/922E: 8514 STA $14 C1/9230: 8516 STA $16 C1/9232: 8518 STA $18 C1/9234: A28001 LDX #$0180 C1/9237: 8610 STX $10 C1/9239: A940 LDA #$40 C1/923B: 8512 STA $12 C1/923D: 2053EB JSR $EB53 C1/9240: 68 PLA C1/9241: 3A DEC A C1/9242: D0E3 BNE $9227 C1/9244: A930 LDA #$30 C1/9246: 205E92 JSR $925E C1/9249: 205692 JSR $9256 C1/924C: 9CBF62 STZ $62BF C1/924F: 7B TDC C1/9250: AA TAX C1/9251: 8610 STX $10 C1/9253: 4C3CC2 JMP $C23C
C1/9256 unknow
C1/9256: 48 PHA C1/9257: A904 LDA #$04 C1/9259: 20B69B JSR $9BB6 C1/925C: 68 PLA C1/925D: 60 RTS
C1/925E JSR unknow
C1/925E: 8DBD61 STA $61BD C1/9261: 8DDD61 STA $61DD C1/9264: 8DFD61 STA $61FD C1/9267: 8D1D62 STA $621D C1/926A: 60 RTS
C1/926B unknow
C1/926B: A20202 LDX #$0202 C1/926E: 8610 STX $10 C1/9270: A910 LDA #$10 C1/9272: 4C3CC2 JMP $C23C
C1/9275 unknow
C1/9275: 9C807B STZ $7B80 (from only C1/9334) C1/9278: EEB8EC INC $ECB8 (add 1 to battle background ID) C1/927B: A962 LDA #$62 C1/927D: 8D7289 STA $8972 C1/9280: 9C1D20 STZ $201D (Clear bitfield of character targets) C1/9283: 9C1E20 STZ $201E (Clear bitfield of monster targets) C1/9286: ADB8EC LDA $ECB8 (load battle background ID) C1/9289: 48 PHA (save it for now) C1/928A: 20D11B JSR $1BD1 C1/928D: 202A02 JSR $022A C1/9290: 7B TDC C1/9291: AA TAX C1/9292: 8EB264 STX $64B2 C1/9295: E697 INC $97 C1/9297: A908 LDA #$08 C1/9299: 20B69B JSR $9BB6 C1/929C: ADB8EC LDA $ECB8 (battle background ID) C1/929F: C936 CMP #$36 (are we fighting Kefka for the last time?) C1/92A1: D021 BNE $92C4 (branch if not) C1/92A3: AEB264 LDX $64B2 C1/92A6: E0E0FF CPX #$FFE0 C1/92A9: D019 BNE $92C4 C1/92AB: EEEDE9 INC $E9ED C1/92AE: A910 LDA #$10 C1/92B0: 8D0013 STA $1300 C1/92B3: A952 LDA #$52 ("Dancing Mad 4.1" song) C1/92B5: 8D0113 STA $1301 C1/92B8: A9FF LDA #$FF C1/92BA: 8D0213 STA $1302 C1/92BD: 220400C5 JSL $C50004 (and now, tweak the song!) C1/92C1: 9CEDE9 STZ $E9ED C1/92C4: AEB264 LDX $64B2 C1/92C7: CA DEX C1/92C8: 8EB264 STX $64B2 C1/92CB: E068FF CPX #$FF68 C1/92CE: D0C7 BNE $9297 C1/92D0: 9CB064 STZ $64B0 C1/92D3: 68 PLA C1/92D4: 8DDFE9 STA $E9DF C1/92D7: 48 PHA C1/92D8: 20DF1B JSR $1BDF C1/92DB: 202A02 JSR $022A C1/92DE: 2007B0 JSR $B007 C1/92E1: 7B TDC C1/92E2: AA TAX C1/92E3: 8EB264 STX $64B2 C1/92E6: 202A02 JSR $022A C1/92E9: 68 PLA C1/92EA: 20DC1B JSR $1BDC C1/92ED: 2007B0 JSR $B007 C1/92F0: A961 LDA #$61 C1/92F2: 8D7289 STA $8972 C1/92F5: 207600 JSR $0076 C1/92F8: 206B92 JSR $926B C1/92FB: 7B TDC C1/92FC: 205E92 JSR $925E C1/92FF: 200C92 JSR $920C C1/9302: A917 LDA #$17 C1/9304: 8D9189 STA $8991 C1/9307: 8D8D89 STA $898D C1/930A: 9C0FEC STZ $EC0F C1/930D: 9C9A62 STZ $629A C1/9310: 9C8562 STZ $6285 C1/9313: 9CEFE9 STZ $E9EF C1/9316: ADB8EC LDA $ECB8 (battle background ID) C1/9319: C936 CMP #$36 (are we on the final battle?) C1/931B: D00B BNE $9328 (branch if not) C1/931D: AD442F LDA $2F44 C1/9320: 49FF EOR #$FF C1/9322: 8DE6E9 STA $E9E6 C1/9325: 9C8262 STZ $6282 C1/9328: 60 RTS
C1/9329 battle dynamics command 12
C1/9329: A00100 LDY #$0001 (from C1/956B, X = 12) C1/932C: B176 LDA ($76),Y (parameter 1 for command 12) C1/932E: 1007 BPL $9337 C1/9330: 297F AND #$7F C1/9332: 9176 STA ($76),Y C1/9334: 207592 JSR $9275 C1/9337: A00200 LDY #$0002 C1/933A: AD1E20 LDA $201E (Load bitfield of valid monster targets) C1/933D: 9176 STA ($76),Y (store in parameter 2 for command 12) C1/933F: C8 INY C1/9340: B176 LDA ($76),Y (parameter 3 for command 12) C1/9342: 48 PHA C1/9343: 7B TDC C1/9344: 9176 STA ($76),Y (store 00 as parameter 3) C1/9346: 2268E6C2 JSL $C2E668 C1/934A: 7B TDC C1/934B: AA TAX C1/934C: 9EC262 STZ $62C2,X C1/934F: 9E8B61 STZ $618B,X C1/9352: E8 INX C1/9353: E00600 CPX #$0006 C1/9356: D0F4 BNE $934C C1/9358: 9C1E20 STZ $201E (Clear bitfield of monster targets) C1/935B: 9CAB61 STZ $61AB C1/935E: 9C2F2F STZ $2F2F C1/9361: A9FF LDA #$FF C1/9363: 8D9161 STA $6191 C1/9366: 20860E JSR $0E86 C1/9369: 207C25 JSR $257C C1/936C: 20DD22 JSR $22DD C1/936F: 20723E JSR $3E72 C1/9372: 208815 JSR $1588 C1/9375: 20C125 JSR $25C1 C1/9378: 7B TDC C1/9379: A00200 LDY #$0002 C1/937C: 9176 STA ($76),Y (Store 00 as parameter 2) C1/937E: C8 INY C1/937F: 68 PLA C1/9380: 9176 STA ($76),Y (Store old param. 3 as new param. 3) C1/9382: 8D2F2F STA $2F2F C1/9385: 8DAB61 STA $61AB C1/9388: 48 PHA C1/9389: A00100 LDY #$0001 C1/938C: AD482F LDA $2F48 (Monst. Form. Aux. Byte 1) C1/938F: 290F AND #$0F (Isolate "appearance effects") C1/9391: 9176 STA ($76),Y (Store parameter 1 of command 12) C1/9393: 2268E6C2 JSL $C2E668 C1/9397: 68 PLA C1/9398: 8D1E20 STA $201E (Store bitfield of valid monster targets) C1/939B: 60 RTS
C1/939C battle dynamics command 13
C1/939C: A00300 LDY #$0003 (from C1/956B, X = 13) C1/939F: B176 LDA ($76),Y (parameter 3 for command 13) C1/93A1: F02D BEQ $93D0 C1/93A3: 8510 STA $10 C1/93A5: 7B TDC C1/93A6: AA TAX C1/93A7: 4610 LSR $10 C1/93A9: 9006 BCC $93B1 C1/93AB: 9EC262 STZ $62C2,X C1/93AE: 9E8B61 STZ $618B,X C1/93B1: E8 INX C1/93B2: E00600 CPX #$0006 C1/93B5: D0F0 BNE $93A7 C1/93B7: A00100 LDY #$0001 C1/93BA: B176 LDA ($76),Y (parameter 1 for command 13) C1/93BC: C90E CMP #$0E C1/93BE: F00B BEQ $93CB C1/93C0: ADBA64 LDA $64BA C1/93C3: D006 BNE $93CB C1/93C5: 207C25 JSR $257C C1/93C8: 20C125 JSR $25C1 C1/93CB: 2268E6C2 JSL $C2E668 C1/93CF: 60 RTS
C1/93D0 unknow
C1/93D0: A00200 LDY #$0002 C1/93D3: AD1E20 LDA $201E (Load bitfield of valid monster targets) C1/93D6: 2DAB61 AND $61AB C1/93D9: 3176 AND ($76),Y C1/93DB: F004 BEQ $93E1 C1/93DD: 2268E6C2 JSL $C2E668 C1/93E1: 60 RTS
C1/93E2 battle dynamics 05 and 08
C1/93E2: 60 RTS (from C1/956B, X = 5 or 8)
C1/93E3 unknow
C1/93E3: AD442F LDA $2F44 (from C1/0213) C1/93E6: 49FF EOR #$FF C1/93E8: 8DE6E9 STA $E9E6 C1/93EB: AD8262 LDA $6282 C1/93EE: F003 BEQ $93F3 C1/93F0: 9CE6E9 STZ $E9E6 C1/93F3: AD2F2F LDA $2F2F C1/93F6: 49FF EOR #$FF C1/93F8: 2D1E20 AND $201E (Remove any invalid monster targets) C1/93FB: 2DAB61 AND $61AB C1/93FE: D003 BNE $9403 C1/9400: 4C9294 JMP $9492
C1/9403 unknow
C1/9403: 48 PHA (from only C1/93FE) C1/9404: 9C677B STZ $7B67 C1/9407: 202A02 JSR $022A C1/940A: 20591E JSR $1E59 C1/940D: 20ED1F JSR $1FED C1/9410: 20F9B0 JSR $B0F9 C1/9413: 20F494 JSR $94F4 C1/9416: 7B TDC C1/9417: AA TAX C1/9418: BF5DB0C2 LDA $C2B05D,X C1/941C: 9D607F STA $7F60,X C1/941F: E8 INX C1/9420: E02000 CPX #$0020 C1/9423: D0F3 BNE $9418 C1/9425: AD8A62 LDA $628A (Is the game in flashback mode? 1 = yes) C1/9428: F00E BEQ $9438 C1/942A: A26001 LDX #$0160 C1/942D: 8618 STX $18 C1/942F: A28001 LDX #$0180 C1/9432: 861A STX $1A C1/9434: 2242B4C2 JSR $C2B442 C1/9438: A20202 LDX #$0202 C1/943B: 8610 STX $10 C1/943D: A910 LDA #$10 C1/943F: 203CC2 JSR $C23C C1/9442: 68 PLA C1/9443: 8510 STA $10 C1/9445: 8512 STA $12 C1/9447: 7B TDC C1/9448: AA TAX C1/9449: 4612 LSR $12 C1/944B: 9014 BCC $9461 C1/944D: BDDB80 LDA $80DB,X C1/9450: 29C1 AND #$C1 C1/9452: 0906 ORA #$06 C1/9454: 9DDB80 STA $80DB,X C1/9457: A901 LDA #$01 C1/9459: 9DDC80 STA $80DC,X C1/945C: BDC380 LDA $80C3,X (Get enemy's X-coord.) C1/945F: 8514 STA $14 C1/9461: E8 INX C1/9462: E8 INX C1/9463: E00C00 CPX #$000C C1/9466: D0E1 BNE $9449 C1/9468: A514 LDA $14 C1/946A: 8510 STA $10 C1/946C: A92D LDA #$2D C1/946E: 20EF17 JSR $17EF C1/9471: A920 LDA #$20 C1/9473: 48 PHA C1/9474: 202A02 JSR $022A C1/9477: 20C094 JSR $94C0 C1/947A: 68 PLA C1/947B: 3A DEC A C1/947C: D0F5 BNE $9473 C1/947E: AD2F2F LDA $2F2F C1/9481: 8D1E20 STA $201E (Store this as valid monster targets) C1/9484: 7B TDC C1/9485: AA TAX C1/9486: 8610 STX $10 C1/9488: 203CC2 JSR $C23C C1/948B: 200395 JSR $9503 C1/948E: 229701C1 JSR $C10197 C1/9492: AD1E20 LDA $201E (Load the valid monster targets) C1/9495: CD2F2F CMP $2F2F C1/9498: F009 BEQ $94A3 C1/949A: AD1E20 LDA $201E (Load the valid monster targets) C1/949D: 0D2F2F ORA $2F2F C1/94A0: 8D1E20 STA $201E (Store this as valid monster targets) C1/94A3: 7B TDC C1/94A4: AA TAX C1/94A5: AD542F LDA $2F54 C1/94A8: 8510 STA $10 C1/94AA: A921 LDA #$21 C1/94AC: 9DDC80 STA $80DC,X C1/94AF: A510 LDA $10 C1/94B1: 2901 AND #$01 C1/94B3: 9D7E61 STA $617E,X C1/94B6: 4610 LSR $10 C1/94B8: E8 INX C1/94B9: E8 INX C1/94BA: E00C00 CPX #$000C C1/94BD: D0EB BNE $94AA C1/94BF: 60 RTS
C1/94C0 unknow
C1/94C0: 7B TDC C1/94C1: A8 TAY C1/94C2: C220 REP #$20 C1/94C4: A21000 LDX #$0010 C1/94C7: A9E100 LDA #$00E1 C1/94CA: 8514 STA $14 C1/94CC: 8516 STA $16 C1/94CE: 8518 STA $18 C1/94D0: 206EFC JSR $FC6E C1/94D3: B9607F LDA $7F60,Y C1/94D6: 2099FC JSR $FC99 C1/94D9: 99607F STA $7F60,Y C1/94DC: C8 INY C1/94DD: C8 INY C1/94DE: CA DEX C1/94DF: D0F2 BNE $94D3 C1/94E1: 7B TDC C1/94E2: E220 SEP #$20 C1/94E4: 60 RTS
C1/94E5 unknow
C1/94E5: 7B TDC (from C1/9512)(Why not MVP?) C1/94E6: AA TAX C1/94E7: BD007E LDA $7E00,X C1/94EA: 9D007C STA $7C00,X C1/94ED: E8 INX C1/94EE: E00002 CPX #$0200 C1/94F1: D0F4 BNE $94E7 C1/94F3: 60 RTS
C1/94F4 unknow
C1/94F4: 7B TDC C1/94F5: AA TAX C1/94F6: BDDB80 LDA $80DB,X C1/94F9: 9D0B81 STA $810B,X C1/94FC: E8 INX C1/94FD: E00C00 CPX #$000C C1/9500: D0F4 BNE $94F6 C1/9502: 60 RTS
C1/9503 unknow
C1/9503: 7B TDC (from C1/948B) C1/9504: AA TAX C1/9505: BD0B81 LDA $810B,X C1/9508: 9DDB80 STA $80DB,X C1/950B: E8 INX C1/950C: E00C00 CPX #$000C C1/950F: D0F4 BNE $9505 C1/9511: 60 RTS
C1/9512 setup battle dynamics script to be decoded
C1/9512: 20E594 JSR $94E5 (Moves a block from $7E00 to $7C00) C1/9515: A26E2D LDX #$2D6E C1/9518: 8676 STX $76 (Now $76 holds the start of the battle dynamics script) C1/951A: A26E2C LDX #$2C6E C1/951C: 8678 STX $78 C1/951F: 9CAE60 STZ $60AE C1/9522: 9CA462 STZ $62A4 C1/9525: A917 LDA #$17 C1/9527: 8D8D89 STA $898D C1/952A: 9C3D7B STZ $7B3D C1/952D: 9CD062 STZ $62D0 C1/9530: 9CD162 STZ $62D1 C1/9533: 7B TDC C1/9534: AA TAX C1/9535: 8EA562 STX $62A5 C1/9538: 8EA762 STX $62A7 C1/953B: B276 LDA ($76) (Load the battle dynaimcs command) C1/953D: C9FF CMP #$FF (Make sure it isn't FF (end script)) C1/953F: F012 BEQ $9553 (If it was, we're done) C1/9541: 206995 JSR $9569 (Otherwise, do the appropriate command) C1/9542: C220 REP #$20 (16-bit Accum./Mem.) C1/9545: A576 LDA $76 C1/9548: 18 CLC C1/9549: 690400 ADC #$0004 (So, struct starting at $2D6E is 4 wide?) C1/954C: 8576 STA $76 (Advance the script pointer by 4) C1/954E: 7B TDC C1/954F: E220 SEP #$20 (8-bit Accum./Mem.) C1/9551: 80E0 BRA $9533 (Do it again until we hit #$FF) C1/9553: AD8C62 LDA $628C C1/9556: D010 BNE $9568 C1/9558: 22FB01C1 JSL $C101FB C1/955C: 22FB01C1 JSL $C101FB C1/9560: 22FB01C1 JSL $C101FB C1/9564: 22FB01C1 JSL $C101FB C1/9568: 6B RTL
C1/9569 battle dynamics script function
C1/9569: 0A ASL A (from C1/9541) C1/956A: AA TAX C1/956B: 7C9691 JMP ($9196,X)
C1/956E unknow
C1/956E: C220 REP #$20 (from C1/9690) C1/9570: A578 LDA $78 C1/9572: 18 CLC C1/9573: 691000 ADC #$0010 C1/9576: 8578 STA $78 C1/9578: 7B TDC C1/9579: E220 SEP #$20 C1/957B: 60 RTS
C1/957C unknow
C1/957C: AD0C7B LDA $7B0C C1/957F: F001 BEQ $9582 C1/9581: 60 RTS
C1/9582: 7B TDC (from C1/957F) C1/9583: AA TAX C1/9584: A9FF LDA #$FF C1/9586: 9DE880 STA $80E8,X C1/9589: E8 INX C1/958A: E8 INX C1/958B: E00C CPX #$0C C1/958D: 00D0 BRK #$D0 C1/958F: F4C220 PEA $20C2 C1/9592: 7B TDC C1/9593: AA TAX C1/9594: A8 TAY C1/9595: 6410 STZ $10 C1/9597: BD4380 LDA $8043,X C1/959A: 991F7A STA $7A1F,Y C1/959D: A510 LDA $10 C1/959F: 99217A STA $7A21,Y C1/95A2: E610 INC $10 C1/95A4: E8 INX C1/95A5: E8 INX C1/95A6: C8 INY C1/95A7: C8 INY C1/95A8: C8 INY C1/95A9: C8 INY C1/95AA: C010 CPY #$10 C1/95AC: 00D0 BRK #$D0 C1/95AE: E8 INX C1/95AF: 7B TDC C1/95B0: AA TAX C1/95B1: BD4B80 LDA $804B,X C1/95B4: 991F7A STA $7A1F,Y C1/95B7: A510 LDA $10 C1/95B9: 99217A STA $7A21,Y C1/95BC: E610 INC $10 C1/95BE: E8 INX C1/95BF: E8 INX C1/95C0: C8 INY C1/95C1: C8 INY C1/95C2: C8 INY C1/95C3: C8 INY C1/95C4: C028 CPY #$28 C1/95C6: 00D0 BRK #$D0 C1/95C8: E8 INX C1/95C9: 7B TDC C1/95CA: AA TAX C1/95CB: 6410 STZ $10 C1/95CD: BD1F7A LDA $7A1F,X C1/95D0: DD237A CMP $7A23,X C1/95D3: F020 BEQ $95F5 C1/95D5: B01E BCS $95F5 C1/95D7: E610 INC $10 C1/95D9: BD237A LDA $7A23,X C1/95DC: 48 PHA C1/95DD: BD1F7A LDA $7A1F,X C1/95E0: 9D237A STA $7A23,X C1/95E3: 68 PLA C1/95E4: 9D1F7A STA $7A1F,X C1/95E7: BD257A LDA $7A25,X C1/95EA: 48 PHA C1/95EB: BD217A LDA $7A21,X C1/95EE: 9D257A STA $7A25,X C1/95F1: 68 PLA C1/95F2: 9D217A STA $7A21,X C1/95F5: E8 INX C1/95F6: E8 INX C1/95F7: E8 INX C1/95F8: E8 INX C1/95F9: E02400 CPX #$0024 C1/95FC: D0CF BNE $95CD C1/95FE: A510 C1/9600: D0C7 C1/9602: 7B C1/9603: E220 SEP #$20 C1/9605: EE0C7B INC $7B0C C1/9608: 60 RTS
C1/9609 battle dynamics command 03
C1/9609: 20FAA5 JSR $A5FA (from C1/956B, X = 3) C1/960C: 202A02 JSR $022A C1/960F: 7B TDC C1/9610: AA TAX C1/9611: 1D3F7B ORA $7B3F,X C1/9614: E8 INX C1/9615: E00A CPX #$0A C1/9617: 00D0 BRK #$D0 C1/9619: F70D SBC [$0D],Y C1/961B: 1A INC A C1/961C: 630D ADC $0D,S C1/961E: 1B TCS C1/961F: 630D ADC $0D,S C1/9621: 1C630D TRB $0D63 C1/9624: 1D63D0 ORA $D063,X C1/9627: E460 CPX $60 C1/9629: 7B TDC C1/962A: AA TAX C1/962B: A9E0 LDA #$E0 C1/962D: 8510 STA $10 C1/962F: 641A STZ $1A C1/9631: A902 LDA #$02 C1/9633: 9DB489 STA $89B4,X C1/9636: A981 LDA #$81 C1/9638: 9DB589 STA $89B5,X C1/963B: A510 LDA $10 C1/963D: 9DB689 STA $89B6,X C1/9640: E61A INC $1A C1/9642: A51A LDA $1A C1/9644: C902 CMP #$02 C1/9646: D00A BNE $9652 C1/9648: 641A STZ $1A C1/964A: A510 LDA $10 C1/964C: C9FF CMP #$FF C1/964E: F002 BEQ $9652 C1/9650: E610 INC $10 C1/9652: E8 INX C1/9653: E8 INX C1/9654: E8 INX C1/9655: E8 INX C1/9656: E08000 CPX #$0080 C1/9659: D0D6 BNE $9631 C1/965B: 207396 JSR $9673 C1/965E: 60 RTS
C1/965F unknow
C1/965F: 7B TDC C1/9660: AA TAX C1/9661: A9E0 LDA #$E0 C1/9663: 9D9689 STA $8996,X C1/9666: E8 INX C1/9667: E8 INX C1/9668: E8 INX C1/9669: E8 INX C1/966A: E0A000 CPX #$00A0 C1/966D: D0F4 BNE $9663 C1/966F: 208AC3 JSR $C38A C1/9672: 60 RTS
C1/9673 unknow
C1/9673: A920 LDA #$20 (from only C1/965B) C1/9675: 8DBD61 STA $61BD C1/9678: 8DDD61 STA $61DD C1/967B: 8DFD61 STA $61FD C1/967E: 8D1D62 STA $621D C1/9681: 7B TDC C1/9682: AA TAX C1/9683: A921 LDA #$21 C1/9685: 9DDC80 STA $80DC,X C1/9688: E8 INX C1/9689: E8 INX C1/968A: E00C00 CPX #$000C C1/968D: D0F6 BNE $9685 C1/968F: 60 RTS
C1/9690 JSR battle dynamics command 07
C1/9690: 206E95 JSR $956E (from C1/956B, X = 3) C1/9693: 60 RTS
C1/9694 JSR battle dynamics command 00/04
C1/9694: 60 RTS (from C1/956B, X = 0 or 4)
C1/9695 unknow
C1/9695: A981 LDA #$81 C1/9697: 8DC3E9 STA $E9C3 C1/969A: A20058 LDX #$0058 C1/969D: 8EBFE9 STX $E9BF C1/96A0: 9CC1E9 STZ $E9C1 C1/96A3: 9CC2E9 STZ $E9C2 C1/96A6: 9CAC62 STZ $62AC C1/96A9: 60 RTS
C1/96AA battle event script 11 - open dialogue window
Open dialogue window at bottom of screen C1/96AA: 4C1243 JMP $4312 (from C1/FDB0, X = 11)
C1/96AD battle event script 10
C1/96AD: 20B943 JSR $43B9 (from C1/FDB0, X = 10) C1/96B0: A93C LDA #$3C C1/96B2: 8DC37B STA $7BC3 C1/96B5: A902 LDA #$02 C1/96B7: 8DC27B STA $7BC2 C1/96BA: 202A02 JSR $022A C1/96BD: 9CD564 STZ $64D5 C1/96C0: 60 RTS
C1/96C1 battle event script 01 - display message at bottom of screen
C1/96C1: 20E442 JSR $42E4 (from C1/FDB0, X = 1) C1/96C4: 200C50 JSR $500C C1/96C7: 209596 JSR $9695 C1/96CA: 201A98 JSR $981A (load pointer to bank 1 battle messages) C1/96CD: 20D55D JSR $5DD5 C1/96D0: 20E442 JSR $42E4 C1/96D3: 200C50 JSR $500C C1/96D6: E210 SEP #$10 C1/96D8: 7B TDC C1/96D9: AA TAX C1/96DA: C220 REP #$20 C1/96DC: A90001 LDA #$0100 C1/96DF: 48 PHA C1/96E0: 2B PLD C1/96E1: B502 LDA $02,X C1/96E3: 9D834D STA $4D83,X C1/96E6: B506 LDA $06,X C1/96E8: 9D874D STA $4D87,X C1/96EB: B50A LDA $0A,X C1/96ED: 9D8B4D STA $4D8B,X C1/96F0: B50E LDA $0E,X C1/96F2: 9D8F4D STA $4D8F,X C1/96F5: 8A TXA C1/96F6: 18 CLC C1/96F7: 691000 ADC #$0010 C1/96FA: AA TAX C1/96FB: E0C0 CPX #$C0 C1/96FD: D0E2 BNE $96E1 C1/96FF: A90000 LDA #$0000 C1/9702: 48 PHA C1/9703: 2B PLD C1/9704: E220 SEP #$20 C1/9706: C210 REP #$10 C1/9708: 202A02 JSR $022A C1/970B: 60 RTS
C1/970C JSR battle event script 00 - display message at top of screen
C1/970C: 200F98 JSR $980F (from C1/FDB0, X = 0) C1/970F: 201A98 JSR $981A C1/9712: 9CAC62 STZ $62AC C1/9715: 207A98 JSR $987A C1/9718: 60 RTS
C1/9719 battle dynamic command 0A
C1/9719: 201243 JSR $4312 (from C1/956B, X = A) C1/971C: 209596 JSR $9695 C1/971F: 20FE98 JSR $98FE C1/9722: 20D55D JSR $5DD5 C1/9725: 4CCC43 JMP $43CC
C1/9728 battle dynamic command 11 - "special" name
C1/9728: A90C LDA #$0C (from C1/956B, X = 11) C1/972A: 20C498 JSR $98C4 C1/972D: 206199 JSR $9961 C1/9730: A97E LDA #$7E ($7E in memory) C1/9732: 8DD988 STA $88D9 C1/9735: A2D557 LDX #$57D5 (address in memory) C1/9738: 8ED788 STX $88D7 C1/973B: A9CF LDA #$CF (bank location of special name) C1/973D: 8512 STA $12 C1/973F: A00100 LDY #$0001 C1/9742: C220 REP #$20 (set 16-bit accumulator) C1/9744: B176 LDA ($76),Y C1/9746: 0A ASL A C1/9747: 8510 STA $10 C1/9749: 0A ASL A C1/974A: 0A ASL A C1/974B: 18 CLC C1/974C: 6510 ADC $10 C1/974E: 18 CLC C1/974F: 69D0D0 ADC #$D0D0 (address of special name) C1/9752: 8510 STA $10 C1/9754: 7B TDC (clear accumulator?) C1/9755: E220 SEP #$20 (set 8-bit accumlator) C1/9757: A8 TAY (set Y = 0?) C1/9758: B710 LDA [$10],Y C1/975A: C9FF CMP #$FF C1/975C: F009 BEQ $9767 (if we found an FF, it means the name has ended) C1/975E: 99D557 STA $57D5,Y C1/9761: C8 INY C1/9762: C00A00 CPY #$000A (length of special name?) C1/9765: D0F1 BNE $9758 (did we do 10 letters yet?) C1/9767: 7B TDC C1/9768: 99D557 STA $57D5,Y C1/976B: A901 LDA #$01 C1/976D: 8DAC62 STA $62AC C1/9770: AD8D89 LDA $898D C1/9773: 48 PHA C1/9774: A912 LDA #$12 C1/9776: 8D8D89 STA $898D C1/9779: 20D55D JSR $5DD5 C1/977C: 208798 JSR $9887 C1/977F: 20261F JSR $1F26 C1/9782: 68 PLA C1/9783: 8D8D89 STA $898D C1/9786: A920 LDA #$20 C1/9788: 20B69B JSR $9BB6 C1/978B: A912 LDA #$12 C1/978D: 8D8D89 STA $898D C1/9790: 201799 JSR $9917 C1/9793: 202A02 JSR $022A C1/9796: A917 LDA #$17 C1/9798: 8D8D89 STA $898D C1/979B: 7B TDC (A = 0) C1/979C: AA TAX (X = 0) C1/979D: 8EF54A STX $4AF5 C1/97A0: 60 RTS
C1/97A1 DAT unknow (used by battle dynamics command 01)
C1/97A1: 0F C1/97A2: 0E C1/97A3: 80 C1/97A4: 00 C1/97A5: 81 C1/97A6: 0C
C1/97A7 battle dynamics command 01
C1/97A7: A00100 LDY #$0001 (from C1/956B, X = 1) C1/97AA: B176 LDA ($76),Y (parameter 1 for command 1) C1/97AC: AA TAX C1/97AD: BFA197C1 LDA $C197A1,X C1/97B1: 48 PHA C1/97B2: AA TAX C1/97B3: C8 INY C1/97B4: B176 LDA ($76),Y (parameter 2 for command 1) C1/97B6: 48 PHA C1/97B7: DA PHX C1/97B8: A912 LDA #$12 C1/97BA: 8D8D89 STA $898D C1/97BD: A90C LDA #$0C C1/97BF: 20C498 JSR $98C4 C1/97C2: 206199 JSR $9961 C1/97C5: A97E LDA #$7E C1/97C7: 8DD988 STA $88D9 C1/97CA: A2D557 LDX #$57D5 C1/97CD: 8ED788 STX $88D7 C1/97D0: FA PLX C1/97D1: 8A TXA C1/97D2: 8DD557 STA $57D5 C1/97D5: 68 PLA C1/97D6: 8DD657 STA $57D6 C1/97D9: 9CD757 STZ $57D7 C1/97DC: 68 PLA C1/97DD: 1004 BPL $97E3 C1/97DF: 2211BBC2 JSL $C2BB11 C1/97E3: A901 LDA #$01 C1/97E5: 8DAC62 STA $62AC C1/97E8: 20D55D JSR $5DD5 C1/97EB: 208798 JSR $9887 C1/97EE: 20261F JSR $1F26 C1/97F1: A917 LDA #$17 C1/97F3: 8D8D89 STA $898D C1/97F6: 20A798 JSR $98A7 C1/97F9: A912 LDA #$12 C1/97FB: 8D8D89 STA $898D C1/97FE: 201799 JSR $9917 C1/9801: 202A02 JSR $022A C1/9804: A917 LDA #$17 C1/9806: 8D8D89 STA $898D C1/9809: 7B TDC C1/980A: AA TAX C1/980B: 8EF54A STX $4AF5 C1/980E: 60 RTS
C1/980F unknow
C1/980F: A90B LDA #$0B (from C1/970C, C1/9835, C1/985E) C1/9811: 20C498 JSR $98C4 C1/9814: 20261F JSR $1F26 C1/9817: 4C8099 JMP $9980
C1/981A unknow
C1/981A: A9D0 LDA #$D0 (from C1/96CA, C1/970F) C1/981C: 8DD988 STA $88D9 (bank to look for the dialogue) C1/981F: A00100 LDY #$0001 (LDY $00, INY...) C1/9822: B78F LDA [$8F],Y C1/9824: C220 REP #$20 C1/9826: 0A ASL A C1/9827: AA TAX C1/9828: BF00D0D0 LDA $D0D000,X (pointer to battle dialogue, bank 1) C1/982C: 8DD788 STA $88D7 C1/982F: E68F INC $8F C1/9831: 7B TDC C1/9832: E220 SEP #$20 C1/9834: 60 RTS
C1/9835 battle dynamics command 10
C1/9835: 200F98 JSR $980F (from C1/956B, X = 10) C1/9838: A9CF LDA #$CF C1/983A: 8DD988 STA $88D9 (bank to look for the dialogue) C1/983D: A00100 LDY #$0001 (LDY $00, INY...) C1/9840: C220 REP #$20 C1/9842: B176 LDA ($76),Y (parameter 1 for command 10) C1/9844: 0A ASL A C1/9845: AA TAX C1/9846: BFE0DFCF LDA $CFDFE0,X (pointer to battle dialogue, bank 2) C1/984A: 8DD788 STA $88D7 C1/984D: 7B TDC C1/984E: E220 SEP #$20 C1/9850: 9CAC62 STZ $62AC C1/9853: 8025 BRA $987A
C1/9855 battle dynamics command 02
C1/9855: AD8D89 LDA $898D (from C1/956B, X = 2) C1/9858: 48 PHA C1/9859: A912 LDA #$12 C1/985B: 8D8D89 STA $898D C1/985E: 200F98 JSR $980F C1/9861: 20FE98 JSR $98FE C1/9864: A901 LDA #$01 C1/9866: 8DAC62 STA $62AC C1/9869: 68 PLA C1/986A: 8D8D89 STA $898D C1/986D: 20D55D JSR $5DD5 (BRA $987A would work here) C1/9870: 800F BRA $9881
C1/9872 unknow
C1/9872: 2030 C1/9874: 4050 C1/9876: 6070 C1/9878: 8090
C1/987A unknow
C1/987A: 20D55D JSR $5DD5 C1/987D: 208198 JSR $9881 (...) C1/9880: 60 RTS
C1/9881: 20A798 JSR $98A7 C1/9884: 4C1799 JMP $9917
C1/9887 unknow
C1/9887: A57A LDA $7A C1/9889: C220 REP #$20 C1/988B: 8510 STA $10 C1/988D: A96800 LDA #$0068 C1/9890: 38 SEC C1/9891: E510 SBC $10 C1/9893: 4A LSR A C1/9894: 18 CLC C1/9895: 690200 ADC #$0002 C1/9898: 8510 STA $10 C1/989A: ADF54A LDA $4AF5 C1/989D: 38 SEC C1/989E: E510 SBC $10 C1/98A0: 8DF54A STA $4AF5 C1/98A3: 7B TDC C1/98A4: E220 SEP #$20 C1/98A6: 60 RTS
C1/98A7 unknow
C1/98A7: ADF5E9 LDA $E9F5 (from C1/97F6 and C1/9981) C1/98AA: D017 BNE $98C3 C1/98AC: AF4D1D00 LDA $001D4D (load various settings in config) C1/98B0: 4A LSR A C1/98B1: 4A LSR A C1/98B2: 4A LSR A C1/98B3: 4A LSR A (short/window set, and battle speed) C1/98B4: 2907 AND #$07 (keep the battle speed) C1/98B6: AA TAX (index it) C1/98B7: BF7298C1 LDA $C19872,X C1/98BB: 48 PHA C1/98BC: 202A02 JSR $022A C1/98BF: 68 PLA C1/98C0: 3A DEC A C1/98C1: D0F8 BNE $98BB C1/98C3: 60 RTS
C1/98C4 unknow
C1/98C4: 48 PHA C1/98C5: EE9E62 INC $629E C1/98C8: 9C677B STZ $7B67 C1/98CB: A901 LDA #$01 C1/98CD: 8DC3E9 STA $E9C3 C1/98D0: A00050 LDY #$5000 C1/98D3: 8CBFE9 STY $E9BF C1/98D6: 202A02 JSR $022A C1/98D9: 20591E JSR $1E59 C1/98DC: 202A02 JSR $022A C1/98DF: 203440 JSR $4034 C1/98E2: AD7D89 LDA $897D C1/98E5: 8D7D60 STA $607D C1/98E8: 202996 JSR $9629 C1/98EB: 202A02 JSR $022A C1/98EE: 20BB5D JSR $5DBB C1/98F1: A00050 LDY #$5000 C1/98F4: 8CBFE9 STY $E9BF C1/98F7: 209B63 JSR $639B C1/98FA: 68 PLA C1/98FB: 4C8C53 JMP $538C
C1/98FE unknow
C1/98FE: A9D1 LDA #$D1 C1/9900: 8DD988 STA $88D9 C1/9903: A00100 LDY #$0001 C1/9906: B176 LDA ($76),Y C1/9908: C220 REP #$20 C1/990A: 0A ASL A C1/990B: AA TAX C1/990C: BFA0F7D1 LDA $D1F7A0,X (Load pointer to battle message) C1/9910: 8DD788 STA $88D7 C1/9913: 7B TDC C1/9914: E220 SEP #$20 C1/9916: 60 RTS
C1/9917 unknow
C1/9917: AD9E62 LDA $629E (battle message count?) C1/991A: F02E BEQ $994A (branch if 0, but it could wrap...) C1/991C: AD8D89 LDA $898D C1/991F: 48 PHA C1/9920: A912 LDA #$12 C1/9922: 8D8D89 STA $898D C1/9925: 204C99 JSR $994C C1/9928: 209C99 JSR $999C C1/992B: 20BB5D JSR $5DBB C1/992E: A00050 LDY #$5000 C1/9931: 8CBFE9 STY $E9BF C1/9934: 209B63 JSR $639B C1/9937: 20591E JSR $1E59 C1/993A: 202A02 JSR $022A C1/993D: 205F96 JSR $965F C1/9940: AD7D60 LDA $607D C1/9943: 8D7D89 STA $897D C1/9946: 68 PLA C1/9947: 8D8D89 STA $898D C1/994A: 60 RTS
C1/994B: FF (lonely data?)
C1/994C unknow
C1/994C: C220 REP #$20 C1/994E: 7B TDC C1/994F: AA TAX C1/9950: A9FF01 LDA #$01FF C1/9953: 9D3FE7 STA $E73F,X C1/9956: E8 INX C1/9957: E8 INX C1/9958: E08000 CPX #$0080 C1/995B: D0F6 BNE $9953 C1/995D: 7B TDC C1/995E: E220 SEP #$20 C1/9960: 60 RTS
C1/9961 unknow
C1/9961: 204C99 JSR $994C C1/9964: C220 REP #$20 C1/9966: 7B TDC C1/9967: AA TAX C1/9968: A90030 LDA #$3000 C1/996B: 9D51E7 STA $E751,X C1/996E: 1A INC A C1/996F: 9D91E7 STA $E791,X C1/9972: 1A INC A C1/9973: E8 INX C1/9974: E8 INX C1/9975: E02C00 CPX #$002C C1/9978: D0F1 BNE $996B C1/997A: 7B TDC C1/997B: E220 SEP #$20 C1/997D: 4C9C99 JMP $999C (BRA fool!)
C1/9980 unknow
C1/9980: 204C99 JSR $994C C1/9983: C220 REP #$20 C1/9985: 7B TDC C1/9986: AA TAX C1/9987: A90030 LDA #$3000 C1/998A: 9D43E7 STA $E743,X C1/998D: 1A INC A C1/998E: 9D83E7 STA $E783,X C1/9991: 1A INC A C1/9992: E8 INX C1/9993: E8 INX C1/9994: E03800 CPX #$0038 C1/9997: D0F1 BNE $998A C1/9999: 7B TDC C1/999A: E220 SEP #$20 C1/999C: A28000 LDX #$0080 C1/999F: 8610 STX $10 C1/99A1: A23FE7 LDX #$E73F C1/99A4: A97E LDA #$7E C1/99A6: A04054 LDY #$5440 C1/99A9: 208D19 JSR $198D C1/99AC: A20000 LDX #$0000 (LDX $00...) C1/99AF: 8E227E STX $7E22 C1/99B2: A21F00 LDX #$001F C1/99B5: 8E247E STX $7E24 C1/99B8: AE551D LDX $1D55 C1/99BB: 8E267E STX $7E26 C1/99BE: 4C8A9C JMP $9C8A
C1/99C1 DAT unknow
C1/99C1: 08 C1/99C2: 18
C1/99C3 battle dynamics command 0D
C1/99C3: 7B TDC (from C1/956B, X = D) C1/99C4: AA TAX C1/99C5: 8E8B61 STX $618B C1/99C8: 8E8D61 STX $618D C1/99CB: 8E8F61 STX $618F C1/99CE: A8 TAY C1/99CF: BDAE61 LDA $61AE,X C1/99D2: F010 BEQ $99E4 C1/99D4: BD107B LDA $7B10,X C1/99D7: DDB261 CMP $61B2,X C1/99DA: D008 BNE $99E4 C1/99DC: B9BE61 LDA $61BE,Y C1/99DF: 4940 EOR #$40 C1/99E1: 99BE61 STA $61BE,Y C1/99E4: 98 TYA C1/99E5: 18 CLC C1/99E6: 6920 ADC #$20 C1/99E8: A8 TAY C1/99E9: E8 INX C1/99EA: E00400 CPX #$0004 C1/99ED: D0E0 BNE $99CF C1/99EF: ADBA64 LDA $64BA C1/99F2: AA TAX C1/99F3: BFC199C1 LDA $C199C1,X C1/99F7: 8DF17A STA $7AF1 C1/99FA: 202A02 JSR $022A C1/99FD: 7B TDC C1/99FE: A8 TAY C1/99FF: B9AE61 LDA $61AE,Y C1/9A02: F047 BEQ $9A4B C1/9A04: 98 TYA C1/9A05: 0A ASL A C1/9A06: 0A ASL A C1/9A07: 0A ASL A C1/9A08: 0A ASL A C1/9A09: 0A ASL A C1/9A0A: AA TAX C1/9A0B: 5A PHY C1/9A0C: ADBA64 LDA $64BA C1/9A0F: D00F BNE $9A20 C1/9A11: B9B261 LDA $61B2,Y C1/9A14: F005 BEQ $9A1B C1/9A16: A0FDFF LDY #$FFFD C1/9A19: 8003 BRA $9A1E C1/9A1B: A00300 LDY #$0003 C1/9A1E: 8012 BRA $9A32 C1/9A20: A901 LDA #$01 C1/9A22: 99CC64 STA $64CC,Y C1/9A25: B9B261 LDA $61B2,Y C1/9A28: F005 BEQ $9A2F C1/9A2A: A0FFFF LDY #$FFFF C1/9A2D: 8003 BRA $9A32 C1/9A2F: A00100 LDY #$0001 C1/9A32: 8410 STY $10 C1/9A34: 9EC161 STZ $61C1,X (The caster's current frame?_RuneLancer) C1/9A37: A904 LDA #$04 C1/9A39: 9DC061 STA $61C0,X C1/9A3C: C220 REP #$20 C1/9A3E: BDD461 LDA $61D4,X C1/9A41: 18 CLC C1/9A42: 6510 ADC $10 C1/9A44: 9DD461 STA $61D4,X C1/9A47: 7B TDC C1/9A48: E220 SEP #$20 C1/9A4A: 7A PLY C1/9A4B: C8 INY C1/9A4C: C00400 CPY #$0004 C1/9A4F: D0AE BNE $99FF C1/9A51: CEF17A DEC $7AF1 C1/9A54: D0A4 BNE $99FA C1/9A56: 7B TDC C1/9A57: AA TAX C1/9A58: A8 TAY C1/9A59: BDAE61 LDA $61AE,X C1/9A5C: F01E BEQ $9A7C C1/9A5E: 9ECC64 STZ $64CC,X C1/9A61: BD107B LDA $7B10,X C1/9A64: DDB261 CMP $61B2,X C1/9A67: D008 BNE $9A71 C1/9A69: B9BE61 LDA $61BE,Y C1/9A6C: 4940 EOR #$40 C1/9A6E: 99BE61 STA $61BE,Y C1/9A71: 9EAE61 STZ $61AE,X C1/9A74: 7B TDC C1/9A75: 99C061 STA $61C0,Y C1/9A78: 3A DEC A C1/9A79: 9DB261 STA $61B2,X C1/9A7C: 7B TDC C1/9A7D: 99D161 STA $61D1,Y C1/9A80: 98 TYA C1/9A81: 18 CLC C1/9A82: 6920 ADC #$20 C1/9A84: A8 TAY C1/9A85: 9EA062 STZ $62A0,X C1/9A88: E8 INX C1/9A89: E00400 CPX #$0004 C1/9A8C: D0CB BNE $9A59 C1/9A8E: 60 RTS
C1/9A8F unknow
C1/9A8F: 0A ASL A C1/9A90: 0A ASL A C1/9A91: 0A ASL A C1/9A92: 0A ASL A C1/9A93: 0A ASL A C1/9A94: AA TAX C1/9A95: BDBE61 LDA $61BE,X C1/9A98: 4940 EOR #$40 C1/9A9A: 9DBE61 STA $61BE,X C1/9A9D: 60 RTS
C1/9A9E JSL unknow
C1/9A9E: 2089BC JSR $BC89 C1/9AA1: 6B RTL
C1/9AA2 unknow
C1/9AA2: 2043AB JSR $AB43 C1/9AA5: 20A6BC JSR $BCA6 C1/9AA8: 2089BC JSR $BC89 C1/9AAB: A510 LDA $10 C1/9AAD: 3076 BMI $9B25 C1/9AAF: 2903 AND #$03 C1/9AB1: A8 TAY C1/9AB2: 0A ASL A C1/9AB3: 0A ASL A C1/9AB4: 0A ASL A C1/9AB5: 0A ASL A C1/9AB6: 0A ASL A C1/9AB7: AA TAX C1/9AB8: AD3D61 LDA $613D C1/9ABB: 0D3E61 ORA $613E C1/9ABE: F059 BEQ $9B19 C1/9AC0: ADA462 LDA $62A4 C1/9AC3: D054 BNE $9B19 C1/9AC5: 1A INC A C1/9AC6: 99A062 STA $62A0,Y C1/9AC9: 9DD161 STA $61D1,X C1/9ACC: A512 LDA $12 C1/9ACE: 1049 BPL $9B19 C1/9AD0: 297F AND #$7F C1/9AD2: 38 SEC C1/9AD3: E904 SBC #$04 C1/9AD5: 0A ASL A C1/9AD6: AA TAX C1/9AD7: A510 LDA $10 C1/9AD9: 0A ASL A C1/9ADA: A8 TAY C1/9ADB: C220 REP #$20 C1/9ADD: B93380 LDA $8033,Y C1/9AE0: 29FF01 AND #$01FF C1/9AE3: 8524 STA $24 C1/9AE5: BD0F80 LDA $800F,X (Get X-coordinate of middle of monster) C1/9AE8: 29FF01 AND #$01FF C1/9AEB: 8522 STA $22 (Animation Script pointer) C1/9AED: 7B TDC C1/9AEE: E220 SEP #$20 C1/9AF0: A510 LDA $10 C1/9AF2: A8 TAY C1/9AF3: B9107B LDA $7B10,Y C1/9AF6: F011 BEQ $9B09 C1/9AF8: A624 LDX $24 C1/9AFA: E422 CPX $22 (Animation Script pointer) C1/9AFC: 901B BCC $9B19 C1/9AFE: 7B TDC C1/9AFF: 99107B STA $7B10,Y C1/9B02: A510 LDA $10 C1/9B04: 208F9A JSR $9A8F C1/9B07: 8010 BRA $9B19 C1/9B09: A622 LDX $22 (Animation Script pointer) C1/9B0B: E424 CPX $24 C1/9B0D: 900A BCC $9B19 C1/9B0F: A901 LDA #$01 C1/9B11: 99107B STA $7B10,Y C1/9B14: A510 LDA $10 C1/9B16: 208F9A JSR $9A8F C1/9B19: B9AE61 LDA $61AE,Y C1/9B1C: D006 BNE $9B24 C1/9B1E: B9107B LDA $7B10,Y C1/9B21: 99B261 STA $61B2,Y C1/9B24: 60 RTS
C1/9B25 unknow
C1/9B25: A510 LDA $10 C1/9B27: 297F AND #$7F C1/9B29: 38 SEC C1/9B2A: E904 SBC #$04 C1/9B2C: 0A ASL A C1/9B2D: AA TAX C1/9B2E: AD3D61 LDA $613D C1/9B31: 0D3E61 ORA $613E C1/9B34: F034 BEQ $9B6A C1/9B36: A512 LDA $12 C1/9B38: 3030 BMI $9B6A C1/9B3A: 2903 AND #$03 C1/9B3C: 0A ASL A C1/9B3D: A8 TAY C1/9B3E: C220 REP #$20 C1/9B40: B93380 LDA $8033,Y C1/9B43: 8524 STA $24 C1/9B45: BD0F80 LDA $800F,X (Get X-coordinate of middle of monster) C1/9B48: 8522 STA $22 (Animation Script pointer) C1/9B4A: 7B TDC C1/9B4B: E220 SEP #$20 C1/9B4D: BDF380 LDA $80F3,X C1/9B50: 2901 AND #$01 C1/9B52: F008 BEQ $9B5C C1/9B54: A424 LDY $24 C1/9B56: C422 CPY $22 (Animation Script pointer) C1/9B58: 9010 BCC $9B6A C1/9B5A: 8006 BRA $9B62 C1/9B5C: A422 LDY $22 (Animation Script pointer) C1/9B5E: C424 CPY $24 C1/9B60: 9008 BCC $9B6A C1/9B62: BDF380 LDA $80F3,X C1/9B65: 4901 EOR #$01 C1/9B67: 9DF380 STA $80F3,X C1/9B6A: 8A TXA C1/9B6B: 4A LSR A C1/9B6C: AA TAX C1/9B6D: BD8B61 LDA $618B,X C1/9B70: D02E BNE $9BA0 C1/9B72: FE8B61 INC $618B,X C1/9B75: 20C59B JSR $9BC5 C1/9B78: A00100 LDY #$0001 C1/9B7B: B178 LDA ($78),Y C1/9B7D: 297F AND #$7F C1/9B7F: 38 SEC C1/9B80: E904 SBC #$04 C1/9B82: 0A ASL A C1/9B83: AA TAX C1/9B84: BDDB80 LDA $80DB,X C1/9B87: 8DF07A STA $7AF0 C1/9B8A: A906 LDA #$06 C1/9B8C: 20A19B JSR $9BA1 C1/9B8F: ADF07A LDA $7AF0 C1/9B92: 20A19B JSR $9BA1 C1/9B95: A906 LDA #$06 C1/9B97: 20A19B JSR $9BA1 C1/9B9A: ADF07A LDA $7AF0 C1/9B9D: 20A19B JSR $9BA1 C1/9BA0: 60 RTS
C1/9BA1 unknow
C1/9BA1: 8510 STA $10 C1/9BA3: BDDB80 LDA $80DB,X C1/9BA6: 29F1 AND #$F1 C1/9BA8: 0510 ORA $10 C1/9BAA: 9DDB80 STA $80DB,X C1/9BAD: A904 LDA #$04 C1/9BAF: 4CB69B JMP $9BB6
C1/9BB2 JSL unknow
C1/9BB2: 20B69B JSR $9BB6 C1/9BB5: 6B RTL
C1/9BB6 JSR unknow
C1/9BB6: C900 CMP #$00 C1/9BB8: F00A BEQ $9BC4 C1/9BBA: 48 PHA C1/9BBB: DA PHX C1/9BBC: 202A02 JSR $022A C1/9BBF: FA PLX C1/9BC0: 68 PLA C1/9BC1: 3A DEC A C1/9BC2: D0F2 BNE $9BB6 C1/9BC4: 60 RTS
C1/9BC5 unknow
C1/9BC5: 7B TDC C1/9BC6: AA TAX C1/9BC7: 9E607F STZ $7F60,X C1/9BCA: E8 INX C1/9BCB: E02000 CPX #$0020 C1/9BCE: D0F7 BNE $9BC7 C1/9BD0: A2FFFF LDX #$FFFF C1/9BD3: 8E627F STX $7F62 C1/9BD6: 60 RTS
C1/9BD7 unknow
C1/9BD7: C220 REP #$20 C1/9BD9: 0A ASL A C1/9BDA: 0A ASL A C1/9BDB: 0A ASL A C1/9BDC: 0A ASL A C1/9BDD: AA TAX C1/9BDE: 7B TDC C1/9BDF: A8 TAY C1/9BE0: BF0060D2 LDA $D26000,X (load weapon, spell, and enemy special palette data) C1/9BE4: 99607F STA $7F60,Y C1/9BE7: 99607D STA $7D60,Y C1/9BEA: 99707F STA $7F70,Y C1/9BED: 99707D STA $7D70,Y C1/9BF0: E8 INX C1/9BF1: E8 INX C1/9BF2: C8 INY C1/9BF3: C8 INY C1/9BF4: C01000 CPY #$0010 C1/9BF7: D0E7 BNE $9BE0 C1/9BF9: 7B TDC C1/9BFA: E220 SEP #$20 C1/9BFC: AD8A62 LDA $628A (Is the game in flashback mode? 1 = yes) C1/9BFF: F00E BEQ $9C0F C1/9C01: A26001 LDX #$0160 C1/9C04: 8618 STX $18 C1/9C06: A28001 LDX #$0180 C1/9C09: 861A STX $1A C1/9C0B: 2242B4C2 JSL $C2B442 C1/9C0F: 60 RTS
C1/9C10 unknow
C1/9C10: 0A ASL A C1/9C11: 0A ASL A C1/9C12: 0A ASL A C1/9C13: 0A ASL A C1/9C14: AA TAX C1/9C15: 7B TDC C1/9C16: A8 TAY C1/9C17: BF7DB0C2 LDA $C2B07D,X C1/9C1B: 99707F STA $7F70,Y C1/9C1E: C8 INY C1/9C1F: E8 INX C1/9C20: C01000 CPY #$0010 C1/9C23: D0F2 BNE $9C17 C1/9C25: 60 RTS
C1/9C26 unknow
C1/9C26: C220 REP #$20 C1/9C28: 0A ASL A C1/9C29: 0A ASL A C1/9C2A: 0A ASL A C1/9C2B: 0A ASL A C1/9C2C: AA TAX C1/9C2D: 7B TDC C1/9C2E: A8 TAY C1/9C2F: BF0060D2 LDA $D26000,X C1/9C33: 99607E STA $7E60,Y C1/9C36: 99707E STA $7E70,Y C1/9C39: 99807E STA $7E80,Y C1/9C3C: 99907E STA $7E90,Y C1/9C3F: 99607C STA $7C60,Y C1/9C42: 99707C STA $7C70,Y C1/9C45: 99807C STA $7C80,Y C1/9C48: 99907C STA $7C90,Y C1/9C4B: E8 INX C1/9C4C: E8 INX C1/9C4D: C8 INY C1/9C4E: C8 INY C1/9C4F: C01000 CPY #$0010 C1/9C52: D0DB BNE $9C2F C1/9C54: 7B TDC C1/9C55: E220 SEP #$20 C1/9C57: AD8A62 LDA $628A (Is the game in flashback mode? 1 = yes) C1/9C5A: F00E BEQ $9C6A C1/9C5C: A26000 LDX #$0060 C1/9C5F: 8618 STX $18 C1/9C61: A28000 LDX #$0080 C1/9C64: 861A STX $1A C1/9C66: 2242B4C2 JSR $C2B442 C1/9C6A: 60 RTS
C1/9C6B unknow
C1/9C6B: C220 REP #$20 C1/9C6D: 0A ASL A C1/9C6E: 0A ASL A C1/9C6F: 0A ASL A C1/9C70: 0A ASL A C1/9C71: AA TAX C1/9C72: 7B TDC C1/9C73: A8 TAY C1/9C74: BF0060D2 LDA $D26000,X C1/9C78: 99207E STA $7E20,Y C1/9C7B: 99207C STA $7C20,Y C1/9C7E: E8 INX C1/9C7F: E8 INX C1/9C80: C8 INY C1/9C81: C8 INY C1/9C82: C00800 CPY #$0008 C1/9C85: D0ED BNE $9C74 C1/9C87: 7B TDC C1/9C88: E220 SEP #$20 C1/9C8A: AD8A62 LDA $628A (Is the game in flashback mode? 1 = yes) C1/9C8D: F00E BEQ $9C9D C1/9C8F: A22000 LDX #$0020 C1/9C92: 8618 STX $18 C1/9C94: A22800 LDX #$0028 C1/9C97: 861A STX $1A C1/9C99: 2242B4C2 JSL $C2B442 C1/9C9D: 60 RTS
C1/9C9E unknow
Clears a lot of RAM... Namely, 64DE-7A1D C1/9C9E: 7B TDC C1/9C9F: AA TAX C1/9CA0: 9D2E6A STA $6A2E,X C1/9CA3: 9D7E6F STA $6F7E,X C1/9CA6: 9DCE74 STA $74CE,X C1/9CA9: 9DDE64 STA $64DE,X C1/9CAC: E8 INX C1/9CAD: E05005 CPX #$0550 C1/9CB0: D0EE BNE $9CA0 C1/9CB2: 60 RTS
C1/9CB3 load graphic data for spell animations
C1/9CB3: 8D6A62 STA $626A C1/9CB6: EB XBA C1/9CB7: A90E LDA #$0E C1/9CB9: 20CA18 JSR $18CA C1/9CBC: C220 REP #$20 C1/9CBE: AF164200 LDA $004216 C1/9CC2: 18 CLC C1/9CC3: 651E ADC $1E C1/9CC5: AA TAX C1/9CC6: 7B TDC C1/9CC7: A8 TAY C1/9CC8: E220 SEP #$20 C1/9CCA: BFB27FD0 LDA $D07FB2,X (Spell animation and sound data STRUCT) C1/9CCE: 997362 STA $6273,Y (Store the whole line for this entry) C1/9CD1: E8 INX C1/9CD2: C8 INY C1/9CD3: C00E00 CPY #$000E C1/9CD6: D0F2 BNE $9CCA C1/9CD8: AD7C62 LDA $627C (Spell's sound effect (byte 10) -- courtesy Mnrogar) C1/9CDB: 8DE7E9 STA $E9E7 C1/9CDE: 209E9C JSR $9C9E (Clears a bootyload of RAM) C1/9CE1: AE7362 LDX $6273 (Spell's "Graphic 1" (bytes 1 & 2) -- courtesy Mnrogar) C1/9CE4: E0FFFF CPX #$FFFF C1/9CE7: F017 BEQ $9D00 C1/9CE9: 208BA1 JSR $A18B C1/9CEC: AEEE7A LDX $7AEE C1/9CEF: 8E357B STX $7B35 C1/9CF2: AEEA7A LDX $7AEA C1/9CF5: ADAE60 LDA $60AE C1/9CF8: D003 BNE $9CFD C1/9CFA: 20B1A1 JSR $A1B1 C1/9CFD: 20B5A0 JSR $A0B5 C1/9D00: 201799 JSR $9917 C1/9D03: AE7562 LDX $6275 (Spell's "Graphic 2" (bytes 3 & 4) -- courtesy Mnrogar) C1/9D06: E0FFFF CPX #$FFFF C1/9D09: F03D BEQ $9D48 C1/9D0B: 208BA1 JSR $A18B C1/9D0E: AEEE7A LDX $7AEE C1/9D11: 8E317B STX $7B31 C1/9D14: AEEA7A LDX $7AEA C1/9D17: ADAE60 LDA $60AE C1/9D1A: D003 BNE $9D1F C1/9D1C: 20E0A1 JSR $A1E0 C1/9D1F: AE7562 LDX $6275 C1/9D22: E02502 CPX #$0225 C1/9D25: F00F BEQ $9D36 C1/9D27: E03C00 CPX #$003C C1/9D2A: F00A BEQ $9D36 C1/9D2C: E01602 CPX #$0216 C1/9D2F: F005 BEQ $9D36 C1/9D31: E03B00 CPX #$003B C1/9D34: D007 BNE $9D3D C1/9D36: 20129F JSR $9F12 C1/9D39: A92E LDA #$2E C1/9D3B: 8005 BRA $9D42 C1/9D3D: 201C9F JSR $9F1C C1/9D40: A92C LDA #$2C C1/9D42: 20619F JSR $9F61 C1/9D45: 203A9E JSR $9E3A C1/9D48: AE7762 LDX $6277 (Spell's "Graphic 3" (bytes 5 & 6) -- courtesy Mnrogar) C1/9D4B: E0FFFF CPX #$FFFF C1/9D4E: F01A BEQ $9D6A C1/9D50: 208BA1 JSR $A18B C1/9D53: AEEE7A LDX $7AEE C1/9D56: 8E337B STX $7B33 C1/9D59: AEEA7A LDX $7AEA C1/9D5C: ADAE60 LDA $60AE C1/9D5F: D003 BNE $9D64 C1/9D61: 20CFA1 JSR $A1CF C1/9D64: 204A9F JSR $9F4A C1/9D67: 20809E JSR $9E80 C1/9D6A: AE7E62 LDX $627E (Spell's (bytes 12 & 13) ??? --- courtesy Mnrogar) C1/9D6D: E0FFFF CPX #$FFFF C1/9D70: F009 BEQ $9D7B C1/9D72: 208BA1 JSR $A18B C1/9D75: AEEE7A LDX $7AEE C1/9D78: 8E377B STX $7B37 C1/9D7B: 20ACA0 JSR $A0AC C1/9D7E: AD7962 LDA $6279 (Palette for "Graphic 1" (byte 7) --- courtesy Mnrogar) C1/9D81: 20D79B JSR $9BD7 C1/9D84: 7B TDC C1/9D85: AD7A62 LDA $627A (Palette for "Graphic 2" (byte 8) --- courtesy Mnrogar) C1/9D88: 8D6761 STA $6167 C1/9D8B: AD7B62 LDA $627B (Palette for "Graphic 3" (byte 9) --- courtesy Mnrogar) C1/9D8E: 206B9C JSR $9C6B C1/9D91: 2071A7 JSR $A771 C1/9D94: 60 RTS
C1/9D95 unknow
C1/9D95: 8D6A62 STA $626A (from only C1/BF15) C1/9D98: C220 REP #$20 C1/9D9A: 0A ASL A C1/9D9B: 0A ASL A C1/9D9C: 0A ASL A C1/9D9D: AA TAX C1/9D9E: 7B TDC C1/9D9F: A8 TAY C1/9DA0: 7B TDC C1/9DA1: E220 SEP #$20 C1/9DA3: AD8A61 LDA $618A C1/9DA6: F010 BEQ $9DB8 (Battle takes the branch; Special doesn't) C1/9DA8: BFE8E6EC LDA $ECE6E8,X C1/9DAC: 996B62 STA $626B,Y C1/9DAF: E8 INX C1/9DB0: C8 INY C1/9DB1: C00800 CPY #$0008 C1/9DB4: D0F2 BNE $9DA8 C1/9DB6: 800E BRA $9DC6 C1/9DB8: BF00E4EC LDA $ECE400,X (Weapon graphics and sound) C1/9DBC: 996B62 STA $626B,Y C1/9DBF: E8 INX C1/9DC0: C8 INY C1/9DC1: C00800 CPY #$0008 C1/9DC4: D0F2 BNE $9DB8 C1/9DC6: A510 LDA $10 C1/9DC8: 2903 AND #$03 C1/9DCA: AA TAX C1/9DCB: ADF47A LDA $7AF4 C1/9DCE: 0A ASL A C1/9DCF: 2A ROL A C1/9DD0: 2901 AND #$01 C1/9DD2: 5D107B EOR $7B10,X C1/9DD5: 2901 AND #$01 C1/9DD7: AA TAX C1/9DD8: BD6B62 LDA $626B,X C1/9DDB: AA TAX C1/9DDC: 208BA1 JSR $A18B C1/9DDF: ACEE7A LDY $7AEE C1/9DE2: 8C2D7B STY $7B2D C1/9DE5: AEEA7A LDX $7AEA C1/9DE8: 20C0A1 JSR $A1C0 C1/9DEB: 20B5A0 JSR $A0B5 C1/9DEE: AD8A61 LDA $618A C1/9DF1: F013 BEQ $9E06 C1/9DF3: AD6E62 LDA $626E C1/9DF6: C960 CMP #$60 C1/9DF8: 900C BCC $9E06 C1/9DFA: C220 REP #$20 C1/9DFC: 18 CLC C1/9DFD: 690002 ADC #$0200 C1/9E00: AA TAX C1/9E01: 7B TDC C1/9E02: E220 SEP #$20 C1/9E04: 8004 BRA $9E0A C1/9E06: AD6E62 LDA $626E C1/9E09: AA TAX C1/9E0A: 208BA1 JSR $A18B C1/9E0D: ACEE7A LDY $7AEE C1/9E10: 8C2F7B STY $7B2F C1/9E13: 8C317B STY $7B31 C1/9E16: AEEA7A LDX $7AEA C1/9E19: 20E0A1 JSR $A1E0 C1/9E1C: 201C9F JSR $9F1C C1/9E1F: A92C LDA #$2C C1/9E21: 20619F JSR $9F61 C1/9E24: 203A9E JSR $9E3A C1/9E27: AD6D62 LDA $626D C1/9E2A: 20D79B JSR $9BD7 C1/9E2D: AD6F62 LDA $626F C1/9E30: 8D6761 STA $6167 C1/9E33: 204BA0 JSR $A04B C1/9E36: 2071A7 JSR $A771 C1/9E39: 60 RTS
C1/9E3A unknow
C1/9E3A: A528 LDA $28 C1/9E3C: F027 BEQ $9E65 C1/9E3E: AD317B LDA $7B31 C1/9E41: C220 REP #$20 C1/9E43: 0A ASL A C1/9E44: 0A ASL A C1/9E45: 0A ASL A C1/9E46: 8D167B STA $7B16 C1/9E49: A90001 LDA #$0100 C1/9E4C: 38 SEC C1/9E4D: ED167B SBC $7B16 C1/9E50: 8D167B STA $7B16 C1/9E53: AD327B LDA $7B32 C1/9E56: 29FF00 AND #$00FF C1/9E59: 0A ASL A C1/9E5A: 0A ASL A C1/9E5B: 0A ASL A C1/9E5C: 8D187B STA $7B18 C1/9E5F: 7B TDC C1/9E60: E220 SEP #$20 C1/9E62: 4C7F9E JMP $9E7F
C1/9E65 unknow
C1/9E65: AD317B LDA $7B31 (from C1/9E3C) C1/9E68: C220 REP #$20 C1/9E6A: 0A ASL A C1/9E6B: 0A ASL A C1/9E6C: 0A ASL A C1/9E6D: 8D167B STA $7B16 C1/9E70: AD327B LDA $7B32 C1/9E73: 29FF00 AND #$00FF C1/9E76: 0A ASL A C1/9E77: 0A ASL A C1/9E78: 0A ASL A C1/9E79: 8D187B STA $7B18 C1/9E7C: 7B TDC C1/9E7D: E220 SEP #$20 C1/9E7F: 60 RTS
C1/9E80 unknow
C1/9E80: A528 LDA $28 C1/9E82: F027 BEQ $9EAB C1/9E84: AD337B LDA $7B33 C1/9E87: C220 REP #$20 C1/9E89: 0A ASL A C1/9E8A: 0A ASL A C1/9E8B: 0A ASL A C1/9E8C: 8D227B STA $7B22 C1/9E8F: A90001 LDA #$0100 C1/9E92: 38 SEC C1/9E93: ED227B SBC $7B22 C1/9E96: 8D227B STA $7B22 C1/9E99: AD347B LDA $7B34 C1/9E9C: 29FF00 AND #$00FF C1/9E9F: 0A ASL A C1/9EA0: 0A ASL A C1/9EA1: 0A ASL A C1/9EA2: 8D247B STA $7B24 C1/9EA5: 7B TDC C1/9EA6: E220 SEP #$20 C1/9EA8: 4CC59E JMP $9EC5
C1/9EAB unknow
C1/9EAB: AD337B LDA $7B33 (from C1/9E82) C1/9EAE: C220 REP #$20 C1/9EB0: 0A ASL A C1/9EB1: 0A ASL A C1/9EB2: 0A ASL A C1/9EB3: 8D227B STA $7B22 C1/9EB6: AD347B LDA $7B34 C1/9EB9: 29FF00 AND #$00FF C1/9EBC: 0A ASL A C1/9EBD: 0A ASL A C1/9EBE: 0A ASL A C1/9EBF: 8D247B STA $7B24 C1/9EC2: 7B TDC C1/9EC3: E220 SEP #$20 C1/9EC5: 60 RTS
C1/9EC6 JSL unknow
C1/9EC6: 20CA9E JSR $9ECA C1/9EC9: 6B RTL
C1/9ECA JSR unknow
C1/9ECA: 8B PHB (from C1/9EC6) C1/9ECB: A97F LDA #$7F C1/9ECD: 48 PHA C1/9ECE: AB PLB C1/9ECF: C220 REP #$20 C1/9ED1: 7B TDC C1/9ED2: AA TAX C1/9ED3: A9EE02 LDA #$02EE C1/9ED6: 9D00C4 STA $C400,X C1/9ED9: 9D00CC STA $CC00,X C1/9EDC: 9D00D4 STA $D400,X C1/9EDF: 9D00DC STA $DC00,X C1/9EE2: E8 INX C1/9EE3: E8 INX C1/9EE4: E00008 CPX #$0800 C1/9EE7: D0ED BNE $9ED6 C1/9EE9: 7B TDC C1/9EEA: E220 SEP #$20 C1/9EEC: AB PLB C1/9EED: 60 RTS
C1/9EEE unknow
C1/9EEE: 8B PHB C1/9EEF: A97F LDA #$7F C1/9EF1: 48 PHA C1/9EF2: AB PLB C1/9EF3: C220 REP #$20 C1/9EF5: 7B TDC C1/9EF6: AA TAX C1/9EF7: A9EE01 LDA #$01EE C1/9EFA: 9D00E4 STA $E400,X C1/9EFD: 9D00E9 STA $E900,X C1/9F00: 9D00EE STA $EE00,X C1/9F03: 9D00F3 STA $F300,X C1/9F06: E8 INX C1/9F07: E8 INX C1/9F08: E00005 CPX #$0500 C1/9F0B: D0ED BNE $9EFA C1/9F0D: 7B TDC C1/9F0E: E220 SEP #$20 C1/9F10: AB PLB C1/9F11: 60 RTS
C1/9F12 unknow
C1/9F12: 2089BC JSR $BC89 (from only C1/9D36) C1/9F15: 20A6BC JSR $BCA6 C1/9F18: A512 LDA $12 C1/9F1A: 8005 BRA $9F21 C1/9F1C: 2089BC JSR $BC89 C1/9F1F: A510 LDA $10 C1/9F21: 3014 BMI $9F37 C1/9F23: AA TAX C1/9F24: BD107B LDA $7B10,X C1/9F27: F009 BEQ $9F32 C1/9F29: A910 LDA #$10 C1/9F2B: 8528 STA $28 C1/9F2D: A940 LDA #$40 C1/9F2F: 8529 STA $29 C1/9F31: 60 RTS
C1/9F32: 6428 STZ $28 (from C1/9F27, C1/9F48) C1/9F34: 6429 STZ $29 C1/9F36: 60 RTS
C1/9F37: 297F AND #$7F (from C1/9F21) C1/9F39: 38 SEC C1/9F3A: E904 SBC #$04 C1/9F3C: 0A ASL A C1/9F3D: AA TAX C1/9F3E: BDF380 LDA $80F3,X C1/9F41: 5D7E61 EOR $617E,X C1/9F44: 2901 AND #$01 C1/9F46: F0E1 BEQ $9F29 C1/9F48: 80E8 BRA $9F32 C1/9F4A: 201C9F JSR $9F1C C1/9F4D: 20EE9E JSR $9EEE C1/9F50: A9D1 LDA #$D1 C1/9F52: 8512 STA $12 C1/9F54: A97F LDA #$7F C1/9F56: 8516 STA $16 C1/9F58: A930 LDA #$30 C1/9F5A: 852A STA $2A C1/9F5C: A200E4 LDX #$E400 C1/9F5F: 8012 BRA $9F73 C1/9F61: 48 PHA C1/9F62: 20CA9E JSR $9ECA C1/9F65: A9D1 LDA #$D1 C1/9F67: 8512 STA $12 C1/9F69: A97F LDA #$7F C1/9F6B: 8516 STA $16 C1/9F6D: 68 PLA C1/9F6E: 852A STA $2A C1/9F70: A200C4 LDX #$C400 C1/9F73: 8614 STX $14 C1/9F75: ADEA7A LDA $7AEA C1/9F78: 293F AND #$3F C1/9F7A: 8DEA7A STA $7AEA C1/9F7D: C220 REP #$20 C1/9F7F: ADEC7A LDA $7AEC C1/9F82: 0A ASL A C1/9F83: AA TAX C1/9F84: BF3CDFD4 LDA $D4DF3C,X (Nobody seems to have a clue what this is...) C1/9F88: 8510 STA $10 C1/9F8A: BF3EDFD4 LDA $D4DF3E,X C1/9F8E: 851A STA $1A C1/9F90: 7B TDC C1/9F91: E220 SEP #$20 C1/9F93: A8 TAY C1/9F94: A610 LDX $10 C1/9F96: E41A CPX $1A C1/9F98: F060 BEQ $9FFA C1/9F9A: A710 LDA [$10] C1/9F9C: C9FF CMP #$FF C1/9F9E: F04B BEQ $9FEB C1/9FA0: 29F0 AND #$F0 C1/9FA2: 4A LSR A C1/9FA3: 4A LSR A C1/9FA4: 4A LSR A C1/9FA5: 4A LSR A C1/9FA6: 18 CLC C1/9FA7: 6528 ADC $28 C1/9FA9: AA TAX C1/9FAA: BF13A0C1 LDA $C1A013,X C1/9FAE: 8522 STA $22 (Animation Script pointer) C1/9FB0: 6423 STZ $23 C1/9FB2: A710 LDA [$10] C1/9FB4: 290F AND #$0F C1/9FB6: C220 REP #$20 C1/9FB8: 0A ASL A C1/9FB9: 0A ASL A C1/9FBA: 0A ASL A C1/9FBB: 0A ASL A C1/9FBC: 0A ASL A C1/9FBD: 18 CLC C1/9FBE: 6522 ADC $22 (Animation Script pointer) C1/9FC0: A8 TAY C1/9FC1: E610 INC $10 C1/9FC3: 7B TDC C1/9FC4: E220 SEP #$20 C1/9FC6: A710 LDA [$10] C1/9FC8: 2907 AND #$07 C1/9FCA: 0A ASL A C1/9FCB: 8524 STA $24 C1/9FCD: A710 LDA [$10] C1/9FCF: 2938 AND #$38 C1/9FD1: 0A ASL A C1/9FD2: 0A ASL A C1/9FD3: 18 CLC C1/9FD4: 6524 ADC $24 C1/9FD6: 9714 STA [$14],Y C1/9FD8: C8 INY C1/9FD9: A710 LDA [$10] C1/9FDB: 29C0 AND #$C0 C1/9FDD: 4529 EOR $29 C1/9FDF: 052A ORA $2A C1/9FE1: 9714 STA [$14],Y C1/9FE3: A610 LDX $10 C1/9FE5: E8 INX C1/9FE6: 8610 STX $10 C1/9FE8: 4C949F JMP $9F94 C1/9FEB: 5A PHY C1/9FEC: A00100 LDY #$0001 C1/9FEF: B710 LDA [$10],Y C1/9FF1: 7A PLY C1/9FF2: C9FF CMP #$FF C1/9FF4: F004 BEQ $9FFA C1/9FF6: A9FF LDA #$FF C1/9FF8: 80A6 BRA $9FA0 C1/9FFA: C220 REP #$20 C1/9FFC: A514 LDA $14 C1/9FFE: 18 CLC C1/9FFF: 690002 ADC #$0200 C1/A002: 8514 STA $14 C1/A004: EEEC7A INC $7AEC C1/A007: 7B TDC C1/A008: E220 SEP #$20 C1/A00A: CEEA7A DEC $7AEA C1/A00D: F003 BEQ $A012 C1/A00F: 4C7D9F JMP $9F7D C1/A012: 60 RTS
Internal Data for Fantasy VI
| |
---|---|