; ; +-------------------------------------------------------------------------+ ; | This file has been generated by The Interactive Disassembler (IDA) | ; | Copyright (c) 2009 by Hex-Rays, | ; | License info: 54-F19A-B286-08 | ; | James Holland | ; +-------------------------------------------------------------------------+ ; ; Input MD5 : 30E79E076F7E9E64B07A6C426E7013E7 ; Processor: 6301 [] ; Target assembler: Motorola FreeWare Assembler ; =========================================================================== ; Segment type: Regular ; segment RAM P1DDR: rmb 1 ; DATA XREF: sub_F456-2A53w ; sub_CAC5+7Aw P2DDR: rmb 1 PORT1: rmb 1 ; DATA XREF: sub_F456-2A58w ; sub_F456-29CEr ... PORT2: rmb 1 P3DDR: rmb 1 P4DDR: rmb 1 PORT3: rmb 1 ; DATA XREF: sub_D2E1+2r ; sub_F0C0:loc_F0CEr ... PORT4: rmb 1 ; DATA XREF: sub_EF17:loc_EF27r ; sub_EF2B+Dr ... TCSR1: rmb 1 ; DATA XREF: sub_F456-2A6Dw sub_CAC5r ... FRCH: rmb 1 FRCL: rmb 1 OCR1H: rmb 1 OCR1L: rmb 1 ICRH: rmb 1 ICRL: rmb 1 P3CSR: rmb 1 RMCR: rmb 1 ; DATA XREF: sub_F456-2A49w ; sub_CF7E+Aw TRCSR1: rmb 1 ; DATA XREF: sub_F456-29CBr ; sub_CAC5+Er ... RDR: rmb 1 ; DATA XREF: sub_F456-29C9r ; sub_CAC5+69r ... TDR: rmb 1 RAMCR: rmb 1 ; DATA XREF: sub_F456-2A76r ; sub_F456-2A3Dr ... rmb 1 rmb 1 rmb 1 byte_18: rmb 1 ; DATA XREF: sub_F456-2A69w ; sub_CAC5+45r ... byte_19: rmb 1 ; DATA XREF: sub_CAC5+49r sub_CAC5+5Dr ... rmb 1 byte_1B: rmb 1 ; DATA XREF: sub_CAC5+4Bw sub_DC76+2Aw ... rmb 1 byte_1D: rmb 1 rmb 1 byte_1F: rmb 1 ; DATA XREF: sub_F456-2A71w ; sub_CAC5+8Fw byte_20: rmb 1 ; DATA XREF: sub_F456-2A61w ; sub_CAC5+9Ar ... byte_21: rmb 1 ; DATA XREF: sub_D62A+54r sub_D62A+62r ... rmb 1 unk_23: rmb 1 rmb 1 unk_25: rmb 1 byte_26: rmb 1 ; DATA XREF: sub_F456-2A4Ew ; sub_CAC5+87w unk_27: rmb 1 byte_28: rmb 1 ; DATA XREF: sub_F456-2A5Dw ; sub_CAC5+9Dr ... unk_29: rmb 1 rmb 1 unk_2B: rmb 1 rmb 1 unk_2D: rmb 1 byte_2E: rmb 1 ; DATA XREF: sub_F456-2A65w rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 byte_40: rmb 1 ; DATA XREF: sub_F456-2A37w sub_CD79r ... rmb 1 unk_42: rmb 1 unk_43: rmb 1 unk_44: rmb 1 byte_45: rmb 1 ; DATA XREF: sub_CD79+1Fw sub_EC5F+Br ... rmb 1 byte_47: rmb 1 ; DATA XREF: sub_CD79+21w sub_EC5F+Fr ... rmb 1 byte_49: rmb 1 ; DATA XREF: sub_CD79+23w sub_EC5F+13r ... rmb 1 unk_4B: rmb 1 unk_4C: rmb 1 byte_4D: rmb 1 ; DATA XREF: sub_F456:loc_CA3Cw ; sub_F456+39r unk_4E: rmb 1 rmb 1 byte_50: rmb 1 ; DATA XREF: sub_CFED+49w sub_CFED+67r ... byte_51: rmb 1 ; DATA XREF: sub_D296:loc_D2A0w ; sub_D296+26r ... byte_52: rmb 1 ; DATA XREF: sub_D3B8+14w sub_D3B8+59r ... rmb 1 byte_54: rmb 1 ; DATA XREF: sub_CF91+1Cw sub_CF91+28r ... byte_55: rmb 1 ; DATA XREF: sub_CF91+26w sub_CFED+19w ... byte_56: rmb 1 ; DATA XREF: sub_CF91+22w sub_CF91+32r ... unk_57: rmb 1 unk_58: rmb 1 rmb 1 byte_5A: rmb 1 ; DATA XREF: ROM:CEF3w ROM:CF03r ... byte_5B: rmb 1 ; DATA XREF: ROM:CEF7w ROM:CF1Cw ... byte_5C: rmb 1 ; DATA XREF: sub_D6EB+2w sub_D6EB+22r ... rmb 1 byte_5E: rmb 1 ; DATA XREF: sub_CAC5+C1r sub_CAC5+E3r ... byte_5F: rmb 1 ; DATA XREF: sub_CAC5+A4r ; sub_CAC5:loc_CB7Dw ... byte_60: rmb 1 ; DATA XREF: sub_D0BE+8r sub_D2E1r ... byte_61: rmb 1 ; DATA XREF: ROM:loc_CF6Ew sub_E552r ... byte_62: rmb 1 ; DATA XREF: sub_D244+13r sub_D2E1+3Er ... byte_63: rmb 1 ; DATA XREF: sub_CAC5+CCr sub_CDCC+4r ... byte_64: rmb 1 ; DATA XREF: sub_F456-29F9w ; sub_D3B8+1r ... byte_65: rmb 1 ; DATA XREF: sub_CFED+Ar sub_CFED+1Ew ... byte_66: rmb 1 ; DATA XREF: sub_CFED+25r sub_CFED+33w ... byte_67: rmb 1 ; DATA XREF: sub_CFED+3Cr sub_CFED+41w ... byte_68: rmb 1 ; DATA XREF: sub_CDCC:loc_CDD8r ; sub_CFED+B7r ... unk_69: rmb 1 byte_6A: rmb 1 ; DATA XREF: sub_D2E1+2Fr sub_D59E+9r ... byte_6B: rmb 1 ; DATA XREF: sub_D59E+18r sub_D59E+20w ... byte_6C: rmb 1 ; DATA XREF: sub_D5C1+9r sub_D5C1+11w ... byte_6D: rmb 1 ; DATA XREF: sub_CDCC+11r sub_D296+2Er ... byte_6E: rmb 1 ; DATA XREF: sub_F456-29F5w ; sub_D0BE+11Dr ... byte_6F: rmb 1 ; DATA XREF: ROM:CEF1r ROM:CF05w ... byte_70: rmb 1 ; DATA XREF: sub_CAC5+C9r ; sub_D4EE:loc_D506r ... byte_71: rmb 1 ; DATA XREF: ROM:CEF5r ROM:CF07w ... byte_72: rmb 1 ; DATA XREF: sub_CAC5+19w sub_CE19r ... byte_73: rmb 1 ; DATA XREF: sub_F456-29F1w ; sub_D2E1+34r ... byte_74: rmb 1 ; DATA XREF: sub_F456-29E1w ; sub_DC76+E1r ... byte_75: rmb 1 ; DATA XREF: sub_D62Ar sub_DC76+32r ... byte_76: rmb 1 ; DATA XREF: sub_F456-29D9w ; sub_E529:loc_E54Fw ... byte_77: rmb 1 ; DATA XREF: sub_F456-29D5w ; sub_D2E1+24r ... byte_78: rmb 1 ; DATA XREF: sub_EACC+2Br ; sub_EACC:loc_EAFCr ... byte_79: rmb 1 ; DATA XREF: sub_CFED+89r sub_CFED+95r ... byte_7A: rmb 1 ; DATA XREF: sub_E552+32r sub_E552+37r ... byte_7B: rmb 1 ; DATA XREF: sub_EB0B+19r ; sub_EB0B:loc_EB29r ... byte_7C: rmb 1 ; DATA XREF: sub_EF7Cr ; sub_EF7C:loc_EFB9w ... byte_7D: rmb 1 ; DATA XREF: sub_E0F3+1Dr sub_E0F3+2Dr ... byte_7E: rmb 1 ; DATA XREF: sub_CAC5+14Dr ; sub_CAC5:loc_CC19w ... unk_7F: rmb 1 unk_80: rmb 1 unk_81: rmb 1 byte_82: rmb 1 ; DATA XREF: sub_F456-29C5w ; sub_F456-29BFw ... unk_83: rmb 1 byte_84: rmb 1 ; DATA XREF: SCI_INT_HNDLR+49w ; sub_CF7Er ... unk_85: rmb 1 unk_86: rmb 1 byte_87: rmb 1 ; DATA XREF: ROM:CF01w sub_D52A+11r byte_88: rmb 1 ; DATA XREF: ROM:CF26w sub_D52Ar byte_89: rmb 1 ; DATA XREF: ROM:CF45w ; sub_D0BE:loc_D0D3r ... rmb 1 byte_8B: rmb 1 ; DATA XREF: ROM:CEEEw sub_DBABr ... byte_8C: rmb 1 ; DATA XREF: ROM:loc_CF7Bw ; sub_D3B8:loc_D3CAr ... byte_8D: rmb 1 ; DATA XREF: sub_D0BE+15Dr ; sub_D0BE+171r ... unk_8E: rmb 1 byte_8F: rmb 1 ; DATA XREF: sub_D52A+19w sub_D559r ... unk_90: rmb 1 unk_91: rmb 1 unk_92: rmb 1 unk_93: rmb 1 unk_94: rmb 1 rmb 1 byte_96: rmb 1 ; DATA XREF: sub_D0BE+122w ; sub_D0BE+13Aw ... rmb 1 unk_98: rmb 1 rmb 1 unk_9A: rmb 1 unk_9B: rmb 1 rmb 1 unk_9D: rmb 1 rmb 1 unk_9F: rmb 1 rmb 1 unk_A1: rmb 1 rmb 1 byte_A3: rmb 1 ; DATA XREF: sub_DB58+Fr sub_E0F3+7r ... rmb 1 unk_A5: rmb 1 unk_A6: rmb 1 byte_A7: rmb 1 ; DATA XREF: sub_F456-29FDw ; sub_D62A:loc_D6B4r ... unk_A8: rmb 1 rmb 1 unk_AA: rmb 1 rmb 1 byte_AC: rmb 1 ; DATA XREF: sub_F456-2A03w sub_D2D8r ... byte_AD: rmb 1 ; DATA XREF: sub_F456-2A01w ; sub_DC76+4Bw ... unk_AE: rmb 1 rmb 1 byte_B0: rmb 1 ; DATA XREF: sub_F456-2A07w ; sub_CAC5+A1r ... rmb 1 unk_B2: rmb 1 rmb 1 byte_B4: rmb 1 ; DATA XREF: sub_F456-2A05w ; sub_D571+Dw ... rmb 1 unk_B6: rmb 1 rmb 1 unk_B8: rmb 1 unk_B9: rmb 1 unk_BA: rmb 1 byte_BB: rmb 1 ; DATA XREF: sub_D495+27w ; sub_D495:loc_D4C5r ... byte_BC: rmb 1 ; DATA XREF: sub_D495+2Cw sub_D495+3Cr ... byte_BD: rmb 1 ; DATA XREF: sub_D365+2Bw ; sub_D495:loc_D4DAr ... byte_BE: rmb 1 ; DATA XREF: sub_CDCC+35w sub_D47E+9r ... unk_BF: rmb 1 byte_C0: rmb 1 ; DATA XREF: sub_CAC5+C6w sub_D4EE+5w ... unk_C1: rmb 1 unk_C2: rmb 1 unk_C3: rmb 1 byte_C4: rmb 1 ; DATA XREF: sub_CDCC+2Dw sub_D3B8+78w ... byte_C5: rmb 1 ; DATA XREF: sub_CDCC+23w ; sub_D50A:loc_D514r ... byte_C6: rmb 1 ; DATA XREF: sub_CDCC+28w ; sub_D50A:loc_D51Cr unk_C7: rmb 1 rmb 1 unk_C9: rmb 1 rmb 1 byte_CB: rmb 1 ; DATA XREF: sub_D244+Dr sub_D4E2+9w byte_CC: rmb 1 ; DATA XREF: sub_D62A:loc_D652r ; sub_DC55+8w rmb 1 unk_CE: rmb 1 byte_CF: rmb 1 ; DATA XREF: sub_D847+30r sub_D847+6Bw ... unk_D0: rmb 1 rmb 1 unk_D2: rmb 1 unk_D3: rmb 1 byte_D4: rmb 1 ; DATA XREF: sub_DA8B+11r ; sub_DB80:loc_DBA0w byte_D5: rmb 1 ; DATA XREF: sub_F456-29EDw ; sub_D8EF+18w ... rmb 1 byte_D7: rmb 1 ; DATA XREF: sub_F456-29E9w ; sub_DA01+1Ew ... byte_D8: rmb 1 ; DATA XREF: sub_DA8B+1Br ; sub_DB58:loc_DB7Dw byte_D9: rmb 1 ; DATA XREF: sub_D244+18r ; sub_D7F7:loc_D823r ... unk_DA: rmb 1 byte_DB: rmb 1 ; DATA XREF: sub_D8BC+Er sub_DA8B+1r ... unk_DC: rmb 1 byte_DD: rmb 1 ; DATA XREF: sub_F456-29E5w ; sub_D75F+2r ... rmb 1 unk_DF: rmb 1 unk_E0: rmb 1 unk_E1: rmb 1 rmb 1 unk_E3: rmb 1 rmb 1 unk_E5: rmb 1 byte_E6: rmb 1 ; DATA XREF: sub_D95Ar ; sub_DBBA:loc_DBC4r ... unk_E7: rmb 1 unk_E8: rmb 1 rmb 1 unk_EA: rmb 1 rmb 1 unk_EC: rmb 1 byte_ED: rmb 1 ; DATA XREF: sub_F456-29DDw ; sub_DC76+F7r ... byte_EE: rmb 1 ; DATA XREF: sub_E0F3+C9r ; sub_E0F3:loc_E1C2w ... unk_EF: rmb 1 unk_F0: rmb 1 unk_F1: rmb 1 unk_F2: rmb 1 unk_F3: rmb 1 unk_F4: rmb 1 unk_F5: rmb 1 byte_F6: rmb 1 ; DATA XREF: sub_DC76+47w sub_E05C+4r ... unk_F7: rmb 1 unk_F8: rmb 1 unk_F9: rmb 1 rmb 1 unk_FB: rmb 1 rmb 1 unk_FD: rmb 1 rmb 1 unk_FF: rmb 1 unk_100: rmb 1 unk_101: rmb 1 unk_102: rmb 1 byte_103: rmb 1 ; DATA XREF: sub_E34B+9w sub_E378+A3r ... rmb 1 rmb 1 rmb 1 rmb 1 byte_108: rmb 1 ; DATA XREF: sub_E358+Br ; sub_E358:loc_E374w ... byte_109: rmb 1 ; DATA XREF: sub_E358+Er ; sub_E358:loc_E371r ... rmb 1 rmb 1 rmb 1 rmb 1 word_10E: rmb 2 ; DATA XREF: sub_E552+3Fw sub_E552+47w ... word_110: rmb 2 ; DATA XREF: sub_E552+67w sub_E552+6Fw ... byte_112: rmb 1 ; DATA XREF: sub_E552+8Ew sub_E552+96w ... byte_113: rmb 1 ; DATA XREF: sub_E552+B2w sub_E552+BAw ... byte_114: rmb 1 ; DATA XREF: sub_E552+D6w sub_E552+DEw ... word_115: rmb 2 ; DATA XREF: sub_E552+10Ew ; sub_E552+116w ... byte_117: rmb 1 ; DATA XREF: sub_E746+1Fr ; sub_E746:loc_E772r ... byte_118: rmb 1 ; DATA XREF: sub_E86D+6Dr sub_EC08+40r ... byte_119: rmb 1 ; DATA XREF: sub_E86D+26r sub_EB0B+24r ... byte_11A: rmb 1 ; DATA XREF: sub_E86D+21r sub_EB0B+27r ... byte_11B: rmb 1 ; DATA XREF: sub_E788:loc_E829w ; sub_E86D+2Ar ... byte_11C: rmb 1 ; DATA XREF: sub_E687:loc_E716r ; sub_E687:loc_E71Ew ... word_11D: rmb 2 ; DATA XREF: sub_F456-29D1w ; sub_E86D+49r ... word_11F: rmb 2 ; DATA XREF: sub_E552:loc_E683w ; sub_E86D+39r word_121: rmb 2 ; DATA XREF: sub_E722+20w sub_E86D+34r word_123: rmb 2 ; DATA XREF: sub_E86D:loc_E8E8w ; sub_E8ECr ... byte_125: rmb 1 ; DATA XREF: sub_E8EC+3r sub_EEBF+8w word_126: rmb 2 ; DATA XREF: sub_E8EC:loc_E900w ; sub_E910:loc_E91Ar byte_128: rmb 1 ; DATA XREF: sub_E910+20r sub_EEAB+10w byte_129: rmb 1 ; DATA XREF: sub_E904+8w sub_E910+33r word_12A: rmb 2 ; DATA XREF: sub_E45B+15w ; sub_E48C:loc_E4AAr ... byte_12C: rmb 1 ; DATA XREF: sub_D2E1+79w sub_E687+83r ... byte_12D: rmb 1 ; DATA XREF: sub_E45B+Fw sub_EC5F+EAw ... word_12E: rmb 2 ; DATA XREF: sub_EC5F+EFw sub_EC5F+F6r ... byte_130: rmb 1 ; DATA XREF: sub_EB0B:loc_EB2Cr ; sub_EE37+16r ... byte_131: rmb 1 ; DATA XREF: sub_E45B+3w sub_EB0B+92w ... byte_132: rmb 1 ; DATA XREF: sub_EB0B+70r sub_EECB+8r ... byte_133: rmb 1 ; DATA XREF: sub_E86D:loc_E881r ; sub_EB0B:loc_EB1Br ... byte_134: rmb 1 ; DATA XREF: sub_EB0B:loc_EBF4r ; sub_EB0B:loc_EBFAw ... unk_135: rmb 1 unk_136: rmb 1 word_137: rmb 2 ; DATA XREF: sub_CFED+43r sub_E0F3+53r ... unk_139: rmb 1 word_13A: rmb 2 ; DATA XREF: sub_EACC:loc_EAD7r ; sub_EACC:loc_EADFw ... byte_13C: rmb 1 ; DATA XREF: sub_E45B+9w sub_EACC+16r ... unk_13D: rmb 1 rmb 1 byte_13F: rmb 1 ; DATA XREF: sub_EF56+22w sub_EF7C+10r ... byte_140: rmb 1 ; DATA XREF: sub_EFDD+5r sub_F0B4+8w byte_141: rmb 1 ; DATA XREF: sub_EFDD:loc_F000w ; sub_EFDD:loc_F003r ... byte_142: rmb 1 ; DATA XREF: sub_EFDD+34w ; sub_EFDD:loc_F014r ... byte_143: rmb 1 ; DATA XREF: sub_EFDD+45w byte_144: rmb 1 ; DATA XREF: sub_EFDD+58r sub_F0A8+8w byte_145: rmb 1 ; DATA XREF: sub_EF2B+5r ; sub_EFDD:loc_F053w unk_146: rmb 1 byte_147: rmb 1 ; DATA XREF: sub_EF7C+15r sub_F057+10r ... byte_148: rmb 1 ; DATA XREF: sub_EF7C:loc_EFCAr ; sub_EF7C:loc_EFD0w ... byte_149: rmb 1 ; DATA XREF: sub_EF41+11w ; sub_EF7C:loc_EFD3r ... byte_14A: rmb 1 ; DATA XREF: sub_EF7C+1Ar sub_F057+21r ... byte_14B: rmb 1 ; DATA XREF: sub_F3C5:loc_F3FCr ; sub_F3C5+3Dw ... byte_14C: rmb 1 ; DATA XREF: sub_F3C5+43w sub_F3C5+67r ... byte_14D: rmb 1 ; DATA XREF: sub_F0C0+3w sub_F3C5+8r ... byte_14E: rmb 1 ; DATA XREF: sub_D399+12w sub_F3C5+14r ... byte_14F: rmb 1 ; DATA XREF: sub_D399+1Bw sub_F3AEr ... byte_150: rmb 1 ; DATA XREF: sub_D5FC+8w ; sub_D8BC:loc_D8E5r ... unk_151: rmb 1 unk_152: rmb 1 unk_153: rmb 1 unk_154: rmb 1 unk_155: rmb 1 unk_156: rmb 1 rmb 1 unk_158: rmb 1 rmb 1 unk_15A: rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 rmb 1 ; end of 'RAM' ; Segment type: Pure code ; segment ROM org $C000 ; fcb $35 ; 5 fcb 0 fcb $11 fcb $90 ; fcb 2 fcb 1 fcb $20 fcb $43 ; C fcb $20 fcb $2D ; - fcb $42 ; B fcb $36 ; 6 fcb $33 ; 3 fcb $48 ; H fcb $D2 ; fcb $1B LUT_C010: fcb $A fcb 6 fcb $A fcb 6 LUT_C014: fcb $A fcb 6 fcb $A fcb 6 B_C018: fcb $5C ; \ byte_C019: fcb $71 ; DATA XREF: sub_D3B8+5Br byte_C01A: fcb $4C ; DATA XREF: sub_CDCC+2Ar sub_D3B8+75r ... word_C01B: fdb $3939 ; DATA XREF: sub_CDCC+20r ; sub_D5E0:loc_D5F6r ... byte_C01D: fcb $1E ; DATA XREF: sub_CDCC+32r LUT_C01E: fcb 5 fcb $F8 ; fcb $79 ; y byte_C021: fcb $C0 ; DATA XREF: sub_E552+FCr sub_E722+1Ar ... LUT_C022: fcb 8 fcb $F8 ; fcb $79 ; y byte_C025: fcb $16 ; DATA XREF: sub_D4EE+Cr byte_C026: fcb $C ; DATA XREF: sub_DC76+291r ; sub_DC76+2FAr byte_C027: fcb $10 ; DATA XREF: sub_DC60+5r ; sub_DC76:loc_DE31r ... byte_C028: fcb $25 ; DATA XREF: sub_D2E1+6Cr byte_C029: fcb $C ; DATA XREF: sub_D2E1+71r byte_C02A: fcb 7 ; DATA XREF: sub_D2E1+55r byte_C02B: fcb $3D ; DATA XREF: sub_D495+24r byte_C02C: fcb $1E ; DATA XREF: sub_D495+29r byte_C02D: fcb $1E ; DATA XREF: sub_D365+28r byte_C02E: fcb $50 ; DATA XREF: sub_D0BE:loc_D1C4r byte_C02F: fcb $C0 ; DATA XREF: sub_D0BE:loc_D1EDr byte_C030: fcb $FC ; DATA XREF: sub_D0BE+13Cr byte_C031: fcb 0 ; DATA XREF: sub_D0BE+10Er LUT_C032: fcb $1F fcb $50 ; P word_C034: fdb $FFFF ; DATA XREF: sub_D0BE+6Fr sub_D0BE+74r word_C036: fdb $7D ; DATA XREF: sub_D244:loc_D285r ; sub_D244+46r word_C038: fdb $7D ; DATA XREF: sub_D244+2r sub_D244+7r byte_C03A: fcb $D5 ; DATA XREF: sub_DA01+7r byte_C03B: fcb $C0 ; DATA XREF: sub_D571+2r REV_LIM: fdb $823 ; DATA XREF: sub_DC76+6Ar unk_C03E: fcb 0 ; DATA XREF: sub_DC76+6Fr fcb $50 ; P LUT_C040: fcb $A fcb 6 fcb $80 ; fcb $A fcb $10 fcb 6 fcb $96 ; fcb 6 fcb $A0 ; fcb 0 LUT_C04A: fcb $10 fcb 3 fcb $2A ; * fcb 3 fcb $20 fcb 3 fcb $9A ; fcb 3 fcb $36 ; 6 fcb 3 fcb $36 ; 6 fcb 3 fcb $50 ; P fcb 3 fcb 9 fcb 5 fcb $A LUT_C058: fcb 9 fcb 2 fcb 9 fcb 2 fcb 9 fcb 2 fcb 9 fcb 2 fcb 9 fcb 2 LUT_C065: fcb $30 ; 0 fcb 3 fcb 0 fcb 0 fcb $20 fcb 3 fcb $FF fcb 3 fcb $2B ; + fcb 3 fcb $30 ; 0 fcb 3 LUT_C071: fcb $80 ; fcb $A fcb $80 ; fcb $A fcb $30 ; 0 fcb 3 fcb $43 ; C fcb 3 fcb $56 ; V fcb 3 fcb $69 ; i fcb 3 fcb $20 fcb 3 fcb $43 ; C fcb 3 LUT_C081: fcb $A0 ; fcb 8 fcb $B0 ; fcb 8 fcb $B0 ; fcb 8 LUT_C087: fcb $A0 ; fcb 8 fcb $40 ; @ fcb 8 fcb $A0 ; fcb 8 fcb $A0 ; fcb 8 fcb 0 fcb 8 LUT_C091: fcb $FF fcb 8 LUT_C093: fcb 8 fcb $3C ; < fcb 8 fcb $FF fcb $B fcb $1F fcb 8 fcb $64 ; d fcb 8 LUT_C09C: fcb $BD ; fcb $A9 ; fcb $94 ; fcb $80 ; fcb $70 ; p fcb $60 ; ` fcb $52 ; R fcb $52 ; R LUT_C0A4: fcb $6E ; n fcb $6A ; j fcb $66 ; f fcb $5C ; \ fcb $54 ; T fcb $4A ; J fcb $47 ; G fcb $47 ; G LUT_C0AC: fcb 0 fcb 0 fcb 0 fcb 0 fcb $20 fcb $40 ; @ fcb $60 ; ` fcb $80 ; LUT_C0B4: fcb 0 fcb 0 fcb 0 fcb 0 fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb 7 fcb $C LUT_C0BE: fcb $80 ; fcb $80 ; fcb $84 ; fcb $84 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $84 ; fcb $84 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $84 ; fcb $84 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $84 ; fcb $84 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $84 ; fcb $84 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $84 ; fcb $84 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $84 ; fcb $84 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $84 ; fcb $84 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb 7 fcb $C LUT_C128: fcb $80 ; fcb $80 ; fcb $84 ; fcb $84 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $84 ; fcb $84 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $84 ; fcb $84 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $84 ; fcb $84 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $84 ; fcb $84 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $84 ; fcb $84 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $84 ; fcb $84 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $84 ; fcb $84 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; LUT_C190: fcb $8D ; fcb $90 ; fcb $93 ; fcb $95 ; fcb $99 ; fcb $97 ; fcb $9F ; fcb $A6 ; fcb $B4 ; fcb $BA ; fcb $B3 ; fcb $AE ; fcb $AC ; byte_C19D: fcb 9 ; DATA XREF: sub_DBCC+14r byte_C19E: fcb 2 ; DATA XREF: sub_DBCC:loc_DBEBr byte_C19F: fcb $6A ; DATA XREF: sub_D79C+21r sub_D79C+26r ... byte_C1A0: fcb $20 ; DATA XREF: sub_D79C+2r ; sub_D79C:loc_D7C5r ... byte_C1A1: fcb $28 ; DATA XREF: sub_DC05+9r byte_C1A2: fcb $38 ; DATA XREF: sub_DB30r byte_C1A3: fcb 3 ; DATA XREF: sub_DB46+9r LUT_C1A4: fcb 0 fcb $A fcb 0 fcb 8 LUT_C1A8: fcb 0 fcb $C0 ; fcb 0 fcb $88 ; word_C1AC: fdb $800 ; DATA XREF: sub_D8EF+58r sub_D8EF+5Dr ... word_C1AE: fdb 0 ; DATA XREF: sub_D8EF:loc_D94Fr ; sub_D8EF+65r ... byte_C1B0: fcb $13 ; DATA XREF: sub_DBBA+5r byte_C1B1: fcb $20 ; DATA XREF: sub_D5FCr sub_D95A+44r ... B_C1B2: fcb $B3 ; fcb $19 byte_C1B4: fcb 4 ; DATA XREF: sub_D95A:loc_D972r byte_C1B5: fcb $1E ; DATA XREF: sub_D847+68r LUT_C1B6: fcb 8 fcb $A fcb $A LUT_C1B9: fcb $61 ; a fcb $61 ; a fcb $4B ; K fcb $4B ; K fcb $4B ; K fcb $4B ; K fcb $4B ; K fcb $4B ; K fcb $4B ; K fcb $4B ; K fcb $4B ; K fcb $4B ; K fcb $4B ; K LUT_C1C6: fcb $FF fcb $FF fcb $FF fcb $FF fcb $E6 ; fcb $78 ; x fcb $B7 ; fcb $98 ; fcb $98 ; fcb $58 ; X fcb $82 ; fcb 5 fcb $71 ; q fcb $48 ; H fcb $64 ; d fcb $42 ; B fcb $59 ; Y fcb $D8 ; fcb $51 ; Q fcb $52 ; R fcb $4A ; J fcb $38 ; 8 fcb $44 ; D fcb $35 ; 5 fcb $3F ; ? fcb $E LUT_C1E0: fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $60 ; ` fcb $40 ; @ fcb $30 ; 0 fcb $30 ; 0 fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $40 ; @ fcb $40 ; @ LUT_C1F0: fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $60 ; ` fcb $40 ; @ fcb $30 ; 0 fcb $30 ; 0 fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $40 ; @ fcb $40 ; @ LUT_C200: fcb $9C ; fcb $9C ; fcb $80 ; fcb $40 ; @ fcb $40 ; @ fcb $40 ; @ fcb $40 ; @ fcb $30 ; 0 fcb $9C ; fcb $9C ; fcb $80 ; fcb $60 ; ` fcb $60 ; ` fcb $40 ; @ fcb $40 ; @ fcb $40 ; @ fcb $28 ; ( fcb 4 fcb $40 ; @ LUT_C213: fcb 0 fcb $42 ; B fcb $4A ; J fcb $6F ; o fcb $6F ; o fcb $6F ; o fcb $FA ; fcb $FA ; fcb $FA ; fcb $FA ; fcb $28 ; ( fcb 4 fcb $40 ; @ fcb 0 fcb $42 ; B fcb $4A ; J fcb $6F ; o fcb $6F ; o fcb $6F ; o fcb $FA ; fcb $FA ; fcb $FA ; fcb $FA ; fcb $28 ; ( fcb 4 fcb $40 ; @ fcb 0 fcb 0 fcb $20 fcb $40 ; @ fcb $80 ; fcb $A0 ; fcb $A0 ; fcb $C0 ; fcb $D0 ; fcb $D0 ; fcb $28 ; ( fcb 4 fcb $40 ; @ fcb 0 fcb 0 fcb $80 ; fcb $A0 ; fcb $A0 ; fcb $C0 ; fcb $C0 ; fcb $C0 ; fcb $C0 ; fcb $C0 ; fcb $28 ; ( fcb 4 fcb $40 ; @ fcb 0 fcb 0 fcb $20 fcb $40 ; @ fcb $80 ; fcb $A0 ; fcb $A0 ; fcb $C0 ; fcb $D0 ; fcb $D0 ; fcb $28 ; ( fcb 4 fcb $40 ; @ fcb 0 fcb 0 fcb $80 ; fcb $A0 ; fcb $A0 ; fcb $C0 ; fcb $C0 ; fcb $C0 ; fcb $C0 ; fcb $C0 ; LUT_C52E: fcb $89 ; fcb $89 ; fcb $3E ; > fcb $25 ; % fcb $19 fcb $13 fcb $A fcb $A LUT_C266: fcb $CC ; fcb $9F ; fcb $74 ; t fcb $38 ; 8 fcb $20 fcb $14 fcb 0 fcb $16 LUT_C26E: fcb $CC ; fcb $9F ; fcb $74 ; t fcb $38 ; 8 fcb $20 fcb $14 fcb 0 fcb $16 LUT_C276: fcb 5 fcb 5 fcb 5 fcb 3 fcb 3 fcb 3 fcb 3 fcb 3 fcb $E fcb $E LUT_C280: fcb $5B ; [ fcb $5B ; [ fcb $5B ; [ fcb $36 ; 6 fcb $2A ; * fcb $1B fcb $D fcb 9 fcb 5 fcb 2 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb $5B ; [ fcb $5B ; [ fcb $5B ; [ fcb $36 ; 6 fcb $2A ; * fcb $1B fcb $D fcb 9 fcb 5 fcb 2 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb $5B ; [ fcb $5B ; [ fcb $5B ; [ fcb $36 ; 6 fcb $2A ; * fcb $1B fcb $D fcb 9 fcb 5 fcb 2 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb $5B ; [ fcb $5B ; [ fcb $5B ; [ fcb $36 ; 6 fcb $2A ; * fcb $1B fcb $D fcb 9 fcb 5 fcb 2 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb $5B ; [ fcb $5B ; [ fcb $5B ; [ fcb $36 ; 6 fcb $2A ; * fcb $1B fcb $D fcb 9 fcb 5 fcb 2 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb $5B ; [ fcb $5B ; [ fcb $5B ; [ fcb $36 ; 6 fcb $2A ; * fcb $1B fcb $D fcb 9 fcb 5 fcb 2 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb $5B ; [ fcb $5B ; [ fcb $5B ; [ fcb $36 ; 6 fcb $2A ; * fcb $1B fcb $D fcb 9 fcb 5 fcb 2 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb $5B ; [ fcb $5B ; [ fcb $5B ; [ fcb $36 ; 6 fcb $2A ; * fcb $1B fcb $D fcb 9 fcb 5 fcb 2 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb $5B ; [ fcb $5B ; [ fcb $5B ; [ fcb $36 ; 6 fcb $2A ; * fcb $1B fcb $D fcb 9 fcb 5 fcb 2 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb $5B ; [ fcb $5B ; [ fcb $5B ; [ fcb $36 ; 6 fcb $2A ; * fcb $1B fcb $D fcb 9 fcb 5 fcb 2 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb $5B ; [ fcb $5B ; [ fcb $5B ; [ fcb $36 ; 6 fcb $2A ; * fcb $1B fcb $D fcb 9 fcb 5 fcb 2 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb $5B ; [ fcb $5B ; [ fcb $5B ; [ fcb $36 ; 6 fcb $2A ; * fcb $1B fcb $D fcb 9 fcb 5 fcb 2 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb $5B ; [ fcb $5B ; [ fcb $5B ; [ fcb $36 ; 6 fcb $2A ; * fcb $1B fcb $D fcb 9 fcb 5 fcb 2 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb $5B ; [ fcb $5B ; [ fcb $5B ; [ fcb $36 ; 6 fcb $2A ; * fcb $1B fcb $D fcb 9 fcb 5 fcb 2 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb $5B ; [ fcb $5B ; [ fcb $5B ; [ fcb $36 ; 6 fcb $2A ; * fcb $1B fcb $D fcb 9 fcb 5 fcb 2 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 LUT_C361: fcb $C0 ; fcb $C0 ; fcb $96 ; fcb $66 ; f fcb $33 ; 3 fcb $16 fcb 0 fcb 0 LUT_C369: fcb $80 ; fcb $7A ; z fcb $75 ; u fcb $60 ; ` fcb $3E ; > fcb $19 fcb 5 fcb 2 LUT_C371: fcb $50 ; P fcb 0 fcb $50 ; P fcb 0 fcb $50 ; P fcb 0 fcb $50 ; P fcb 0 fcb $20 fcb 0 fcb $20 fcb 0 fcb $20 fcb 0 fcb $20 fcb 0 fcb $D3 ; fcb $53 ; S fcb $10 LUT_C384: fcb $EB ; fcb $B0 ; fcb $7D ; } fcb $60 ; ` fcb $43 ; C fcb $37 ; 7 fcb $2E ; . fcb $25 ; % fcb $1F fcb 7 fcb $B LUT_C38F: fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb $19 fcb $19 fcb $19 fcb $19 fcb $19 fcb $32 ; 2 fcb $32 ; 2 fcb $32 ; 2 fcb $32 ; 2 fcb $32 ; 2 fcb $32 ; 2 fcb $32 ; 2 fcb $19 fcb $19 fcb $19 fcb $19 fcb $19 fcb $32 ; 2 fcb $32 ; 2 fcb $32 ; 2 fcb $32 ; 2 fcb $32 ; 2 fcb $32 ; 2 fcb $32 ; 2 fcb $19 fcb $19 fcb $19 fcb $19 fcb $19 fcb $32 ; 2 fcb $32 ; 2 fcb $32 ; 2 fcb $32 ; 2 fcb $32 ; 2 fcb $32 ; 2 fcb $32 ; 2 fcb $E ; 15 ???? fcb $C ; 13 ???? FUEL table - active at high load only? FUEL1: fcb 0, 0, 0, 0, 0, 0, 0, 0,$E,$E,$E,$24,$2A; 0 fcb 0, 0, 0, 0, 0, 0, 0, 0,$E,$E,$E,$24,$2A; 13 fcb 0, 0, 0, 0, 0, 0, 0, 0,$E,$E,$E,$24,$2A; 26 fcb 0, 0, 0, 0, 0, 0, 0, 0,$E,$E,$E,$24,$2A; 39 fcb 0, 0, 0, 0, 0, 0, 0, 0,$E,$E,$E,$24,$2A; 52 fcb 7,$10, 9, 9,$10,$13,$13,$13,$13,$13,$13,$24,$2A; 65 fcb 7,$15, 9, 9,$10,$13,$13,$13,$13,$18,$20,$24,$2A; 78 fcb 7,$15,$10,$10,$10,$10,$10,$10,$16,$18,$22,$24,$2A; 91 fcb $10,$15,$10,$10,$10,$10,$10,$10,$16,$20,$22,$24,$2A; 104 fcb $10,$15,$10,$10,$10,$10,$10,$10,$16,$20,$22,$24,$2A; 117 fcb $10,$15,$10,$10,$10,$10,$10,$10,$16,$20,$22,$24,$2A; 130 fcb $10,$15,$10,$10,$10,$10,$10,$10,$16,$20,$22,$2D,$34; 143 fcb $10,$15,$10,$10,$10,$10,$10,$10,$16,$29,$2D,$2D,$34; 156 fcb $10,$15,$10,$10,$10,$10,$10,$10,$16,$29,$2D,$2D,$34; 169 fcb $10,$15,$10,$10,$10,$10,$10,$10,$16,$29,$2D,$2D,$34; 182 byte_C4B4: fcb 2 ; DATA XREF: sub_DC60r ; sub_DC76:loc_DD99r byte_C4B5: fcb $C0 ; DATA XREF: sub_E228+10r byte_C4B6: fcb 8 ; DATA XREF: sub_DC76+114r byte_C4B7: fcb 1 ; DATA XREF: sub_DC76+91r byte_C4B8: fcb $38 ; DATA XREF: sub_DC76+B9r byte_C4B9: fcb $38 ; DATA XREF: sub_DC76+C1r byte_C4BA: fcb $50 ; DATA XREF: sub_DC76:loc_DCBAr byte_C4BB: fcb $32 ; DATA XREF: sub_DC76+191r ; sub_DC76+20Br ... byte_C4BC: fcb $4B ; DATA XREF: sub_E1FF+17r byte_C4BD: fcb 4 ; DATA XREF: sub_DC76+143r byte_C4BE: fcb 0 ; DATA XREF: sub_E317:loc_E32Fr byte_C4BF: fcb $45 ; DATA XREF: sub_DC76+F9r ; sub_DC76+13Er ... byte_C4C0: fcb $80 ; DATA XREF: sub_E0F3:loc_E1B0r ; sub_E0F3+C6r B_C4C1: fcb $FF fcb 0 byte_C4C3: fcb $45 ; DATA XREF: sub_E0F3+E0r byte_C4C4: fcb $40 ; DATA XREF: sub_E248+1Fr byte_C4C5: fcb 1 ; DATA XREF: sub_E271+4r byte_C4C6: fcb $3B ; DATA XREF: sub_E271:loc_E27Br byte_C4C7: fcb 8 ; DATA XREF: sub_E248+14r B_C4C8: fcb $95 ; fcb $78 ; x byte_C4CA: fcb $C0 ; DATA XREF: sub_E0F3+59r sub_E0F3+71r byte_C4CB: fcb $E0 ; DATA XREF: sub_E358:loc_E360r byte_C4CC: fcb $50 ; DATA XREF: sub_E2B0+3Cr byte_C4CD: fcb $D ; DATA XREF: sub_E2B0+5r byte_C4CE: fcb $A0 ; DATA XREF: sub_E2B0+20r byte_C4CF: fcb $18 ; DATA XREF: sub_E378+45r fcb $F3 ; fcb $53 ; S fcb $10 LUT_C4D3: fcb $C0 ; fcb $C0 ; fcb $C0 ; fcb $B5 ; fcb $9D ; fcb $84 ; fcb $70 ; p fcb $66 ; f fcb $5A ; Z fcb $50 ; P fcb $4E ; N LUT_C4DE: fcb $2B ; + fcb $2B ; + fcb $2B ; + fcb $2B ; + fcb $2B ; + fcb $2B ; + fcb $2B ; + fcb $2B ; + fcb $2B ; + fcb $2B ; + fcb $2B ; + LUT_C4E9: fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb $11 fcb $11 fcb $11 fcb $11 Ignition timing at idle? IGN_LUT_1A: fcb $56,$56,$80,$9A,$B3,$C0,$C5,$C8; 0 IGN_LUT_1B: fcb $56,$56,$6A,$80,$B3,$C0,$C5,$C8; 0 IGN_LUT_1C: fcb $56,$56,$6A,$80,$B3,$C0,$C5,$C8; 0 IGN_LUT_1D: fcb $56,$56,$6A,$80,$B3,$C0,$C5,$C8; 0 IGN_LUT_1E: fcb $56,$56,$6A,$80,$B3,$C0,$C5,$C8; 0 LUT_C520: fcb $2B ; + fcb $40 ; @ fcb $40 ; @ fcb $2B ; + fcb $2B ; + fcb $2B ; + fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb $E ; 15 rows fcb $D ; 14 columns Ign timing - medium loads IGN_LUT2_0: fcb $56,$56,$6A,$80,$A3,$B0,$B5,$B8,$C1,$A7,$A3,$B0,$B0,$B0; 0 fcb $56,$56,$6A,$80,$85,$B0,$B5,$B8,$C1,$A7,$A3,$B0,$B0,$B0; 14 fcb $60,$70,$90,$9A,$B3,$B7,$BC,$C0,$C8,$B3,$AE,$B7,$B7,$B7; 28 fcb $77,$77,$95,$9D,$AA,$B3,$B8,$BB,$C0,$AE,$AA,$B3,$B3,$B3; 42 fcb $6A,$6A,$88,$91,$A2,$AA,$A7,$B3,$B7,$A6,$A2,$AA,$AA,$AA; 56 fcb $59,$59,$6E,$7F,$9D,$A2,$AE,$AA,$AE,$A2,$9D,$A6,$A6,$A6; 70 fcb $3C,$3C,$5D,$77,$88,$95,$9D,$A2,$9D,$9D,$99,$9D,$9D,$9D; 84 fcb $26,$26,$43,$5D,$6A,$7B,$8C,$99,$95,$99,$95,$99,$99,$99; 98 fcb $26,$26,$43,$54,$65,$72,$7F,$78,$95,$95,$95,$95,$95,$95; 112 fcb $21,$21,$43,$54,$65,$72,$7F,$78,$95,$95,$91,$8B,$8B,$8B; 126 fcb $21,$21,$43,$54,$65,$72,$7F,$78,$95,$95,$8C,$88,$88,$88; 140 fcb $21,$21,$43,$54,$65,$72,$7F,$78,$95,$95,$8C,$86,$86,$86; 154 fcb $21,$21,$43,$54,$65,$72,$7F,$78,$95,$95,$8C,$86,$86,$86; 168 fcb $21,$21,$43,$54,$65,$72,$7F,$78,$95,$95,$8C,$86,$86,$86; 182 fcb $21,$21,$43,$54,$65,$72,$7F,$78,$95,$95,$8C,$86,$86,$86; 196 fcb $E fcb $D Ign timing - cold/start IGN_LUT3: fcb $56,$56,$6A,$80,$A3,$B0,$B5,$B8,$C1,$A7,$A3,$B0,$B0,$B0; 0 fcb $56,$56,$6A,$80,$85,$B0,$B5,$B8,$C1,$A7,$A3,$B0,$B0,$B0; 14 fcb $60,$70,$90,$9A,$B3,$B7,$BC,$C0,$C8,$B3,$AE,$B7,$B7,$B7; 28 fcb $77,$77,$95,$9D,$AA,$B3,$B8,$BB,$C0,$AE,$AA,$B3,$B3,$B3; 42 fcb $6A,$6A,$88,$91,$A2,$AA,$A7,$B3,$B7,$A6,$A2,$AA,$AA,$AA; 56 fcb $59,$59,$6E,$7F,$9D,$A2,$AE,$AA,$AE,$A2,$9D,$A6,$A6,$A6; 70 fcb $3C,$3C,$5D,$77,$88,$95,$9D,$A2,$9D,$9D,$99,$9D,$9D,$9D; 84 fcb $26,$26,$43,$5D,$6A,$7B,$8C,$99,$95,$99,$95,$99,$99,$99; 98 fcb $26,$26,$43,$54,$65,$72,$7F,$78,$95,$95,$95,$95,$95,$95; 112 fcb $21,$21,$43,$54,$65,$72,$7F,$78,$95,$95,$91,$8B,$8B,$8B; 126 fcb $21,$21,$43,$54,$65,$72,$7F,$78,$95,$95,$8C,$88,$88,$88; 140 fcb $21,$21,$43,$54,$65,$72,$7F,$78,$95,$95,$8C,$86,$86,$86; 154 fcb $21,$21,$43,$54,$65,$72,$7F,$78,$95,$95,$8C,$86,$86,$86; 168 fcb $21,$21,$43,$54,$65,$72,$7F,$78,$95,$95,$8C,$86,$86,$86; 182 fcb $21,$21,$43,$54,$65,$72,$7F,$78,$95,$95,$8C,$86,$86,$86; 196 word_C6D5: fdb $186A ; DATA XREF: sub_E45B+12r sub_E910+5r ... word_C6D7: fdb 0 ; DATA XREF: sub_E910:loc_E958r ; sub_E910+4Dr ... word_C6D9: fdb $226 ; DATA XREF: sub_E910+5Ar byte_C6DB: fcb 2 ; DATA XREF: sub_EE8D+14r LUT_C6DC: fcb 0 fcb 3 fcb 8 fcb $D fcb 8 fcb $C fcb $15 fcb $18 fcb $45 ; E fcb $48 ; H fcb $45 ; E fcb $58 ; X fcb $45 ; E fcb $58 ; X fcb $45 ; E fcb $64 ; d fcb $10 fcb $13 fcb $18 fcb $23 ; # fcb $18 fcb $1C fcb $20 fcb $26 ; & fcb $50 ; P fcb $70 ; p fcb $50 ; P fcb $88 ; fcb $50 ; P fcb $80 ; fcb $50 ; P fcb $88 ; fcb 0 fcb 3 fcb 8 fcb $D fcb 8 fcb $C fcb $15 fcb $18 fcb $45 ; E fcb $48 ; H fcb $45 ; E fcb $58 ; X fcb $45 ; E fcb $58 ; X fcb $45 ; E fcb $64 ; d fcb $10 fcb $13 fcb $18 fcb $23 ; # fcb $18 fcb $1C fcb $20 fcb $26 ; & fcb $50 ; P fcb $70 ; p fcb $50 ; P fcb $88 ; fcb $50 ; P fcb $80 ; fcb $50 ; P fcb $88 ; fcb 0 fcb 3 fcb 8 fcb $D fcb 8 fcb $C fcb $15 fcb $18 fcb $45 ; E fcb $48 ; H fcb $45 ; E fcb $58 ; X fcb $45 ; E fcb $58 ; X fcb $45 ; E fcb $64 ; d fcb $10 fcb $13 fcb $18 fcb $23 ; # fcb $18 fcb $1C fcb $20 fcb $26 ; & fcb $50 ; P fcb $70 ; p fcb $50 ; P fcb $88 ; fcb $50 ; P fcb $80 ; fcb $50 ; P fcb $88 ; byte_C73C: fcb $30 ; DATA XREF: sub_E552+3Ar byte_C73D: fcb $20 ; DATA XREF: sub_E552+62r byte_C73E: fcb 8 ; DATA XREF: sub_E552+8Br byte_C73F: fcb $A0 ; DATA XREF: sub_E552+AFr byte_C740: fcb $30 ; DATA XREF: sub_E552+D3r byte_C741: fcb $20 ; DATA XREF: sub_E687+Ar byte_C742: fcb $10 ; DATA XREF: sub_E687+20r byte_C743: fcb 4 ; DATA XREF: sub_E687+36r byte_C744: fcb $30 ; DATA XREF: sub_E687+49r byte_C745: fcb 4 ; DATA XREF: sub_E687+5Cr byte_C746: fcb 2 ; DATA XREF: sub_E687+6Fr byte_C747: fcb 3 ; DATA XREF: sub_E746+2Fr byte_C748: fcb 8 ; DATA XREF: sub_E746+24r byte_C749: fcb $66 ; DATA XREF: sub_E746:loc_E77Cr ; sub_E746+3Br byte_C74A: fcb $B0 ; DATA XREF: sub_E9DA+9Ar sub_E9DA+A8r byte_C74B: fcb $80 ; DATA XREF: sub_E9DA+6Br byte_C74C: fcb $80 ; DATA XREF: sub_E9DA+13r byte_C74D: fcb $80 ; DATA XREF: sub_E9DA+3Fr byte_C74E: fcb $66 ; DATA XREF: sub_E9DA+73r sub_E9DA+78r byte_C74F: fcb $66 ; DATA XREF: sub_E9DA+1Br sub_E9DA+20r byte_C750: fcb $66 ; DATA XREF: sub_E9DA+47r sub_E9DA+4Cr byte_C751: fcb $66 ; DATA XREF: sub_E9DA+80r sub_E9DA+85r byte_C752: fcb $66 ; DATA XREF: sub_E9DA+28r sub_E9DA+2Dr byte_C753: fcb $66 ; DATA XREF: sub_E9DA+54r sub_E9DA+59r word_C754: fdb $400 ; DATA XREF: sub_E552+121r ; sub_E552+126r word_C756: fdb $333 ; DATA XREF: sub_EC5F+8r ; sub_EC5F:loc_EDBDr ... word_C758: fdb $19A ; DATA XREF: sub_EC5F+17r ; sub_EC5F+156r ... byte_C75A: fcb $13 ; DATA XREF: sub_E45Br sub_EB0B+8Fr byte_C75B: fcb $40 ; DATA XREF: sub_E45B+6r sub_EACC+1Fr ... byte_C75C: fcb $20 ; DATA XREF: sub_E45B+Cr sub_EC5F+E7r ... byte_C75D: fcb 1 ; DATA XREF: sub_EECBr byte_C75E: fcb $20 ; DATA XREF: sub_EACC+22r word_C75F: fdb $200 ; DATA XREF: sub_EC5F+51r ; sub_EC5F:loc_ECC9r byte_C761: fcb $FF ; DATA XREF: sub_EC5F+56r ; sub_EC5F:loc_ECC0r byte_C762: fcb 2 ; DATA XREF: sub_EE37:loc_EE45r B_C763: fcb 6 B_C764: fcb 6 B_C765: fcb $10 B_C766: fcb 6 B_C767: fcb 6 B_C768: fcb $10 B_C769: fcb 6 B_C76A: fcb 6 B_C76B: fcb $10 B_C76C: fcb 6 B_C76D: fcb 6 B_C76E: fcb $10 B_C76F: fcb 2 B_C770: fcb 2 B_C771: fcb 2 B_C772: fcb 2 B_C773: fcb 2 B_C774: fcb 2 B_C775: fcb 2 B_C776: fcb 2 fcb 2 byte_C778: fcb 0 ; DATA XREF: sub_D2E1+76r B_C779: fcb $20 fcb $20 byte_C77B: fcb $2E ; DATA XREF: sub_EB0B+E4r sub_EC08+50r byte_C77C: fcb $9A ; DATA XREF: sub_EC08+45r ; sub_EC08:loc_EC52r W_C77D: fdb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 LUT_C785: fcb $20 fcb $20 fcb $20 fcb $20 fcb 0 fcb 0 fcb 0 fcb 0 LUT_C78D: fcb $20 fcb $20 fcb $20 fcb $20 fcb 0 fcb 0 fcb 0 fcb 0 LUT_C795: fcb 8 fcb $E fcb 9 fcb $53 ; S fcb 9 fcb $F6 ; fcb $A fcb $73 ; s fcb $A fcb $E9 ; fcb $B fcb $60 ; ` fcb $B fcb $DD ; fcb $C fcb $67 ; g fcb $C fcb $F0 ; fcb $D fcb $8C ; fcb $E fcb $29 ; ) fcb $E fcb $D8 ; fcb $F fcb $AC ; fcb $10 fcb $A0 ; fcb $11 fcb $B9 ; fcb $13 fcb 4 fcb $14 fcb $82 ; fcb $17 fcb $25 ; % fcb $17 fcb $25 ; % fcb $A0 ; fcb $10 fcb $10 LUT_C7BE: fcb 0 fcb 1 fcb 2 fcb 2 fcb 3 fcb 3 fcb 4 fcb 5 fcb 7 fcb $D LUT_C7C8: fcb $19 fcb $19 fcb $19 fcb $2C ; , fcb $3B ; ; fcb $4D ; M fcb $5D ; ] fcb $71 ; q LUT_C7D0: fcb 0 fcb $CC ; fcb 0 fcb $CC ; fcb 0 fcb $98 ; fcb 0 fcb $66 ; f fcb 1 fcb 0 fcb 1 fcb 0 fcb 1 fcb $68 ; h fcb 1 fcb $68 ; h LUT_C7E0: fcb 4 fcb 0 fcb 4 fcb 0 fcb 4 fcb 0 fcb 4 fcb 0 fcb 3 fcb $9A ; fcb 3 fcb $9A ; fcb 3 fcb $9A ; fcb 3 fcb $9A ; LUT_C7F0: fcb $FF fcb $F0 ; fcb $9A ; fcb $60 ; ` fcb $40 ; @ fcb $40 ; @ fcb $38 ; 8 fcb $38 ; 8 LUT_C7F8: fcb $FF fcb $F0 ; fcb $9A ; fcb $60 ; ` fcb $40 ; @ fcb $40 ; @ fcb $38 ; 8 fcb $38 ; 8 LUT_C800: fcb $10 fcb $10 fcb $A fcb $A fcb 7 fcb 7 fcb 7 fcb 7 LUT_C808: fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 fcb 0 LUT_C810: fcb 1,$99,1,$99,1,$66,1,$33; 0 fcb 0,$99,0,$40,0,$30,0,$30; 8 LUT_C820: fcb 1 fcb $99 ; fcb 1 fcb $99 ; fcb 1 fcb $66 ; f fcb 1 fcb $33 ; 3 fcb 0 fcb $99 ; fcb 0 fcb $40 ; @ fcb 0 fcb $30 ; 0 fcb 0 fcb $30 ; 0 LUT_C830: fcb 1 fcb $99 ; fcb 1 fcb $99 ; fcb 1 fcb $66 ; f fcb 1 fcb $33 ; 3 fcb 0 fcb $99 ; fcb 0 fcb $40 ; @ fcb 0 fcb $30 ; 0 fcb 0 fcb $30 ; 0 LUT_C840: fcb $E6 ; fcb $E6 ; fcb $C0 ; fcb $B3 ; fcb $80 ; fcb $6D ; m fcb $6D ; m fcb $6D ; m LUT_C848: fcb $E6 ; fcb $E6 ; fcb $C0 ; fcb $B3 ; fcb $80 ; fcb $6D ; m fcb $6D ; m fcb $6D ; m LUT_C850: fcb $E6 ; fcb $E6 ; fcb $C0 ; fcb $B3 ; fcb $80 ; fcb $6D ; m fcb $6D ; m fcb $6D ; m LUT_C858: fcb $40 ; @ fcb $40 ; @ fcb $40 ; @ fcb $40 ; @ fcb $40 ; @ fcb $40 ; @ fcb $40 ; @ fcb $40 ; @ LUT_C860: fcb $40 ; @ fcb $40 ; @ fcb $40 ; @ fcb $40 ; @ fcb $40 ; @ fcb $40 ; @ fcb $40 ; @ fcb $40 ; @ LUT_C868: fcb $70 ; p fcb $77 ; w fcb $80 ; fcb $89 ; fcb $95 ; fcb $A0 ; fcb $AB ; fcb $BA ; LUT_C870: fcb $29 ; ) fcb $38 ; 8 fcb $46 ; F fcb $54 ; T fcb $63 ; c fcb $72 ; r fcb $80 ; fcb $8F ; fcb $E0 ; fcb $80 ; fcb 8 LUT_C87B: fcb 1 fcb 1 fcb 1 fcb 1 fcb $D3 ; fcb $53 ; S fcb $10 LUT_C882: fcb $E8 ; fcb $CB ; fcb $B4 ; fcb $A2 ; fcb $94 ; fcb $89 ; fcb $80 ; fcb $78 ; x fcb $71 ; q LUT_C88B: fcb $10 fcb 0 byte_C88D: fcb $23 ; DATA XREF: sub_F057r byte_C88E: fcb $23 ; DATA XREF: sub_F057+8r byte_C88F: fcb $58 ; DATA XREF: sub_F057+19r byte_C890: fcb $10 ; DATA XREF: sub_EFDD+1Dr byte_C891: fcb $A ; DATA XREF: sub_F057+34r byte_C892: fcb $FF ; DATA XREF: sub_EF7C+49r byte_C893: fcb 0 ; DATA XREF: sub_EFDD+31r byte_C894: fcb 0 ; DATA XREF: sub_F057+47r byte_C895: fcb 0 ; DATA XREF: sub_EF41+Er byte_C896: fcb 0 ; DATA XREF: sub_EF41+9r byte_C897: fcb 0 ; DATA XREF: sub_EF41+2r fcb $FF fcb 0 fcb $10 LUT_C89B: fcb $A,$F,$17,$1F,$26,$2F,$37,$3E; 0 fcb $47,$4F,$58,$60,$66,$70,$78,$7C; 8 fcb $80 ; 16 LUT_C8AC: fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $80 ; fcb $D3 ; fcb $53 ; S fcb $10 LUT_C8B7: fcb $9F ; fcb $96 ; fcb $8D ; fcb $86 ; fcb $83 ; fcb $81 ; fcb $80 ; fcb $7F ;  fcb $7E ; ~ fcb 7 fcb $10 LUT_C8C2: fcb 0 fcb $50 ; P fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb 0 fcb $50 ; P fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb 0 fcb $50 ; P fcb $A0 ; fcb $A0 ; fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb 0 fcb 0 fcb $A0 ; fcb $A0 ; fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb 0 fcb 0 fcb $A0 ; fcb $A0 ; fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb 0 fcb 0 fcb $A0 ; fcb $A0 ; fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb 0 fcb 0 fcb $A0 ; fcb $A0 ; fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb 0 fcb 0 fcb $A0 ; fcb $A0 ; fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb 7 fcb $10 LUT_C94C: fcb 0 fcb $50 ; P fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb 0 fcb $50 ; P fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb $A0 ; fcb 0 fcb $50 ; P fcb $A0 ; fcb $A0 ; fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb 0 fcb 0 fcb $A0 ; fcb $A0 ; fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb 0 fcb 0 fcb $A0 ; fcb $A0 ; fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb 0 fcb 0 fcb $A0 ; fcb $A0 ; fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb 0 fcb 0 fcb $A0 ; fcb $A0 ; fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb 0 fcb 0 fcb $A0 ; fcb $A0 ; fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF fcb $FF byte_C9D4: fcb $B ; DATA XREF: sub_F3C5+46r byte_C9D5: fcb 2 ; DATA XREF: sub_F3C5:loc_F405r byte_C9D6: fcb $3D ; DATA XREF: sub_F0C0r sub_F3C5r byte_C9D7: fcb $26 ; DATA XREF: sub_D399+Fr byte_C9D8: fcb $10 ; DATA XREF: sub_D399:loc_D3B1r byte_C9D9: fcb 6 ; DATA XREF: sub_D5FC+5r fcb $F8 ; fcb 8 ; --------------------------------------------------------------------------- ; START OF FUNCTION CHUNK FOR sub_F456 START: ; CODE XREF: sub_F456:loc_F4F6J ; sub_F456:loc_F524J sei lds #$17F oim #$40, RAMCR ; '@' ; enable RAM? ldaa #1 staa byte_1F ldaa #$B staa TCSR1 ldaa #$11 staa byte_18 ldaa #$AA ; '' staa byte_2E ldaa #$E0 ; '' staa byte_20 ldaa #$E0 ; '' staa byte_28 ldd #$FFFF std PORT1 ldd #$1E16 std P1DDR ldd #$4000 std byte_26 ldd #$81A std RMCR ldd #$FFFF jsr sub_FFC0 nop nop nop nop tim #$80, RAMCR ; '' bne loc_CA23 clra staa byte_40 bra loc_CA3C ; --------------------------------------------------------------------------- loc_CA23: ; CODE XREF: sub_F456-2A3Aj ldx #$40 ; '@' loc_CA26: ; CODE XREF: sub_F456-2A22j ldd 0,x xgdx cpx #$AA55 xgdx bne loc_CA3A inx inx cpx #$50 ; 'P' bcs loc_CA26 ldaa #$5A ; 'Z' bra loc_CA3C ; --------------------------------------------------------------------------- loc_CA3A: ; CODE XREF: sub_F456-2A29j ldaa #$50 ; 'P' loc_CA3C: ; CODE XREF: sub_F456-2A35j ; sub_F456-2A1Ej staa byte_4D clra clrb ldx #$50 ; 'P' Init_RAM: ; CODE XREF: sub_F456-2A0Cj std 0,x inx inx cpx #$17F bcs Init_RAM ldd #$FFFF std byte_B0 std byte_B4 staa byte_AC staa byte_AD ldaa #4 staa byte_A7 ldaa #$90 ; '' staa byte_64 ldaa #1 staa byte_6E ldaa #1 staa byte_73 ldaa #4 staa byte_D5 ldaa #$80 ; '' staa byte_D7 ldaa #$10 staa byte_DD ldaa #1 staa byte_74 ldaa #$45 ; 'E' staa byte_ED ldaa #1 staa byte_76 ldaa #$20 ; ' ' staa byte_77 ldaa #2 staa word_11D eim #$10, PORT1 ldaa TRCSR1 ldaa RDR ; Get Rx data ldaa #$5F ; '_' staa byte_82 bsr sub_CAC2 ldaa #0 staa byte_82 bsr sub_CAC2 bsr sub_CAC5 ldaa #1 staa byte_82 bsr sub_CAC2 ldaa #2 staa byte_82 bsr sub_CAC2 bsr sub_CAC5 ldaa #3 staa byte_82 bsr sub_CAC2 ldaa #$2F ; '/' staa byte_82 bsr sub_CAC2 ldaa #$3F ; '?' staa byte_82 bsr sub_CAC2 eim #$10, PORT1 bra loc_CAE1 ; END OF FUNCTION CHUNK FOR sub_F456 ; =============== S U B R O U T I N E ======================================= sub_CAC2: ; CODE XREF: sub_F456-29C3p ; sub_F456-29BDp ... jsr sub_CE2A ; End of function sub_CAC2 ; =============== S U B R O U T I N E ======================================= sub_CAC5: ; CODE XREF: sub_F456-29BBp ; sub_F456-29ADp ldaa TCSR1 ldd FRCH addd #$7D0 std OCR1H loc_CACE: ; CODE XREF: sub_CAC5+11j tim #$40, TCSR1 ; '@' bne loc_CADC tim #$C0, TRCSR1 ; '' beq loc_CACE jsr SCI_INT_HNDLR rts ; --------------------------------------------------------------------------- loc_CADC: ; CODE XREF: sub_CAC5+Cj ldaa #8 staa byte_72 pulx loc_CAE1: ; CODE XREF: sub_F456-2996j clra staa byte_82 jsr sub_CD79 oim #$80, RAMCR ; '' jsr sub_F114 jsr sub_CDCC jsr sub_D5FC jsr sub_DC60 jsr sub_E45B jsr sub_EF0D jsr sub_F0C0 eim #$10, PORT1 ldaa TCSR1 ldd ICRH ldd FRCH std OCR1H ldaa byte_18 ldd byte_1D ldd byte_19 std byte_1B tim #1, PORT1 bne loc_CB1A oim #2, byte_18 loc_CB1A: ; CODE XREF: sub_CAC5+50j ldaa unk_2D ldd FRCH std unk_23 ldaa unk_2D ldd byte_19 addd #$32 ; '2' std unk_2B std unk_13D ldaa TRCSR1 ldaa RDR ; Get Rx data clra staa unk_25 ldaa FRCH suba #8 staa unk_81 Init?: ; CODE XREF: sub_CAC5+151J ; sub_CAC5+19FJ lds #$17F ldd #$1E16 std P1DDR sei clra staa P3CSR jsr sub_FFCA nop nop ldaa #$40 ; '@' staa byte_26 ldaa #0 staa unk_27 ldaa #1 staa byte_1F oim #$C0, RAMCR ; '' oim #$A, TCSR1 oim #$18, byte_18 oim #$A0, byte_20 ; '' oim #$A0, byte_28 ; '' cli ldx byte_B0 sei ldaa byte_5F anda #$9F ; '' cpx #$BB8 bcs loc_CB79 cpx #$EA6 bcs loc_CB7B bra loc_CB7D ; --------------------------------------------------------------------------- loc_CB79: ; CODE XREF: sub_CAC5+ABj oraa #$40 ; '@' loc_CB7B: ; CODE XREF: sub_CAC5+B0j oraa #$20 ; ' ' loc_CB7D: ; CODE XREF: sub_CAC5+B2j staa byte_5F cli jsr sub_CD6C jsr sub_CE19 tim #1, byte_5E beq loc_CBB3 clr byte_C0 aim #$FD, byte_70 ; '' aim #$FD, byte_63 ; '' jsr sub_CF91 jsr sub_E378 jsr sub_E0F3 jsr sub_E1FF jsr sub_E271 tim #$20, byte_5F ; ' ' beq loc_CBAD tim #8, byte_5E beq loc_CBB0 loc_CBAD: ; CODE XREF: sub_CAC5+E1j jsr sub_CFED loc_CBB0: ; CODE XREF: sub_CAC5+E6j aim #$FE, byte_5E ; '' loc_CBB3: ; CODE XREF: sub_CAC5+C4j tim #2, byte_5E beq loc_CBBE jsr sub_E228 aim #$FD, byte_5E ; '' loc_CBBE: ; CODE XREF: sub_CAC5+F1j tim #8, byte_5E beq loc_CBCF jsr sub_DB46 jsr sub_DC35 jsr sub_DC05 aim #$F7, byte_5E ; '' loc_CBCF: ; CODE XREF: sub_CAC5+FCj tim #2, byte_5F beq loc_CBE9 jsr sub_D0BE jsr sub_D244 jsr sub_D75F jsr sub_D790 jsr sub_D79C jsr sub_D296 aim #$FD, byte_5F ; '' loc_CBE9: ; CODE XREF: sub_CAC5+10Dj tim #1, byte_5F beq loc_CBFD aim #$FE, byte_5F ; '' jsr sub_D45E jsr sub_D847 jsr sub_E248 jsr sub_EF41 loc_CBFD: ; CODE XREF: sub_CAC5+127j jsr sub_CD6C jsr sub_CE19 tim #$40, byte_5E ; '@' beq loc_CC0E aim #$BF, byte_5E ; '' jsr sub_F1C7 loc_CC0E: ; CODE XREF: sub_CAC5+141j ldd FRCH anda #$E0 ; '' cmpa byte_7E bne loc_CC19 jmp Init? ; --------------------------------------------------------------------------- loc_CC19: ; CODE XREF: sub_CAC5+14Fj staa byte_7E jsr sub_D2D8 jsr sub_D2E1 jsr sub_D365 jsr sub_D399 jsr sub_D3B8 jsr sub_D47E jsr sub_CD6C jsr sub_D7DD jsr sub_D8BC jsr sub_D8EF jsr sub_DA01 jsr sub_DA8B jsr sub_E284 jsr sub_E2B0 jsr sub_CD6C jsr sub_CE19 ldaa unk_7F inca staa unk_7F ldx #$CC67 ; base address of jump table loc_CC53: ; CODE XREF: sub_CAC5+193j lsra bcc loc_CC5A ; get address of sub inx inx bra loc_CC53 ; --------------------------------------------------------------------------- loc_CC5A: ; CODE XREF: sub_CAC5+18Fj ldx 0,x ; get address of sub jsr 0,x ; indexed jump to sub jsr sub_CD6C jsr sub_CE19 jmp Init? ; End of function sub_CAC5 ; --------------------------------------------------------------------------- JUMP_TABLE_1: fdb $CC79 fdb $CCA6 fdb $CCC5 fdb $CCDD fdb $CCFE fdb $CD3D fdb $CD52 fdb $CD67 fdb $CD6B ; --------------------------------------------------------------------------- jsr sub_E2FE jsr sub_E317 jsr sub_E34B jsr sub_E358 tim #$40, byte_5F ; '@' bne locret_CCA5 jsr sub_E529 jsr sub_E552 jsr sub_E722 jsr sub_E788 jsr sub_E83B jsr sub_E86D jsr sub_E8EC jsr sub_E904 jsr sub_E910 locret_CCA5: ; CODE XREF: ROM:CC88j rts ; --------------------------------------------------------------------------- jsr sub_D495 jsr sub_D4E2 jsr sub_DACF jsr sub_DB30 jsr sub_DB58 jsr sub_DB80 jsr sub_DBA3 jsr sub_F3AE jsr sub_F3B8 jsr sub_F3C5 rts ; --------------------------------------------------------------------------- jsr sub_D4EE jsr sub_EF56 jsr sub_EF7C jsr sub_EFDD jsr sub_F456 tim #$40, byte_5F ; '@' bne locret_CCDC jsr sub_E687 locret_CCDC: ; CODE XREF: ROM:CCD7j rts ; --------------------------------------------------------------------------- jsr sub_D50A tim #$40, byte_5F ; '@' bne loc_CCFA jsr sub_E985 jsr sub_E746 jsr sub_E9DA jsr sub_EACC jsr sub_EB0B jsr sub_EC08 jsr sub_EC5F loc_CCFA: ; CODE XREF: ROM:CCE3j jsr sub_F44C rts ; --------------------------------------------------------------------------- jsr sub_CD79 jsr sub_D52A jsr sub_D559 jsr sub_D564 jsr sub_D571 jsr sub_E426 jsr sub_E43C jsr sub_E447 tim #$40, byte_5F ; '@' bne loc_CD24 jsr sub_EE37 jsr sub_EE57 jsr sub_EE8D loc_CD24: ; CODE XREF: ROM:CD19j jsr sub_DBAB jsr sub_DBBA jsr sub_DBCC jsr sub_DBF5 jsr sub_DC1A jsr sub_DC55 jsr sub_F057 jsr sub_F0A8 rts ; --------------------------------------------------------------------------- jsr sub_D59E jsr sub_D5C1 jsr sub_CF7E tim #$40, byte_5F ; '@' bne locret_CD51 jsr sub_EEAB jsr sub_EEBF locret_CD51: ; CODE XREF: ROM:CD49j rts ; --------------------------------------------------------------------------- jsr sub_D5D5 tim #$40, byte_5F ; '@' bne loc_CD63 jsr sub_EECB jsr sub_EEDD jsr sub_EEF1 loc_CD63: ; CODE XREF: ROM:CD58j jsr sub_F0B4 rts ; --------------------------------------------------------------------------- jsr sub_D5E0 rts ; --------------------------------------------------------------------------- fcb $39 ; 9 ; =============== S U B R O U T I N E ======================================= sub_CD6C: ; CODE XREF: sub_CAC5+BBP ; sub_CAC5:loc_CBFDP ... tim #$80, byte_5E ; '' bne loc_CD72 rts ; --------------------------------------------------------------------------- loc_CD72: ; CODE XREF: sub_CD6C+3j aim #$7F, byte_5E ; '' eim #$10, PORT1 rts ; End of function sub_CD6C ; =============== S U B R O U T I N E ======================================= sub_CD79: ; CODE XREF: sub_CAC5+1FP ROM:CCFEP ldx byte_40 cpx #$A5A5 bne loc_CD88 ldx unk_4E cpx #$A5A5 bne loc_CD88 rts ; --------------------------------------------------------------------------- loc_CD88: ; CODE XREF: sub_CD79+5j sub_CD79+Cj clra clrb ldx #$4B ; 'K' loc_CD8D: ; CODE XREF: sub_CD79+1Bj std 0,x dex dex cpx #$40 ; '@' bhi loc_CD8D ldaa #2 staa byte_45 staa byte_47 staa byte_49 ldx #$A5A5 stx byte_40 stx unk_4E rts ; End of function sub_CD79 ; --------------------------------------------------------------------------- tim #$40, byte_18 ; '@' beq loc_CDAE jsr sub_E05C loc_CDAE: ; CODE XREF: ROM:CDA9j tim #$40, TCSR1 ; '@' beq locret_CDB6 jsr sub_D61A locret_CDB6: ; CODE XREF: ROM:CDB1j rti ; --------------------------------------------------------------------------- tim #$40, unk_2D ; '@' beq loc_CDBF jsr sub_D622 loc_CDBF: ; CODE XREF: ROM:CDBAj tim #$80, unk_2D ; '' beq locret_CDC7 jsr sub_E48C locret_CDC7: ; CODE XREF: ROM:CDC2j rti ; --------------------------------------------------------------------------- jsr sub_DC76 rti ; =============== S U B R O U T I N E ======================================= sub_CDCC: ; CODE XREF: sub_CAC5+28P clrb ldx #$C010 tim #8, byte_63 bne loc_CDD8 ldx #$C014 loc_CDD8: ; CODE XREF: sub_CDCC+7j tim #8, byte_68 beq loc_CDE4 tim #4, byte_6D beq loc_CDE4 bra loc_CDE6 ; --------------------------------------------------------------------------- loc_CDE4: ; CODE XREF: sub_CDCC+Fj sub_CDCC+14j incb incb loc_CDE6: ; CODE XREF: sub_CDCC+16j abx ldaa 0,x nega staa unk_C3 ldaa word_C01B staa byte_C5 ldaa word_C01B+1 staa byte_C6 ldaa byte_C01A staa byte_C4 oim #2, byte_63 ldaa byte_C01D staa byte_BE jsr sub_D2E1 jsr sub_D52A jsr sub_D5D5 jsr sub_D3B8 jsr sub_D559 jsr sub_D59E jsr sub_D5C1 rts ; End of function sub_CDCC ; =============== S U B R O U T I N E ======================================= sub_CE19: ; CODE XREF: sub_CAC5+BEP ; sub_CAC5+13BP ... tim #$20, byte_72 ; ' ' beq loc_CE1F rts ; --------------------------------------------------------------------------- loc_CE1F: ; CODE XREF: sub_CE19+3j ldaa FRCH anda #$F8 ; '' cmpa unk_81 bne loc_CE28 rts ; --------------------------------------------------------------------------- loc_CE28: ; CODE XREF: sub_CE19+Cj staa unk_81 ; End of function sub_CE19 ; =============== S U B R O U T I N E ======================================= sub_CE2A: ; CODE XREF: sub_CAC2P aim #$EF, TRCSR1 ; '' ldab byte_82 lsrb bcc loc_CE5C ldaa #7 lsrb bcc loc_CE4C ldaa #1 lsrb bcc loc_CE4C lsrb bcs loc_CE44 inc byte_82 bra loc_CE79 ; --------------------------------------------------------------------------- loc_CE44: ; CODE XREF: sub_CE2A+13j andb #7 ldx #$CE54 abx ldaa 0,x loc_CE4C: ; CODE XREF: sub_CE2A+Bj sub_CE2A+10j aim #$7F, byte_72 ; '' inc byte_82 bra loc_CE6B ; --------------------------------------------------------------------------- LUT_CE54: fcb 9 fcb 8 fcb 3 fcb 2 fcb 6 fcb $D fcb $E fcb $F ; --------------------------------------------------------------------------- loc_CE5C: ; CODE XREF: sub_CE2A+6j tim #$80, byte_72 ; '' bne loc_CE79 ldaa #5 lsrb bcc loc_CE68 ldaa #0 loc_CE68: ; CODE XREF: sub_CE2A+3Aj oim #$80, byte_72 ; '' loc_CE6B: ; CODE XREF: sub_CE2A+28j aim #$BF, byte_72 ; '' staa unk_83 sec rola oraa #$E0 ; '' staa TDR oim #$20, byte_72 ; ' ' loc_CE79: ; CODE XREF: sub_CE2A+18j sub_CE2A+35j oim #$10, TRCSR1 rts ; End of function sub_CE2A ; --------------------------------------------------------------------------- SCI_ISR: bsr SCI_INT_HNDLR rti ; =============== S U B R O U T I N E ======================================= SCI_INT_HNDLR: ; CODE XREF: sub_CAC5+13P ROM:SCI_ISRp ldaa TRCSR1 bita #$40 ; '@' beq Get_Rx1 ; Get RX data ldaa RDR ; Get Rx data aim #$1F, byte_72 rts ; --------------------------------------------------------------------------- Get_Rx1: ; CODE XREF: SCI_INT_HNDLR+4j ldaa RDR ; Get RX data ldab unk_83 cmpb #5 ; six channels? beq Get_Rx2 cmpb #0 beq Get_Rx2 staa unk_85 ; ADC data? bra loc_CEB9 ; --------------------------------------------------------------------------- Get_Rx2: ; CODE XREF: SCI_INT_HNDLR+12j ; SCI_INT_HNDLR+16j tim #$80, byte_72 ; '' beq locret_CECC tim #$40, byte_72 ; '@' bne loc_CEB1 staa unk_85 ldaa #$FA ; '' staa TDR oim #$40, byte_72 ; '@' bra locret_CECC ; --------------------------------------------------------------------------- loc_CEB1: ; CODE XREF: SCI_INT_HNDLR+24j staa unk_86 inc byte_82 aim #$3F, byte_72 ; '?' loc_CEB9: ; CODE XREF: SCI_INT_HNDLR+1Aj aslb andb #$1E ldx #$CECD ; add base address of jump table abx ldx 0,x ldd unk_85 jsr 0,x ; jump to sub indexed from table aim #$DF, byte_72 ; '' clr byte_84 locret_CECC: ; CODE XREF: SCI_INT_HNDLR+1Fj ; SCI_INT_HNDLR+2Fj rts ; End of function SCI_INT_HNDLR ; --------------------------------------------------------------------------- JUMP_TABLE_2: fdb $CF71 fdb $CEEE fdb $CEF1 fdb $CF0A fdb $CEED fdb $CF3F fdb $CEED fdb $CF2F fdb $CEED fdb $CEED fdb $CEED fdb $CEED fdb $CEED fdb $CF3B fdb $CEED fdb $CEED ; --------------------------------------------------------------------------- rts ; --------------------------------------------------------------------------- staa byte_8B rts ; --------------------------------------------------------------------------- ldab byte_6F stab byte_5A ldab byte_71 stab byte_5B ldx #$C022 ldab #4 jsr sub_F604 staa byte_87 ldd byte_5A staa byte_6F stab byte_71 rts ; --------------------------------------------------------------------------- cmpa #8 bcc loc_CF13 oim #8, byte_5F bra loc_CF16 ; --------------------------------------------------------------------------- loc_CF13: ; CODE XREF: ROM:CF0Cj aim #$F7, byte_5F ; '' loc_CF16: ; CODE XREF: ROM:CF11j ldab byte_6F stab byte_5A ldab byte_71 stab byte_5B ldx #$C01E ldab #2 jsr sub_F604 staa byte_88 ldd byte_5A staa byte_6F stab byte_71 rts ; --------------------------------------------------------------------------- cmpa #$80 ; '' bcc loc_CF37 oim #$80, byte_63 ; '' rts ; --------------------------------------------------------------------------- loc_CF37: ; CODE XREF: ROM:CF31j aim #$7F, byte_63 ; '' rts ; --------------------------------------------------------------------------- oim #8, byte_63 rts ; --------------------------------------------------------------------------- pshb lsrd lsrd lsrd lsrd lsrd std byte_89 oim #1, byte_5F xgdx cpx #$52 ; 'R' bcc loc_CF5D tim #1, byte_71 beq loc_CF58 oim #1, byte_6F loc_CF58: ; CODE XREF: ROM:CF53j oim #1, byte_71 bra loc_CF63 ; --------------------------------------------------------------------------- loc_CF5D: ; CODE XREF: ROM:CF4Ej aim #$FE, byte_6F ; '' aim #$FE, byte_71 ; '' loc_CF63: ; CODE XREF: ROM:CF5Bj pulb andb #$17 eorb #$13 bitb #7 beq loc_CF6E orab #$80 ; '' loc_CF6E: ; CODE XREF: ROM:CF6Aj stab byte_61 rts ; --------------------------------------------------------------------------- cmpa #$40 ; '@' bcs loc_CF79 ldaa #$FF bra loc_CF7B ; --------------------------------------------------------------------------- loc_CF79: ; CODE XREF: ROM:CF73j lsld lsld loc_CF7B: ; CODE XREF: ROM:CF77j staa byte_8C rts ; =============== S U B R O U T I N E ======================================= sub_CF7E: ; CODE XREF: ROM:CD43P sub_F456+FBP ldaa byte_84 inca cmpa #3 bls loc_CF8E ldd #$81A std RMCR aim #$1F, byte_72 clra loc_CF8E: ; CODE XREF: sub_CF7E+5j staa byte_84 rts ; End of function sub_CF7E ; =============== S U B R O U T I N E ======================================= sub_CF91: ; CODE XREF: sub_CAC5+CFP sub_D571+20P ldx byte_B0 cpx #$400 bcc loc_CF9B ldx #$400 loc_CF9B: ; CODE XREF: sub_CF91+5j xgdx ldx #$CFE1 loc_CF9F: ; CODE XREF: sub_CF91+14j cmpa #7 bls loc_CFA7 lsrd dex bra loc_CF9F ; --------------------------------------------------------------------------- loc_CFA7: ; CODE XREF: sub_CF91+10j pshx lsld asla ldx #$CFBA stab byte_54 tab abx ldd 0,x std byte_56 subd 2,x stab byte_55 ldab byte_54 mul xgdx ldd byte_54 mul tab abx xgdx subd byte_56 coma negb sbca #$FF rts ; End of function sub_CF91 ; --------------------------------------------------------------------------- fcb $3A ; : fcb $98 ; fcb $34 ; 4 fcb $15 fcb $2E ; . fcb $E0 ; fcb $2A ; * fcb $9D ; fcb $27 ; ' fcb $10 fcb $24 ; $ fcb $F fcb $21 ; ! fcb $7B ; { fcb $1F fcb $40 ; @ fcb $1D fcb $4C ; L fcb 4 fcb 4 fcb 4 fcb 4 fcb 4 LUT_CFE1: fcb $DD ; fcb $A3 ; fcb 5 fcb 5 fcb 5 fcb $24 ; $ fcb 2 fcb $86 ; fcb $FF fcb $97 ; fcb $A5 ; fcb $39 ; 9 ; =============== S U B R O U T I N E ======================================= sub_CFED: ; CODE XREF: sub_CAC5:loc_CBADP ; sub_D571+23P ldaa unk_A5 staa byte_56 ldaa #1 staa byte_54 ldaa unk_93 ldab byte_65 ldx #$C040 jsr sub_F653 ldaa unk_93 jsr sub_F653 ldaa #4 staa byte_55 jsr sub_F62B stab byte_65 ldd #$107 std byte_54 ldab byte_66 ldx #$C04A jsr sub_F62B ldaa unk_139 jsr sub_F653 stab byte_66 ldaa #2 staa byte_54 ldaa unk_139 ldab byte_67 jsr sub_F653 stab byte_67 ldd word_137 lsld lsld lsld staa byte_50 ldab byte_67 cmpa byte_56 bhi loc_D042 orab #4 bra loc_D04A ; --------------------------------------------------------------------------- loc_D042: ; CODE XREF: sub_CFED+4Fj ldaa 0,x cmpa byte_56 bls loc_D04A andb #$FB ; '' loc_D04A: ; CODE XREF: sub_CFED+53j sub_CFED+59j inx stab byte_67 ldx #$C05B ldaa #8 staa byte_54 ldaa byte_50 jsr sub_F659 ldaa byte_50 jsr sub_F659 ldaa byte_50 jsr sub_F659 ldaa byte_50 jsr sub_F659 ldaa byte_50 jsr sub_F659 tim #$10, byte_67 beq loc_D079 bitb #$10 bne loc_D079 oim #1, byte_79 loc_D079: ; CODE XREF: sub_CFED+83j sub_CFED+87j tim #$20, byte_67 ; ' ' beq loc_D085 bitb #$20 ; ' ' bne loc_D085 oim #2, byte_79 loc_D085: ; CODE XREF: sub_CFED+8Fj sub_CFED+93j tim #$40, byte_67 ; '@' beq loc_D091 bitb #$40 ; '@' bne loc_D091 oim #4, byte_79 loc_D091: ; CODE XREF: sub_CFED+9Bj sub_CFED+9Fj tim #$80, byte_67 ; '' beq loc_D09D bitb #$80 ; '' bne loc_D09D oim #8, byte_79 loc_D09D: ; CODE XREF: sub_CFED+A7j sub_CFED+ABj stab byte_67 ldd #$106 std byte_54 ldab byte_68 ldx #$C065 jsr sub_F62B stab byte_68 ldd #$108 std byte_54 ldab unk_69 ldx #$C071 jsr sub_F62B stab unk_69 rts ; End of function sub_CFED ; =============== S U B R O U T I N E ======================================= sub_D0BE: ; CODE XREF: sub_CAC5+10FP tim #1, byte_71 beq loc_D0D3 loc_D0C3: ; CODE XREF: sub_D0BE+22j ldx #$C032 tim #$10, byte_60 bne loc_D0CC inx loc_D0CC: ; CODE XREF: sub_D0BE+Bj ldaa 0,x ldab #$10 mul bra loc_D12C ; --------------------------------------------------------------------------- loc_D0D3: ; CODE XREF: sub_D0BE+3j ldx byte_89 cpx #$40 ; '@' bcc loc_D0DD ldx #$40 ; '@' loc_D0DD: ; CODE XREF: sub_D0BE+1Aj cpx #$7FF bhi loc_D0C3 xgdx lsld lsld lsld lsld ldx #$D138 loc_D0EA: ; CODE XREF: sub_D0BE+33j cmpa #$40 ; '@' bcc loc_D0F3 lsld inx inx bra loc_D0EA ; --------------------------------------------------------------------------- loc_D0F3: ; CODE XREF: sub_D0BE+2Ej pshx ldx #$D0C2 jsr sub_F804 ldx byte_B0 jsr sub_F69A xgdx rts ; --------------------------------------------------------------------------- fcb 4 fcb 4 fcb 4 fcb 4 fcb $20 fcb $24 ; $ fcb $85 ; fcb $E0 ; fcb $26 ; & fcb $1B fcb 5 fcb 5 fcb 5 fcb $18 fcb $44 ; D fcb $44 ; D fcb $44 ; D fcb $44 ; D fcb $44 ; D fcb $16 fcb $3A ; : fcb $18 fcb $20 fcb $13 fcb $85 ; fcb $80 ; fcb $26 ; & fcb 9 fcb 5 fcb $18 fcb $5F ; _ fcb $48 ; H fcb $59 ; Y fcb $3A ; : fcb $18 fcb $20 fcb 6 fcb $CC ; fcb $FF fcb $FF fcb $20 fcb 1 fcb 4 ; --------------------------------------------------------------------------- loc_D12C: ; CODE XREF: sub_D0BE+13j xgdx cpx word_C034 bls loc_D135 ldx word_C034 loc_D135: ; CODE XREF: sub_D0BE+72j jmp loc_D1C4 ; --------------------------------------------------------------------------- LUT_D138: fcb $20 fcb $C7 ; fcb $20 fcb $C7 ; fcb $20 fcb $ED ; fcb $20 fcb $D9 ; fcb $20 fcb $C5 ; fcb $D7 ; fcb $2D ; - fcb $D0 ; fcb $9B ; fcb $CA ; fcb $55 ; U fcb $C4 ; fcb $56 ; V fcb $BE ; fcb $9B ; fcb $B9 ; fcb $1F fcb $B3 ; fcb $DE ; fcb $AE ; fcb $D6 ; fcb $AA ; fcb 4 fcb $A5 ; fcb $63 ; c fcb $A0 ; fcb $F3 ; fcb $9C ; fcb $AF ; fcb $98 ; fcb $97 ; fcb $94 ; fcb $A7 ; fcb $90 ; fcb $DD ; fcb $8D ; fcb $38 ; 8 fcb $89 ; fcb $B6 ; fcb $86 ; fcb $55 ; U fcb $83 ; fcb $13 fcb $7F ;  fcb $F0 ; fcb $7C ; | fcb $E8 ; fcb $79 ; y fcb $FC ; fcb $77 ; w fcb $2A ; * fcb $74 ; t fcb $71 ; q fcb $71 ; q fcb $CF ; fcb $6F ; o fcb $44 ; D fcb $6C ; l fcb $CF ; fcb $6A ; j fcb $6E ; n fcb $68 ; h fcb $21 ; ! fcb $65 ; e fcb $E7 ; fcb $63 ; c fcb $BF ; fcb $61 ; a fcb $A8 ; fcb $5F ; _ fcb $A2 ; fcb $5D ; ] fcb $AC ; fcb $5B ; [ fcb $C5 ; fcb $59 ; Y fcb $ED ; fcb $58 ; X fcb $22 ; " fcb $56 ; V fcb $66 ; f fcb $54 ; T fcb $B6 ; fcb $53 ; S fcb $13 fcb $51 ; Q fcb $7C ; | fcb $4F ; O fcb $F1 ; fcb $4E ; N fcb $70 ; p fcb $4C ; L fcb $FB ; fcb $4B ; K fcb $90 ; fcb $4A ; J fcb $2E ; . fcb $48 ; H fcb $D7 ; fcb $47 ; G fcb $88 ; fcb $46 ; F fcb $43 ; C fcb $45 ; E fcb 6 fcb $43 ; C fcb $D1 ; fcb $42 ; B fcb $A4 ; fcb $41 ; A fcb $7F ;  fcb $40 ; @ fcb $62 ; b fcb $3F ; ? fcb $4C ; L fcb $3E ; > fcb $3D ; = fcb $3D ; = fcb $34 ; 4 fcb $3C ; < fcb $32 ; 2 fcb $3B ; ; fcb $37 ; 7 fcb $3A ; : fcb $41 ; A fcb $39 ; 9 fcb $52 ; R fcb $38 ; 8 fcb $68 ; h fcb $37 ; 7 fcb $83 ; fcb $36 ; 6 fcb $A5 ; fcb $35 ; 5 fcb $CB ; ; --------------------------------------------------------------------------- loc_D1C4: ; CODE XREF: sub_D0BE:loc_D135J ldaa byte_C02E jsr sub_F6C2 std unk_94 ldx byte_C031 stx byte_54 ldx #$9F ; '' jsr sub_F834 std unk_9F ldd unk_94 tim #$38, byte_6E ; '8' bne loc_D1ED std byte_96 std unk_98 clr unk_9A std unk_9B std unk_9D bra locret_D243 ; --------------------------------------------------------------------------- loc_D1ED: ; CODE XREF: sub_D0BE+120j ldx byte_C02F stx byte_54 ldx #$96 ; '' jsr sub_F834 std byte_96 ldx byte_C030 stx byte_54 ldx #$98 ; '' ldd unk_94 jsr sub_F834 std unk_98 ldd unk_94 subd unk_98 bcc loc_D211 clra clrb loc_D211: ; CODE XREF: sub_D0BE+14Fj lsrd lsrd lsrd tsta beq loc_D219 ldab #$FF loc_D219: ; CODE XREF: sub_D0BE+157j stab unk_9A ldaa byte_8D ldx #$C0AC jsr sub_F7D8 staa byte_54 ldx #$9B ; '' ldd unk_94 jsr sub_F834 std unk_9B ldaa byte_8D ldx #$C0B4 jsr sub_F7D8 staa byte_54 ldx #$9D ; '' ldd unk_94 jsr sub_F834 std unk_9D locret_D243: ; CODE XREF: sub_D0BE+12Dj rts ; End of function sub_D0BE ; =============== S U B R O U T I N E ======================================= sub_D244: ; CODE XREF: sub_CAC5+112P ldx unk_9F cpx word_C038 bcc loc_D24E ldx word_C038 loc_D24E: ; CODE XREF: sub_D244+5j stx byte_50 clra ldab byte_CB lsld lsld lsld xgdx tim #8, byte_62 bne loc_D260 ldd byte_D9 beq loc_D268 loc_D260: ; CODE XREF: sub_D244+16j cpx byte_50 bls loc_D266 ldx byte_50 loc_D266: ; CODE XREF: sub_D244+1Ej bra loc_D293 ; --------------------------------------------------------------------------- loc_D268: ; CODE XREF: sub_D244+1Aj stx byte_50 ldx unk_9D tim #8, byte_63 beq loc_D278 tim #1, unk_69 bne loc_D27F bra loc_D27D ; --------------------------------------------------------------------------- loc_D278: ; CODE XREF: sub_D244+2Bj tim #2, unk_69 bne loc_D27F loc_D27D: ; CODE XREF: sub_D244+32j ldx unk_9B loc_D27F: ; CODE XREF: sub_D244+30j sub_D244+37j cpx unk_9F bcc loc_D285 ldx unk_9F loc_D285: ; CODE XREF: sub_D244+3Dj cpx word_C036 bcc loc_D28D ldx word_C036 loc_D28D: ; CODE XREF: sub_D244+44j cpx byte_50 bls loc_D293 ldx byte_50 loc_D293: ; CODE XREF: sub_D244:loc_D266j ; sub_D244+4Bj stx unk_A1 rts ; End of function sub_D244 ; =============== S U B R O U T I N E ======================================= sub_D296: ; CODE XREF: sub_CAC5+11EP ldd byte_96 lsrd lsrd lsrd tsta beq loc_D2A0 ldab #$FF loc_D2A0: ; CODE XREF: sub_D296+6j stab byte_51 jsr sub_F7E4 std byte_54 ldaa byte_8D ldab #8 mul ldx #$C0BE tim #8, byte_63 bne loc_D2B7 ldx #$C128 loc_D2B7: ; CODE XREF: sub_D296+1Cj jsr sub_F85A staa byte_50 ldab byte_51 stab byte_56 ldab #1 stab byte_54 ldab byte_6D ldx #$C093 ldaa byte_50 jsr sub_F653 ldaa #4 staa byte_55 jsr sub_F62B stab byte_6D rts ; End of function sub_D296 ; =============== S U B R O U T I N E ======================================= sub_D2D8: ; CODE XREF: sub_CAC5+156P ldaa byte_AC inca beq locret_D2E0 inc byte_AC locret_D2E0: ; CODE XREF: sub_D2D8+3j rts ; End of function sub_D2D8 ; =============== S U B R O U T I N E ======================================= sub_D2E1: ; CODE XREF: sub_CAC5+159P ; sub_CDCC+37P ... ldab byte_60 ldaa PORT3 eora #$6D ; 'm' bita #8 beq loc_D2F4 bitb #8 beq loc_D2FB oim #4, byte_63 bra loc_D2FB ; --------------------------------------------------------------------------- loc_D2F4: ; CODE XREF: sub_D2E1+8j bitb #8 bne loc_D2FB aim #$FB, byte_63 ; '' loc_D2FB: ; CODE XREF: sub_D2E1+Cj sub_D2E1+11j ... staa byte_60 bita #$10 beq loc_D332 bitb #$10 bne loc_D318 oim #$10, byte_77 ldaa byte_67 anda #$F0 ; '' oraa byte_79 staa byte_79 tim #1, byte_6A beq loc_D318 oim #$20, byte_73 ; ' ' loc_D318: ; CODE XREF: sub_D2E1+22j sub_D2E1+32j ldaa unk_B8 suba #1 bcc loc_D322 clra oim #1, byte_62 loc_D322: ; CODE XREF: sub_D2E1+3Bj staa unk_B8 ldaa unk_B9 suba #1 bcc loc_D32E clra oim #2, byte_62 loc_D32E: ; CODE XREF: sub_D2E1+47j staa unk_B9 bra loc_D35D ; --------------------------------------------------------------------------- loc_D332: ; CODE XREF: sub_D2E1+1Ej bitb #$10 beq loc_D33F ldaa byte_C02A inca bne loc_D33D deca loc_D33D: ; CODE XREF: sub_D2E1+59j staa unk_BA loc_D33F: ; CODE XREF: sub_D2E1+53j tim #1, byte_62 beq loc_D34A jsr sub_D7F7 aim #$FE, byte_62 ; '' loc_D34A: ; CODE XREF: sub_D2E1+61j aim #$FD, byte_62 ; '' ldaa byte_C028 staa unk_B8 ldaa byte_C029 staa unk_B9 ldaa byte_C778 staa byte_12C loc_D35D: ; CODE XREF: sub_D2E1+4Fj ldaa unk_BA beq locret_D364 deca staa unk_BA locret_D364: ; CODE XREF: sub_D2E1+7Ej rts ; End of function sub_D2E1 ; =============== S U B R O U T I N E ======================================= sub_D365: ; CODE XREF: sub_CAC5+15CP ; sub_F456+107P tim #$41, byte_60 ; 'A' bne loc_D385 aim #$F7, byte_62 ; '' tim #8, byte_63 bne loc_D37E tim #$20, byte_62 ; ' ' bne loc_D37A oim #$20, byte_62 ; ' ' loc_D37A: ; CODE XREF: sub_D365+10j aim #$EF, byte_62 ; '' rts ; --------------------------------------------------------------------------- loc_D37E: ; CODE XREF: sub_D365+Bj oim #$10, byte_62 aim #$DF, byte_62 ; '' rts ; --------------------------------------------------------------------------- loc_D385: ; CODE XREF: sub_D365+3j oim #8, byte_62 tim #$10, byte_62 beq loc_D395 ldaa byte_C02D staa byte_BD oim #$40, byte_77 ; '@' loc_D395: ; CODE XREF: sub_D365+26j aim #$CF, byte_62 ; '' rts ; End of function sub_D365 ; =============== S U B R O U T I N E ======================================= sub_D399: ; CODE XREF: sub_CAC5+15FP ; sub_F456+10AP tim #$80, byte_63 ; '' bne loc_D3A3 aim #$FB, byte_62 ; '' bra locret_D3B7 ; --------------------------------------------------------------------------- loc_D3A3: ; CODE XREF: sub_D399+3j tim #4, byte_62 bne loc_D3B1 ldaa byte_C9D7 staa byte_14E oim #4, byte_62 loc_D3B1: ; CODE XREF: sub_D399+Dj ldaa byte_C9D8 staa byte_14F locret_D3B7: ; CODE XREF: sub_D399+8j rts ; End of function sub_D399 ; =============== S U B R O U T I N E ======================================= sub_D3B8: ; CODE XREF: sub_CAC5+162P ; sub_CDCC+40P clrb tim #1, byte_64 beq loc_D3BF incb loc_D3BF: ; CODE XREF: sub_D3B8+4j stab byte_55 ldx #$C018 tim #4, byte_64 bne loc_D3CA inx loc_D3CA: ; CODE XREF: sub_D3B8+Fj ldab byte_8C stab byte_52 clra cmpb 0,x bcs loc_D3D4 inca loc_D3D4: ; CODE XREF: sub_D3B8+19j staa byte_54 clrb ldx #$C010 tim #8, byte_63 bne loc_D3E2 ldx #$C014 loc_D3E2: ; CODE XREF: sub_D3B8+25j tim #8, byte_68 beq loc_D3EE tim #4, byte_6D beq loc_D3EE bra loc_D3F0 ; --------------------------------------------------------------------------- loc_D3EE: ; CODE XREF: sub_D3B8+2Dj sub_D3B8+32j incb incb loc_D3F0: ; CODE XREF: sub_D3B8+34j abx ldaa unk_C3 jsr sub_F8B5 staa unk_C3 ldaa byte_64 tim #$FF, byte_55 beq loc_D401 oraa #4 loc_D401: ; CODE XREF: sub_D3B8+45j tim #$FF, byte_54 beq loc_D40A eora #1 oraa #$10 loc_D40A: ; CODE XREF: sub_D3B8+4Cj staa byte_50 bita #4 beq loc_D45B clrb ldaa byte_52 cmpa byte_C019 bcs loc_D41A ldab #2 loc_D41A: ; CODE XREF: sub_D3B8+5Ej stab byte_51 ldaa byte_50 anda #2 eora byte_51 beq loc_D432 tim #$80, byte_50 ; '' beq loc_D437 eora byte_50 staa byte_50 ldaa byte_C01A staa byte_C4 loc_D432: ; CODE XREF: sub_D3B8+6Aj aim #$7F, byte_50 ; '' bra loc_D43A ; --------------------------------------------------------------------------- loc_D437: ; CODE XREF: sub_D3B8+6Fj oim #$80, byte_50 ; '' loc_D43A: ; CODE XREF: sub_D3B8+7Dj aim #$F7, byte_50 ; '' tst byte_C4 beq loc_D447 aim #$BF, byte_6F ; '' bra loc_D44A ; --------------------------------------------------------------------------- loc_D447: ; CODE XREF: sub_D3B8+88j oim #8, byte_50 loc_D44A: ; CODE XREF: sub_D3B8+8Dj tim #8, byte_50 bne loc_D459 tim #$40, byte_73 ; '@' bne loc_D459 ldaa byte_C01A staa byte_C4 loc_D459: ; CODE XREF: sub_D3B8+95j sub_D3B8+9Aj ldaa byte_50 loc_D45B: ; CODE XREF: sub_D3B8+56j staa byte_64 rts ; End of function sub_D3B8 ; =============== S U B R O U T I N E ======================================= sub_D45E: ; CODE XREF: sub_CAC5+12CP ldd byte_89 lsrd lsrd lsrd stab byte_50 subb unk_90 bcs loc_D472 ldaa unk_91 staa unk_92 clr unk_91 bra loc_D479 ; --------------------------------------------------------------------------- loc_D472: ; CODE XREF: sub_D45E+9j negb ldaa unk_91 staa unk_92 stab unk_91 loc_D479: ; CODE XREF: sub_D45E+12j ldaa byte_50 staa unk_90 rts ; End of function sub_D45E ; =============== S U B R O U T I N E ======================================= sub_D47E: ; CODE XREF: sub_CAC5+165P tim #1, byte_60 bne locret_D494 ldd byte_6F andb #$97 ; '' tst byte_BE beq loc_D48E anda #$F8 ; '' loc_D48E: ; CODE XREF: sub_D47E+Cj oraa unk_4B orab unk_4C std unk_4B locret_D494: ; CODE XREF: sub_D47E+3j rts ; End of function sub_D47E ; =============== S U B R O U T I N E ======================================= sub_D495: ; CODE XREF: ROM:CCA6P ldaa byte_BE beq loc_D49C deca staa byte_BE loc_D49C: ; CODE XREF: sub_D495+2j tim #$20, byte_62 ; ' ' beq loc_D4A6 oim #$40, byte_62 ; '@' bra loc_D4B1 ; --------------------------------------------------------------------------- loc_D4A6: ; CODE XREF: sub_D495+Aj tim #$40, byte_62 ; '@' beq loc_D4B1 oim #4, byte_77 aim #$BF, byte_62 ; '' loc_D4B1: ; CODE XREF: sub_D495+Fj sub_D495+14j tim #8, byte_62 bne loc_D4C5 aim #$DF, byte_63 ; '' ldaa byte_C02B staa byte_BB ldaa byte_C02C staa byte_BC bra loc_D4DA ; --------------------------------------------------------------------------- loc_D4C5: ; CODE XREF: sub_D495+1Fj ldaa byte_BB suba #1 bcc loc_D4CF clra oim #$20, byte_63 ; ' ' loc_D4CF: ; CODE XREF: sub_D495+34j staa byte_BB ldaa byte_BC suba #1 bcc loc_D4D8 clra loc_D4D8: ; CODE XREF: sub_D495+40j staa byte_BC loc_D4DA: ; CODE XREF: sub_D495+2Ej ldaa byte_BD beq loc_D4DF deca loc_D4DF: ; CODE XREF: sub_D495+47j staa byte_BD rts ; End of function sub_D495 ; =============== S U B R O U T I N E ======================================= sub_D4E2: ; CODE XREF: ROM:CCA9P jsr sub_F7E4 ldx #$C190 jsr sub_F7B7 staa byte_CB rts ; End of function sub_D4E2 ; =============== S U B R O U T I N E ======================================= sub_D4EE: ; CODE XREF: ROM:CCC5P tim #1, byte_60 bne loc_D4F8 clr byte_C0 bra locret_D509 ; --------------------------------------------------------------------------- loc_D4F8: ; CODE XREF: sub_D4EE+3j ldaa byte_C0 cmpa byte_C025 bcc loc_D506 inca beq locret_D509 staa byte_C0 bra locret_D509 ; --------------------------------------------------------------------------- loc_D506: ; CODE XREF: sub_D4EE+Fj oim #2, byte_70 locret_D509: ; CODE XREF: sub_D4EE+8j sub_D4EE+12j ... rts ; End of function sub_D4EE ; =============== S U B R O U T I N E ======================================= sub_D50A: ; CODE XREF: ROM:CCDDP tim #4, byte_64 beq loc_D514 aim #$DF, byte_6F ; '' bra loc_D51C ; --------------------------------------------------------------------------- loc_D514: ; CODE XREF: sub_D50A+3j tst byte_C5 bne loc_D51C oim #$20, byte_6F ; ' ' loc_D51C: ; CODE XREF: sub_D50A+8j sub_D50A+Dj tst byte_C6 bne locret_D529 tim #8, byte_64 beq locret_D529 oim #$40, byte_6F ; '@' locret_D529: ; CODE XREF: sub_D50A+15j sub_D50A+1Aj rts ; End of function sub_D50A ; =============== S U B R O U T I N E ======================================= sub_D52A: ; CODE XREF: ROM:CD01P sub_CDCC+3AP ... ldaa byte_88 ldx #$D549 jsr sub_F7B4 tim #1, byte_6E beq loc_D539 staa unk_8E loc_D539: ; CODE XREF: sub_D52A+Bj staa byte_8D ldaa byte_87 ldx #$D549 jsr sub_F7B4 staa byte_8F rts ; End of function sub_D52A ; --------------------------------------------------------------------------- fcb $F3 ; fcb 3 fcb $10 LUT_D549: fcb $FF fcb $D6 ; fcb $B0 ; fcb $98 ; fcb $88 ; fcb $7B ; { fcb $6F ; o fcb $64 ; d fcb $5A ; Z fcb $50 ; P fcb $47 ; G fcb $3E ; > fcb $34 ; 4 fcb $27 ; ' fcb $18 fcb 0 ; =============== S U B R O U T I N E ======================================= sub_D559: ; CODE XREF: ROM:CD04P sub_CDCC+43P ldaa byte_8F ldx #$C09C jsr sub_F7D8 staa unk_DC rts ; End of function sub_D559 ; =============== S U B R O U T I N E ======================================= sub_D564: ; CODE XREF: ROM:CD07P tim #$40, byte_73 ; '@' beq locret_D570 ldaa byte_C4 beq locret_D570 deca staa byte_C4 locret_D570: ; CODE XREF: sub_D564+3j sub_D564+7j rts ; End of function sub_D564 ; =============== S U B R O U T I N E ======================================= sub_D571: ; CODE XREF: ROM:CD0AP ldaa byte_AC cmpa byte_C03B bls locret_D59D sei ldd #$FFFF std byte_B0 std byte_B4 cli oim #2, byte_63 ldaa #1 staa byte_6E oim #1, byte_73 jsr sub_DC1A jsr sub_DBF5 jsr sub_CF91 jsr sub_CFED clra clrb std byte_96 staa byte_6D locret_D59D: ; CODE XREF: sub_D571+5j rts ; End of function sub_D571 ; =============== S U B R O U T I N E ======================================= sub_D59E: ; CODE XREF: ROM:CD3DP sub_CDCC+46P ldaa byte_8D staa byte_56 ldd #$103 std byte_54 ldab byte_6A ldx #$C081 jsr sub_F62B stab byte_6A ldd #$105 std byte_54 ldab byte_6B ldx #$C087 jsr sub_F62B stab byte_6B rts ; End of function sub_D59E ; =============== S U B R O U T I N E ======================================= sub_D5C1: ; CODE XREF: ROM:CD40P sub_CDCC+49P ldaa byte_8F staa byte_56 ldd #$101 std byte_54 ldab byte_6C ldx #$C091 jsr sub_F62B stab byte_6C rts ; End of function sub_D5C1 ; =============== S U B R O U T I N E ======================================= sub_D5D5: ; CODE XREF: ROM:CD52P sub_CDCC+3DP ldaa byte_8D ldx #$C0A4 jsr sub_F7D8 staa unk_93 rts ; End of function sub_D5D5 ; =============== S U B R O U T I N E ======================================= sub_D5E0: ; CODE XREF: ROM:CD67P tim #$20, byte_6E ; ' ' beq loc_D5F6 tim #1, byte_68 beq loc_D5F6 ldd byte_C5 tsta beq loc_D5F0 deca loc_D5F0: ; CODE XREF: sub_D5E0+Dj tstb beq loc_D5F4 decb loc_D5F4: ; CODE XREF: sub_D5E0+11j bra loc_D5F9 ; --------------------------------------------------------------------------- loc_D5F6: ; CODE XREF: sub_D5E0+3j sub_D5E0+8j ldd word_C01B loc_D5F9: ; CODE XREF: sub_D5E0:loc_D5F4j std byte_C5 rts ; End of function sub_D5E0 ; =============== S U B R O U T I N E ======================================= sub_D5FC: ; CODE XREF: sub_CAC5+2BP ldaa byte_C1B1 staa unk_E5 ldaa byte_C9D9 staa byte_150 jsr sub_DC55 jsr sub_DBAB jsr sub_D75F jsr sub_DC1A jsr sub_DBF5 jsr sub_DBCC rts ; End of function sub_D5FC ; =============== S U B R O U T I N E ======================================= sub_D61A: ; CODE XREF: ROM:CDB3P aim #$FB, byte_73 ; '' ldd OCR1H std OCR1H rts ; End of function sub_D61A ; =============== S U B R O U T I N E ======================================= sub_D622: ; CODE XREF: ROM:CDBCP aim #$F7, byte_73 ; '' ldd unk_23 std unk_23 rts ; End of function sub_D622 ; =============== S U B R O U T I N E ======================================= sub_D62A: ; CODE XREF: sub_DC76+307P tim #8, byte_75 bne locret_D69F tim #5, byte_70 bne locret_D69F tim #1, byte_6E beq loc_D6A0 tim #1, unk_A6 beq locret_D69F tim #4, byte_62 beq loc_D652 tim #1, byte_62 bne loc_D652 tim #2, byte_6B bne loc_D652 tim #2, byte_6F beq locret_D69F loc_D652: ; CODE XREF: sub_D62A+17j sub_D62A+1Cj ... ldd byte_CC ldx #0 lsld bcc loc_D65B inx loc_D65B: ; CODE XREF: sub_D62A+2Ej addd unk_C7 std byte_5A bcc loc_D662 inx loc_D662: ; CODE XREF: sub_D62A+35j cpx #0 beq loc_D696 xgdx lsrd xgdx rora rorb xgdx lsrd xgdx rora rorb lsrd lsrd lsrd suba #4 staa unk_EC aim #$FE, TCSR1 ; '' ldd #$A addd byte_21 std OCR1H addd byte_5A std unk_E8 aim #$BF, byte_20 ; '' ldd #$A addd byte_21 std unk_23 addd byte_5A std unk_EA bra loc_D69C ; --------------------------------------------------------------------------- loc_D696: ; CODE XREF: sub_D62A+3Bj sub_D62A+9Cj ... jsr sub_D6EB jsr sub_D724 loc_D69C: ; CODE XREF: sub_D62A+6Aj aim #$F3, byte_73 ; '' locret_D69F: ; CODE XREF: sub_D62A+3j sub_D62A+8j ... rts ; --------------------------------------------------------------------------- loc_D6A0: ; CODE XREF: sub_D62A+Dj tim #$80, byte_5F ; '' bne locret_D6EA tim #2, byte_6E bne locret_D6EA tim #4, byte_6E beq loc_D6B4 loc_D6AF: tim #3, byte_62 bne locret_D6EA loc_D6B4: ; CODE XREF: sub_D62A+83j ldaa byte_A7 anda #3 ldx unk_C9 beq locret_D6EA stx byte_5A tim #1, byte_73 beq loc_D6CA tim #1, unk_A6 bne loc_D696 bra locret_D6EA ; --------------------------------------------------------------------------- loc_D6CA: ; CODE XREF: sub_D62A+97j tim #4, byte_70 beq loc_D6D5 cmpa #1 beq loc_D696 bra locret_D6EA ; --------------------------------------------------------------------------- loc_D6D5: ; CODE XREF: sub_D62A+A3j cmpa #1 beq loc_D6E4 cmpa #3 bne locret_D6EA jsr sub_D724 aim #$F7, byte_73 ; '' rts ; --------------------------------------------------------------------------- loc_D6E4: ; CODE XREF: sub_D62A+ADj jsr sub_D6EB aim #$FB, byte_73 ; '' locret_D6EA: ; CODE XREF: sub_D62A+79j sub_D62A+7Ej ... rts ; End of function sub_D62A ; =============== S U B R O U T I N E ======================================= sub_D6EB: ; CODE XREF: sub_D62A:loc_D696P ; sub_D62A:loc_D6E4P ... ldx byte_21 stx byte_5C tim #2, PORT2 bne loc_D6F9 tim #4, byte_73 bne loc_D6FC loc_D6F9: ; CODE XREF: sub_D6EB+7j aim #$FB, byte_73 ; '' loc_D6FC: ; CODE XREF: sub_D6EB+Cj aim #$FE, TCSR1 ; '' ldd #$A addd byte_21 std OCR1H tim #4, byte_73 beq loc_D718 ldd unk_E8 subd byte_5C addd byte_5A bcc loc_D71A ldd #$FFFF bra loc_D71A ; --------------------------------------------------------------------------- loc_D718: ; CODE XREF: sub_D6EB+1Ej ldd byte_5A loc_D71A: ; CODE XREF: sub_D6EB+26j sub_D6EB+2Bj oim #1, TCSR1 addd OCR1H std OCR1H std unk_E8 rts ; End of function sub_D6EB ; =============== S U B R O U T I N E ======================================= sub_D724: ; CODE XREF: sub_D62A+6FP sub_D62A+B3P ... ldx byte_21 stx byte_5C tim #4, PORT1 bne loc_D732 tim #8, byte_73 bne loc_D735 loc_D732: ; CODE XREF: sub_D724+7j aim #$F7, byte_73 ; '' loc_D735: ; CODE XREF: sub_D724+Cj aim #$BF, byte_20 ; '' ldd #$A addd byte_21 std unk_23 tim #8, byte_73 beq loc_D751 ldd unk_EA subd byte_5C addd byte_5A bcc loc_D753 ldd #$FFFF bra loc_D753 ; --------------------------------------------------------------------------- loc_D751: ; CODE XREF: sub_D724+1Ej ldd byte_5A loc_D753: ; CODE XREF: sub_D724+26j sub_D724+2Bj oim #$40, byte_20 ; '@' addd unk_23 ldx unk_2D std unk_23 std unk_EA rts ; End of function sub_D724 ; =============== S U B R O U T I N E ======================================= sub_D75F: ; CODE XREF: sub_CAC5+115P ; sub_D5FC+11P ldd unk_A1 ldx byte_DD jsr sub_F69A xgdx lsrd xgdx rora stx byte_50 tab ldaa byte_51 tst byte_50 bne loc_D778 addd unk_C7 bcc loc_D77B loc_D778: ; CODE XREF: sub_D75F+13j ldd #$FFFF loc_D77B: ; CODE XREF: sub_D75F+17j std byte_50 jsr sub_F7E4 ldx #$C1C6 jsr sub_F804 xgdx cpx byte_50 bcs loc_D78D ldx byte_50 loc_D78D: ; CODE XREF: sub_D75F+2Aj stx unk_C9 rts ; End of function sub_D75F ; =============== S U B R O U T I N E ======================================= sub_D790: ; CODE XREF: sub_CAC5+118P jsr sub_F7E4 ldx #$C1B9 jsr sub_F7B7 staa unk_CE rts ; End of function sub_D790 ; =============== S U B R O U T I N E ======================================= sub_D79C: ; CODE XREF: sub_CAC5+11BP ldab unk_9A cmpb byte_C1A0 bls loc_D7D9 tim #$10, byte_60 bne loc_D7D9 tim #1, byte_60 bne loc_D7D9 ldaa byte_8D ldx #$C361 jsr sub_F7D8 adda unk_D0 bcc loc_D7BB ldaa #$FF loc_D7BB: ; CODE XREF: sub_D79C+1Bj ldab unk_9A cmpb byte_C19F bls loc_D7C5 ldab byte_C19F loc_D7C5: ; CODE XREF: sub_D79C+24j subb byte_C1A0 bls loc_D7D9 mul xgdx ldaa byte_C19F suba byte_C1A0 jsr sub_F6E2 stab unk_D2 bra locret_D7DC ; --------------------------------------------------------------------------- loc_D7D9: ; CODE XREF: sub_D79C+5j sub_D79C+Aj ... clr unk_D2 locret_D7DC: ; CODE XREF: sub_D79C+3Bj rts ; End of function sub_D79C ; =============== S U B R O U T I N E ======================================= sub_D7DD: ; CODE XREF: sub_CAC5+16BP sei ldaa unk_EC beq loc_D7F5 deca staa unk_EC bne loc_D7F5 oim #1, TCSR1 ldd unk_E8 std OCR1H oim #$40, byte_20 ; '@' ldd unk_EA std unk_23 loc_D7F5: ; CODE XREF: sub_D7DD+3j sub_D7DD+8j cli rts ; End of function sub_D7DD ; =============== S U B R O U T I N E ======================================= sub_D7F7: ; CODE XREF: sub_D2E1+63P tim #2, byte_63 bne locret_D846 tim #$3C, byte_6E ; '<' beq locret_D846 tim #4, byte_6E beq loc_D80B ldaa unk_CE clrb bra loc_D82F ; --------------------------------------------------------------------------- loc_D80B: ; CODE XREF: sub_D7F7+Dj ldx #$C200 tim #$20, byte_63 ; ' ' bne loc_D823 ldx #$C1F0 tim #$10, byte_62 bne loc_D823 ldx #$C1E0 tim #$20, byte_62 ; ' ' beq locret_D846 loc_D823: ; CODE XREF: sub_D7F7+1Aj sub_D7F7+22j ldd byte_D9 beq loc_D82A ldab #8 abx loc_D82A: ; CODE XREF: sub_D7F7+2Ej ldaa byte_8D jsr sub_F7D8 loc_D82F: ; CODE XREF: sub_D7F7+12j cmpa #1 bls locret_D846 lsrd lsrd lsrd sei oim #$C, byte_73 std byte_5A jsr sub_D6EB jsr sub_D724 oim #$C, byte_73 cli locret_D846: ; CODE XREF: sub_D7F7+3j sub_D7F7+8j ... rts ; End of function sub_D7F7 ; =============== S U B R O U T I N E ======================================= sub_D847: ; CODE XREF: sub_CAC5+12FP clra tst byte_BC beq loc_D85E inca tim #$10, byte_62 beq loc_D858 tst byte_BD beq loc_D85E loc_D858: ; CODE XREF: sub_D847+Aj inca tim #$20, byte_62 ; ' ' beq loc_D8B8 loc_D85E: ; CODE XREF: sub_D847+4j sub_D847+Fj tab ldx #$C1B6 abx ldab unk_91 cmpb 0,x bcs loc_D8B8 cmpa #0 bne loc_D872 tim #$10, byte_6B beq loc_D8B4 loc_D872: ; CODE XREF: sub_D847+24j tim #2, byte_73 beq loc_D8B4 tst byte_CF bne loc_D8B4 tim #1, byte_62 bne loc_D8B4 tim #$38, byte_6E ; '8' beq loc_D8B4 asla ldx byte_D9 beq loc_D88C inca loc_D88C: ; CODE XREF: sub_D847+42j ldab #$D mul ldx #$C213 abx ldaa unk_91 jsr sub_F7B4 cmpa #1 bls loc_D8B4 lsrd lsrd lsrd sei std byte_5A oim #$C, byte_73 jsr sub_D6EB jsr sub_D724 oim #$C, byte_73 cli ldaa byte_C1B5 staa byte_CF loc_D8B4: ; CODE XREF: sub_D847+29j sub_D847+2Ej ... oim #2, byte_73 rts ; --------------------------------------------------------------------------- loc_D8B8: ; CODE XREF: sub_D847+15j sub_D847+20j aim #$FD, byte_73 ; '' rts ; End of function sub_D847 ; =============== S U B R O U T I N E ======================================= sub_D8BC: ; CODE XREF: sub_CAC5+16EP tim #$20, byte_6E ; ' ' beq loc_D8E2 tim #$10, byte_73 beq loc_D8E2 ldaa byte_D9 oraa unk_DA oraa byte_DB bne loc_D8E2 tim #1, byte_6F bne loc_D8E2 tim #4, byte_64 beq loc_D8E2 tim #8, byte_64 bne loc_D8E2 oim #$40, byte_73 ; '@' bra loc_D8E5 ; --------------------------------------------------------------------------- loc_D8E2: ; CODE XREF: sub_D8BC+3j sub_D8BC+8j ... aim #$BF, byte_73 ; '' loc_D8E5: ; CODE XREF: sub_D8BC+24j ldaa byte_150 beq locret_D8EE deca staa byte_150 locret_D8EE: ; CODE XREF: sub_D8BC+2Cj rts ; End of function sub_D8BC ; =============== S U B R O U T I N E ======================================= sub_D8EF: ; CODE XREF: sub_CAC5+171P tim #$40, byte_73 ; '@' bne loc_D8FC ldx #$400 oim #$10, byte_64 bra loc_D957 ; --------------------------------------------------------------------------- loc_D8FC: ; CODE XREF: sub_D8EF+3j tim #$20, byte_73 ; ' ' beq loc_D909 ldx #$400 aim #$DF, byte_73 ; '' stx byte_D5 loc_D909: ; CODE XREF: sub_D8EF+10j tim #$10, byte_64 beq loc_D919 aim #$EF, byte_64 ; '' jsr sub_D95A ldx #$C1A8 bra loc_D924 ; --------------------------------------------------------------------------- loc_D919: ; CODE XREF: sub_D8EF+1Dj tim #4, byte_5E beq locret_D959 aim #$FB, byte_5E ; '' ldx #$C1A4 loc_D924: ; CODE XREF: sub_D8EF+28j ldd byte_D5 tim #$10, byte_60 beq loc_D932 tim #$10, byte_62 bne loc_D932 inx inx loc_D932: ; CODE XREF: sub_D8EF+3Aj sub_D8EF+3Fj tim #1, byte_64 beq loc_D93F subd 0,x bcc loc_D946 clra clrb bra loc_D946 ; --------------------------------------------------------------------------- loc_D93F: ; CODE XREF: sub_D8EF+46j addd 0,x bcc loc_D946 ldd #$7FF loc_D946: ; CODE XREF: sub_D8EF+4Aj sub_D8EF+4Ej ... xgdx cpx word_C1AC bls loc_D94F ldx word_C1AC loc_D94F: ; CODE XREF: sub_D8EF+5Bj cpx word_C1AE bcc loc_D957 ldx word_C1AE loc_D957: ; CODE XREF: sub_D8EF+Bj sub_D8EF+63j stx byte_D5 locret_D959: ; CODE XREF: sub_D8EF+2Dj rts ; End of function sub_D8EF ; =============== S U B R O U T I N E ======================================= sub_D95A: ; CODE XREF: sub_D8EF+22P ldaa byte_E6 bne loc_D972 tim #2, byte_6A beq loc_D972 tim #8, byte_62 bne loc_D979 tim #$20, byte_62 ; ' ' beq loc_D972 tim #4, byte_68 beq loc_D979 loc_D972: ; CODE XREF: sub_D95A+2j sub_D95A+7j ... ldaa byte_C1B4 staa unk_DF bra loc_D9F2 ; --------------------------------------------------------------------------- loc_D979: ; CODE XREF: sub_D95A+Cj sub_D95A+16j ldaa unk_DF beq loc_D9F2 ldd byte_D5 lsrd lsrd lsrd addd unk_E1 bcc loc_D989 ldd #$FFFF loc_D989: ; CODE XREF: sub_D95A+2Aj std unk_E1 ldx unk_E3 ldab unk_E0 abx stx unk_E3 ldaa unk_E5 deca beq loc_D99B staa unk_E5 bra locret_DA00 ; --------------------------------------------------------------------------- loc_D99B: ; CODE XREF: sub_D95A+3Bj dec unk_DF ldaa byte_C1B1 jsr sub_F6E2 tim #1, unk_42 beq loc_D9AE addb unk_44 adca #0 lsrd loc_D9AE: ; CODE XREF: sub_D95A+4Dj stab unk_44 ldx unk_E1 ldaa byte_C1B1 jsr sub_F6E2 tim #1, unk_42 beq loc_D9CF lsrd addb unk_43 adca #0 subb #$40 ; '@' sbca #0 bcc loc_D9CA clra clrb loc_D9CA: ; CODE XREF: sub_D95A+6Cj tsta beq loc_D9CF ldab #$FF loc_D9CF: ; CODE XREF: sub_D95A+61j sub_D95A+71j tba ldx #$C1B2 jsr sub_F5F7 staa byte_50 ldx #$43 ; 'C' tim #1, unk_42 beq loc_D9E4 suba 0,x bra loc_D9E6 ; --------------------------------------------------------------------------- loc_D9E4: ; CODE XREF: sub_D95A+84j suba #$80 ; '' loc_D9E6: ; CODE XREF: sub_D95A+88j staa unk_E7 ldaa byte_50 staa 0,x oim #1, unk_42 oim #$20, byte_64 ; ' ' loc_D9F2: ; CODE XREF: sub_D95A+1Dj sub_D95A+21j clra clrb ldx #$E1 ; '' std 0,x std 2,x ldaa byte_C1B1 staa 4,x locret_DA00: ; CODE XREF: sub_D95A+3Fj rts ; End of function sub_D95A ; =============== S U B R O U T I N E ======================================= sub_DA01: ; CODE XREF: sub_CAC5+174P ldx unk_94 ldaa unk_A5 jsr sub_F688 ldaa byte_C03A jsr sub_F67D lsld bcs loc_DA14 tsta beq loc_DA16 loc_DA14: ; CODE XREF: sub_DA01+Ej ldab #$FF loc_DA16: ; CODE XREF: sub_DA01+11j stab unk_E0 tim #1, unk_42 bne loc_DA22 ldaa #$80 ; '' staa byte_D7 rts ; --------------------------------------------------------------------------- loc_DA22: ; CODE XREF: sub_DA01+1Aj xgdx ldaa unk_44 clrb xgdx tba jsr sub_F6E2 tsta beq loc_DA30 ldab #$FF loc_DA30: ; CODE XREF: sub_DA01+2Bj stab byte_50 ldaa unk_43 suba #$80 ; '' bcs loc_DA3B mul bra loc_DA3E ; --------------------------------------------------------------------------- loc_DA3B: ; CODE XREF: sub_DA01+35j nega mul nega loc_DA3E: ; CODE XREF: sub_DA01+38j adda #$80 ; '' staa byte_D7 tim #$20, byte_64 ; ' ' beq locret_DA8A ldab byte_50 ldaa unk_E7 bpl loc_DA4E nega loc_DA4E: ; CODE XREF: sub_DA01+4Aj mul ldx #0 lsld bcc loc_DA56 inx loc_DA56: ; CODE XREF: sub_DA01+52j lsld bcc loc_DA5A inx loc_DA5A: ; CODE XREF: sub_DA01+56j lsld bcc loc_DA5E inx loc_DA5E: ; CODE XREF: sub_DA01+5Aj staa byte_51 xgdx stab byte_50 ldd byte_D5 tst unk_E7 bpl loc_DA6E addd byte_50 bra loc_DA74 ; --------------------------------------------------------------------------- loc_DA6E: ; CODE XREF: sub_DA01+67j subd byte_50 bcc loc_DA74 clra clrb loc_DA74: ; CODE XREF: sub_DA01+6Bj sub_DA01+6Fj aim #$DF, byte_64 ; '' xgdx cpx word_C1AC bls loc_DA80 ldx word_C1AC loc_DA80: ; CODE XREF: sub_DA01+7Aj cpx word_C1AE bcc loc_DA88 ldx word_C1AE loc_DA88: ; CODE XREF: sub_DA01+82j stx byte_D5 locret_DA8A: ; CODE XREF: sub_DA01+44j rts ; End of function sub_DA01 ; =============== S U B R O U T I N E ======================================= sub_DA8B: ; CODE XREF: sub_CAC5+177P clrb ldaa byte_DB lsrd lsrd lsrd std byte_50 ldx #$40 ; '@' ldab unk_D2 abx ldab unk_D3 abx ldab byte_D4 abx xgdx lsld lsld xgdx ldab byte_D7 abx ldab byte_D8 abx xgdx lsld lsld lsld addd byte_D9 addd byte_D5 subd byte_50 bcc loc_DAB7 clra clrb loc_DAB7: ; CODE XREF: sub_DA8B+28j xgdx ldaa unk_DC jsr sub_F6C2 std byte_50 ldx #$C371 jsr sub_F7F8 xgdx cpx byte_50 bcs loc_DACC ldx byte_50 loc_DACC: ; CODE XREF: sub_DA8B+3Dj stx byte_DD rts ; End of function sub_DA8B ; =============== S U B R O U T I N E ======================================= sub_DACF: ; CODE XREF: ROM:CCACP ldaa #1 tim #2, byte_63 beq loc_DADB oim #1, byte_73 bra loc_DB2D ; --------------------------------------------------------------------------- loc_DADB: ; CODE XREF: sub_DACF+5j tim #1, byte_60 beq loc_DAE5 tim #8, byte_65 beq loc_DB2D loc_DAE5: ; CODE XREF: sub_DACF+Fj ldaa #2 tim #4, byte_60 bra loc_DAF1 ; --------------------------------------------------------------------------- tim #$20, byte_65 ; ' ' bne loc_DB2D loc_DAF1: ; CODE XREF: sub_DACF+1Bj ldaa #4 tim #1, byte_65 beq loc_DB09 tim #8, byte_62 bne loc_DB04 tim #1, byte_62 bne loc_DB2D bra loc_DB09 ; --------------------------------------------------------------------------- loc_DB04: ; CODE XREF: sub_DACF+2Cj tim #2, byte_62 bne loc_DB2D loc_DB09: ; CODE XREF: sub_DACF+27j sub_DACF+33j ldaa #8 tim #1, byte_62 beq loc_DB1F tim #$10, byte_62 beq loc_DB1F tim #8, byte_6D beq loc_DB2D tim #$10, byte_68 beq loc_DB2D loc_DB1F: ; CODE XREF: sub_DACF+3Fj sub_DACF+44j ldaa #$10 tim #1, byte_6D bne loc_DB2D tim #$10, byte_65 bne loc_DB2D ldaa #$20 ; ' ' loc_DB2D: ; CODE XREF: sub_DACF+Aj sub_DACF+14j ... staa byte_6E rts ; End of function sub_DACF ; =============== S U B R O U T I N E ======================================= sub_DB30: ; CODE XREF: ROM:CCAFP ldaa byte_C1A2 tim #4, byte_6E bne loc_DB43 clra tim #1, byte_62 beq loc_DB43 tim #8, byte_62 beq locret_DB45 loc_DB43: ; CODE XREF: sub_DB30+6j sub_DB30+Cj staa byte_DB locret_DB45: ; CODE XREF: sub_DB30+11j rts ; End of function sub_DB30 ; =============== S U B R O U T I N E ======================================= sub_DB46: ; CODE XREF: sub_CAC5+FEP tim #4, byte_6E bne locret_DB57 ldaa byte_DB beq locret_DB57 suba byte_C1A3 bcc loc_DB55 clra loc_DB55: ; CODE XREF: sub_DB46+Cj staa byte_DB locret_DB57: ; CODE XREF: sub_DB46+3j sub_DB46+7j rts ; End of function sub_DB46 ; =============== S U B R O U T I N E ======================================= sub_DB58: ; CODE XREF: ROM:CCB2P clra tim #8, byte_6E beq loc_DB7D ldx byte_D9 bne loc_DB7D tim #2, byte_60 bne loc_DB7D ldd byte_A3 subd #$300 bcc loc_DB70 clra clrb loc_DB70: ; CODE XREF: sub_DB58+14j std byte_54 ldaa byte_8D ldab #8 mul ldx #$C38F jsr sub_F85A loc_DB7D: ; CODE XREF: sub_DB58+4j sub_DB58+8j ... staa byte_D8 rts ; End of function sub_DB58 ; =============== S U B R O U T I N E ======================================= sub_DB80: ; CODE XREF: ROM:CCB5P clra tim #$10, byte_6E beq loc_DBA0 jsr sub_F7E4 std byte_54 ldd byte_96 subd #$100 bcc loc_DB94 clra clrb loc_DB94: ; CODE XREF: sub_DB80+10j lsld bcc loc_DB9A ; Fuel table ldd #$FFFF loc_DB9A: ; CODE XREF: sub_DB80+15j ldx #$C3F1 ; Fuel table jsr sub_F85A loc_DBA0: ; CODE XREF: sub_DB80+4j staa byte_D4 rts ; End of function sub_DB80 ; =============== S U B R O U T I N E ======================================= sub_DBA3: ; CODE XREF: ROM:CCB8P ldaa byte_CF beq locret_DBAA deca staa byte_CF locret_DBAA: ; CODE XREF: sub_DBA3+2j rts ; End of function sub_DBA3 ; =============== S U B R O U T I N E ======================================= sub_DBAB: ; CODE XREF: ROM:loc_CD24P sub_D5FC+EP ldaa byte_8B ldx #$C384 jsr sub_F7B4 lsrd lsrd lsrd lsrd std unk_C7 rts ; End of function sub_DBAB ; =============== S U B R O U T I N E ======================================= sub_DBBA: ; CODE XREF: ROM:CD27P tim #$10, byte_60 bne loc_DBC4 ldaa byte_C1B0 bra loc_DBC9 ; --------------------------------------------------------------------------- loc_DBC4: ; CODE XREF: sub_DBBA+3j ldaa byte_E6 beq locret_DBCB deca loc_DBC9: ; CODE XREF: sub_DBBA+8j staa byte_E6 locret_DBCB: ; CODE XREF: sub_DBBA+Cj rts ; End of function sub_DBBA ; =============== S U B R O U T I N E ======================================= sub_DBCC: ; CODE XREF: ROM:CD2AP sub_D5FC+1AP ldaa byte_8D ldab #$10 mul std byte_54 ldaa unk_8E ldab #$10 mul ldx #$C280 jsr sub_F85A staa unk_D3 ldab byte_C19D cba bhi loc_DBEB oim #$10, byte_73 bra locret_DBF4 ; --------------------------------------------------------------------------- loc_DBEB: ; CODE XREF: sub_DBCC+18j addb byte_C19E cba bls locret_DBF4 aim #$EF, byte_73 ; '' locret_DBF4: ; CODE XREF: sub_DBCC+1Dj sub_DBCC+23j rts ; End of function sub_DBCC ; =============== S U B R O U T I N E ======================================= sub_DBF5: ; CODE XREF: ROM:CD2DP sub_D571+1DP ... tim #1, byte_6E beq locret_DC04 ldaa byte_8D ldx #$C369 jsr sub_F7D8 std unk_D0 locret_DC04: ; CODE XREF: sub_DBF5+3j rts ; End of function sub_DBF5 ; =============== S U B R O U T I N E ======================================= sub_DC05: ; CODE XREF: sub_CAC5+104P tim #1, byte_6E bne locret_DC19 ldd unk_D0 beq locret_DC19 subb byte_C1A1 sbca #0 bcc loc_DC17 clra clrb loc_DC17: ; CODE XREF: sub_DC05+Ej std unk_D0 locret_DC19: ; CODE XREF: sub_DC05+3j sub_DC05+7j rts ; End of function sub_DC05 ; =============== S U B R O U T I N E ======================================= sub_DC1A: ; CODE XREF: ROM:CD30P sub_D571+1AP ... tim #1, byte_6E beq locret_DC34 ldx #$C266 tim #8, byte_63 bne loc_DC2A ldx #$C26E loc_DC2A: ; CODE XREF: sub_DC1A+Bj ldaa byte_8D jsr sub_F7D8 lsrd lsrd lsrd std byte_D9 locret_DC34: ; CODE XREF: sub_DC1A+3j rts ; End of function sub_DC1A ; =============== S U B R O U T I N E ======================================= sub_DC35: ; CODE XREF: sub_CAC5+101P tim #1, byte_6E bne locret_DC54 ldd byte_D9 beq locret_DC54 ldaa byte_8D ldx #$C276 jsr sub_F7D8 staa byte_50 ldd byte_D9 subb byte_50 sbca #0 bcc loc_DC52 clra clrb loc_DC52: ; CODE XREF: sub_DC35+19j std byte_D9 locret_DC54: ; CODE XREF: sub_DC35+3j sub_DC35+7j rts ; End of function sub_DC35 ; =============== S U B R O U T I N E ======================================= sub_DC55: ; CODE XREF: ROM:CD33P sub_D5FC+BP ldaa byte_8D ldx #$C25E jsr sub_F7D8 std byte_CC rts ; End of function sub_DC55 ; =============== S U B R O U T I N E ======================================= sub_DC60: ; CODE XREF: sub_CAC5+2EP ldaa byte_C4B4 staa unk_F7 ldaa byte_C027 staa unk_C1 staa unk_C2 jsr sub_E426 jsr sub_E43C jsr sub_E447 rts ; End of function sub_DC60 ; =============== S U B R O U T I N E ======================================= sub_DC76: ; CODE XREF: ROM:CDC8P ldaa byte_18 bita #$80 ; '' bne loc_DC7D rts ; --------------------------------------------------------------------------- loc_DC7D: ; CODE XREF: sub_DC76+4j ldx byte_1D stx byte_5A tab lsrb eorb PORT1 bitb #1 beq loc_DC8A rts ; --------------------------------------------------------------------------- loc_DC8A: ; CODE XREF: sub_DC76+11j eora #2 staa byte_18 bita #2 beq loc_DC95 jmp loc_DE95 ; --------------------------------------------------------------------------- loc_DC95: ; CODE XREF: sub_DC76+1Aj ldaa unk_F7 cmpa #2 bcs loc_DCA5 ldx byte_19 ldab #$A abx stx byte_1B aim #$FE, byte_18 ; '' loc_DCA5: ; CODE XREF: sub_DC76+23j oim #1, byte_5E aim #$FD, byte_75 ; '' tim #$80, TCSR1 ; '' beq loc_DCBA ldx ICRH tim #1, PORT2 beq loc_DCBA oim #$20, byte_75 ; ' ' loc_DCBA: ; CODE XREF: sub_DC76+38j sub_DC76+3Fj ldaa byte_C4BA staa byte_F6 ldaa byte_AC staa byte_AD clr byte_AC ldx unk_A8 stx byte_5C ldx byte_5A stx unk_A8 cmpa #$F bcs loc_DCD7 ldd #$FFFF bra loc_DCDA ; --------------------------------------------------------------------------- loc_DCD7: ; CODE XREF: sub_DC76+5Aj xgdx subd byte_5C loc_DCDA: ; CODE XREF: sub_DC76+5Fj ldx byte_B0 stx unk_AE std byte_B0 subd REV_LIM bls loc_DCEF subd unk_C03E bls loc_DCF2 aim #$7F, byte_5F ; '' bra loc_DCF2 ; --------------------------------------------------------------------------- loc_DCEF: ; CODE XREF: sub_DC76+6Dj oim #$80, byte_5F ; '' loc_DCF2: ; CODE XREF: sub_DC76+72j sub_DC76+77j ldd byte_B0 tim #8, byte_66 bne loc_DD55 tim #4, byte_66 beq loc_DD55 cmpa #$40 ; '@' bcs loc_DD05 ldd #$3FFF loc_DD05: ; CODE XREF: sub_DC76+8Aj lsld lsld ldab byte_C4B7 mul std byte_5A ldd byte_B0 aim #$7F, byte_5C ; '' subd unk_AE bcc loc_DD1D oim #$80, byte_5C ; '' coma negb sbca #$FF loc_DD1D: ; CODE XREF: sub_DC76+9Ej subd byte_5A bhi loc_DD25 ldd byte_B0 bra loc_DD55 ; --------------------------------------------------------------------------- loc_DD25: ; CODE XREF: sub_DC76+A9j cmpa #$40 ; '@' bcs loc_DD2C ldd #$3FFF loc_DD2C: ; CODE XREF: sub_DC76+B1j lsld lsld xgdx ldaa byte_C4B8 tim #$80, byte_5C ; '' bne loc_DD3A ldaa byte_C4B9 loc_DD3A: ; CODE XREF: sub_DC76+BFj jsr sub_F67D std byte_5A ldd byte_B0 tim #$80, byte_5C ; '' beq loc_DD4E subd byte_5A bcc loc_DD4C clra clrb loc_DD4C: ; CODE XREF: sub_DC76+D2j bra loc_DD55 ; --------------------------------------------------------------------------- loc_DD4E: ; CODE XREF: sub_DC76+CEj addd byte_5A bcc loc_DD55 ldd #$FFFF loc_DD55: ; CODE XREF: sub_DC76+81j sub_DC76+86j ... std unk_B2 tim #1, byte_74 bne loc_DD99 ldx byte_B0 cpx #$C350 bcc loc_DD99 tim #2, byte_66 bne loc_DDAA tim #1, byte_66 beq loc_DDAA ldaa byte_ED cmpa byte_C4BF bls loc_DDAA ldd byte_B0 subd unk_AE bcc loc_DD7E coma negb sbca #$FF loc_DD7E: ; CODE XREF: sub_DC76+102j std byte_5A ldd byte_B0 cmpa #$80 ; '' bcs loc_DD89 ldd #$7FFF loc_DD89: ; CODE XREF: sub_DC76+10Ej lsld ldab byte_C4B6 mul lsld bcc loc_DD94 ldd #$FFFF loc_DD94: ; CODE XREF: sub_DC76+119j xgdx cpx byte_5A bhi loc_DDAA loc_DD99: ; CODE XREF: sub_DC76+E4j sub_DC76+EBj ldaa byte_C4B4 staa unk_F7 ldx byte_19 ldab #$A abx stx byte_1B aim #$FE, byte_18 ; '' bra loc_DDB1 ; --------------------------------------------------------------------------- loc_DDAA: ; CODE XREF: sub_DC76+F0j sub_DC76+F5j ... ldaa unk_F7 beq loc_DDB1 deca staa unk_F7 loc_DDB1: ; CODE XREF: sub_DC76+132j ; sub_DC76+136j ldd #$12B addb byte_C4BF adca #0 addb byte_C4BD adca #0 subb byte_ED sbca #0 std unk_FF ldab byte_ED cmpb byte_C4BF bhi loc_DDD8 oim #$40, byte_75 ; '@' tim #$20, byte_66 ; ' ' bne loc_DDDB oim #1, byte_75 bra loc_DDDE ; --------------------------------------------------------------------------- loc_DDD8: ; CODE XREF: sub_DC76+153j aim #$BF, byte_75 ; '' loc_DDDB: ; CODE XREF: sub_DC76+15Bj aim #$FE, byte_75 ; '' loc_DDDE: ; CODE XREF: sub_DC76+160j ldx unk_B2 ldaa #$AB ; '' jsr sub_F67D lsrd std unk_B6 xgdx ldaa unk_100 jsr sub_F67D std byte_5A ldaa unk_FF beq loc_DE05 loc_DDF5: ; CODE XREF: sub_DC76+18Dj psha ldd unk_B6 addd byte_5A bcc loc_DDFF ldd #$FFFF loc_DDFF: ; CODE XREF: sub_DC76+184j std byte_5A pula deca bne loc_DDF5 loc_DE05: ; CODE XREF: sub_DC76+17Dj ldd byte_5A subb byte_C4BB sbca #0 bcc loc_DE10 clra clrb loc_DE10: ; CODE XREF: sub_DC76+196j std unk_FB tim #2, PORT1 bne loc_DE1A oim #4, byte_75 loc_DE1A: ; CODE XREF: sub_DC76+19Fj tim #$20, byte_75 ; ' ' bne loc_DE38 ldaa unk_C2 beq loc_DE24 deca loc_DE24: ; CODE XREF: sub_DC76+1ABj staa unk_C2 tim #$40, unk_25 ; '@' bne loc_DE31 ldaa unk_C1 beq loc_DE60 bra loc_DE63 ; --------------------------------------------------------------------------- loc_DE31: ; CODE XREF: sub_DC76+1B3j ldaa byte_C027 staa unk_C1 bra loc_DE4F ; --------------------------------------------------------------------------- loc_DE38: ; CODE XREF: sub_DC76+1A7j ldaa unk_C1 beq loc_DE3D deca loc_DE3D: ; CODE XREF: sub_DC76+1C4j staa unk_C1 tim #$40, unk_25 ; '@' bne loc_DE4A ldaa unk_C2 beq loc_DE60 bra loc_DE63 ; --------------------------------------------------------------------------- loc_DE4A: ; CODE XREF: sub_DC76+1CCj ldaa byte_C027 staa unk_C2 loc_DE4F: ; CODE XREF: sub_DC76+1C0j ldaa #$BF ; '' staa unk_25 ldaa unk_C1 beq loc_DE63 ldaa unk_C2 beq loc_DE63 aim #$FE, byte_70 ; '' bra loc_DE63 ; --------------------------------------------------------------------------- loc_DE60: ; CODE XREF: sub_DC76+1B7j ; sub_DC76+1D0j oim #1, byte_70 loc_DE63: ; CODE XREF: sub_DC76+1B9j ; sub_DC76+1D2j ... ldaa unk_F7 bne loc_DE74 tim #2, PORT1 beq loc_DE71 jsr sub_DF94 bra loc_DE74 ; --------------------------------------------------------------------------- loc_DE71: ; CODE XREF: sub_DC76+1F4j jsr sub_E01F loc_DE74: ; CODE XREF: sub_DC76+1EFj ; sub_DC76+1F9j ldd unk_FF subd #$12B bls loc_DE88 tba ldx unk_B6 jsr sub_F67D subb byte_C4BB sbca #0 bcc loc_DE8A loc_DE88: ; CODE XREF: sub_DC76+203j clra clrb loc_DE8A: ; CODE XREF: sub_DC76+210j std unk_FD tim #1, byte_A7 bne locret_DE94 oim #2, byte_5F locret_DE94: ; CODE XREF: sub_DC76+219j rts ; --------------------------------------------------------------------------- loc_DE95: ; CODE XREF: sub_DC76+1CJ tim #1, PORT2 bne loc_DE9D oim #$10, byte_75 loc_DE9D: ; CODE XREF: sub_DC76+222j ldaa unk_F7 bne loc_DEAB tim #$42, byte_75 ; 'B' bne loc_DEB8 tim #4, byte_75 beq loc_DEB8 loc_DEAB: ; CODE XREF: sub_DC76+229j ldx byte_19 ldab #$A abx stx byte_1B oim #1, byte_18 oim #2, byte_75 loc_DEB8: ; CODE XREF: sub_DC76+22Ej ; sub_DC76+233j oim #2, byte_5E ldx unk_AA stx byte_5C ldx byte_5A stx unk_AA ldaa byte_AD cmpa #$F bcs loc_DECE ldd #$FFFF bra loc_DED1 ; --------------------------------------------------------------------------- loc_DECE: ; CODE XREF: sub_DC76+251j xgdx subd byte_5C loc_DED1: ; CODE XREF: sub_DC76+256j std byte_B4 ldaa unk_F7 bne loc_DEE4 tim #2, PORT1 beq loc_DEE1 jsr sub_DF94 bra loc_DEE4 ; --------------------------------------------------------------------------- loc_DEE1: ; CODE XREF: sub_DC76+264j jsr sub_E01F loc_DEE4: ; CODE XREF: sub_DC76+25Fj ; sub_DC76+269j inc unk_A6 ldaa byte_A7 inca bne loc_DEEE ldaa #$F8 ; '' loc_DEEE: ; CODE XREF: sub_DC76+274j tim #$40, byte_63 ; '@' bne loc_DF21 tim #$20, byte_75 ; ' ' bne loc_DF11 cmpa #7 bcs loc_DEFF oim #8, byte_75 loc_DEFF: ; CODE XREF: sub_DC76+284j ldab unk_BF incb bne loc_DF05 decb loc_DF05: ; CODE XREF: sub_DC76+28Cj stab unk_BF cmpb byte_C026 bcs loc_DF0F oim #4, byte_70 loc_DF0F: ; CODE XREF: sub_DC76+294j bra loc_DF78 ; --------------------------------------------------------------------------- loc_DF11: ; CODE XREF: sub_DC76+280j oim #$40, byte_63 ; '@' clra tim #$10, byte_75 beq loc_DF1C ldaa #2 loc_DF1C: ; CODE XREF: sub_DC76+2A2j clr unk_BF bra loc_DF78 ; --------------------------------------------------------------------------- loc_DF21: ; CODE XREF: sub_DC76+27Bj bita #1 bne loc_DF56 tim #$20, byte_75 ; ' ' bne loc_DF30 oim #8, byte_75 deca bra loc_DF68 ; --------------------------------------------------------------------------- loc_DF30: ; CODE XREF: sub_DC76+2B2j suba #4 bcc loc_DF36 adda #4 loc_DF36: ; CODE XREF: sub_DC76+2BCj clrb bita #2 beq loc_DF3D ldab #$10 loc_DF3D: ; CODE XREF: sub_DC76+2C3j eorb byte_75 bitb #$10 bne loc_DF4E aim #$FB, byte_70 ; '' aim #$F7, byte_75 ; '' clr unk_BF bra loc_DF78 ; --------------------------------------------------------------------------- loc_DF4E: ; CODE XREF: sub_DC76+2CBj suba #2 bcc loc_DF54 adda #2 loc_DF54: ; CODE XREF: sub_DC76+2DAj bra loc_DF68 ; --------------------------------------------------------------------------- loc_DF56: ; CODE XREF: sub_DC76+2ADj tim #$20, byte_75 ; ' ' bne loc_DF68 tim #1, byte_6E beq loc_DF65 oim #1, byte_73 bra loc_DF68 ; --------------------------------------------------------------------------- loc_DF65: ; CODE XREF: sub_DC76+2E8j aim #$FE, byte_73 ; '' loc_DF68: ; CODE XREF: sub_DC76+2B8j ; sub_DC76:loc_DF54j ... ldab unk_BF incb bne loc_DF6E decb loc_DF6E: ; CODE XREF: sub_DC76+2F5j stab unk_BF cmpb byte_C026 bcs loc_DF78 oim #4, byte_70 loc_DF78: ; CODE XREF: sub_DC76:loc_DF0Fj ; sub_DC76+2A9j ... staa byte_A7 aim #$CF, byte_75 ; '' jsr sub_D62A tim #2, PORT1 beq loc_DF88 oim #2, byte_75 loc_DF88: ; CODE XREF: sub_DC76+30Dj tim #1, byte_A7 beq loc_DF90 oim #$C, byte_5E loc_DF90: ; CODE XREF: sub_DC76+315j aim #$FB, byte_75 ; '' rts ; End of function sub_DC76 ; =============== S U B R O U T I N E ======================================= sub_DF94: ; CODE XREF: sub_DC76+1F6P ; sub_DC76+266P tim #2, byte_18 bne loc_DFA5 ldd unk_FB subd unk_F9 bcc loc_DFA1 clra clrb loc_DFA1: ; CODE XREF: sub_DF94+9j addd unk_A8 bra loc_E000 ; --------------------------------------------------------------------------- loc_DFA5: ; CODE XREF: sub_DF94+3j tim #4, byte_75 bne loc_DFEF ldd byte_19 addd #$A std byte_1B aim #$FE, byte_18 ; '' oim #4, byte_75 ldd unk_FF subd #$12B bcs loc_DFD7 stab byte_5A ldd unk_AA subd unk_A8 xgdx ldaa #$DB ; '' jsr sub_F67D xgdx ldaa byte_5A jsr sub_F67D subb byte_C4BB sbca #0 bcc loc_DFD9 loc_DFD7: ; CODE XREF: sub_DF94+28j clra clrb loc_DFD9: ; CODE XREF: sub_DF94+41j addd unk_AA xgdx ldd byte_1B addd #$1F4 std byte_5A cpx byte_5A bpl loc_DFE8 xgdx loc_DFE8: ; CODE XREF: sub_DF94+51j stx byte_1B oim #1, byte_18 bra locret_E01E ; --------------------------------------------------------------------------- loc_DFEF: ; CODE XREF: sub_DF94+14j ldx byte_B4 ldaa #$9C ; '' jsr sub_F67D addd unk_FB subd unk_F9 bcc loc_DFFE clra clrb loc_DFFE: ; CODE XREF: sub_DF94+66j addd unk_AA loc_E000: ; CODE XREF: sub_DF94+Fj xgdx ldd byte_19 addd #$1B std byte_5A cpx byte_5A bpl loc_E019 stx byte_5C xgdx subd byte_5A ldx byte_5C cmpa #$E0 ; '' bcs loc_E019 ldx byte_5A loc_E019: ; CODE XREF: sub_DF94+76j sub_DF94+81j stx byte_1B aim #$FE, byte_18 ; '' locret_E01E: ; CODE XREF: sub_DF94+59j rts ; End of function sub_DF94 ; =============== S U B R O U T I N E ======================================= sub_E01F: ; CODE XREF: sub_DC76:loc_DE71P ; sub_DC76:loc_DEE1P tim #2, byte_18 bne loc_E040 oim #4, byte_75 ldd unk_FB addd unk_A8 tim #1, byte_75 beq loc_E049 xgdx ldd unk_B2 addd unk_AA addd #$C8 ; '' std byte_5A cpx byte_5A bmi loc_E04A bra locret_E05B ; --------------------------------------------------------------------------- loc_E040: ; CODE XREF: sub_E01F+3j tim #2, byte_75 bne locret_E05B ldd unk_FD addd unk_AA loc_E049: ; CODE XREF: sub_E01F+Fj xgdx loc_E04A: ; CODE XREF: sub_E01F+1Dj ldd byte_19 addd #$10 std byte_5A cpx byte_5A bpl loc_E056 xgdx loc_E056: ; CODE XREF: sub_E01F+34j stx byte_1B oim #1, byte_18 locret_E05B: ; CODE XREF: sub_E01F+1Fj sub_E01F+24j rts ; End of function sub_E01F ; =============== S U B R O U T I N E ======================================= sub_E05C: ; CODE XREF: ROM:CDABP ldx byte_1B stx byte_1B ldaa byte_F6 bne loc_E065 rts ; --------------------------------------------------------------------------- loc_E065: ; CODE XREF: sub_E05C+6j tim #2, PORT1 bne loc_E0A4 ldaa unk_F7 bne locret_E0A3 tim #2, byte_18 bne locret_E0A3 tim #2, byte_75 bne locret_E0A3 oim #4, byte_75 ldd unk_FB addd unk_A8 xgdx tim #1, byte_75 beq loc_E092 ldd unk_B2 addd unk_AA addd #$C8 ; '' std byte_5A cpx byte_5A bpl locret_E0A3 loc_E092: ; CODE XREF: sub_E05C+27j ldd byte_19 addd #$10 std byte_5A cpx byte_5A bpl loc_E09E xgdx loc_E09E: ; CODE XREF: sub_E05C+3Fj stx byte_1B oim #1, byte_18 locret_E0A3: ; CODE XREF: sub_E05C+10j sub_E05C+15j ... rts ; --------------------------------------------------------------------------- loc_E0A4: ; CODE XREF: sub_E05C+Cj ldaa unk_F7 bne loc_E0EF tim #2, byte_18 bne loc_E0C0 ldd unk_B2 addd unk_FB bcc loc_E0B6 ldd #$FFFF loc_E0B6: ; CODE XREF: sub_E05C+55j subd unk_F9 bcc loc_E0BC clra clrb loc_E0BC: ; CODE XREF: sub_E05C+5Cj addd unk_A8 bra loc_E0D1 ; --------------------------------------------------------------------------- loc_E0C0: ; CODE XREF: sub_E05C+4Fj ldx byte_B4 ldaa #$9C ; '' jsr sub_F67D addd unk_FB subd unk_F9 bcc loc_E0CF clra clrb loc_E0CF: ; CODE XREF: sub_E05C+6Fj addd unk_AA loc_E0D1: ; CODE XREF: sub_E05C+62j xgdx ldd byte_19 addd #$FA ; '' std byte_5A cpx byte_5A bpl loc_E0EA stx byte_5C xgdx subd byte_5A ldx byte_5C cmpa #$E0 ; '' bcs loc_E0EA ldx byte_5A loc_E0EA: ; CODE XREF: sub_E05C+7Fj sub_E05C+8Aj stx byte_1B aim #$FE, byte_18 ; '' loc_E0EF: ; CODE XREF: sub_E05C+4Aj oim #2, byte_75 rts ; End of function sub_E05C ; =============== S U B R O U T I N E ======================================= sub_E0F3: ; CODE XREF: sub_CAC5+D5P ldaa #$2B ; '+' tim #4, byte_74 beq loc_E133 ldx byte_A3 cpx #$1000 bls loc_E104 ldx #$1000 loc_E104: ; CODE XREF: sub_E0F3+Cj xgdx subd #$200 bcc loc_E10C clra clrb This is supposed to be ign timing at idle? rows of eight loc_E10C: ; CODE XREF: sub_E0F3+15j lsrd ldx #$C500 ; IGN_LUT_1B (idle)? tim #$10, byte_7D beq loc_E118 ldx #$C508 ; IGN_LUT_1C (idle)? loc_E118: ; CODE XREF: sub_E0F3+20j tim #$10, byte_62 bne loc_E130 ldx #$C510 ; IGN_LUT_1D (idle)? tim #$10, byte_7D beq loc_E128 ldx #$C518 ; IGN_LUT_1E (idle)? loc_E128: ; CODE XREF: sub_E0F3+30j tim #$40, byte_62 ; '@' bne loc_E130 ldx #$C4F8 ; IGN_LUT_1A (idle)? loc_E130: ; CODE XREF: sub_E0F3+28j sub_E0F3+38j jsr sub_F7B7 loc_E133: ; CODE XREF: sub_E0F3+5j staa unk_EF tim #$80, byte_66 ; '' bne loc_E17E tim #$80, byte_77 ; '' beq loc_E17E tim #1, byte_62 beq loc_E17E ldd byte_A3 subd word_137 bls loc_E15F xgdx ldaa byte_C4CA jsr sub_F67D tsta beq loc_E157 ldab #$FF loc_E157: ; CODE XREF: sub_E0F3+60j ldaa #$80 ; '' sba bcc loc_E15D clra loc_E15D: ; CODE XREF: sub_E0F3+67j bra loc_E176 ; --------------------------------------------------------------------------- loc_E15F: ; CODE XREF: sub_E0F3+56j coma negb sbca #$FF xgdx ldaa byte_C4CA jsr sub_F67D tsta beq loc_E16F ldab #$FF loc_E16F: ; CODE XREF: sub_E0F3+78j addb #$80 ; '' bcc loc_E175 ldab #$FF loc_E175: ; CODE XREF: sub_E0F3+7Ej tba loc_E176: ; CODE XREF: sub_E0F3:loc_E15Dj ldx #$C4C8 jsr sub_F5F7 bra loc_E180 ; --------------------------------------------------------------------------- loc_E17E: ; CODE XREF: sub_E0F3+45j sub_E0F3+4Aj ... ldaa #$80 ; '' loc_E180: ; CODE XREF: sub_E0F3+89j staa unk_F0 clra ldab unk_F2 tim #4, byte_74 beq loc_E190 addb unk_EF adca #0 bra loc_E1A4 ; --------------------------------------------------------------------------- loc_E190: ; CODE XREF: sub_E0F3+95j addb unk_F1 adca #0 tim #$20, byte_68 ; ' ' bne loc_E1A4 tim #$10, byte_6D beq loc_E1A4 subb unk_F5 sbca #0 bcs loc_E1A9 loc_E1A4: ; CODE XREF: sub_E0F3+9Bj sub_E0F3+A4j ... subd #$2B ; '+' bcc loc_E1AB loc_E1A9: ; CODE XREF: sub_E0F3+AFj clra clrb loc_E1AB: ; CODE XREF: sub_E0F3+B4j tsta beq loc_E1B0 ldab #$FF loc_E1B0: ; CODE XREF: sub_E0F3+B9j ldaa byte_C4C0 beq loc_E1C2 nega mul std byte_50 ldaa byte_C4C0 ldab byte_EE mul addd byte_50 tab loc_E1C2: ; CODE XREF: sub_E0F3+C0j stab byte_EE tim #1, byte_74 beq loc_E1CE ldaa byte_C4BF bra loc_E1FC ; --------------------------------------------------------------------------- loc_E1CE: ; CODE XREF: sub_E0F3+D4j tim #2, byte_74 beq loc_E1D8 ldaa byte_C4C3 bra loc_E1FC ; --------------------------------------------------------------------------- loc_E1D8: ; CODE XREF: sub_E0F3+DEj ldx #$80 ; '' ldab unk_F3 abx ldab unk_F4 abx stx byte_50 clra ldab byte_EE addb unk_F0 adca #0 subd byte_50 bcc loc_E1F0 clra clrb loc_E1F0: ; CODE XREF: sub_E0F3+F9j tsta beq loc_E1F5 ldab #$FF loc_E1F5: ; CODE XREF: sub_E0F3+FEj tba ldx #$C4C1 jsr sub_F5F7 loc_E1FC: ; CODE XREF: sub_E0F3+D9j sub_E0F3+E3j staa byte_ED rts ; End of function sub_E0F3 ; =============== S U B R O U T I N E ======================================= sub_E1FF: ; CODE XREF: sub_CAC5+D8P tim #$10, byte_66 bne locret_E227 ldab unk_F8 clra lsld lsld lsld lsld std byte_50 ldd byte_B0 lsrd lsrd lsrd lsrd addd byte_50 xgdx ldab byte_C4BC clra lsld lsld std byte_52 xgdx subd byte_52 bcc loc_E225 clra clrb loc_E225: ; CODE XREF: sub_E1FF+22j std unk_F9 locret_E227: ; CODE XREF: sub_E1FF+3j rts ; End of function sub_E1FF ; =============== S U B R O U T I N E ======================================= sub_E228: ; CODE XREF: sub_CAC5+F3P tim #$10, byte_66 beq locret_E247 ldab unk_F8 clra lsld lsld lsld lsld std byte_50 ldx byte_B4 ldaa byte_C4B5 jsr sub_F67D xgdx cpx byte_50 bls loc_E245 ldx byte_50 loc_E245: ; CODE XREF: sub_E228+19j stx unk_F9 locret_E247: ; CODE XREF: sub_E228+3j rts ; End of function sub_E228 ; =============== S U B R O U T I N E ======================================= sub_E248: ; CODE XREF: sub_CAC5+132P tim #4, byte_6B bne loc_E252 clr unk_F3 bra locret_E270 ; --------------------------------------------------------------------------- loc_E252: ; CODE XREF: sub_E248+3j tim #$40, byte_66 ; '@' bne locret_E270 tst unk_BA beq locret_E270 ldaa byte_C4C7 cmpa unk_91 bhi locret_E270 cmpa unk_92 bls locret_E270 ldaa byte_C4C4 cmpa unk_F3 bls locret_E270 staa unk_F3 locret_E270: ; CODE XREF: sub_E248+8j sub_E248+Dj ... rts ; End of function sub_E248 ; =============== S U B R O U T I N E ======================================= sub_E271: ; CODE XREF: sub_CAC5+DBP ldaa unk_F3 beq locret_E283 suba byte_C4C5 bcc loc_E27B clra loc_E27B: ; CODE XREF: sub_E271+7j cmpa byte_C4C6 bcc loc_E281 clra loc_E281: ; CODE XREF: sub_E271+Dj staa unk_F3 locret_E283: ; CODE XREF: sub_E271+2j rts ; End of function sub_E271 ; =============== S U B R O U T I N E ======================================= sub_E284: ; CODE XREF: sub_CAC5+17AP ldd byte_A3 subd #$200 bcc loc_E28D clra clrb loc_E28D: ; CODE XREF: sub_E284+5j lsrd std byte_54 ldd byte_96 subd #$80 ; '' bcc loc_E299 clra clrb loc_E299: ; CODE XREF: sub_E284+11j lsld bcc loc_E29F ldd #$FFFF loc_E29F: ; CODE XREF: sub_E284+16j ldx #$C52F ; Ignition timing - Medium loads tim #8, byte_63 bne loc_E2AA ldx #$C603 ; Ignition timing - cold/start loc_E2AA: ; CODE XREF: sub_E284+21j jsr sub_F85A staa unk_F1 rts ; End of function sub_E284 ; =============== S U B R O U T I N E ======================================= sub_E2B0: ; CODE XREF: sub_CAC5+17DP tim #1, byte_62 beq loc_E2BA ldaa byte_C4CD bra loc_E2C0 ; --------------------------------------------------------------------------- loc_E2BA: ; CODE XREF: sub_E2B0+3j ldaa unk_102 beq loc_E2C3 deca loc_E2C0: ; CODE XREF: sub_E2B0+8j staa unk_102 loc_E2C3: ; CODE XREF: sub_E2B0+Dj tim #8, byte_62 beq loc_E2CE aim #$EF, byte_63 ; '' clra bra loc_E2FA ; --------------------------------------------------------------------------- loc_E2CE: ; CODE XREF: sub_E2B0+16j ldab unk_9A cmpb byte_C4CE bcs loc_E2F1 tim #$80, unk_69 ; '' beq loc_E2DF ldaa unk_102 beq loc_E2F1 loc_E2DF: ; CODE XREF: sub_E2B0+28j tim #$40, unk_69 ; '@' beq loc_E2F1 tim #8, byte_6B beq loc_E2F1 oim #$10, byte_63 ldaa byte_C4CC bra loc_E2FA ; --------------------------------------------------------------------------- loc_E2F1: ; CODE XREF: sub_E2B0+23j sub_E2B0+2Dj ... aim #$EF, byte_63 ; '' ldaa unk_101 beq locret_E2FD deca loc_E2FA: ; CODE XREF: sub_E2B0+1Cj sub_E2B0+3Fj staa unk_101 locret_E2FD: ; CODE XREF: sub_E2B0+47j rts ; End of function sub_E2B0 maybe Code? ; =============== S U B R O U T I N E ======================================= sub_E2FE: ; CODE XREF: ROM:CC79P ldaa byte_F6 beq locret_E316 dec byte_F6 bne locret_E316 sei ldx byte_19 ldab #$A abx stx byte_1B oim #1, byte_18 oim #2, byte_75 cli locret_E316: ; CODE XREF: sub_E2FE+2j sub_E2FE+7j rts ; End of function sub_E2FE ; =============== S U B R O U T I N E ======================================= sub_E317: ; CODE XREF: ROM:CC7CP tim #1, byte_6F bne loc_E32B tim #1, byte_60 bne loc_E32B tim #1, byte_66 beq loc_E32B tst byte_F6 bne loc_E32F loc_E32B: ; CODE XREF: sub_E317+3j sub_E317+8j ... ldaa #1 bra loc_E348 ; --------------------------------------------------------------------------- loc_E32F: ; CODE XREF: sub_E317+12j tst byte_C4BE beq loc_E338 ldaa #2 bra loc_E348 ; --------------------------------------------------------------------------- loc_E338: ; CODE XREF: sub_E317+1Bj tim #1, byte_62 beq loc_E346 tim #4, byte_65 bne loc_E346 ldaa #4 bra loc_E348 ; --------------------------------------------------------------------------- loc_E346: ; CODE XREF: sub_E317+24j sub_E317+29j ldaa #8 loc_E348: ; CODE XREF: sub_E317+16j sub_E317+1Fj ... staa byte_74 rts ; End of function sub_E317 ; =============== S U B R O U T I N E ======================================= sub_E34B: ; CODE XREF: ROM:CC7FP jsr sub_F7E4 ldx #$C520 jsr sub_F7B7 staa byte_103 rts ; End of function sub_E34B ; =============== S U B R O U T I N E ======================================= sub_E358: ; CODE XREF: ROM:CC82P tim #$10, byte_63 beq loc_E360 clra bra loc_E374 ; --------------------------------------------------------------------------- loc_E360: ; CODE XREF: sub_E358+3j ldaa byte_C4CB ldab byte_108 subb byte_109 bcs loc_E36E mul bra loc_E371 ; --------------------------------------------------------------------------- loc_E36E: ; CODE XREF: sub_E358+11j negb mul nega loc_E371: ; CODE XREF: sub_E358+14j adda byte_109 loc_E374: ; CODE XREF: sub_E358+6j staa byte_108 rts ; End of function sub_E358 ; =============== S U B R O U T I N E ======================================= sub_E378: ; CODE XREF: sub_CAC5+D2P sei ldd byte_B0 std byte_50 ldd unk_AE cli subd byte_50 bcc loc_E386 clra clrb loc_E386: ; CODE XREF: sub_E378+Aj tsta beq loc_E38B ldab #$FF loc_E38B: ; CODE XREF: sub_E378+Fj ldx #$10A ldaa 2,x staa 3,x ldaa 1,x staa 2,x ldaa 0,x staa 1,x stab 0,x clra addb 1,x adca #0 tim #4, unk_69 beq loc_E3AF addb 2,x adca #0 addb 3,x adca #0 lsrd loc_E3AF: ; CODE XREF: sub_E378+2Cj lsrd stab byte_109 subb byte_108 bhi loc_E3BB clra bra loc_E3EE ; --------------------------------------------------------------------------- loc_E3BB: ; CODE XREF: sub_E378+3Ej stab byte_52 ldaa byte_C4CF ldab unk_101 mul cmpa #$20 ; ' ' bcs loc_E3CB ldd #$1FFF loc_E3CB: ; CODE XREF: sub_E378+4Ej lsld lsld lsld ldab byte_52 mul xgdx ldaa unk_A5 jsr sub_F67D cmpa #$20 ; ' ' bcs loc_E3DE ldd #$1FFF loc_E3DE: ; CODE XREF: sub_E378+61j lsld lsld lsld ldab unk_A5 mul cmpa #$20 ; ' ' bcs loc_E3EB ldd #$1FFF loc_E3EB: ; CODE XREF: sub_E378+6Ej lsld lsld lsld loc_E3EE: ; CODE XREF: sub_E378+41j ldx #$104 ldab 2,x stab 3,x ldab 1,x stab 2,x ldab 0,x stab 1,x staa 0,x tim #8, byte_6B bne loc_E407 clrb bra loc_E423 ; --------------------------------------------------------------------------- loc_E407: ; CODE XREF: sub_E378+8Aj tim #8, unk_69 beq loc_E419 inx tim #$10, unk_69 beq loc_E419 inx tim #$20, unk_69 ; ' ' beq loc_E419 inx loc_E419: ; CODE XREF: sub_E378+92j sub_E378+98j ... ldab 0,x cmpb byte_103 bls loc_E423 ldab byte_103 loc_E423: ; CODE XREF: sub_E378+8Dj sub_E378+A6j stab unk_F4 rts ; End of function sub_E378 ; =============== S U B R O U T I N E ======================================= sub_E426: ; CODE XREF: ROM:CD0DP sub_DC60+CP ldaa byte_8D ldab #8 mul cmpa #6 bcs loc_E433 lsld subd #$600 loc_E433: ; CODE XREF: sub_E426+7j ldx #$C4DE jsr sub_F7B7 staa unk_F2 rts ; End of function sub_E426 ; =============== S U B R O U T I N E ======================================= sub_E43C: ; CODE XREF: ROM:CD10P sub_DC60+FP ldaa byte_8B ldx #$C4D3 jsr sub_F7B4 staa unk_F8 rts ; End of function sub_E43C ; =============== S U B R O U T I N E ======================================= sub_E447: ; CODE XREF: ROM:CD13P sub_DC60+12P ldaa byte_8F cmpa #$E0 ; '' bls loc_E44F ldaa #$E0 ; '' loc_E44F: ; CODE XREF: sub_E447+4j ldab #$10 mul ldx #$C4E9 jsr sub_F7B7 staa unk_F5 rts ; End of function sub_E447 ; =============== S U B R O U T I N E ======================================= sub_E45B: ; CODE XREF: sub_CAC5+31P ldaa byte_C75A staa byte_131 ldaa byte_C75B staa byte_13C ldaa byte_C75C staa byte_12D ldd word_C6D5 std word_12A jsr sub_EEF1 jsr sub_EEDD jsr sub_E9DA jsr sub_EE57 jsr sub_EE8D jsr sub_E904 jsr sub_EEAB jsr sub_EEBF rts ; End of function sub_E45B ; =============== S U B R O U T I N E ======================================= sub_E48C: ; CODE XREF: ROM:CDC4P tim #8, PORT1 bne loc_E4BF tim #1, byte_77 bne loc_E4AA oim #$80, byte_5E ; '' ldaa unk_80 anda #$F bne loc_E4A7 oim #$40, byte_5E ; '@' jsr sub_EF2B bra loc_E4AA ; --------------------------------------------------------------------------- loc_E4A7: ; CODE XREF: sub_E48C+11j jsr sub_EF17 loc_E4AA: ; CODE XREF: sub_E48C+8j sub_E48C+19j ldx word_12A cpx #$186A bcs loc_E4B5 ldx #$186A loc_E4B5: ; CODE XREF: sub_E48C+24j xgdx lsrd addd unk_13D oim #1, byte_77 bra loc_E4D5 ; --------------------------------------------------------------------------- loc_E4BF: ; CODE XREF: sub_E48C+3j ldd unk_13D tim #1, byte_77 beq loc_E4D5 dec unk_80 addd #$C35 std unk_13D ldx unk_2D aim #$FE, byte_77 ; '' loc_E4D5: ; CODE XREF: sub_E48C+31j sub_E48C+39j std byte_5A ldab #$11 ldx unk_29 abx cpx byte_5A bpl loc_E4E2 ldx byte_5A loc_E4E2: ; CODE XREF: sub_E48C+52j stx unk_2B tim #1, byte_77 bne loc_E4EE aim #$BF, byte_28 ; '' bra loc_E4F1 ; --------------------------------------------------------------------------- loc_E4EE: ; CODE XREF: sub_E48C+5Bj oim #$40, byte_28 ; '@' loc_E4F1: ; CODE XREF: sub_E48C+60j tim #8, byte_7D beq locret_E528 jsr sub_F0E1 ldd unk_2B subd unk_156 bmi locret_E528 subd #$FA ; '' bmi locret_E528 ldd unk_156 subb #$42 ; 'B' sbca #0 std byte_5A ldab #$11 ldx unk_29 abx cpx byte_5A bpl loc_E519 ldx byte_5A loc_E519: ; CODE XREF: sub_E48C+89j stx unk_2B tim #1, byte_77 beq loc_E525 aim #$BF, byte_28 ; '' bra locret_E528 ; --------------------------------------------------------------------------- loc_E525: ; CODE XREF: sub_E48C+92j oim #$40, byte_28 ; '@' locret_E528: ; CODE XREF: sub_E48C+68j sub_E48C+72j ... rts ; End of function sub_E48C ; =============== S U B R O U T I N E ======================================= sub_E529: ; CODE XREF: ROM:CC8AP ldaa #1 tim #4, byte_67 beq loc_E54F tim #1, byte_60 bne loc_E54F ldab byte_150 bne loc_E54F ldaa #2 tim #$20, byte_60 ; ' ' bne loc_E54F ldaa #8 tim #1, byte_62 beq loc_E54F tim #2, byte_67 bne loc_E54F ldaa #4 loc_E54F: ; CODE XREF: sub_E529+5j sub_E529+Aj ... staa byte_76 rts ; End of function sub_E529 ; =============== S U B R O U T I N E ======================================= sub_E552: ; CODE XREF: ROM:CC8DP ldab byte_61 andb #7 tim #$10, byte_7D beq loc_E55D addb #8 loc_E55D: ; CODE XREF: sub_E552+7j tim #$10, byte_61 beq loc_E564 addb #$10 loc_E564: ; CODE XREF: sub_E552+Ej tim #8, byte_63 bne loc_E572 addb #$20 ; ' ' tim #$40, byte_62 ; '@' beq loc_E572 addb #$20 ; ' ' loc_E572: ; CODE XREF: sub_E552+15j sub_E552+1Cj ldx #$C6DC abx ldab 0,x clra lsld lsld std byte_50 clra clrb tim #$10, byte_7D beq loc_E596 tim #4, byte_7A bne loc_E59E oim #4, byte_7A ldab byte_C73C lsld lsld std word_10E bra loc_E5A1 ; --------------------------------------------------------------------------- loc_E596: ; CODE XREF: sub_E552+30j aim #$FB, byte_7A ; '' std word_10E bra loc_E5A5 ; --------------------------------------------------------------------------- loc_E59E: ; CODE XREF: sub_E552+35j ldd word_10E loc_E5A1: ; CODE XREF: sub_E552+42j addd byte_50 std byte_50 loc_E5A5: ; CODE XREF: sub_E552+4Aj clra clrb tim #$10, byte_61 beq loc_E5BE tim #2, byte_7A bne loc_E5C6 oim #2, byte_7A ldab byte_C73D lsld lsld std word_110 bra loc_E5C9 ; --------------------------------------------------------------------------- loc_E5BE: ; CODE XREF: sub_E552+58j aim #$FD, byte_7A ; '' std word_110 bra loc_E5CD ; --------------------------------------------------------------------------- loc_E5C6: ; CODE XREF: sub_E552+5Dj ldd word_110 loc_E5C9: ; CODE XREF: sub_E552+6Aj addd byte_50 std byte_50 loc_E5CD: ; CODE XREF: sub_E552+72j ldx byte_50 clrb tim #1, byte_61 beq loc_E5E5 tim #8, byte_7A bne loc_E5ED oim #8, byte_7A ldab byte_C73E stab byte_112 bra loc_E5F0 ; --------------------------------------------------------------------------- loc_E5E5: ; CODE XREF: sub_E552+81j aim #$F7, byte_7A ; '' stab byte_112 bra loc_E5F3 ; --------------------------------------------------------------------------- loc_E5ED: ; CODE XREF: sub_E552+86j ldab byte_112 loc_E5F0: ; CODE XREF: sub_E552+91j abx stx byte_50 loc_E5F3: ; CODE XREF: sub_E552+99j clrb tim #2, byte_61 beq loc_E609 tim #$10, byte_7A bne loc_E611 oim #$10, byte_7A ldab byte_C73F stab byte_113 bra loc_E614 ; --------------------------------------------------------------------------- loc_E609: ; CODE XREF: sub_E552+A5j aim #$EF, byte_7A ; '' stab byte_113 bra loc_E617 ; --------------------------------------------------------------------------- loc_E611: ; CODE XREF: sub_E552+AAj ldab byte_113 loc_E614: ; CODE XREF: sub_E552+B5j abx stx byte_50 loc_E617: ; CODE XREF: sub_E552+BDj clrb tim #4, byte_61 beq loc_E62D tim #$20, byte_7A ; ' ' bne loc_E635 oim #$20, byte_7A ; ' ' ldab byte_C740 stab byte_114 bra loc_E638 ; --------------------------------------------------------------------------- loc_E62D: ; CODE XREF: sub_E552+C9j aim #$DF, byte_7A ; '' stab byte_114 bra loc_E63B ; --------------------------------------------------------------------------- loc_E635: ; CODE XREF: sub_E552+CEj ldab byte_114 loc_E638: ; CODE XREF: sub_E552+D9j abx stx byte_50 loc_E63B: ; CODE XREF: sub_E552+E1j clra clrb tim #$40, byte_62 ; '@' beq loc_E665 tim #1, byte_7A bne loc_E66D ldaa byte_8D tim #2, byte_71 beq loc_E651 ldaa byte_C021 loc_E651: ; CODE XREF: sub_E552+FAj ldx #$C808 jsr sub_F7D8 oim #1, byte_7A lsrd lsrd lsrd lsrd lsrd lsrd std word_115 bra loc_E670 ; --------------------------------------------------------------------------- loc_E665: ; CODE XREF: sub_E552+EEj aim #$FE, byte_7A ; '' std word_115 bra loc_E670 ; --------------------------------------------------------------------------- loc_E66D: ; CODE XREF: sub_E552+F3j ldd word_115 loc_E670: ; CODE XREF: sub_E552+111j ; sub_E552+119j addd byte_50 xgdx cpx word_C754 bls loc_E67B ldx word_C754 loc_E67B: ; CODE XREF: sub_E552+124j tim #1, byte_60 beq loc_E683 ldx #0 loc_E683: ; CODE XREF: sub_E552+12Cj stx word_11F rts ; End of function sub_E552 ; =============== S U B R O U T I N E ======================================= sub_E687: ; CODE XREF: ROM:CCD9P ldd word_10E beq loc_E69D tim #$10, byte_7D beq loc_E698 subb byte_C741 sbca #0 bcc loc_E69A loc_E698: ; CODE XREF: sub_E687+8j clra clrb loc_E69A: ; CODE XREF: sub_E687+Fj std word_10E loc_E69D: ; CODE XREF: sub_E687+3j ldd word_110 beq loc_E6B3 tim #$10, byte_61 beq loc_E6AE subb byte_C742 sbca #0 bcc loc_E6B0 loc_E6AE: ; CODE XREF: sub_E687+1Ej clra clrb loc_E6B0: ; CODE XREF: sub_E687+25j std word_110 loc_E6B3: ; CODE XREF: sub_E687+19j ldab byte_112 beq loc_E6C6 tim #1, byte_61 beq loc_E6C2 subb byte_C743 bcc loc_E6C3 loc_E6C2: ; CODE XREF: sub_E687+34j clrb loc_E6C3: ; CODE XREF: sub_E687+39j stab byte_112 loc_E6C6: ; CODE XREF: sub_E687+2Fj ldab byte_113 beq loc_E6D9 tim #2, byte_61 beq loc_E6D5 subb byte_C744 bcc loc_E6D6 loc_E6D5: ; CODE XREF: sub_E687+47j clrb loc_E6D6: ; CODE XREF: sub_E687+4Cj stab byte_113 loc_E6D9: ; CODE XREF: sub_E687+42j ldab byte_114 beq loc_E6EC tim #4, byte_61 beq loc_E6E8 subb byte_C745 bcc loc_E6E9 loc_E6E8: ; CODE XREF: sub_E687+5Aj clrb loc_E6E9: ; CODE XREF: sub_E687+5Fj stab byte_114 loc_E6EC: ; CODE XREF: sub_E687+55j ldd word_115 beq loc_E702 tim #$40, byte_62 ; '@' beq loc_E6FD subb byte_C746 sbca #0 bcc loc_E6FF loc_E6FD: ; CODE XREF: sub_E687+6Dj clra clrb loc_E6FF: ; CODE XREF: sub_E687+74j std word_115 loc_E702: ; CODE XREF: sub_E687+68j tim #$10, byte_60 beq loc_E71D ldx #$C779 ldaa byte_12C beq loc_E715 deca staa byte_12C bne loc_E716 loc_E715: ; CODE XREF: sub_E687+86j inx loc_E716: ; CODE XREF: sub_E687+8Cj ldaa byte_11C suba 0,x bcc loc_E71E loc_E71D: ; CODE XREF: sub_E687+7Ej clra loc_E71E: ; CODE XREF: sub_E687+94j staa byte_11C rts ; End of function sub_E687 ; =============== S U B R O U T I N E ======================================= sub_E722: ; CODE XREF: ROM:CC90P ldx #$C810 tim #8, byte_63 bne loc_E735 ldx #$C820 tim #$40, byte_62 ; '@' beq loc_E735 ldx #$C830 loc_E735: ; CODE XREF: sub_E722+6j sub_E722+Ej ldab byte_8D tim #2, byte_71 beq loc_E73F ldab byte_C021 loc_E73F: ; CODE XREF: sub_E722+18j jsr loc_F7FA std word_121 rts ; End of function sub_E722 ; =============== S U B R O U T I N E ======================================= sub_E746: ; CODE XREF: ROM:CCE8P clra tim #1, byte_62 beq loc_E751 tim #8, byte_62 bne loc_E784 loc_E751: ; CODE XREF: sub_E746+4j tim #$10, byte_7D bne loc_E784 tim #$10, byte_73 beq loc_E784 tim #$10, byte_61 bne loc_E784 tim #2, byte_65 bne loc_E772 ldaa byte_117 beq locret_E787 suba byte_C748 bcc loc_E770 clra loc_E770: ; CODE XREF: sub_E746+27j bra loc_E784 ; --------------------------------------------------------------------------- loc_E772: ; CODE XREF: sub_E746+1Dj ldaa byte_117 adda byte_C747 bcc loc_E77C ldaa #$FF loc_E77C: ; CODE XREF: sub_E746+32j cmpa byte_C749 bls loc_E784 ldaa byte_C749 loc_E784: ; CODE XREF: sub_E746+9j sub_E746+Ej ... staa byte_117 locret_E787: ; CODE XREF: sub_E746+22j rts ; End of function sub_E746 ; =============== S U B R O U T I N E ======================================= sub_E788: ; CODE XREF: ROM:CC93P clrb tim #$10, byte_60 beq loc_E7B2 tim #$10, byte_62 bne loc_E7B2 tim #8, byte_67 bne loc_E7B4 tim #$40, byte_77 ; '@' beq loc_E7B4 ldx #$C765 tim #$10, byte_7D bne loc_E7B0 ldx #$C764 tim #$80, byte_61 ; '' bne loc_E7B0 ldx #$C763 loc_E7B0: ; CODE XREF: sub_E788+1Bj sub_E788+23j bra loc_E827 ; --------------------------------------------------------------------------- loc_E7B2: ; CODE XREF: sub_E788+4j sub_E788+9j bra loc_E829 ; --------------------------------------------------------------------------- loc_E7B4: ; CODE XREF: sub_E788+Ej sub_E788+13j tim #$40, byte_62 ; '@' bne loc_E7FE tim #$10, byte_7D bne loc_E7E7 tim #1, byte_79 beq loc_E82C tim #$10, byte_79 beq loc_E82C tim #8, byte_63 beq loc_E7DA ldx #$C767 tim #$80, byte_61 ; '' bne loc_E827 ldx #$C766 bra loc_E827 ; --------------------------------------------------------------------------- loc_E7DA: ; CODE XREF: sub_E788+43j ldx #$C76A tim #$80, byte_61 ; '' bne loc_E827 ldx #$C769 bra loc_E827 ; --------------------------------------------------------------------------- loc_E7E7: ; CODE XREF: sub_E788+34j tim #2, byte_79 beq loc_E82C tim #$20, byte_79 ; ' ' beq loc_E82C ldx #$C768 tim #8, byte_63 bne loc_E827 ldx #$C76B bra loc_E827 ; --------------------------------------------------------------------------- loc_E7FE: ; CODE XREF: sub_E788+2Fj tim #$10, byte_7D bne loc_E81A tim #4, byte_79 beq loc_E82C tim #$40, byte_79 ; '@' beq loc_E82C ldx #$C76D tim #$80, byte_61 ; '' bne loc_E827 ldx #$C76C bra loc_E827 ; --------------------------------------------------------------------------- loc_E81A: ; CODE XREF: sub_E788+79j tim #8, byte_79 beq loc_E82C tim #$80, byte_79 ; '' beq loc_E82C ldx #$C76E loc_E827: ; CODE XREF: sub_E788:loc_E7B0j ; sub_E788+4Bj ... ldab 0,x loc_E829: ; CODE XREF: sub_E788:loc_E7B2j stab byte_11B loc_E82C: ; CODE XREF: sub_E788+39j sub_E788+3Ej ... aim #$BF, byte_77 ; '' aim #$F0, byte_79 ; '' ldaa byte_67 anda #$F0 ; '' anda byte_79 staa byte_79 rts ; End of function sub_E788 ; =============== S U B R O U T I N E ======================================= sub_E83B: ; CODE XREF: ROM:CC96P tim #$10, byte_77 beq locret_E86C ldx #$C785 tim #$10, byte_62 bne loc_E853 ldx #$C78D tim #$40, byte_62 ; '@' bne loc_E853 ldx #$C77D loc_E853: ; CODE XREF: sub_E83B+Bj sub_E83B+13j ldd byte_96 subd #$100 bcc loc_E85C clra clrb loc_E85C: ; CODE XREF: sub_E83B+1Dj cmpa #7 bcs loc_E863 ldd #$700 loc_E863: ; CODE XREF: sub_E83B+23j jsr sub_F7B7 staa byte_11C aim #$EF, byte_77 ; '' locret_E86C: ; CODE XREF: sub_E83B+3j rts ; End of function sub_E83B ; =============== S U B R O U T I N E ======================================= sub_E86D: ; CODE XREF: ROM:CC99P tim #2, byte_76 beq loc_E881 ldx #$C810 tim #8, byte_63 bne loc_E87D ldx #$C820 loc_E87D: ; CODE XREF: sub_E86D+Bj ldd $C,x bra loc_E8E8 ; --------------------------------------------------------------------------- loc_E881: ; CODE XREF: sub_E86D+3j ldab byte_133 aslb ldx #$45 ; 'E' abx ldd 0,x std byte_50 clra ldab byte_11A lsld xgdx ldab byte_119 abx ldab byte_11B abx ldab byte_11C abx xgdx lsld addd word_121 bcs loc_E8BB addd word_11F bcs loc_E8BB addb byte_117 adca #0 bcs loc_E8BB addd byte_50 bcs loc_E8BB addd word_11D bcc loc_E8BE loc_E8BB: ; CODE XREF: sub_E86D+37j sub_E86D+3Cj ... ldd #$FFFF loc_E8BE: ; CODE XREF: sub_E86D+4Cj subd #$400 bcc loc_E8D8 coma negb sbca #$FF addd word_11D bcs loc_E8D0 cmpa #4 bcs loc_E8D3 loc_E8D0: ; CODE XREF: sub_E86D+5Dj ldd #$400 loc_E8D3: ; CODE XREF: sub_E86D+61j std word_11D clra clrb loc_E8D8: ; CODE XREF: sub_E86D+54j xgdx clra ldab byte_118 lsld std byte_50 xgdx subd byte_50 bcc loc_E8E8 ldd #0 loc_E8E8: ; CODE XREF: sub_E86D+12j sub_E86D+76j std word_123 rts ; End of function sub_E86D ; =============== S U B R O U T I N E ======================================= sub_E8EC: ; CODE XREF: ROM:CC9CP ldx word_123 ldaa byte_125 jsr sub_F67D lsld bcs loc_E8FD addd word_123 bcc loc_E900 loc_E8FD: ; CODE XREF: sub_E8EC+Aj ldd #$FFFF loc_E900: ; CODE XREF: sub_E8EC+Fj std word_126 rts ; End of function sub_E8EC ; =============== S U B R O U T I N E ======================================= sub_E904: ; CODE XREF: ROM:CC9FP sub_E45B+27P ldaa byte_8B ldx #$C882 jsr sub_F7B4 staa byte_129 rts ; End of function sub_E904 ; =============== S U B R O U T I N E ======================================= sub_E910: ; CODE XREF: ROM:CCA2P ldaa byte_150 beq loc_E91A ldx word_C6D5 bra loc_E981 ; --------------------------------------------------------------------------- loc_E91A: ; CODE XREF: sub_E910+3j ldd word_126 lsld bcs loc_E924 cmpa #$12 bcs loc_E927 loc_E924: ; CODE XREF: sub_E910+Ej ldd #$1200 loc_E927: ; CODE XREF: sub_E910+12j ldx #$C795 jsr sub_F804 std byte_52 xgdx ldaa byte_128 jsr sub_F67D std byte_50 ldd byte_52 lsrd addd byte_50 bcc loc_E942 ldd #$FFFF loc_E942: ; CODE XREF: sub_E910+2Dj xgdx ldaa byte_129 jsr sub_F67D lsld bcc loc_E94F ldd #$FFFF loc_E94F: ; CODE XREF: sub_E910+3Aj xgdx cpx word_C6D5 bls loc_E958 ldx word_C6D5 loc_E958: ; CODE XREF: sub_E910+43j cpx word_C6D7 bcc loc_E960 ldx word_C6D7 loc_E960: ; CODE XREF: sub_E910+4Bj tim #$20, byte_77 ; ' ' beq loc_E981 stx byte_50 ldd word_12A subd word_C6D9 xgdx bcs loc_E975 cpx word_C6D7 bcc loc_E978 loc_E975: ; CODE XREF: sub_E910+5Ej ldx word_C6D7 loc_E978: ; CODE XREF: sub_E910+63j cpx byte_50 bhi loc_E981 aim #$DF, byte_77 ; '' ldx byte_50 loc_E981: ; CODE XREF: sub_E910+8j sub_E910+53j ... stx word_12A rts ; End of function sub_E910 ; =============== S U B R O U T I N E ======================================= sub_E985: ; CODE XREF: ROM:CCE5P ldaa byte_11B beq locret_E9D9 tim #8, byte_63 beq loc_E9A4 ldx #$C771 tim #$10, byte_7D bne loc_E9D1 ldx #$C770 tim #$80, byte_61 ; '' bne loc_E9D1 ldx #$C76F bra loc_E9D1 ; --------------------------------------------------------------------------- loc_E9A4: ; CODE XREF: sub_E985+8j tim #$40, byte_62 ; '@' bne loc_E9BE ldx #$C774 tim #$10, byte_7D bne loc_E9D1 ldx #$C773 tim #$80, byte_61 ; '' bne loc_E9D1 ldx #$C772 bra loc_E9D1 ; --------------------------------------------------------------------------- loc_E9BE: ; CODE XREF: sub_E985+22j ldx #$C777 tim #$10, byte_7D bne loc_E9D1 ldx #$C776 tim #$80, byte_61 ; '' bne loc_E9D1 ldx #$C775 loc_E9D1: ; CODE XREF: sub_E985+10j sub_E985+18j ... suba 0,x bcc loc_E9D6 clra loc_E9D6: ; CODE XREF: sub_E985+4Ej staa byte_11B locret_E9D9: ; CODE XREF: sub_E985+3j rts ; End of function sub_E985 ; =============== S U B R O U T I N E ======================================= sub_E9DA: ; CODE XREF: ROM:CCEBP sub_E45B+1EP clrb tim #8, byte_63 beq loc_E9E3 jmp loc_EA40 ; --------------------------------------------------------------------------- loc_E9E3: ; CODE XREF: sub_E9DA+4j tim #$40, byte_62 ; '@' bne loc_EA14 tim #$10, byte_7D beq loc_E9F0 ldab byte_C74C loc_E9F0: ; CODE XREF: sub_E9DA+11j tim #$10, byte_61 beq loc_E9FD cmpb byte_C74F bcc loc_E9FD ldab byte_C74F loc_E9FD: ; CODE XREF: sub_E9DA+19j sub_E9DA+1Ej tim #$80, byte_61 ; '' beq loc_EA0A cmpb byte_C752 bcc loc_EA0A ldab byte_C752 loc_EA0A: ; CODE XREF: sub_E9DA+26j sub_E9DA+2Bj cmpb unk_136 bcc loc_EA6A ldab unk_136 bra loc_EA6A ; --------------------------------------------------------------------------- loc_EA14: ; CODE XREF: sub_E9DA+Cj tim #$10, byte_7D beq loc_EA1C ldab byte_C74D loc_EA1C: ; CODE XREF: sub_E9DA+3Dj tim #$10, byte_61 beq loc_EA29 cmpb byte_C750 bcc loc_EA29 ldab byte_C750 loc_EA29: ; CODE XREF: sub_E9DA+45j sub_E9DA+4Aj tim #$80, byte_61 ; '' beq loc_EA36 cmpb byte_C753 bcc loc_EA36 ldab byte_C753 loc_EA36: ; CODE XREF: sub_E9DA+52j sub_E9DA+57j cmpb unk_135 bcc loc_EA6A ldab unk_135 bra loc_EA6A ; --------------------------------------------------------------------------- loc_EA40: ; CODE XREF: sub_E9DA+6J tim #$10, byte_7D beq loc_EA48 ldab byte_C74B loc_EA48: ; CODE XREF: sub_E9DA+69j tim #$10, byte_61 beq loc_EA55 cmpb byte_C74E bcc loc_EA55 ldab byte_C74E loc_EA55: ; CODE XREF: sub_E9DA+71j sub_E9DA+76j tim #$80, byte_61 ; '' beq loc_EA62 cmpb byte_C751 bcc loc_EA62 ldab byte_C751 loc_EA62: ; CODE XREF: sub_E9DA+7Ej sub_E9DA+83j cmpb unk_136 bcc loc_EA6A ldab unk_136 loc_EA6A: ; CODE XREF: sub_E9DA+33j sub_E9DA+38j ... clra lsld lsld lsld tim #3, byte_76 bne loc_EA92 xgdx ldaa byte_C74A bne loc_EA7C xgdx bra loc_EA92 ; --------------------------------------------------------------------------- loc_EA7C: ; CODE XREF: sub_E9DA+9Dj nega jsr sub_F67D std byte_50 ldaa byte_C74A ldx word_137 jsr sub_F67D addd byte_50 bcc loc_EA92 ldd #$FFFF loc_EA92: ; CODE XREF: sub_E9DA+97j sub_E9DA+A0j ... std word_137 bita #$E0 ; '' beq loc_EA9E ldd #$FFFF bra loc_EAA1 ; --------------------------------------------------------------------------- loc_EA9E: ; CODE XREF: sub_E9DA+BDj lsld lsld lsld loc_EAA1: ; CODE XREF: sub_E9DA+C2j std byte_50 ldaa byte_8D tim #2, byte_71 beq loc_EAAD ldaa byte_C021 loc_EAAD: ; CODE XREF: sub_E9DA+CEj ldx #$C858 tim #$10, byte_7D beq loc_EABD tim #$40, byte_62 ; '@' bne loc_EABD ldx #$C860 loc_EABD: ; CODE XREF: sub_E9DA+D9j sub_E9DA+DEj jsr sub_F7D8 lsrd lsrd addd byte_50 bcc loc_EAC8 ldaa #$FF loc_EAC8: ; CODE XREF: sub_E9DA+EAj staa unk_139 rts ; End of function sub_E9DA ; =============== S U B R O U T I N E ======================================= sub_EACC: ; CODE XREF: ROM:CCEEP ldd word_137 subd byte_A3 bcc loc_EAD7 coma negb sbca #$FF loc_EAD7: ; CODE XREF: sub_EACC+5j addd word_13A bcc loc_EADF ldd #$FFFF loc_EADF: ; CODE XREF: sub_EACC+Ej std word_13A ldaa byte_13C suba #1 bhi loc_EB07 bcs loc_EAFF ldaa byte_C75B ldab byte_C75E mul subd word_13A bhi loc_EAFC aim #$FD, byte_78 ; '' bra loc_EAFF ; --------------------------------------------------------------------------- loc_EAFC: ; CODE XREF: sub_EACC+29j oim #2, byte_78 loc_EAFF: ; CODE XREF: sub_EACC+1Dj sub_EACC+2Ej clra clrb std word_13A ldaa byte_C75B loc_EB07: ; CODE XREF: sub_EACC+1Bj staa byte_13C rts ; End of function sub_EACC ; =============== S U B R O U T I N E ======================================= sub_EB0B: ; CODE XREF: ROM:CCF1P clra tim #$10, byte_7D beq loc_EB15 adda #2 bra loc_EB1B ; --------------------------------------------------------------------------- loc_EB15: ; CODE XREF: sub_EB0B+4j tim #$80, byte_61 ; '' beq loc_EB1B inca loc_EB1B: ; CODE XREF: sub_EB0B+8j sub_EB0B+Dj ldab byte_133 staa byte_133 cba bne loc_EB29 aim #$F7, byte_7B ; '' bra loc_EB2C ; --------------------------------------------------------------------------- loc_EB29: ; CODE XREF: sub_EB0B+17j oim #8, byte_7B loc_EB2C: ; CODE XREF: sub_EB0B+1Cj ldaa byte_130 oraa byte_119 oraa byte_11A oraa byte_11B beq loc_EB41 ldx byte_A3 cpx word_137 bhi loc_EB4B loc_EB41: ; CODE XREF: sub_EB0B+2Dj tim #1, byte_76 bne loc_EB4B oim #2, byte_77 bra loc_EB50 ; --------------------------------------------------------------------------- loc_EB4B: ; CODE XREF: sub_EB0B+34j sub_EB0B+39j aim #$FD, byte_77 ; '' bra loc_EB5F ; --------------------------------------------------------------------------- loc_EB50: ; CODE XREF: sub_EB0B+3Ej tim #4, byte_76 beq loc_EB5F tim #$10, byte_62 bne loc_EB5F oim #$80, byte_77 ; '' bra loc_EB62 ; --------------------------------------------------------------------------- loc_EB5F: ; CODE XREF: sub_EB0B+43j sub_EB0B+48j ... aim #$7F, byte_77 ; '' loc_EB62: ; CODE XREF: sub_EB0B+52j tim #8, byte_7B bne loc_EB94 tim #$80, byte_77 ; '' beq loc_EB94 tim #$40, byte_73 ; '@' beq loc_EB94 tim #$10, byte_61 bne loc_EB94 tim #1, byte_6C bne loc_EB94 ldaa byte_132 bne loc_EB94 oim #4, byte_7B tim #2, byte_78 beq loc_EB97 tim #$40, byte_62 ; '@' bne loc_EB97 tim #4, byte_6A beq loc_EB97 bra loc_EBA2 ; --------------------------------------------------------------------------- loc_EB94: ; CODE XREF: sub_EB0B+5Aj sub_EB0B+5Fj ... aim #$FB, byte_7B ; '' loc_EB97: ; CODE XREF: sub_EB0B+7Bj sub_EB0B+80j ... aim #$FA, byte_78 ; '' ldaa byte_C75A staa byte_131 bra loc_EBAD ; --------------------------------------------------------------------------- loc_EBA2: ; CODE XREF: sub_EB0B+87j oim #1, byte_78 ldaa byte_131 bne loc_EBAD oim #4, byte_78 loc_EBAD: ; CODE XREF: sub_EB0B+95j sub_EB0B+9Dj tim #4, byte_6A beq loc_EBEC tim #$10, byte_62 bne loc_EBEC tim #8, byte_76 beq loc_EBCC tim #1, byte_62 beq loc_EBCC ldaa byte_119 oraa byte_11A oraa byte_11B beq loc_EBE7 loc_EBCC: ; CODE XREF: sub_EB0B+AFj sub_EB0B+B4j tim #4, byte_7B beq loc_EBEC ldx #$C7D0 ldab byte_8D tim #2, byte_71 beq loc_EBDE ldab byte_C021 loc_EBDE: ; CODE XREF: sub_EB0B+CEj jsr loc_F7FA xgdx cpx word_11D bne loc_EBEC loc_EBE7: ; CODE XREF: sub_EB0B+BFj oim #1, byte_7B bra loc_EBF4 ; --------------------------------------------------------------------------- loc_EBEC: ; CODE XREF: sub_EB0B+A5j sub_EB0B+AAj ... aim #$FE, byte_7B ; '' ldaa byte_C77B bra loc_EBFA ; --------------------------------------------------------------------------- loc_EBF4: ; CODE XREF: sub_EB0B+DFj ldaa byte_134 beq loc_EC04 deca loc_EBFA: ; CODE XREF: sub_EB0B+E7j staa byte_134 beq loc_EC04 aim #$FD, byte_7B ; '' bra locret_EC07 ; --------------------------------------------------------------------------- loc_EC04: ; CODE XREF: sub_EB0B+ECj sub_EB0B+F2j oim #2, byte_7B locret_EC07: ; CODE XREF: sub_EB0B+F7j rts ; End of function sub_EB0B ; =============== S U B R O U T I N E ======================================= sub_EC08: ; CODE XREF: ROM:CCF4P clra tim #1, byte_62 beq loc_EC55 tim #$50, byte_62 ; 'P' bne loc_EC55 tim #$10, byte_61 bne loc_EC55 tim #8, byte_7B bne loc_EC55 tim #2, byte_7B beq locret_EC5E ldd word_123 beq locret_EC5E ldd byte_A3 subd word_137 bcs loc_EC33 subd #$40 ; '@' bcc loc_EC35 loc_EC33: ; CODE XREF: sub_EC08+24j clra clrb loc_EC35: ; CODE XREF: sub_EC08+29j bita #$C0 ; '' bne loc_EC3F lsld lsld cmpa #7 bcs loc_EC42 loc_EC3F: ; CODE XREF: sub_EC08+2Fj ldd #$700 loc_EC42: ; CODE XREF: sub_EC08+35j ldx #$C7C8 jsr sub_F7B7 adda byte_118 bcs loc_EC52 cmpa byte_C77C bls loc_EC55 loc_EC52: ; CODE XREF: sub_EC08+43j ldaa byte_C77C loc_EC55: ; CODE XREF: sub_EC08+4j sub_EC08+9j ... staa byte_118 ldaa byte_C77B staa byte_134 locret_EC5E: ; CODE XREF: sub_EC08+18j sub_EC08+1Dj rts ; End of function sub_EC08 ; =============== S U B R O U T I N E ======================================= sub_EC5F: ; CODE XREF: ROM:CCF7P ldd #$200 tim #2, byte_76 bne loc_EC87 ldx word_C756 cpx byte_45 bcs loc_EC8A cpx byte_47 bcs loc_EC8A cpx byte_49 bcs loc_EC8A ldx word_C758 cpx byte_45 bhi loc_EC8A cpx byte_47 bhi loc_EC8A cpx byte_49 bhi loc_EC8A bra loc_EC90 ; --------------------------------------------------------------------------- loc_EC87: ; CODE XREF: sub_EC5F+6j std word_11D loc_EC8A: ; CODE XREF: sub_EC5F+Dj sub_EC5F+11j ... std byte_45 std byte_47 std byte_49 loc_EC90: ; CODE XREF: sub_EC5F+26j tim #1, byte_76 bne loc_ECA2 tim #$C, byte_77 beq loc_ECA8 ldx word_11D cpx #$200 bcc loc_ECA5 loc_ECA2: ; CODE XREF: sub_EC5F+34j std word_11D loc_ECA5: ; CODE XREF: sub_EC5F+41j aim #$F3, byte_77 ; '' loc_ECA8: ; CODE XREF: sub_EC5F+39j tim #$80, byte_77 ; '' bne loc_ECD2 ldd word_11D subd word_C75F bcc loc_ECC0 addb byte_C761 adca #0 bcc loc_ECC9 clra clrb bra loc_ECC9 ; --------------------------------------------------------------------------- loc_ECC0: ; CODE XREF: sub_EC5F+54j subb byte_C761 sbca #0 bcc loc_ECC9 clra clrb loc_ECC9: ; CODE XREF: sub_EC5F+5Bj sub_EC5F+5Fj ... addd word_C75F std word_11D jmp locret_EE36 ; --------------------------------------------------------------------------- loc_ECD2: ; CODE XREF: sub_EC5F+4Cj ldd byte_A3 subd word_137 bcc loc_ECF5 coma negb sbca #$FF tsta beq loc_ECE2 ldab #$FF loc_ECE2: ; CODE XREF: sub_EC5F+7Fj tba ldx #$C7BE jsr sub_F7AC tab clra addd word_11D bcc loc_ECF3 ldd #$FFFF loc_ECF3: ; CODE XREF: sub_EC5F+8Fj bra loc_ED0E ; --------------------------------------------------------------------------- loc_ECF5: ; CODE XREF: sub_EC5F+78j tsta beq loc_ECFA ldab #$FF loc_ECFA: ; CODE XREF: sub_EC5F+97j tba ldx #$C7BE jsr sub_F7AC staa byte_52 ldd word_11D subb byte_52 sbca #0 bcc loc_ED0E clra clrb loc_ED0E: ; CODE XREF: sub_EC5F:loc_ECF3j ; sub_EC5F+ABj std byte_50 ldx #$C7D0 ldab byte_8D tim #2, byte_71 beq loc_ED1D ldab byte_C021 loc_ED1D: ; CODE XREF: sub_EC5F+B9j jsr loc_F7FA xgdx cpx byte_50 bls loc_ED27 stx byte_50 loc_ED27: ; CODE XREF: sub_EC5F+C4j ldx #$C7E0 ldab byte_8D tim #2, byte_71 beq loc_ED34 ldab byte_C021 loc_ED34: ; CODE XREF: sub_EC5F+D0j jsr loc_F7FA xgdx cpx byte_50 bls loc_ED3E ldx byte_50 loc_ED3E: ; CODE XREF: sub_EC5F+DBj stx word_11D tim #4, byte_78 bne loc_ED54 ldaa byte_C75C staa byte_12D clra clrb std word_12E jmp locret_EE36 ; --------------------------------------------------------------------------- loc_ED54: ; CODE XREF: sub_EC5F+E5j xgdx addd word_12E bcc loc_ED5D ldd #$FFFF loc_ED5D: ; CODE XREF: sub_EC5F+F9j std word_12E xgdx ldaa byte_12D bne loc_ED69 jmp loc_EE2B ; --------------------------------------------------------------------------- loc_ED69: ; CODE XREF: sub_EC5F+105j deca staa byte_12D beq loc_ED72 jmp locret_EE36 ; --------------------------------------------------------------------------- loc_ED72: ; CODE XREF: sub_EC5F+10Ej ldaa byte_C75C staa byte_12D jsr sub_F6E2 lsrd std byte_52 clra clrb std word_12E ldab byte_133 aslb ldx #$45 ; 'E' abx ldd 0,x std byte_50 addd byte_52 bcc loc_ED9D subd #$100 bcs loc_EDA4 ldd #$FFFF bra loc_EDA4 ; --------------------------------------------------------------------------- loc_ED9D: ; CODE XREF: sub_EC5F+132j subd #$100 bcc loc_EDA4 clra clrb loc_EDA4: ; CODE XREF: sub_EC5F+137j ; sub_EC5F+13Cj ... subb byte_118 sbca #0 bcs loc_EDB2 subb byte_118 sbca #0 bcc loc_EDB4 loc_EDB2: ; CODE XREF: sub_EC5F+14Aj clra clrb loc_EDB4: ; CODE XREF: sub_EC5F+151j xgdx cpx word_C758 bcc loc_EDBD ldx word_C758 loc_EDBD: ; CODE XREF: sub_EC5F+159j cpx word_C756 bls loc_EDC5 ldx word_C756 loc_EDC5: ; CODE XREF: sub_EC5F+161j xgdx std 0,x subd byte_50 std byte_50 ldd word_11D bcs loc_EDD7 subd byte_50 bcs loc_EDE0 bra loc_EDE3 ; --------------------------------------------------------------------------- loc_EDD7: ; CODE XREF: sub_EC5F+170j subd byte_50 bcs loc_EDE3 ldd #$FFFF bra loc_EDE3 ; --------------------------------------------------------------------------- loc_EDE0: ; CODE XREF: sub_EC5F+174j ldd #0 loc_EDE3: ; CODE XREF: sub_EC5F+176j ; sub_EC5F+17Aj ... subb byte_118 sbca #0 bcs loc_EDF1 subb byte_118 sbca #0 bcc loc_EDF3 loc_EDF1: ; CODE XREF: sub_EC5F+189j clra clrb loc_EDF3: ; CODE XREF: sub_EC5F+190j std byte_50 clr byte_118 ldx #$C7D0 ldab byte_8D tim #2, byte_71 beq loc_EE05 ldab byte_C021 loc_EE05: ; CODE XREF: sub_EC5F+1A1j jsr loc_F7FA xgdx cpx byte_50 bls loc_EE0F stx byte_50 loc_EE0F: ; CODE XREF: sub_EC5F+1ACj ldx #$C7E0 ldab byte_8D tim #2, byte_71 beq loc_EE1C ldab byte_C021 loc_EE1C: ; CODE XREF: sub_EC5F+1B8j jsr loc_F7FA xgdx cpx byte_50 bls loc_EE26 ldx byte_50 loc_EE26: ; CODE XREF: sub_EC5F+1C3j stx word_11D bra locret_EE36 ; --------------------------------------------------------------------------- loc_EE2B: ; CODE XREF: sub_EC5F+107J ldaa byte_C75C staa byte_12D clra clrb std word_12E locret_EE36: ; CODE XREF: sub_EC5F+70J sub_EC5F+F2J ... rts ; End of function sub_EC5F ; =============== S U B R O U T I N E ======================================= sub_EE37: ; CODE XREF: ROM:CD1BP tim #1, byte_78 beq loc_EE45 ldaa byte_131 beq loc_EE45 deca staa byte_131 loc_EE45: ; CODE XREF: sub_EE37+3j sub_EE37+8j ldaa byte_C762 tim #8, byte_76 bne loc_EE53 ldaa byte_130 beq locret_EE56 deca loc_EE53: ; CODE XREF: sub_EE37+14j staa byte_130 locret_EE56: ; CODE XREF: sub_EE37+19j rts ; End of function sub_EE37 ; =============== S U B R O U T I N E ======================================= sub_EE57: ; CODE XREF: ROM:CD1EP sub_E45B+21P ldaa byte_8D tim #2, byte_71 beq loc_EE61 ldaa byte_C021 loc_EE61: ; CODE XREF: sub_EE57+5j tim #1, byte_76 beq loc_EE76 ldx #$C7F0 tim #8, byte_63 bne loc_EE71 ldx #$C7F8 loc_EE71: ; CODE XREF: sub_EE57+15j jsr sub_F7D8 bra loc_EE89 ; --------------------------------------------------------------------------- loc_EE76: ; CODE XREF: sub_EE57+Dj ldab byte_119 beq locret_EE8C ldx #$C800 jsr sub_F7D8 tab ldaa byte_119 sba bcc loc_EE89 clra loc_EE89: ; CODE XREF: sub_EE57+1Dj sub_EE57+2Fj staa byte_119 locret_EE8C: ; CODE XREF: sub_EE57+22j rts ; End of function sub_EE57 ; =============== S U B R O U T I N E ======================================= sub_EE8D: ; CODE XREF: ROM:CD21P sub_E45B+24P tim #1, byte_76 beq loc_EE9C ldaa byte_8F ldx #$C87B jsr sub_F7B4 bra loc_EEA7 ; --------------------------------------------------------------------------- loc_EE9C: ; CODE XREF: sub_EE8D+3j ldaa byte_11A beq locret_EEAA suba byte_C6DB bcc loc_EEA7 clra loc_EEA7: ; CODE XREF: sub_EE8D+Dj sub_EE8D+17j staa byte_11A locret_EEAA: ; CODE XREF: sub_EE8D+12j rts ; End of function sub_EE8D ; =============== S U B R O U T I N E ======================================= sub_EEAB: ; CODE XREF: ROM:CD4BP sub_E45B+2AP ldaa byte_8D tim #2, byte_71 beq loc_EEB5 ldaa byte_C021 loc_EEB5: ; CODE XREF: sub_EEAB+5j ldx #$C868 jsr sub_F7D8 staa byte_128 rts ; End of function sub_EEAB ; =============== S U B R O U T I N E ======================================= sub_EEBF: ; CODE XREF: ROM:CD4EP sub_E45B+2DP ldaa byte_8F ldx #$C870 jsr sub_F7D8 staa byte_125 rts ; End of function sub_EEBF ; =============== S U B R O U T I N E ======================================= sub_EECB: ; CODE XREF: ROM:CD5AP ldaa byte_C75D tim #4, byte_6A beq loc_EED9 ldaa byte_132 beq locret_EEDC deca loc_EED9: ; CODE XREF: sub_EECB+6j staa byte_132 locret_EEDC: ; CODE XREF: sub_EECB+Bj rts ; End of function sub_EECB ; =============== S U B R O U T I N E ======================================= sub_EEDD: ; CODE XREF: ROM:CD5DP sub_E45B+1BP ldaa byte_8D tim #2, byte_71 beq loc_EEE7 ldaa byte_C021 loc_EEE7: ; CODE XREF: sub_EEDD+5j ldx #$C850 jsr sub_F7D8 staa unk_135 rts ; End of function sub_EEDD ; =============== S U B R O U T I N E ======================================= sub_EEF1: ; CODE XREF: ROM:CD60P sub_E45B+18P ldaa byte_8D tim #2, byte_71 beq loc_EEFB ldaa byte_C021 loc_EEFB: ; CODE XREF: sub_EEF1+5j ldx #$C840 tim #8, byte_63 bne loc_EF06 ldx #$C848 loc_EF06: ; CODE XREF: sub_EEF1+10j jsr sub_F7D8 staa unk_136 rts ; End of function sub_EEF1 ; =============== S U B R O U T I N E ======================================= sub_EF0D: ; CODE XREF: sub_CAC5+34P jsr sub_EF56 jsr sub_F0A8 jsr sub_F0B4 rts ; End of function sub_EF0D ; =============== S U B R O U T I N E ======================================= sub_EF17: ; CODE XREF: sub_E48C:loc_E4A7P tim #$10, byte_5E bne locret_EF2A ldaa unk_146 beq loc_EF27 deca staa unk_146 bne locret_EF2A loc_EF27: ; CODE XREF: sub_EF17+8j oim #$80, PORT4 ; '' locret_EF2A: ; CODE XREF: sub_EF17+3j sub_EF17+Ej rts ; End of function sub_EF17 ; =============== S U B R O U T I N E ======================================= sub_EF2B: ; CODE XREF: sub_E48C+16P tim #$10, byte_5E bne locret_EF40 ldaa byte_145 staa unk_146 beq loc_EF3D aim #$7F, PORT4 ; '' bra locret_EF40 ; --------------------------------------------------------------------------- loc_EF3D: ; CODE XREF: sub_EF2B+Bj oim #$80, PORT4 ; '' locret_EF40: ; CODE XREF: sub_EF2B+3j sub_EF2B+10j rts ; End of function sub_EF2B ; =============== S U B R O U T I N E ======================================= sub_EF41: ; CODE XREF: sub_CAC5+135P ldaa unk_92 cmpa byte_C897 bcc locret_EF55 ldaa unk_91 cmpa byte_C896 bcs locret_EF55 ldab byte_C895 stab byte_149 locret_EF55: ; CODE XREF: sub_EF41+5j sub_EF41+Cj rts ; End of function sub_EF41 ; =============== S U B R O U T I N E ======================================= sub_EF56: ; CODE XREF: ROM:CCC8P sub_EF0DP ldd byte_A3 subd #$400 bcc loc_EF5F clra clrb loc_EF5F: ; CODE XREF: sub_EF56+5j std byte_54 ldd byte_96 subd #$100 bcc loc_EF6A clra clrb loc_EF6A: ; CODE XREF: sub_EF56+10j ldx #$C8C2 tim #8, byte_63 bne loc_EF75 ldx #$C94C loc_EF75: ; CODE XREF: sub_EF56+1Aj jsr sub_F85A staa byte_13F rts ; End of function sub_EF56 ; =============== S U B R O U T I N E ======================================= sub_EF7C: ; CODE XREF: ROM:CCCBP ldaa byte_7C staa byte_50 anda #$FE ; '' tim #8, byte_62 bne loc_EFB9 tim #1, byte_6B beq loc_EFB9 ldab byte_13F beq loc_EFB9 ldab byte_147 bne loc_EFB9 ldab byte_14A bne loc_EFB9 tim #$10, byte_73 beq loc_EFB9 ldx byte_D9 bne loc_EFB9 ldab byte_DB bne loc_EFB9 tim #1, byte_6F bne loc_EFB9 tim #4, byte_64 beq loc_EFB9 tim #$30, byte_6E ; '0' beq loc_EFB9 oraa #1 loc_EFB9: ; CODE XREF: sub_EF7C+9j sub_EF7C+Ej ... staa byte_7C tim #1, byte_7C beq loc_EFCA tim #1, byte_50 bne loc_EFCA ldab byte_C892 bra loc_EFD0 ; --------------------------------------------------------------------------- loc_EFCA: ; CODE XREF: sub_EF7C+42j sub_EF7C+47j ldab byte_148 beq loc_EFD3 decb loc_EFD0: ; CODE XREF: sub_EF7C+4Cj stab byte_148 loc_EFD3: ; CODE XREF: sub_EF7C+51j ldab byte_149 beq locret_EFDC decb stab byte_149 locret_EFDC: ; CODE XREF: sub_EF7C+5Aj rts ; End of function sub_EF7C ; =============== S U B R O U T I N E ======================================= sub_EFDD: ; CODE XREF: ROM:CCCEP clra ldab byte_13F xgdx ldab byte_140 abx xgdx subd #$80 ; '' bcc loc_EFEE clra clrb loc_EFEE: ; CODE XREF: sub_EFDD+Dj tsta beq loc_EFF3 ldab #$FF loc_EFF3: ; CODE XREF: sub_EFDD+12j pshb ldaa byte_148 beq loc_F003 tba suba byte_C890 bcc loc_F000 clra loc_F000: ; CODE XREF: sub_EFDD+20j staa byte_141 loc_F003: ; CODE XREF: sub_EFDD+1Aj subb byte_141 bcc loc_F009 clrb loc_F009: ; CODE XREF: sub_EFDD+29j ldaa byte_149 beq loc_F014 ldaa byte_C893 staa byte_142 loc_F014: ; CODE XREF: sub_EFDD+2Fj subb byte_142 bcc loc_F01A clrb loc_F01A: ; CODE XREF: sub_EFDD+3Aj pula tim #1, byte_7C bne loc_F021 clrb loc_F021: ; CODE XREF: sub_EFDD+41j tba staa byte_143 tim #1, byte_7C bne loc_F02D clra bra loc_F053 ; --------------------------------------------------------------------------- loc_F02D: ; CODE XREF: sub_EFDD+4Bj ldx #$C89B jsr sub_F7B4 tab clra addb byte_144 adca #0 subd #$80 ; '' bcc loc_F041 clra clrb loc_F041: ; CODE XREF: sub_EFDD+60j tsta beq loc_F046 ldab #$FF loc_F046: ; CODE XREF: sub_EFDD+65j tba lsra lsra lsra bcc loc_F04D inca loc_F04D: ; CODE XREF: sub_EFDD+6Dj ldx #$C88B jsr sub_F5F7 loc_F053: ; CODE XREF: sub_EFDD+4Ej staa byte_145 rts ; End of function sub_EFDD ; =============== S U B R O U T I N E ======================================= sub_F057: ; CODE XREF: ROM:CD36P ldaa byte_C88D tim #8, byte_63 bne loc_F062 ldaa byte_C88E loc_F062: ; CODE XREF: sub_F057+6j tim #$10, byte_60 bne loc_F06D ldaa byte_147 beq loc_F06D deca loc_F06D: ; CODE XREF: sub_F057+Ej sub_F057+13j staa byte_147 ldaa byte_C88F tim #8, byte_76 beq loc_F07E ldaa byte_14A beq loc_F07E deca loc_F07E: ; CODE XREF: sub_F057+1Fj sub_F057+24j staa byte_14A ldaa byte_148 bne loc_F094 ldaa byte_141 beq loc_F094 suba byte_C891 bcc loc_F091 clra loc_F091: ; CODE XREF: sub_F057+37j staa byte_141 loc_F094: ; CODE XREF: sub_F057+2Dj sub_F057+32j ldaa byte_149 bne locret_F0A7 ldaa byte_142 beq locret_F0A7 suba byte_C894 bcc loc_F0A4 clra loc_F0A4: ; CODE XREF: sub_F057+4Aj staa byte_142 locret_F0A7: ; CODE XREF: sub_F057+40j sub_F057+45j rts ; End of function sub_F057 ; =============== S U B R O U T I N E ======================================= sub_F0A8: ; CODE XREF: ROM:CD39P sub_EF0D+3P ldaa byte_8B ldx #$C8B7 jsr sub_F7B4 staa byte_144 rts ; End of function sub_F0A8 ; =============== S U B R O U T I N E ======================================= sub_F0B4: ; CODE XREF: ROM:loc_CD63P sub_EF0D+6P ldaa byte_8F ldx #$C8AC jsr sub_F7D8 staa byte_140 rts ; End of function sub_F0B4 ; =============== S U B R O U T I N E ======================================= sub_F0C0: ; CODE XREF: sub_CAC5+37P ldaa byte_C9D6 staa byte_14D clrb tim #8, byte_65 beq loc_F0CE ldab #$14 loc_F0CE: ; CODE XREF: sub_F0C0+Aj tim #$20, PORT3 ; ' ' bne loc_F0D5 ldab #$32 ; '2' loc_F0D5: ; CODE XREF: sub_F0C0+11j stab unk_151 ldaa #9 staa unk_153 jsr sub_F347 rts ; End of function sub_F0C0 ; =============== S U B R O U T I N E ======================================= sub_F0E1: ; CODE XREF: sub_E48C+6AP ldd unk_29 addd #$FA ; '' subd unk_156 bmi locret_F113 tim #1, byte_7D beq loc_F104 oim #4, PORT4 aim #$FE, byte_7D ; '' ldd unk_158 addd #$4E20 std unk_158 std unk_156 bra locret_F113 ; --------------------------------------------------------------------------- loc_F104: ; CODE XREF: sub_F0E1+Dj aim #$FB, PORT4 ; '' oim #1, byte_7D ldd unk_15A addd unk_158 std unk_156 locret_F113: ; CODE XREF: sub_F0E1+8j sub_F0E1+21j rts ; End of function sub_F0E1 ; =============== S U B R O U T I N E ======================================= sub_F114: ; CODE XREF: sub_CAC5+25P ldd FRCH anda #$FC ; '' staa byte_52 clra aim #$97, byte_70 ; '' aim #$3F, byte_28 ; '?' loc_F121: ; CODE XREF: ROM:F183J staa byte_50 clr byte_51 eim #$10, PORT1 loc_F129: ; CODE XREF: ROM:F163J jsr sub_F197 aim #$F7, PORT1 ; '' aim #$7F, PORT4 ; '' ldx #$F14A ; set up indexed jump pshx ldab byte_50 aslb ldx #$F1BB ; set up indexed jump abx ldx 0,x jmp 0,x ; indexed jump ; End of function sub_F114 ; --------------------------------------------------------------------------- rts ; --------------------------------------------------------------------------- oim #$80, PORT4 ; '' rts ; --------------------------------------------------------------------------- oim #8, PORT1 rts ; --------------------------------------------------------------------------- jsr sub_F197 ldab PORT4 tst byte_50 bne loc_F156 eorb #2 loc_F156: ; CODE XREF: ROM:F152j bitb #2 beq loc_F17C ldab byte_51 incb stab byte_51 cmpb #2 bcc loc_F166 jmp loc_F129 ; --------------------------------------------------------------------------- loc_F166: ; CODE XREF: ROM:F161j ldab byte_50 aslb ldx #$F1C1 abx ldd 0,x ldx #$6F ; 'o' abx oraa 0,x staa 0,x tim #8, byte_70 bne loc_F186 loc_F17C: ; CODE XREF: ROM:F158j ldaa byte_50 inca cmpa #3 bcc loc_F186 jmp loc_F121 ; --------------------------------------------------------------------------- ; START OF FUNCTION CHUNK FOR sub_F197 loc_F186: ; CODE XREF: ROM:F17Aj ROM:F181j ... oim #8, PORT1 oim #$80, PORT4 ; '' oim #$C0, byte_28 ; '' ldd unk_29 addd #9 std unk_2B rts ; END OF FUNCTION CHUNK FOR sub_F197 ; =============== S U B R O U T I N E ======================================= sub_F197: ; CODE XREF: sub_F114:loc_F129P ; ROM:F14AP ... ; FUNCTION CHUNK AT F186 SIZE 00000011 BYTES ldd FRCH anda #$FC ; '' cmpa byte_52 bne loc_F1B8 ldaa PORT3 eora #$21 ; '!' bita #$20 ; ' ' beq loc_F1B1 bita #1 bne loc_F1B1 ldab byte_18 bitb #$80 ; '' beq sub_F197 loc_F1B1: ; CODE XREF: sub_F197+Ej sub_F197+12j pulx aim #$97, byte_70 ; '' jmp loc_F186 ; --------------------------------------------------------------------------- loc_F1B8: ; CODE XREF: sub_F197+6j staa byte_52 rts ; End of function sub_F197 ; --------------------------------------------------------------------------- JMP_TAB: fdb $F141 fdb $F142 fdb $F146 LUT_F1CA: fcb 8 fcb 1 fcb $20 fcb 1 fcb $40 ; @ fcb 1 ; =============== S U B R O U T I N E ======================================= sub_F1C7: ; CODE XREF: sub_CAC5+146P ldaa unk_151 beq loc_F1D0 deca staa unk_151 loc_F1D0: ; CODE XREF: sub_F1C7+3j ldaa unk_152 beq loc_F1D9 deca staa unk_152 loc_F1D9: ; CODE XREF: sub_F1C7+Cj tim #$20, byte_60 ; ' ' beq loc_F1E5 tim #$20, byte_7D ; ' ' beq loc_F1F4 bra loc_F208 ; --------------------------------------------------------------------------- loc_F1E5: ; CODE XREF: sub_F1C7+15j tim #$20, byte_7D ; ' ' bne loc_F1F4 tim #8, byte_65 beq loc_F208 tim #$40, byte_7D ; '@' bne loc_F208 loc_F1F4: ; CODE XREF: sub_F1C7+1Aj sub_F1C7+21j ldaa #$14 staa unk_151 clra staa unk_155 staa unk_154 staa unk_152 ldaa #9 staa unk_153 loc_F208: ; CODE XREF: sub_F1C7+1Cj sub_F1C7+26j ... ldab unk_151 beq loc_F21D cmpb #$14 bls loc_F217 oim #$C, PORT4 jmp sub_F347 ; --------------------------------------------------------------------------- loc_F217: ; CODE XREF: sub_F1C7+48j aim #$F3, PORT4 ; '' jmp sub_F347 ; --------------------------------------------------------------------------- loc_F21D: ; CODE XREF: sub_F1C7+44j tim #$20, byte_60 ; ' ' bne loc_F272 tim #8, byte_65 beq loc_F269 tim #1, byte_6F bne loc_F23B tim #2, byte_64 bne loc_F236 aim #$FB, PORT4 ; '' bra loc_F23E ; --------------------------------------------------------------------------- loc_F236: ; CODE XREF: sub_F1C7+68j oim #4, PORT4 bra loc_F23E ; --------------------------------------------------------------------------- loc_F23B: ; CODE XREF: sub_F1C7+63j aim #$FB, PORT4 ; '' loc_F23E: ; CODE XREF: sub_F1C7+6Dj sub_F1C7+72j ldab #2 stab byte_50 ldx #$6F ; 'o' stx byte_52 ldx #$F398 clrb loc_F24B: ; CODE XREF: sub_F1C7+97j stab byte_51 pshx ldx byte_52 ldab 0,x inx stx byte_52 pulx andb 0,x inx orab byte_51 dec byte_50 bne loc_F24B tstb bne loc_F26C aim #$F7, PORT4 ; '' jmp sub_F347 ; --------------------------------------------------------------------------- loc_F269: ; CODE XREF: sub_F1C7+5Ej oim #4, PORT4 loc_F26C: ; CODE XREF: sub_F1C7+9Aj oim #8, PORT4 jmp sub_F347 ; --------------------------------------------------------------------------- loc_F272: ; CODE XREF: sub_F1C7+59j tim #8, byte_65 bne loc_F29A tim #8, byte_62 beq loc_F295 tim #$10, byte_60 bne loc_F286 tim #4, byte_62 beq loc_F295 loc_F286: ; CODE XREF: sub_F1C7+B8j tim #$B, byte_60 bne loc_F295 tim #$90, byte_61 ; '' bne loc_F295 aim #$FB, PORT4 ; '' bra loc_F2BF ; --------------------------------------------------------------------------- loc_F295: ; CODE XREF: sub_F1C7+B3j sub_F1C7+BDj ... oim #4, PORT4 bra loc_F2BF ; --------------------------------------------------------------------------- loc_F29A: ; CODE XREF: sub_F1C7+AEj ldd byte_D5 lsrd lsrd lsrd addb byte_D7 adca #0 subd #$80 ; '' bcc loc_F2AA clra clrb loc_F2AA: ; CODE XREF: sub_F1C7+DFj tsta beq loc_F2AF ldab #$FF loc_F2AF: ; CODE XREF: sub_F1C7+E4j tba ldx #$C9DA ; go to start? jsr sub_F5F7 ldx #$4E20 jsr sub_F67D std unk_15A loc_F2BF: ; CODE XREF: sub_F1C7+CCj sub_F1C7+D1j tim #8, byte_70 beq loc_F2CA oim #8, PORT4 jmp sub_F347 ; --------------------------------------------------------------------------- loc_F2CA: ; CODE XREF: sub_F1C7+FBj tst unk_152 beq loc_F2D2 jmp sub_F347 ; --------------------------------------------------------------------------- loc_F2D2: ; CODE XREF: sub_F1C7+106j ldd unk_154 tsta bne loc_F318 tstb bne loc_F331 ldab unk_153 loc_F2DE: ; CODE XREF: sub_F1C7+135j incb cmpb #$A bcs loc_F2E4 clrb loc_F2E4: ; CODE XREF: sub_F1C7+11Aj stab byte_50 aslb addb byte_50 ldx #$F37A abx ldaa 0,x ldx 1,x anda 0,x bne loc_F2FE ldab byte_50 cmpb unk_153 beq loc_F313 bra loc_F2DE ; --------------------------------------------------------------------------- loc_F2FE: ; CODE XREF: sub_F1C7+12Cj ldab byte_50 stab unk_153 aslb ldx #$F39A abx ldd 0,x std unk_154 tsta bne loc_F318 tstb bne loc_F331 loc_F313: ; CODE XREF: sub_F1C7+133j aim #$F7, PORT4 ; '' bra sub_F347 ; --------------------------------------------------------------------------- loc_F318: ; CODE XREF: sub_F1C7+10Fj ; sub_F1C7+147j ldab #$C tim #8, PORT4 beq loc_F341 ldab #4 dec unk_154 bne loc_F341 ldab #$10 tst unk_155 bne loc_F341 ldab #$28 ; '(' bra loc_F341 ; --------------------------------------------------------------------------- loc_F331: ; CODE XREF: sub_F1C7+112j ; sub_F1C7+14Aj ldab #4 tim #8, PORT4 beq loc_F341 ldab #4 dec unk_155 bne loc_F341 ldab #$28 ; '(' loc_F341: ; CODE XREF: sub_F1C7+156j ; sub_F1C7+15Dj ... stab unk_152 eim #8, PORT4 ; End of function sub_F1C7 ; =============== S U B R O U T I N E ======================================= sub_F347: ; CODE XREF: sub_F0C0+1DP sub_F1C7+4DJ ... aim #$BF, byte_7D ; '' tim #8, byte_65 beq loc_F352 oim #$40, byte_7D ; '@' loc_F352: ; CODE XREF: sub_F347+6j tim #$20, byte_60 ; ' ' beq loc_F36E oim #$20, byte_7D ; ' ' tim #8, byte_65 bne loc_F364 aim #$F7, byte_7D ; '' bra locret_F379 ; --------------------------------------------------------------------------- loc_F364: ; CODE XREF: sub_F347+16j tst unk_151 bne locret_F379 oim #8, byte_7D bra locret_F379 ; --------------------------------------------------------------------------- loc_F36E: ; CODE XREF: sub_F347+Ej tim #$20, byte_7D ; ' ' bne loc_F376 aim #$F7, byte_7D ; '' loc_F376: ; CODE XREF: sub_F347+2Aj aim #$DF, byte_7D ; '' locret_F379: ; CODE XREF: sub_F347+1Bj sub_F347+20j ... rts ; End of function sub_F347 ; --------------------------------------------------------------------------- LUT_F37A: fcb 1 fcb 0 fcb $4C ; L fcb 2 fcb 0 fcb $4C ; L fcb 4 fcb 0 fcb $4C ; L fcb 1 fcb 0 fcb $4B ; K fcb 2 fcb 0 fcb $4B ; K fcb 4 fcb 0 fcb $4B ; K fcb $20 fcb 0 fcb $4B ; K fcb $40 ; @ fcb 0 fcb $4B ; K fcb $20 fcb 0 fcb $70 ; p fcb $40 ; @ fcb 0 fcb $70 ; p W_F398: fcb $77 ; w fcb 7 LUT_F39A: fcb 0 fcb 1 fcb 0 fcb 2 fcb 0 fcb 3 fcb 0 fcb 8 fcb 0 fcb 9 fcb 1 fcb 0 fcb 1 fcb 5 fcb 1 fcb 7 fcb 2 fcb 6 fcb 3 fcb 4 ; =============== S U B R O U T I N E ======================================= sub_F3AE: ; CODE XREF: ROM:CCBBP ldaa byte_14F beq locret_F3B7 deca staa byte_14F locret_F3B7: ; CODE XREF: sub_F3AE+3j rts ; End of function sub_F3AE ; =============== S U B R O U T I N E ======================================= sub_F3B8: ; CODE XREF: ROM:CCBEP tim #2, byte_6D bne loc_F3C1 oim #$80, PORT3 ; '' rts ; --------------------------------------------------------------------------- loc_F3C1: ; CODE XREF: sub_F3B8+3j aim #$7F, PORT3 ; '' rts ; End of function sub_F3B8 ; =============== S U B R O U T I N E ======================================= sub_F3C5: ; CODE XREF: ROM:CCC1P ldaa byte_C9D6 tim #1, byte_6E bne loc_F3D3 ldaa byte_14D beq loc_F3D6 deca loc_F3D3: ; CODE XREF: sub_F3C5+6j staa byte_14D loc_F3D6: ; CODE XREF: sub_F3C5+Bj ldx #0 ldaa byte_14E beq loc_F3E8 ldaa byte_14F beq loc_F3E8 ldx #$FFFF bra loc_F41B ; --------------------------------------------------------------------------- loc_F3E8: ; CODE XREF: sub_F3C5+17j sub_F3C5+1Cj ldaa byte_14D bne loc_F41B tim #4, byte_63 beq loc_F41B tim #$20, byte_62 ; ' ' beq loc_F3FC tim #2, byte_68 beq loc_F41B loc_F3FC: ; CODE XREF: sub_F3C5+30j ldaa byte_14B beq loc_F405 deca staa byte_14B loc_F405: ; CODE XREF: sub_F3C5+3Aj ldaa byte_C9D5 staa byte_14C ldaa byte_C9D4 tim #$10, byte_7D bne loc_F416 staa byte_14B loc_F416: ; CODE XREF: sub_F3C5+4Cj oim #$10, byte_7D bra loc_F435 ; --------------------------------------------------------------------------- loc_F41B: ; CODE XREF: sub_F3C5+21j sub_F3C5+26j ... tim #$10, byte_7D beq loc_F423 oim #8, byte_77 loc_F423: ; CODE XREF: sub_F3C5+59j aim #$EF, byte_7D ; '' clra cpx #$FFFF beq loc_F432 ldaa byte_14C beq loc_F432 deca loc_F432: ; CODE XREF: sub_F3C5+65j sub_F3C5+6Aj staa byte_14C loc_F435: ; CODE XREF: sub_F3C5+54j ldaa byte_14B bne loc_F448 tim #$10, byte_7D bne loc_F444 ldaa byte_14C beq loc_F448 loc_F444: ; CODE XREF: sub_F3C5+78j aim #$BF, PORT4 ; '' rts ; --------------------------------------------------------------------------- loc_F448: ; CODE XREF: sub_F3C5+73j sub_F3C5+7Dj oim #$40, PORT4 ; '@' rts ; End of function sub_F3C5 ; =============== S U B R O U T I N E ======================================= sub_F44C: ; CODE XREF: ROM:loc_CCFAP ldaa byte_14E beq locret_F455 deca staa byte_14E locret_F455: ; CODE XREF: sub_F44C+3j rts ; End of function sub_F44C ; =============== S U B R O U T I N E ======================================= sub_F456: ; CODE XREF: ROM:CCD1P ; FUNCTION CHUNK AT C9DC SIZE 000000E6 BYTES tim #$20, byte_60 ; ' ' beq loc_F474 tim #1, byte_60 beq loc_F474 ldaa byte_A3 cmpa #$1F bcs loc_F474 tim #8, byte_5F beq loc_F474 tim #$20, byte_5E ; ' ' bne loc_F478 oim #$20, byte_5E ; ' ' rts ; --------------------------------------------------------------------------- loc_F474: ; CODE XREF: sub_F456+3j sub_F456+8j ... aim #$CF, byte_5E ; '' rts ; --------------------------------------------------------------------------- loc_F478: ; CODE XREF: sub_F456+18j tim #8, byte_60 bne loc_F480 jmp loc_F50C ; --------------------------------------------------------------------------- loc_F480: ; CODE XREF: sub_F456+25j sei aim #$F3, PORT4 ; '' lds #4 loc_F487: ; CODE XREF: sub_F456+B3J tim #$10, PORT3 beq loc_F49E lds #1 ldaa byte_4D beq loc_F49B cmpa #$50 ; 'P' beq loc_F4E9 cmpa #$5A ; 'Z' beq loc_F49E loc_F49B: ; CODE XREF: sub_F456+3Bj eim #4, PORT4 loc_F49E: ; CODE XREF: sub_F456+34j sub_F456+43j ... des sts byte_52 beq loc_F4EC clra clrb ldx #$C000 loc_F4A8: ; CODE XREF: sub_F456+5Ej xgdx tstb bne loc_F4AF eim #$10, PORT1 loc_F4AF: ; CODE XREF: sub_F456+54j xgdx addd 0,x inx inx bne loc_F4A8 xgdx cpx #$AA55 brn loc_F4E6 xgdx loc_F4BD: ; CODE XREF: sub_F456+8Cj eim #$10, PORT1 tab coma ldx #$40 ; '@' loc_F4C5: ; CODE XREF: sub_F456+76j std 0,x inx inx cpx #$180 bcs loc_F4C5 ldx #$40 ; '@' loc_F4D1: ; CODE XREF: sub_F456+88j cmpa 0,x bne loc_F4E9 cmpb 1,x bne loc_F4E9 inx inx cpx #$180 bcs loc_F4D1 cmpa #$55 ; 'U' beq loc_F4BD bra loc_F49E ; --------------------------------------------------------------------------- loc_F4E6: ; CODE XREF: sub_F456+64j oim #4, PORT4 loc_F4E9: ; CODE XREF: sub_F456+3Fj sub_F456+7Dj ... oim #8, PORT4 loc_F4EC: ; CODE XREF: sub_F456+4Bj sub_F456+ACj tim #$20, PORT3 ; ' ' bne loc_F4F6 tim #1, PORT3 beq loc_F4F9 loc_F4F6: ; CODE XREF: sub_F456+99j jmp START ; --------------------------------------------------------------------------- loc_F4F9: ; CODE XREF: sub_F456+9Ej lds #1 ldd byte_21 anda #$E0 ; '' cmpa byte_7E beq loc_F4EC staa byte_7E eim #$10, PORT1 jmp loc_F487 ; --------------------------------------------------------------------------- loc_F50C: ; CODE XREF: sub_F456+27J oim #$10, byte_5E aim #$F7, byte_7D ; '' aim #$7F, PORT3 ; '' aim #$33, PORT4 ; '3' loc_F518: ; CODE XREF: sub_F456+19EJ tim #1, byte_60 beq loc_F524 tim #$20, byte_60 ; ' ' beq loc_F524 bra loc_F527 ; --------------------------------------------------------------------------- loc_F524: ; CODE XREF: sub_F456+C5j sub_F456+CAj jmp START ; --------------------------------------------------------------------------- loc_F527: ; CODE XREF: sub_F456+CCj aim #$F7, TCSR1 ; '' oim #8, byte_18 oim #$10, byte_18 aim #$DF, byte_20 ; '' oim #$A0, byte_28 ; '' ldaa #1 staa byte_74 ldaa #8 staa byte_76 tim #$80, byte_5E ; '' beq loc_F549 aim #$7F, byte_5E ; '' eim #$10, PORT1 loc_F549: ; CODE XREF: sub_F456+EBj tim #$40, byte_5E ; '@' beq loc_F554 aim #$BF, byte_5E ; '' jsr sub_CF7E loc_F554: ; CODE XREF: sub_F456+F6j jsr sub_CE19 jsr sub_D52A jsr sub_D2E1 jsr sub_D365 jsr sub_D399 tim #$10, byte_60 beq loc_F56D ldaa byte_8B jmp loc_F5E5 ; --------------------------------------------------------------------------- loc_F56D: ; CODE XREF: sub_F456+110j tim #4, byte_62 beq loc_F57B ldd byte_89 lsrd lsrd lsrd tba jmp loc_F5E5 ; --------------------------------------------------------------------------- loc_F57B: ; CODE XREF: sub_F456+11Aj tim #2, byte_60 beq loc_F585 ldaa byte_8C jmp loc_F5E5 ; --------------------------------------------------------------------------- loc_F585: ; CODE XREF: sub_F456+128j tim #$10, byte_61 beq loc_F58E ldaa byte_8F bra loc_F5E5 ; --------------------------------------------------------------------------- loc_F58E: ; CODE XREF: sub_F456+132j tim #8, byte_60 beq loc_F598 ldaa byte_8D jmp loc_F5E5 ; --------------------------------------------------------------------------- loc_F598: ; CODE XREF: sub_F456+13Bj tim #1, byte_61 beq loc_F5A1 ldaa #$6A ; 'j' bra loc_F5E5 ; --------------------------------------------------------------------------- loc_F5A1: ; CODE XREF: sub_F456+145j tim #2, byte_61 beq loc_F5B1 oim #$40, PORT4 ; '@' aim #$7F, PORT3 ; '' aim #$73, PORT4 ; 's' bra loc_F5DF ; --------------------------------------------------------------------------- loc_F5B1: ; CODE XREF: sub_F456+14Ej tim #4, byte_61 beq loc_F5C1 oim #$80, PORT4 ; '' aim #$7F, PORT3 ; '' aim #$B3, PORT4 ; '' bra loc_F5DF ; --------------------------------------------------------------------------- loc_F5C1: ; CODE XREF: sub_F456+15Ej tim #$40, byte_60 ; '@' beq loc_F5D1 oim #8, PORT4 aim #$7F, PORT3 ; '' aim #$3B, PORT4 ; ';' bra loc_F5DF ; --------------------------------------------------------------------------- loc_F5D1: ; CODE XREF: sub_F456+16Ej tim #4, byte_60 beq loc_F5E3 oim #4, PORT4 aim #$7F, PORT3 ; '' aim #$37, PORT4 ; '7' loc_F5DF: ; CODE XREF: sub_F456+159j ; sub_F456+169j ... ldaa #$F6 ; '' bra loc_F5EB ; --------------------------------------------------------------------------- loc_F5E3: ; CODE XREF: sub_F456+17Ej ldaa #$A loc_F5E5: ; CODE XREF: sub_F456+114J ; sub_F456+122J ... aim #$7F, PORT3 ; '' aim #$33, PORT4 ; '3' loc_F5EB: ; CODE XREF: sub_F456+18Bj ldx #$186A jsr sub_F67D std word_12A jmp loc_F518 ; End of function sub_F456 ; =============== S U B R O U T I N E ======================================= sub_F5F7: ; CODE XREF: sub_D95A+79P sub_E0F3+86P ... cmpa 0,x bls loc_F5FD ldaa 0,x loc_F5FD: ; CODE XREF: sub_F5F7+2j cmpa 1,x bcc locret_F603 ldaa 1,x locret_F603: ; CODE XREF: sub_F5F7+8j rts ; End of function sub_F5F7 ; =============== S U B R O U T I N E ======================================= sub_F604: ; CODE XREF: ROM:CEFEP ROM:CF23P cmpa 0,x bls loc_F61A cmpa 1,x bcc loc_F61A comb stab byte_5C andb byte_5A stab byte_5A ldab byte_5C andb byte_5B stab byte_5B rts ; --------------------------------------------------------------------------- loc_F61A: ; CODE XREF: sub_F604+2j sub_F604+6j bitb byte_5B beq loc_F624 orab byte_5A stab byte_5A bra loc_F628 ; --------------------------------------------------------------------------- loc_F624: ; CODE XREF: sub_F604+18j orab byte_5B stab byte_5B loc_F628: ; CODE XREF: sub_F604+1Ej ldaa 2,x rts ; End of function sub_F604 ; =============== S U B R O U T I N E ======================================= sub_F62B: ; CODE XREF: sub_CFED+1BP sub_CFED+2AP ... ldaa 0,x inx loc_F62E: ; CODE XREF: sub_F653+3J sub_F659+AJ cmpa byte_56 bhi loc_F636 orab byte_54 bra loc_F646 ; --------------------------------------------------------------------------- loc_F636: ; CODE XREF: sub_F62B+5j suba 0,x bcs loc_F646 loc_F63A: ; CODE XREF: ROM:F67AJ cmpa byte_56 bls loc_F646 com byte_54 andb byte_54 com byte_54 loc_F646: ; CODE XREF: sub_F62B+9j sub_F62B+Dj ... inx asl byte_54 ldaa byte_55 suba #1 staa byte_55 bhi sub_F62B rts ; End of function sub_F62B ; =============== S U B R O U T I N E ======================================= sub_F653: ; CODE XREF: sub_CFED+FP sub_CFED+14P ... clr byte_55 jmp loc_F62E ; End of function sub_F653 ; =============== S U B R O U T I N E ======================================= sub_F659: ; CODE XREF: sub_CFED+69P sub_CFED+6EP ... clr byte_55 adda 0,x bcc loc_F662 ldaa #$FF loc_F662: ; CODE XREF: sub_F659+5j inx jmp loc_F62E ; End of function sub_F659 ; --------------------------------------------------------------------------- clr byte_55 adda 0,x bcc loc_F66F ldaa #$FF loc_F66F: ; CODE XREF: ROM:F66Bj inx cmpa byte_56 bhi loc_F678 orab byte_54 bra loc_F646 ; --------------------------------------------------------------------------- loc_F678: ; CODE XREF: ROM:F672j ldaa 0,x jmp loc_F63A ; =============== S U B R O U T I N E ======================================= sub_F67D: ; CODE XREF: sub_DA01+AP ; sub_DC76:loc_DD3AP ... psha pshx pulb mul pulx xgdx mul tab abx xgdx rts ; End of function sub_F67D ; =============== S U B R O U T I N E ======================================= sub_F688: ; CODE XREF: sub_DA01+4P stx byte_54 ldab byte_54 staa byte_54 mul xgdx ldaa byte_54 mul stab byte_54 tab abx ldaa byte_54 rts ; End of function sub_F688 ; =============== S U B R O U T I N E ======================================= sub_F69A: ; CODE XREF: sub_D0BE+3EP sub_D75F+4P std byte_54 stx byte_56 ldab unk_57 mul xgdx ldaa byte_55 mul tab abx ldd byte_55 mul stab unk_57 ldab byte_56 staa byte_56 ldaa byte_54 mul xgdx addd byte_56 bcc loc_F6BB xgdx inca xgdx loc_F6BB: ; CODE XREF: sub_F69A+1Cj stab byte_54 tab abx ldaa byte_54 rts ; End of function sub_F69A ; =============== S U B R O U T I N E ======================================= sub_F6C2: ; CODE XREF: sub_D0BE+109P ; sub_DA8B+2FP stx byte_54 adda #$80 ; '' xgdx bcs loc_F6CA lsrd loc_F6CA: ; CODE XREF: sub_F6C2+5j std byte_56 xgdx ldab byte_54 staa byte_54 mul xgdx ldd byte_54 mul tab abx xgdx lsrd addd byte_56 bcc locret_F6E1 ldd #$FFFF locret_F6E1: ; CODE XREF: sub_F6C2+1Aj rts ; End of function sub_F6C2 ; =============== S U B R O U T I N E ======================================= sub_F6E2: ; CODE XREF: sub_D79C+36P sub_D95A+47P ... tsta bne loc_F6EA ldd #$FFFF bra locret_F70F ; --------------------------------------------------------------------------- loc_F6EA: ; CODE XREF: sub_F6E2+1j stx byte_56 ldx #$F707 loc_F6EF: ; CODE XREF: sub_F6E2+Fj inx asla bcc loc_F6EF tab lsrb pshx tsta bne loc_F6FC ldd byte_56 rts ; --------------------------------------------------------------------------- loc_F6FC: ; CODE XREF: sub_F6E2+15j ldx #$F710 abx ldaa 0,x ldx byte_56 jsr sub_F67D LUT_F707: rts ; --------------------------------------------------------------------------- fcb 4 fcb 4 fcb 4 fcb 4 fcb 4 fcb 4 fcb 4 ; --------------------------------------------------------------------------- locret_F70F: ; CODE XREF: sub_F6E2+6j rts ; End of function sub_F6E2 ; --------------------------------------------------------------------------- LUT_F710: fcb $FF,$FE,$FC,$FA,$F8,$F6,$F4,$F2; 0 fcb $F0,$EF,$ED,$EB,$EA,$E8,$E6,$E5; 8 fcb $E3,$E1,$E0,$DE,$DD,$DB,$DA,$D9; 16 fcb $D7,$D6,$D4,$D3,$D2,$D0,$CF,$CE; 24 fcb $CC,$CB,$CA,$C9,$C7,$C6,$C5,$C4; 32 fcb $C3,$C1,$C0,$BF,$BE,$BD,$BC,$BB; 40 fcb $BA,$B9,$B8,$B7,$B6,$B5,$B4,$B3; 48 fcb $B2,$B1,$B0,$AF,$AE,$AD,$AC,$AB; 56 fcb $AA,$A9,$A8,$9B,$A7,$A6,$A5,$98; 64 fcb $A3,$A3,$A2,$95,$A0,$9F,$9F,$92; 72 fcb $9D,$9C,$9C,$9B,$9A,$99,$99,$98; 80 fcb $97,$97,$96,$95,$94,$94,$93,$92; 88 fcb $92,$91,$90,$90,$8F,$8F,$8E,$8D; 96 fcb $8D,$8C,$8C,$8B,$8A,$8A,$89,$89; 104 fcb $88,$87,$87,$86,$86,$85,$85,$84; 112 fcb $84,$83,$83,$82,$82,$81,$81,$80; 120 ; =============== S U B R O U T I N E ======================================= sub_F790: ; CODE XREF: sub_F7ACP sub_F7B4P xgdx subd #3 xgdx cmpa 0,x bls loc_F79B ldaa 0,x loc_F79B: ; CODE XREF: sub_F790+7j cmpa 1,x bcc loc_F7A1 ldaa 1,x loc_F7A1: ; CODE XREF: sub_F790+Dj suba 1,x ldab 2,x mul xgdx addd #3 xgdx rts ; End of function sub_F790 ; =============== S U B R O U T I N E ======================================= sub_F7AC: ; CODE XREF: sub_EC5F+87P sub_EC5F+9FP jsr sub_F790 tab abx ldaa 0,x rts ; End of function sub_F7AC ; =============== S U B R O U T I N E ======================================= sub_F7B4: ; CODE XREF: sub_D52A+5P sub_D52A+16P ... jsr sub_F790 ; End of function sub_F7B4 ; =============== S U B R O U T I N E ======================================= sub_F7B7: ; CODE XREF: sub_D4E2+6P sub_D790+6P ... stab byte_54 tab abx ldab byte_54 bne loc_F7C3 ldaa 0,x bra locret_F7D7 ; --------------------------------------------------------------------------- loc_F7C3: ; CODE XREF: sub_F7B7+6j ldaa 1,x suba 0,x bcc loc_F7D4 nega mul std byte_54 ldaa 0,x clrb subd byte_54 bra locret_F7D7 ; --------------------------------------------------------------------------- loc_F7D4: ; CODE XREF: sub_F7B7+10j mul adda 0,x locret_F7D7: ; CODE XREF: sub_F7B7+Aj sub_F7B7+1Bj rts ; End of function sub_F7B7 ; =============== S U B R O U T I N E ======================================= sub_F7D8: ; CODE XREF: sub_D0BE+162P ; sub_D0BE+176P ... cmpa #$E0 ; '' bls loc_F7DE ldaa #$E0 ; '' loc_F7DE: ; CODE XREF: sub_F7D8+2j ldab #8 mul jmp sub_F7B7 ; End of function sub_F7D8 ; =============== S U B R O U T I N E ======================================= sub_F7E4: ; CODE XREF: sub_D296+CP sub_D4E2P ... ldx byte_A3 cpx #$1C00 bls loc_F7EE ldx #$1C00 loc_F7EE: ; CODE XREF: sub_F7E4+5j xgdx subd #$400 bcc loc_F7F6 clra clrb loc_F7F6: ; CODE XREF: sub_F7E4+Ej lsrd rts ; End of function sub_F7E4 ; =============== S U B R O U T I N E ======================================= sub_F7F8: ; CODE XREF: sub_DA8B+37P ldab byte_8D loc_F7FA: ; CODE XREF: sub_E722:loc_E73FP ; sub_EB0B:loc_EBDEP ... cmpb #$E0 ; '' bls loc_F800 ldab #$E0 ; '' loc_F800: ; CODE XREF: sub_F7F8+4j clra lsld lsld lsld ; End of function sub_F7F8 ; =============== S U B R O U T I N E ======================================= sub_F804: ; CODE XREF: sub_D0BE+39P sub_D75F+24P ... asla stab byte_54 tab abx tst byte_54 bne loc_F812 ldd 0,x bra locret_F833 ; --------------------------------------------------------------------------- loc_F812: ; CODE XREF: sub_F804+8j ldd 2,x subd 0,x bcc loc_F829 coma negb sbca #$FF pshx xgdx ldaa byte_54 jsr sub_F67D coma negb sbca #$FF bra loc_F830 ; --------------------------------------------------------------------------- loc_F829: ; CODE XREF: sub_F804+12j pshx xgdx ldaa byte_54 jsr sub_F67D loc_F830: ; CODE XREF: sub_F804+23j pulx addd 0,x locret_F833: ; CODE XREF: sub_F804+Cj rts ; End of function sub_F804 ; =============== S U B R O U T I N E ======================================= sub_F834: ; CODE XREF: sub_D0BE+116P ; sub_D0BE+137P ... tst byte_54 beq locret_F859 std byte_55 subd 0,x bcc loc_F84B coma negb sbca #$FF xgdx ldaa byte_54 jsr sub_F67D bra loc_F857 ; --------------------------------------------------------------------------- loc_F84B: ; CODE XREF: sub_F834+9j xgdx ldaa byte_54 jsr sub_F67D coma negb sbca #$FF bra *+2 loc_F857: ; CODE XREF: sub_F834+15j addd byte_55 locret_F859: ; CODE XREF: sub_F834+3j rts ; End of function sub_F834 ; =============== S U B R O U T I N E ======================================= sub_F85A: ; CODE XREF: sub_D296:loc_D2B7P ; sub_DB58+22P ... dex dex cmpa 0,x bcs loc_F863 ldaa 0,x clrb loc_F863: ; CODE XREF: sub_F85A+4j std byte_56 ldd byte_54 cmpa 1,x bcs loc_F86E ldaa 1,x clrb loc_F86E: ; CODE XREF: sub_F85A+Fj std byte_54 ldaa 1,x inca inx inx stx unk_58 ldab byte_56 staa byte_56 mul addd unk_58 std unk_58 xgdx ldab byte_56 abx ldd byte_54 staa byte_56 pshb jsr sub_F7B7 ldx unk_58 std unk_58 ldaa byte_56 pulb jsr sub_F7B7 std byte_54 subd unk_58 bls loc_F8A8 xgdx ldaa unk_57 jsr sub_F67D coma negb sbca #$FF bra loc_F8B2 ; --------------------------------------------------------------------------- loc_F8A8: ; CODE XREF: sub_F85A+40j coma negb sbca #$FF xgdx ldaa unk_57 jsr sub_F67D loc_F8B2: ; CODE XREF: sub_F85A+4Cj addd byte_54 rts ; End of function sub_F85A ; =============== S U B R O U T I N E ======================================= sub_F8B5: ; CODE XREF: sub_D3B8+3BP ldab byte_54 beq loc_F8D4 clrb stab byte_54 inca ldab byte_55 beq loc_F8C8 ldab 1,x cba bcs locret_F8C7 tba locret_F8C7: ; CODE XREF: sub_F8B5+Fj rts ; --------------------------------------------------------------------------- loc_F8C8: ; CODE XREF: sub_F8B5+Aj tsta bpl loc_F8CC rts ; --------------------------------------------------------------------------- loc_F8CC: ; CODE XREF: sub_F8B5+14j ldaa 1,x ldx #$101 stx byte_54 rts ; --------------------------------------------------------------------------- loc_F8D4: ; CODE XREF: sub_F8B5+2j deca ldab byte_55 bne loc_F8E2 coma ldab 0,x cba bcs loc_F8E0 tba loc_F8E0: ; CODE XREF: sub_F8B5+28j coma rts ; --------------------------------------------------------------------------- loc_F8E2: ; CODE XREF: sub_F8B5+22j tsta bmi loc_F8E6 rts ; --------------------------------------------------------------------------- loc_F8E6: ; CODE XREF: sub_F8B5+2Ej ldaa 0,x coma ldx #$100 stx byte_54 rts ; End of function sub_F8B5 ; --------------------------------------------------------------------------- loc_F8EF: ; CODE XREF: ROM:loc_F8EFj bra loc_F8EF ; --------------------------------------------------------------------------- fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? ; =============== S U B R O U T I N E ======================================= sub_FFC0: ; CODE XREF: sub_F456-2A44P ldd #$404 std P3DDR ldd #$FFFF std PORT3 ; End of function sub_FFC0 ; =============== S U B R O U T I N E ======================================= sub_FFCA: ; CODE XREF: sub_CAC5+80P clra clrb std P3DDR ldd #$80CC std PORT3 ldd #$404 std P3DDR ldd #$80CC rts ; End of function sub_FFCA ; --------------------------------------------------------------------------- fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? fcb $3F ; ? UNK_INT1: fdb $C9DC UNK_INT2: fdb $CDB7 TRAP: fdb $C9DC SIO: fdb $CE7D TOI: fdb $C9DC OC1: fdb $CDA6 IC1: fdb $CDC8 IRQ: fdb $C9DC SWI: fdb $C9DC NMI: fdb $F8EF RESET: fdb $C9DC ; end of 'ROM' end