D000: 35 D001: 09 D002: F4 B2 A5 D005: 05 D006: 00 D007: 00 D008: 00 D009: 00 D00A: 01 D00B: 01 D00C: 00 D00D: 03 D00E: 02 D00F: 03 D010: 05 D011: 04 D012: 12 D013: 05 D014: 05 D015: 05 D016: 00 D017: 00 D018: 00 D019: 00 D01A: 30 D01B: 01 D01C: 04 D01D: 01 D01E: 01 D01F: 00 D020: 00 D021: 09 D022: 45 D023: 18 D024: 05 D025: 45 D026: 00 D027: 01 D028: 04 D029: 01 D02A: 02 D02B: 04 D02C: 00 D02D: 01 D02E: 16 D02F: 06 D030: 02 D031: 00 D032: 00 D033: 03 D034: 15 D035: 03 D036: 04 D037: 15 D038: 00 D039: 01 D03A: 00 D03B: 04 D03C: 01 D03D: 00 D03E: 00 D03F: 01 D040: 00 D041: 02 D042: 01 D043: 00 D044: 00 D045: 01 D046: 00 D047: 02 D048: 02 D049: 00 D04A: 00 D04B: 1C D04C: 03 D04D: 22 D04E: 01 D04F: E3 D050: 69 D051: E4 D052: 0B D053: E3 D054: 99 D055: 05 Lamp Flash Rate D056: 0D D057: 03 D058: 03 D059: 1A D05A: 11 D05B: 1A D05C: 00 D05D: 5F Game Over Lamp Location D05E: 5F D05F: DE A7 Game Over Init Thread D061: E4 D062: CB D063: 05 D064: E1 D065: 89 D066: 00 D067: 02 D068: 00 D069: 09 D06A: 00 D06B: 04 D06C: 00 D06D: 01 D06E: 02 D06F: 05 D070: 08 D071: 05 D072: 00 D073: 00 D074: 00 D075: 00 D076: 00 D077: 00 D078: 00 D079: 00 D07A: 00 D07B: 00 D07C: 00 D07D: 00 D07E: 00 D07F: 00 D080: 00 D081: 00 D082: 00 D083: 00 D084: 00 D085: 00 D086: 00 D087: 00 D088: 00 D089: 00 D08A: 00 D08B: 00 D08C: 00 D08D: 00 D08E: 00 D08F: 00 D090: 00 D091: 00 D092: 00 D093: 00 D094: 00 D095: 00 D096: 00 D097: 00 D098: 00 D099: 00 D09A: 00 D09B: 00 D09C: FF 03 00 D09F: 00 D0A0: 00 D0A1: 00 D0A2: 00 D0A3: 00 D0A4: 00 D0A5: 00 D0A6: 00 D0A7: 00 D0A8: 00 D0A9: 00 D0AA: 00 D0AB: 00 D0AC: 00 D0AD: 00 D0AE: 00 D0AF: 00 D0B0: 39 00 D0B2: 39 DD D0B4: 39 00 D0B6: 39 00 D0B8: 20 22 D0BA: 39 00 Main Loop Begin Hook - RTS D0BC: 39 00 D0BE: 39 00 D0C0: 39 00 D0C2: 39 00 D0C4: D1 08 Game Reset Hook D0C6: D0 BA Main Loop Begin Hook D0C8: E1 72 D0CA: D1 20 D0CC: D3 B0 D0CE: D1 FF ** Game IRQ Entry *** D0D0: 7E EF 36 JMP $EF36 *** SWI Entry *** D0D3: 0E CLI D0D4: 31 INS D0D5: 31 INS D0D6: 31 INS D0D7: 31 INS D0D8: 31 INS D0D9: 7E F4 32 JMP $F432 Begin Macro's D0DC: CE 01 99 LDX #0199 D0DF: BD EE A2 JSR $EEA2 ( CMOS,X++ -> B) D0E2: 27 DE BEQ $D0C2 D0E4: DE FA LDX $00FA D0E6: 09 DEX D0E7: 09 DEX D0E8: BD FD DB JSR $FDDB ( CMOS, X -> A ) D0EB: 1B ABA D0EC: 19 DAA D0ED: 8D 4C BSR $D13B D0EF: 86 12 LDA #12 D0F1: BD EC 3B JSR $EC3B D0F4: C6 01 LDB #01 D0F6: BD D9 CB JSR $D9CB D0F9: CE 00 5E LDX #005E D0FC: 96 EB LDA $00EB D0FE: 27 03 BEQ $D103 D100: CE 00 5C LDX #005C D103: 86 01 LDA #01 D105: 7E D1 CC JMP $D1CC Game Reset Hook: D108: BD EE DC JSR $EEDC Restore Backup High Score D10B: CE 01 2E LDX #012E D10E: DF B8 STX $00B8 D110: CE E5 D0 LDX #E5D0 D113: E6 00 LDB $00,X D115: C4 0F ANDB #0F D117: 08 INX D118: 7E EF 23 JMP $EF23 D11B: 8D EB BSR $D108 D11D: 7E E9 C4 JMP $E9C4 Remove Current Thread from Control Stack D120: CE 13 A0 LDX #13A0 D123: 6F 00 CLR $00,X D125: 08 INX D126: 8C 13 A7 CMPX #13 D129: 26 F8 BNE $D123 D12B: CE 01 99 LDX #0199 D12E: 86 F3 LDA #F3 D130: BD EA 83 JSR $EA83 D133: BD D1 B9 JSR $D1B9 D136: CE 01 46 LDX #0146 D139: 8D 00 BSR $D13B D13B: 7E EE EE JMP $EEEE D13E: 4F CLRA D13F: 4C INCA D140: D6 E7 LDB $00E7 D142: 27 2E BEQ $D172 D144: B7 13 9E STA $139E D147: 16 TAB D148: CE 01 AB LDX #01AB D14B: 8D 6C BSR $D1B9 D14D: 27 08 BEQ $D157 D14F: CE 01 6E LDX #016E D152: 8D 65 BSR $D1B9 D154: 11 CBA D155: 25 C6 BCS $D11D D157: 86 08 LDA #08 D159: CE FB A5 LDX #FBA5 D15C: BD D5 0E JSR $D50E D15F: 5A DECB D160: 26 F5 BNE $D157 D162: CE 03 03 LDX #0303 D165: FF 13 9A STX $139A D168: 8D 5A BSR $D1C4 D16A: 27 B1 BEQ $D11D D16C: 3F SWI D16D: 52 -------------------- D16E: 48 ASLA D16F: 75 -------------------- D170: 8F -------------------- D171: FD -------------------- D172: B1 13 9E CMPA $139E D175: 26 A6 BNE $D11D D177: 86 48 LDA #48 D179: C6 FF LDB #FF D17B: BD EA 60 JSR $EA60 D17E: 25 69 BCS $D1E9 D180: BD D1 FA JSR $D1FA D183: F6 13 9E LDB $139E D186: CE 01 AB LDX #01AB D189: 8D 2E BSR $D1B9 D18B: 27 06 BEQ $D193 D18D: B6 11 9A LDA $119A D190: 11 CBA D191: 25 56 BCS $D1E9 D193: C1 02 CMPB #02 D195: 26 10 BNE $D1A7 D197: 8D 23 BSR $D1BC D199: F6 13 9B LDB $139B D19C: 36 PSHA D19D: 1B ABA D19E: B7 13 9B STA $139B D1A1: 32 PULA D1A2: CE 00 5C LDX #005C D1A5: 8D 25 BSR $D1CC D1A7: 8D 13 BSR $D1BC D1A9: F6 13 9A LDB $139A D1AC: 36 PSHA D1AD: 1B ABA D1AE: B7 13 9A STA $139A D1B1: 32 PULA D1B2: CE 00 5E LDX #005E D1B5: 8D 15 BSR $D1CC D1B7: 20 30 BRA $D1E9 D1B9: 7E FD DB JMP $FDDB D1BC: CE 01 6E LDX #016E D1BF: 8D F8 BSR $D1B9 D1C1: BD FB DF JSR $FBDF D1C4: CE 01 95 LDX #0195 D1C7: 8D F0 BSR $D1B9 D1C9: 84 0F ANDA #0F D1CB: 39 RTS D1CC: E6 00 LDB $00,X D1CE: 2A 02 BPL $D1D2 D1D0: C4 0F ANDB #0F D1D2: 1B ABA D1D3: 19 DAA D1D4: 81 09 CMPA #09 D1D6: 2E 02 BGT $D1DA D1D8: 8A F0 ORA #F0 D1DA: A7 00 STA $00,X D1DC: 39 RTS D1DD: CE 00 66 LDX #0066 D1E0: FF 11 8E STX $118E D1E3: CE E5 5F LDX #E55F D1E6: BD D2 49 JSR $D249 D1E9: 7E E9 C4 JMP $E9C4 Remove Current Thread from Control Stack D1EC: CE 00 65 LDX #0065 D1EF: FF 11 92 STX $1192 D1F2: CE E5 65 LDX #E565 D1F5: BD D2 58 JSR $D258 D1F8: 20 EF BRA $D1E9 D1FA: C6 FF LDB #FF D1FC: 7E EA 5B JMP $EA5B D1FF: 86 78 LDA #78 D201: 8D F7 BSR $D1FA D203: 96 E8 LDA $00E8 D205: 26 05 BNE $D20C D207: 86 29 LDA #29 D209: BD EB 3D JSR $EB3D D20C: 7C 00 E6 INC $00E6 D20F: D6 5E LDB $005E D211: 96 EB LDA $00EB D213: 27 02 BEQ $D217 D215: D6 5C LDB $005C D217: C1 F0 CMPB #F0 D219: 26 2B BNE $D246 D21B: CE E5 58 LDX #E558 D21E: BD D3 0B JSR $D30B D221: 8B 1C ADDA #1C D223: DE B8 LDX $00B8 D225: A7 02 STA $02,X D227: 96 EA LDA $00EA D229: 27 04 BEQ $D22F D22B: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer D22E: 60 D22F: CE D1 DD LDX #D1DD D232: BD EA 24 JSR $EA24 Push Control Stack: Data in A,B,X,$A6,$A7,$AA=#06 D235: CE D1 EC LDX #D1EC D238: BD EA 24 JSR $EA24 Push Control Stack: Data in A,B,X,$A6,$A7,$AA=#06 D23B: 8D 09 BSR $D246 D23D: 86 09 LDA #09 D23F: BD EC 3B JSR $EC3B D242: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer D245: F0 D246: 7E D2 D6 JMP $D2D6 D249: A6 00 LDA $00,X D24B: 84 0F ANDA #0F D24D: BD EE 3E JSR $EE3E ( X = X + A) D250: E6 00 LDB $00,X D252: 09 DEX D253: 8D 21 BSR $D276 D255: 26 F9 BNE $D250 D257: 39 RTS D258: A6 00 LDA $00,X D25A: 84 0F ANDA #0F D25C: 08 INX D25D: E6 00 LDB $00,X D25F: 8D 2A BSR $D28B D261: 26 F9 BNE $D25C D263: 39 RTS D264: 8D 55 BSR $D2BB D266: 8D E1 BSR $D249 D268: 5F CLRB D269: 86 01 LDA #01 D26B: 20 E6 BRA $D253 D26D: 8D 41 BSR $D2B0 D26F: 8D E7 BSR $D258 D271: 5F CLRB D272: 86 01 LDA #01 D274: 20 E9 BRA $D25F D276: 36 PSHA D277: 37 PSHB D278: FF 11 8C STX $118C D27B: CE 00 60 LDX #0060 D27E: 17 TBA D27F: E6 00 LDB $00,X D281: A7 00 STA $00,X D283: 08 INX D284: BC 11 8E CPX $118E D287: 26 F5 BNE $D27E D289: 20 13 BRA $D29E D28B: 36 PSHA D28C: 37 PSHB D28D: FF 11 8C STX $118C D290: CE 00 6B LDX #006B D293: 17 TBA D294: E6 00 LDB $00,X D296: A7 00 STA $00,X D298: 09 DEX D299: BC 11 92 CPX $1192 D29C: 26 F5 BNE $D293 D29E: FE 11 8C LDX $118C D2A1: 33 PULB D2A2: 96 0A LDA $000A D2A4: 26 02 BNE $D2A8 D2A6: 86 09 LDA #09 D2A8: 97 D5 STA $00D5 D2AA: 32 PULA D2AB: BD E9 71 JSR $E971 D2AE: 4A DECA D2AF: 39 RTS D2B0: FF 11 90 STX $1190 D2B3: CE 00 5F LDX #005F D2B6: FF 11 92 STX $1192 D2B9: 20 09 BRA $D2C4 D2BB: FF 11 90 STX $1190 D2BE: CE 00 6C LDX #006C D2C1: FF 11 8E STX $118E D2C4: FE 11 90 LDX $1190 D2C7: 39 RTS D2C8: 8D E6 BSR $D2B0 D2CA: 8D BF BSR $D28B D2CC: 26 FC BNE $D2CA D2CE: 39 RTS D2CF: 8D EA BSR $D2BB D2D1: 8D A3 BSR $D276 D2D3: 26 FC BNE $D2D1 D2D5: 39 RTS D2D6: 36 PSHA D2D7: 37 PSHB D2D8: DF C2 STX $00C2 D2DA: CE 00 60 LDX #0060 D2DD: DF B8 STX $00B8 D2DF: 8D 73 BSR $D354 D2E1: DE C2 LDX $00C2 D2E3: E6 00 LDB $00,X D2E5: DE B8 LDX $00B8 D2E7: BD EC 32 JSR $EC32 D2EA: F7 11 88 STB $1188 D2ED: BD EE 8C JSR $EE8C D2F0: DF B8 STX $00B8 D2F2: DE C2 LDX $00C2 D2F4: 33 PULB D2F5: 32 PULA D2F6: 39 RTS D2F7: 36 PSHA D2F8: 37 PSHB D2F9: 86 26 LDA #26 D2FB: 5A DECB D2FC: 27 F6 BEQ $D2F4 D2FE: A7 00 STA $00,X D300: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer D303: 02 D304: 4C INCA D305: 81 2A CMPA #2A D307: 27 F0 BEQ $D2F9 D309: 20 F3 BRA $D2FE D30B: 8D C9 BSR $D2D6 D30D: E6 00 LDB $00,X D30F: C4 0F ANDB #0F D311: 08 INX D312: 7E EE FB JMP $EEFB D315: 8D BF BSR $D2D6 D317: A6 00 LDA $00,X D319: 84 0F ANDA #0F D31B: C6 0B LDB #0B D31D: 36 PSHA D31E: 08 INX D31F: FF 11 8A STX $118A D322: A6 00 LDA $00,X D324: 97 6B STA $006B D326: CE 00 6A LDX #006A D329: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer D32C: 04 D32D: A6 01 LDA $01,X D32F: A7 00 STA $00,X D331: 4F CLRA D332: A7 01 STA $01,X D334: 09 DEX D335: 5A DECB D336: F1 11 88 CMPB $1188 D339: 26 EE BNE $D329 D33B: FE 11 8A LDX $118A D33E: 7C 11 88 INC $1188 D341: 32 PULA D342: 4A DECA D343: 26 D6 BNE $D31B D345: 39 RTS D346: BD EA F8 JSR $EAF8 D349: 5F CLRB D34A: 20 02 BRA $D34E D34C: C6 7F LDB #7F D34E: BD D8 58 JSR $D858 D351: CE 00 6C LDX #006C D354: 4F CLRA D355: C6 0C LDB #0C D357: 7E F8 A9 JMP $F8A9 D35A: 5A DECB D35B: FE F2 FF LDX $F2FF D35E: C0 10 SUBB #10 D360: 48 ASLA D361: CE D3 71 LDX #D371 D364: BD EA 24 JSR $EA24 Push Control Stack: Data in A,B,X,$A6,$A7,$AA=#06 D367: F5 57 FB BITB $57FB D36A: FD -------------------- D36B: 5A DECB D36C: F0 09 31 SUBB $0931 D36F: 46 RORA D370: 03 -------------------- D371: 3F SWI D372: 52 -------------------- D373: C0 53 SUBB #53 D375: 18 -------------------- D376: 03 -------------------- D377: 31 INS D378: F6 52 A0 LDB $52A0 D37B: 55 -------------------- D37C: 08 INX D37D: 00 -------------------- D37E: 93 -------------------- D37F: 8A 04 ORA #04 D381: CE E5 F4 LDX #E5F4 D384: 8D 85 BSR $D30B D386: 8D C4 BSR $D34C D388: 86 31 LDA #31 D38A: BD D8 53 JSR $D853 D38D: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer D390: 06 D391: 4A DECA D392: 26 F6 BNE $D38A D394: CE 00 00 LDX #0000 D397: FF 11 98 STX $1198 D39A: 3F SWI D39B: AF 39 STS $39,X D39D: A4 B9 ANDA $B9,X D39F: 51 -------------------- D3A0: 60 34 NEG $34,X D3A2: 06 TAP D3A3: 01 NOP D3A4: 02 -------------------- D3A5: 07 TPA D3A6: 52 -------------------- D3A7: 00 -------------------- D3A8: A5 DD BITA $DD,X D3AA: 57 ASRB D3AB: EA F8 ORB $F8,X D3AD: 5C INCB D3AE: FA 43 7C ORB $437C D3B1: 00 -------------------- D3B2: E6 CE LDB $CE,X D3B4: E5 58 BITB $58,X D3B6: BD D3 0B JSR $D30B D3B9: DE CF LDX $00CF D3BB: E7 0D STB $0D,X D3BD: 96 EB LDA $00EB D3BF: 8B 1C ADDA #1C D3C1: DE B8 LDX $00B8 D3C3: A7 02 STA $02,X D3C5: BD D3 4C JSR $D34C D3C8: BD DF 11 JSR $DF11 D3CB: CE E3 34 LDX #E334 D3CE: BD D5 0D JSR $D50D D3D1: 8D 20 BSR $D3F3 D3D3: 7F 13 9D CLR $139D D3D6: 3F SWI D3D7: 5B -------------------- D3D8: FC -------------------- D3D9: E6 00 LDB $00,X D3DB: 06 TAP D3DC: C2 00 SBCB #00 D3DE: C6 05 LDB #05 D3E0: 18 -------------------- D3E1: 0A CLV D3E2: 19 DAA D3E3: 4F CLRA D3E4: 29 40 BVS $D426 D3E6: B0 0B 5A SUBA $0B5A D3E9: FC -------------------- D3EA: E1 00 CMPB $00,X D3EC: 12 -------------------- D3ED: A5 FF BITA $FF,X D3EF: B1 FF 8F CMPA $FF8F D3F2: F5 D6 EB BITB $D6EB D3F5: 17 TBA D3F6: CE 13 9A LDX #139A D3F9: BD EE 8C JSR $EE8C D3FC: E6 00 LDB $00,X D3FE: 39 RTS D3FF: B0 43 31 SUBA $4331 D402: 06 TAP D403: 17 TBA D404: 00 -------------------- D405: C1 10 CMPB #10 D407: E7 7A STB $7A,X D409: B1 FF 5B CMPA $FF5B D40C: FC -------------------- D40D: E1 00 CMPB $00,X D40F: F7 14 00 STB $1400 D412: D9 30 ADCB $0030 D414: AE C0 LDS $C0,X D416: 31 INS D417: F9 53 40 ADCB $5340 D41A: 55 -------------------- D41B: FF 48 04 STX $4804 D41E: 4F CLRA D41F: 97 E6 STA $00E6 D421: 97 0A STA $000A D423: CE 01 97 LDX #0197 D426: BD EE A2 JSR $EEA2 ( CMOS,X++ -> B) D429: 86 11 LDA #11 D42B: C4 0F ANDB #0F D42D: 27 0A BEQ $D439 D42F: 4A DECA D430: 5A DECB D431: 26 FC BNE $D42F D433: 81 04 CMPA #04 D435: 2E 02 BGT $D439 D437: 86 04 LDA #04 D439: 97 0C STA $000C D43B: 96 05 LDA $0005 D43D: D6 03 LDB $0003 D43F: 26 32 BNE $D473 D441: 8B 01 ADDA #01 D443: 19 DAA D444: 97 05 STA $0005 D446: 36 PSHA D447: C6 0F LDB #0F D449: D7 07 STB $0007 D44B: C6 04 LDB #04 D44D: CE 01 9F LDX #019F D450: BD EE 92 JSR $EE92 ( CMOS,X++ -> A) D453: 84 0F ANDA #0F D455: 27 0A BEQ $D461 D457: 7A 00 07 DEC $0007 D45A: D1 07 CMPB $0007 D45C: 27 03 BEQ $D461 D45E: 4A DECA D45F: 26 F6 BNE $D457 D461: D6 05 LDB $0005 D463: BD F8 9D JSR $F89D D466: 96 07 LDA $0007 D468: 81 04 CMPA #04 D46A: 27 04 BEQ $D470 D46C: 4A DECA D46D: 5A DECB D46E: 26 F8 BNE $D468 D470: 97 07 STA $0007 D472: 32 PULA D473: 5F CLRB D474: 36 PSHA D475: 96 0C LDA $000C D477: 4A DECA D478: 81 03 CMPA #03 D47A: 2D 02 BLT $D47E D47C: 97 0C STA $000C D47E: 32 PULA D47F: 8B 99 ADDA #99 D481: 19 DAA D482: 27 07 BEQ $D48B D484: 5C INCB D485: C1 05 CMPB #05 D487: 27 EA BEQ $D473 D489: 20 F4 BRA $D47F D48B: 96 05 LDA $0005 D48D: C1 04 CMPB #04 D48F: 27 70 BEQ $D501 D491: 7D 00 03 TST $0003 D494: 26 0E BNE $D4A4 D496: CE E4 A2 LDX #E4A2 D499: BD D3 F9 JSR $D3F9 D49C: 81 09 CMPA #09 D49E: 2D 02 BLT $D4A2 D4A0: C6 20 LDB #20 D4A2: D7 03 STB $0003 D4A4: 96 04 LDA $0004 D4A6: 26 04 BNE $D4AC D4A8: 86 14 LDA #14 D4AA: 97 04 STA $0004 D4AC: CE 01 9B LDX #019B D4AF: BD EE A2 JSR $EEA2 ( CMOS,X++ -> B) D4B2: C1 20 CMPB #20 D4B4: 2F 02 BLE $D4B8 D4B6: C6 20 LDB #20 D4B8: BD F8 9D JSR $F89D D4BB: 17 TBA D4BC: D6 05 LDB $0005 D4BE: BD F8 9D JSR $F89D D4C1: C1 01 CMPB #01 D4C3: 27 01 BEQ $D4C6 D4C5: 58 ASLB D4C6: 10 SBA D4C7: 25 04 BCS $D4CD D4C9: 81 06 CMPA #06 D4CB: 2C 02 BGE $D4CF D4CD: 86 06 LDA #06 D4CF: 97 09 STA $0009 D4D1: CE D5 13 LDX #D513 D4D4: 8D 29 BSR $D4FF D4D6: CE DD 87 LDX #DD87 D4D9: 8D 24 BSR $D4FF D4DB: BD FB 94 JSR $FB94 D4DE: C6 06 LDB #06 D4E0: 81 25 CMPA #25 D4E2: 22 0C BHI $D4F0 D4E4: C6 04 LDB #04 D4E6: CE DA AE LDX #DAAE D4E9: 8D 14 BSR $D4FF D4EB: CE DA 86 LDX #DA86 D4EE: 8D 0F BSR $D4FF D4F0: D7 08 STB $0008 D4F2: CE D8 85 LDX #D885 D4F5: 8D 08 BSR $D4FF D4F7: CE D5 AA LDX #D5AA D4FA: 8D 03 BSR $D4FF D4FC: CE DB E5 LDX #DBE5 D4FF: 20 0C BRA $D50D D501: 86 2E LDA #2E D503: BD F1 FD JSR $F1FD D506: 86 10 LDA #10 D508: 97 0F STA $000F D50A: CE DF F0 LDX #DFF0 D50D: 4F CLRA D50E: 97 C8 STA $00C8 D510: 7E E9 D8 JMP $E9D8 Push Control Stack: Data in A,B,X,$AA,$A6,$A7 D513: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer D516: 03 D517: 96 08 LDA $0008 D519: 27 F8 BEQ $D513 D51B: CE D9 F1 LDX #D9F1 D51E: 8D ED BSR $D50D D520: CE 01 9D LDX #019D D523: BD EE 92 JSR $EE92 ( CMOS,X++ -> A) D526: 84 0F ANDA #0F D528: D6 05 LDB $0005 D52A: C1 09 CMPB #09 D52C: 2F 02 BLE $D530 D52E: C6 09 LDB #09 D530: 10 SBA D531: 24 01 BCC $D534 D533: 4F CLRA D534: 8B 0B ADDA #0B D536: D6 09 LDB $0009 D538: C1 0C CMPB #0C D53A: 2F 01 BLE $D53D D53C: 54 LSRB D53D: D7 D5 STB $00D5 D53F: BD E9 71 JSR $E971 D542: 4A DECA D543: 26 F1 BNE $D536 D545: 20 D0 BRA $D517 D547: 52 -------------------- D548: B0 5B FB SUBA $5BFB D54B: D0 30 SUBB $0030 D54D: FE F2 F0 LDX $F2F0 D550: F2 F0 09 SBCB $F009 D553: 5A DECB D554: FE F2 F0 LDX $F2F0 D557: B0 0A 71 SUBA $0A71 D55A: 8F -------------------- D55B: ED -------------------- D55C: 52 -------------------- D55D: F0 E4 57 SUBB $E457 D560: FE CC 7B LDX $CC7B D563: 03 -------------------- D564: 3F SWI D565: 74 5A FE LSR $5AFE D568: F2 F0 A0 SBCB $F0A0 D56B: F9 52 A1 ADCB $52A1 D56E: AD D6 JSR $D6,X D570: AD 64 JSR $64,X D572: 48 ASLA D573: CE E5 6B LDX #E56B D576: BD D3 0B JSR $D30B D579: C0 14 SUBB #14 D57B: A2 D6 SBCA $D6,X D57D: F1 31 F6 CMPB $31F6 D580: 78 31 06 ASL $3106 D583: 78 B0 FF ASL $B0FF D586: 5B -------------------- D587: FC -------------------- D588: E0 00 SUBB $00,X D58A: F0 F8 C1 SUBB $F8C1 D58D: 00 -------------------- D58E: A2 C8 SBCA $C8,X D590: 03 -------------------- D591: 71 -------------------- D592: 5B -------------------- D593: F6 4E 02 LDB $4E02 D596: 19 DAA D597: 4E -------------------- D598: A0 5B SUBA $5B,X D59A: 5A DECB D59B: FD -------------------- D59C: E0 0D SUBB $0D,X D59E: F2 51 10 SBCB $5110 D5A1: B1 3A 5A CMPA $3A5A D5A4: D0 E1 SUBB $00E1 D5A6: EA DC ORB $DC,X D5A8: 01 NOP D5A9: 02 -------------------- D5AA: 8D 49 BSR $D5F5 D5AC: 26 01 BNE $D5AF D5AE: 4C INCA D5AF: 3F SWI D5B0: 52 -------------------- D5B1: 00 -------------------- D5B2: 53 COMB D5B3: 70 B0 FF NEG $B0FF D5B6: 5B -------------------- D5B7: FC -------------------- D5B8: E0 00 SUBB $00,X D5BA: F7 7A 5A STB $7A5A D5BD: FE F2 F0 LDX $F2F0 D5C0: A0 F9 SUBA $F9,X D5C2: 52 -------------------- D5C3: A6 9F LDA $9F,X D5C5: CB 45 ADDB #45 D5C7: B7 11 9B STA $119B D5CA: 5B -------------------- D5CB: FD -------------------- D5CC: E0 0B SUBB $0B,X D5CE: 2B 5A BMI $D62A D5D0: FC -------------------- D5D1: E0 0D SUBB $0D,X D5D3: 0A CLV D5D4: 5A DECB D5D5: F4 3C EC ANDB $3CEC D5D8: 13 -------------------- D5D9: BA BB 3C ORA $BB3C D5DC: 80 24 SUBA #24 D5DE: 5A DECB D5DF: F4 45 E2 ANDB $45E2 D5E2: 13 -------------------- D5E3: C3 -------------------- D5E4: C4 45 ANDB #45 D5E6: 80 1A SUBA #1A D5E8: 7E FB 94 JMP $FB94 D5EB: 8D FB BSR $D5E8 D5ED: 84 03 ANDA #03 D5EF: 39 RTS D5F0: 8D F6 BSR $D5E8 D5F2: 84 07 ANDA #07 D5F4: 39 RTS D5F5: 8D F1 BSR $D5E8 D5F7: 84 0F ANDA #0F D5F9: 39 RTS D5FA: A0 C3 SUBA $C3,X D5FC: 5A DECB D5FD: F4 E0 C4 ANDB $E0C4 D600: 17 TBA D601: 00 -------------------- D602: CA 04 ORB #04 D604: 04 -------------------- D605: CE E5 AC LDX #E5AC D608: BD D2 6D JSR $D26D D60B: F6 11 9B LDB $119B D60E: CE E4 94 LDX #E494 D611: BD EE 8C JSR $EE8C D614: E6 00 LDB $00,X D616: BD D2 72 JSR $D272 D619: C6 26 LDB #26 D61B: BD D2 72 JSR $D272 D61E: CE 13 A7 LDX #13A7 D621: 8D C8 BSR $D5EB D623: 27 01 BEQ $D626 D625: 4A DECA D626: B7 13 9F STA $139F D629: 26 07 BNE $D632 D62B: 96 04 LDA $0004 D62D: BD DF D2 JSR $DFD2 D630: 20 1C BRA $D64E D632: 6F 01 CLR $01,X D634: C6 1C LDB #1C D636: E7 02 STB $02,X D638: C6 26 LDB #26 D63A: E7 03 STB $03,X D63C: 81 02 CMPA #02 D63E: 27 06 BEQ $D646 D640: 86 5A LDA #5A D642: C6 42 LDB #42 D644: 20 04 BRA $D64A D646: 86 45 LDA #45 D648: C6 55 LDB #55 D64A: A7 04 STA $04,X D64C: E7 05 STB $05,X D64E: 86 05 LDA #05 D650: A7 00 STA $00,X D652: BD D2 6D JSR $D26D D655: 97 0A STA $000A D657: DE CF LDX $00CF D659: 86 A4 LDA #A4 D65B: A7 0D STA $0D,X D65D: 86 02 LDA #02 D65F: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer D662: C0 D663: 4A DECA D664: 26 F9 BNE $D65F D666: B6 11 9B LDA $119B D669: 3F SWI D66A: 52 -------------------- D66B: A1 5A CMPA $5A,X D66D: FD -------------------- D66E: E0 0B SUBB $0B,X D670: 06 TAP D671: A0 4C SUBA $4C,X D673: 15 -------------------- D674: 00 -------------------- D675: 80 0B SUBA #0B D677: 5A DECB D678: FC -------------------- D679: E0 0D SUBB $0D,X D67B: 04 -------------------- D67C: 19 DAA D67D: 10 SBA D67E: 80 02 SUBA #02 D680: 19 DAA D681: 11 CBA D682: CA 04 ORB #04 D684: 04 -------------------- D685: 86 0C LDA #0C D687: 5F CLRB D688: BD D2 CF JSR $D2CF D68B: 97 0A STA $000A D68D: 7E D5 AA JMP $D5AA D690: 3F SWI D691: 74 5A FE LSR $5AFE D694: F2 FF 68 SBCB $FF68 D697: F9 52 68 ADCB $5268 D69A: EE 33 LDX $33,X D69C: F1 F2 F7 CMPB $F2F7 D69F: 74 33 01 LSR $3301 D6A2: 02 -------------------- D6A3: 07 TPA D6A4: 03 -------------------- D6A5: 36 PSHA D6A6: CE D6 90 LDX #D690 D6A9: BD D5 0D JSR $D50D D6AC: 96 06 LDA $0006 D6AE: 8B 99 ADDA #99 D6B0: 19 DAA D6B1: 97 06 STA $0006 D6B3: 81 01 CMPA #01 D6B5: 26 06 BNE $D6BD D6B7: CE D5 64 LDX #D564 D6BA: BD D5 0D JSR $D50D D6BD: 32 PULA D6BE: 39 RTS D6BF: CE E4 71 LDX #E471 D6C2: BD EE 3E JSR $EE3E ( X = X + A) D6C5: A6 00 LDA $00,X D6C7: 39 RTS D6C8: 36 PSHA D6C9: 37 PSHB D6CA: 4A DECA D6CB: BD F3 6F JSR $F36F D6CE: 27 04 BEQ $D6D4 D6D0: 86 01 LDA #01 D6D2: 20 09 BRA $D6DD D6D4: 4C INCA D6D5: 4C INCA D6D6: BD F3 6F JSR $F36F D6D9: 27 05 BEQ $D6E0 D6DB: 86 02 LDA #02 D6DD: B7 13 9D STA $139D D6E0: 33 PULB D6E1: 32 PULA D6E2: 39 RTS D6E3: 36 PSHA D6E4: 37 PSHB D6E5: 16 TAB D6E6: 8B 41 ADDA #41 D6E8: 8D DE BSR $D6C8 D6EA: BD F2 04 JSR $F204 D6ED: C0 08 SUBB #08 D6EF: CE E4 B4 LDX #E4B4 D6F2: BD D3 F9 JSR $D3F9 D6F5: F7 13 9C STB $139C D6F8: FE 11 96 LDX $1196 D6FB: 27 E3 BEQ $D6E0 D6FD: E1 00 CMPB $00,X D6FF: 26 DF BNE $D6E0 D701: 08 INX D702: FF 11 96 STX $1196 D705: 74 11 98 LSR $1198 D708: 20 D6 BRA $D6E0 D70A: D8 30 EORB $0030 D70C: 19 DAA D70D: CF -------------------- D70E: 4D TSTA D70F: 29 C0 BVS $D6D1 D711: 00 -------------------- D712: CA 00 ORB #00 D714: 57 ASRB D715: F9 22 AC ADCB $22AC D718: 2D 4C BLT $D766 D71A: 7C 00 E6 INC $00E6 D71D: D6 EB LDB $00EB D71F: BD FA 63 JSR $FA63 D722: D6 EB LDB $00EB D724: 57 ASRB D725: F9 EA 02 ADCB $EA02 D728: AF B9 STS $B9,X D72A: 44 LSRA D72B: 80 12 SUBA #12 D72D: 5B -------------------- D72E: D0 E0 SUBB $00E0 D730: 42 -------------------- D731: DD -------------------- D732: 00 -------------------- D733: 4C INCA D734: C6 21 LDB #21 D736: D7 C8 STB $00C8 D738: CE DD 76 LDX #DD76 D73B: BD E9 D8 JSR $E9D8 Push Control Stack: Data in A,B,X,$AA,$A6,$A7 D73E: 42 -------------------- D73F: 0B SEV D740: E8 B3 EORB $B3,X D742: FF 5A FB STX $5AFB D745: FB F3 FC ADDB $F3FC D748: E3 -------------------- D749: 00 -------------------- D74A: D0 2E SUBB $002E D74C: D0 2F SUBB $002F D74E: 24 55 BCC $D7A5 D750: 08 INX D751: 00 -------------------- D752: E5 A2 BITB $A2,X D754: 32 PULA D755: 9F B3 STS $00B3 D757: 57 ASRB D758: DF 64 STX $0064 D75A: A0 18 SUBA $18,X D75C: A4 2A ANDA $2A,X D75E: 55 -------------------- D75F: 08 INX D760: 00 -------------------- D761: 47 ASRA D762: D6 EB LDB $00EB D764: BD F9 EA JSR $F9EA D767: 4A DECA D768: 97 F4 STA $00F4 D76A: CE F9 75 LDX #F975 D76D: BD D5 0E JSR $D50E D770: 57 ASRB D771: D3 -------------------- D772: CB 03 ADDB #03 D774: CE E5 74 LDX #E574 D777: BD D3 0B JSR $D30B D77A: BD E6 D2 JSR $E6D2 D77D: 8D 06 BSR $D785 D77F: CE E5 79 LDX #E579 D782: BD D3 0B JSR $D30B D785: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer D788: 45 D789: 39 RTS D78A: AF 57 STS $57,X D78C: 5B -------------------- D78D: F4 43 2E ANDB $432E D790: 19 DAA D791: 11 CBA D792: 80 19 SUBA #19 D794: AF 4D STS $4D,X D796: 5B -------------------- D797: F4 3A 24 ANDB $3A24 D79A: 19 DAA D79B: 10 SBA D79C: 80 0F SUBA #0F D79E: C6 3D LDB #3D D7A0: 20 02 BRA $D7A4 D7A2: C6 3E LDB #3E D7A4: 3F SWI D7A5: AF 3C STS $3C,X D7A7: 5B -------------------- D7A8: F4 E1 13 ANDB $E113 D7AB: 15 -------------------- D7AC: 01 NOP D7AD: 96 87 LDA $0087 D7AF: 5A DECB D7B0: FE F2 F4 LDX $F2F4 D7B3: A4 27 ANDA $27,X D7B5: 5A DECB D7B6: D0 2E SUBB $002E D7B8: 05 -------------------- D7B9: E0 42 SUBB $42,X D7BB: 2B 8F BMI $D74C D7BD: 83 -------------------- D7BE: 03 -------------------- D7BF: C6 46 LDB #46 D7C1: 20 E1 BRA $D7A4 D7C3: C6 47 LDB #47 D7C5: 20 DD BRA $D7A4 D7C7: 16 TAB D7C8: C0 08 SUBB #08 D7CA: CE E4 73 LDX #E473 D7CD: BD D3 F9 JSR $D3F9 D7D0: 20 D2 BRA $D7A4 D7D2: 3F SWI D7D3: 5A DECB D7D4: FE F2 F6 LDX $F2F6 D7D7: A4 18 ANDA $18,X D7D9: 72 -------------------- D7DA: 8F -------------------- D7DB: F7 45 B6 STB $45B6 D7DE: 13 -------------------- D7DF: 9C 5A CPX $005A D7E1: FE F2 F6 LDX $F2F6 D7E4: A4 03 ANDA $03,X D7E6: 76 8F F7 ROR $8FF7 D7E9: 44 LSRA D7EA: D6 64 LDB $0064 D7EC: 5B -------------------- D7ED: FC -------------------- D7EE: E0 E1 SUBB $E1,X D7F0: C4 55 ANDB #55 D7F2: F1 A0 52 CMPB $A052 D7F5: A1 AD CMPA $AD,X D7F7: F3 -------------------- D7F8: 04 -------------------- D7F9: 9B 04 ADDA $0004 D7FB: 19 DAA D7FC: 97 04 STA $0004 D7FE: C6 01 LDB #01 D800: B6 13 9F LDA $139F D803: 27 0D BEQ $D812 D805: 46 RORA D806: 24 05 BCC $D80D D808: BD D9 CB JSR $D9CB D80B: 20 0A BRA $D817 D80D: BD D9 DA JSR $D9DA D810: 20 05 BRA $D817 D812: CE 00 66 LDX #0066 D815: 8D 1D BSR $D834 D817: BD D3 46 JSR $D346 D81A: C6 10 LDB #10 D81C: 86 01 LDA #01 D81E: BD EC 3B JSR $EC3B D821: 96 7B LDA $007B D823: 43 COMA D824: 84 3F ANDA #3F D826: 97 7B STA $007B D828: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer D82B: 05 D82C: 5A DECB D82D: 26 F2 BNE $D821 D82F: D7 7B STB $007B D831: 7E D6 66 JMP $D666 D834: E6 01 LDB $01,X D836: C4 3F ANDB #3F D838: C0 1B SUBB #1B D83A: 27 08 BEQ $D844 D83C: 86 0B LDA #0B D83E: BD EB 3D JSR $EB3D D841: 5A DECB D842: 26 FA BNE $D83E D844: E6 00 LDB $00,X D846: 27 0A BEQ $D852 D848: C0 1B SUBB #1B D84A: 86 0C LDA #0C D84C: BD EB 3D JSR $EB3D D84F: 5A DECB D850: 26 FA BNE $D84C D852: 39 RTS D853: D6 7A LDB $007A D855: 53 COMB D856: C4 7F ANDB #7F D858: D7 7A STB $007A D85A: D7 7B STB $007B D85C: 39 RTS D85D: 36 PSHA D85E: BD D5 EB JSR $D5EB D861: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer D864: 01 D865: 27 14 BEQ $D87B D867: 81 03 CMPA #03 D869: 27 F3 BEQ $D85E D86B: 81 02 CMPA #02 D86D: 26 0C BNE $D87B D86F: 86 0A LDA #0A D871: BD F3 45 JSR $F345 D874: 25 04 BCS $D87A D876: 86 02 LDA #02 D878: 20 01 BRA $D87B D87A: 4F CLRA D87B: B7 13 9E STA $139E D87E: 32 PULA D87F: 39 RTS D880: DE CF LDX $00CF D882: 6F 0D CLR $0D,X D884: 39 RTS D885: 8D F9 BSR $D880 D887: CE 00 00 LDX #0000 D88A: FF 11 96 STX $1196 D88D: 8D 7D BSR $D90C D88F: A6 00 LDA $00,X D891: B7 13 9E STA $139E D894: EE 01 LDX $01,X D896: FF 11 98 STX $1198 D899: 26 31 BNE $D8CC D89B: 3F SWI D89C: 53 COMB D89D: 40 NEGA D89E: 5A DECB D89F: FE F2 F0 LDX $F2F0 D8A2: A0 F8 SUBA $F8,X D8A4: 52 -------------------- D8A5: A0 04 SUBA $04,X D8A7: CE E5 83 LDX #E583 D8AA: BD D3 0B JSR $D30B D8AD: BD D3 4C JSR $D34C D8B0: 86 10 LDA #10 D8B2: 8D 9F BSR $D853 D8B4: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer D8B7: 08 D8B8: 4A DECA D8B9: 26 F7 BNE $D8B2 D8BB: BD D5 F0 JSR $D5F0 D8BE: 26 01 BNE $D8C1 D8C0: 4C INCA D8C1: 8D 9A BSR $D85D D8C3: 4A DECA D8C4: B7 11 99 STA $1199 D8C7: 86 20 LDA #20 D8C9: B7 11 98 STA $1198 D8CC: BD D9 71 JSR $D971 D8CF: 24 FB BCC $D8CC D8D1: BD D3 4C JSR $D34C D8D4: 8D 51 BSR $D927 D8D6: CE 13 AD LDX #13AD D8D9: DF B8 STX $00B8 D8DB: B6 11 98 LDA $1198 D8DE: 27 71 BEQ $D951 D8E0: 85 20 BITA #20 D8E2: 26 06 BNE $D8EA D8E4: 48 ASLA D8E5: 27 6A BEQ $D951 D8E7: 08 INX D8E8: 20 F6 BRA $D8E0 D8EA: FF 11 96 STX $1196 D8ED: BD D3 54 JSR $D354 D8F0: 8D 53 BSR $D945 D8F2: 8D 8C BSR $D880 D8F4: 86 7F LDA #7F D8F6: 97 7A STA $007A D8F8: 84 7F ANDA #7F D8FA: 97 7B STA $007B D8FC: 8D 73 BSR $D971 D8FE: 24 17 BCC $D917 D900: 8D 7A BSR $D97C D902: 27 4D BEQ $D951 D904: 43 COMA D905: 9A 7B ORA $007B D907: B8 11 98 EORA $1198 D90A: 20 EC BRA $D8F8 D90C: CE 13 A0 LDX #13A0 D90F: D6 EB LDB $00EB D911: 27 03 BEQ $D916 D913: 08 INX D914: 08 INX D915: 08 INX D916: 39 RTS D917: 5F CLRB D918: BD D8 58 JSR $D858 D91B: 8D 5F BSR $D97C D91D: 27 32 BEQ $D951 D91F: 8D 50 BSR $D971 D921: 24 F8 BCC $D91B D923: 8D 02 BSR $D927 D925: 20 CD BRA $D8F4 D927: BD D2 D6 JSR $D2D6 D92A: CE 00 6C LDX #006C D92D: DF B8 STX $00B8 D92F: CE E5 BC LDX #E5BC D932: B6 13 9E LDA $139E D935: 27 09 BEQ $D940 D937: CE E5 B6 LDX #E5B6 D93A: 46 RORA D93B: 25 03 BCS $D940 D93D: CE E5 B0 LDX #E5B0 D940: 8D 0C BSR $D94E D942: 7C 00 B9 INC $00B9 D945: CE E4 A6 LDX #E4A6 D948: B6 11 99 LDA $1199 D94B: BD F5 28 JSR $F528 D94E: 7E D3 0D JMP $D30D D951: CE 00 00 LDX #0000 D954: FF 11 96 STX $1196 D957: FF 11 98 STX $1198 D95A: 8D 2B BSR $D987 D95C: CE 13 AD LDX #13AD D95F: BD D3 54 JSR $D354 D962: C6 03 LDB #03 D964: B6 13 9E LDA $139E D967: 27 34 BEQ $D99D D969: 81 02 CMPA #02 D96B: 27 2C BEQ $D999 D96D: 8D 5C BSR $D9CB D96F: 20 31 BRA $D9A2 D971: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer D974: 05 D975: 86 A0 LDA #A0 D977: C6 F0 LDB #F0 D979: 7E EA 60 JMP $EA60 D97C: FE 11 96 LDX $1196 D97F: A6 00 LDA $00,X D981: 27 03 BEQ $D986 D983: B6 11 98 LDA $1198 D986: 39 RTS D987: 8D 83 BSR $D90C D989: B6 13 9E LDA $139E D98C: A7 00 STA $00,X D98E: B6 11 98 LDA $1198 D991: A7 01 STA $01,X D993: B6 11 99 LDA $1199 D996: A7 02 STA $02,X D998: 39 RTS D999: 8D 3F BSR $D9DA D99B: 20 05 BRA $D9A2 D99D: 86 4C LDA #4C D99F: BD EB 3D JSR $EB3D D9A2: 86 06 LDA #06 D9A4: BD EC 3B JSR $EC3B D9A7: 8D C8 BSR $D971 D9A9: 24 1A BCC $D9C5 D9AB: DE CF LDX $00CF D9AD: 86 A1 LDA #A1 D9AF: A7 0D STA $0D,X D9B1: 86 7F LDA #7F D9B3: 97 7B STA $007B D9B5: 86 10 LDA #10 D9B7: D6 7A LDB $007A D9B9: 53 COMB D9BA: C4 7F ANDB #7F D9BC: D7 7A STB $007A D9BE: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer D9C1: 05 D9C2: 4A DECA D9C3: 26 F2 BNE $D9B7 D9C5: BD D3 46 JSR $D346 D9C8: 7E D8 85 JMP $D885 D9CB: 37 PSHB D9CC: BD D3 F3 JSR $D3F3 D9CF: 17 TBA D9D0: 33 PULB D9D1: 1B ABA D9D2: A7 00 STA $00,X D9D4: 96 EB LDA $00EB D9D6: 8B 0B ADDA #0B D9D8: 20 0E BRA $D9E8 D9DA: 96 06 LDA $0006 D9DC: 1B ABA D9DD: 81 05 CMPA #05 D9DF: 2F 02 BLE $D9E3 D9E1: 86 05 LDA #05 D9E3: 97 06 STA $0006 D9E5: 86 0A LDA #0A D9E7: 58 ASLB D9E8: 8D 04 BSR $D9EE D9EA: 5A DECB D9EB: 26 FB BNE $D9E8 D9ED: 39 RTS D9EE: 7E F2 64 JMP $F264 D9F1: 3F SWI D9F2: AB F4 ADDA $F4,X D9F4: 44 LSRA D9F5: 84 02 ANDA #02 D9F7: 5B -------------------- D9F8: D0 2F SUBB $002F D9FA: 01 NOP D9FB: 03 -------------------- D9FC: 52 -------------------- D9FD: 50 NEGB D9FE: 5A DECB D9FF: FC -------------------- DA00: E8 00 EORB $00,X DA02: F8 B8 FF EORB $B8FF DA05: 5A DECB DA06: FC -------------------- DA07: E0 02 SUBB $02,X DA09: 2C C1 BGE $D9CC DA0B: 36 PSHA DA0C: 5A DECB DA0D: F4 E1 09 ANDB $E109 DA10: 14 -------------------- DA11: 01 NOP DA12: 69 69 ROL $69,X DA14: 5B -------------------- DA15: E1 DB CMPB $DB,X DA17: 15 -------------------- DA18: 01 NOP DA19: 5A DECB DA1A: FC -------------------- DA1B: E1 3E CMPB $3E,X DA1D: 69 5B ROL $5B,X DA1F: FC -------------------- DA20: E1 3C CMPB $3C,X DA22: 02 -------------------- DA23: 19 DAA DA24: 10 SBA DA25: B1 01 5B CMPA $015B DA28: FC -------------------- DA29: E1 3A CMPB $3A,X DA2B: E0 B1 SUBB $B1,X DA2D: 02 -------------------- DA2E: 5A DECB DA2F: F4 E1 F3 ANDB $E1F3 DA32: 18 -------------------- DA33: 10 SBA DA34: 8F -------------------- DA35: DA C1 ORB $00C1 DA37: 3F SWI DA38: 5A DECB DA39: F4 E1 09 ANDB $E109 DA3C: 14 -------------------- DA3D: 01 NOP DA3E: 69 69 ROL $69,X DA40: 5B -------------------- DA41: E1 AF CMPB $AF,X DA43: 15 -------------------- DA44: 01 NOP DA45: 5A DECB DA46: FC -------------------- DA47: E1 47 CMPB $47,X DA49: 65 -------------------- DA4A: 5B -------------------- DA4B: FC -------------------- DA4C: E1 45 CMPB $45,X DA4E: 02 -------------------- DA4F: 19 DAA DA50: 11 CBA DA51: B1 01 5B CMPA $015B DA54: FC -------------------- DA55: E1 43 CMPB $43,X DA57: E0 B1 SUBB $B1,X DA59: 02 -------------------- DA5A: 5A DECB DA5B: F4 E1 F3 ANDB $E1F3 DA5E: 18 -------------------- DA5F: 11 CBA DA60: 8F -------------------- DA61: DA 37 ORB $0037 DA63: 16 TAB DA64: BD DD 17 JSR $DD17 DA67: 3F SWI DA68: 5A DECB DA69: FB D0 E0 ADDB $D0E0 DA6C: F3 -------------------- DA6D: F5 E0 13 BITB $E013 DA70: DC -------------------- DA71: 00 -------------------- DA72: 14 -------------------- DA73: 01 NOP DA74: 69 69 ROL $69,X DA76: 5A DECB DA77: D0 E0 SUBB $00E0 DA79: 04 -------------------- DA7A: C0 00 SUBB #00 DA7C: 80 05 SUBA #05 DA7E: DD -------------------- DA7F: 00 -------------------- DA80: 57 ASRB DA81: F2 1D 04 SBCB $1D04 DA84: 33 PULB DA85: 39 RTS DA86: 3F SWI DA87: 90 D0 SUBA $00D0 DA89: 5A DECB DA8A: D0 2F SUBB $002F DA8C: 5F CLRB DA8D: C0 00 SUBB #00 DA8F: B0 01 5A SUBA $015A DA92: FA D0 E0 ORB $D0E0 DA95: F3 -------------------- DA96: FC -------------------- DA97: E0 E1 SUBB $E1,X DA99: F5 5A FE BITB $5AFE DA9C: F2 F0 30 SBCB $F030 DA9F: 4C INCA DAA0: AF C0 STS $C0,X DAA2: 5A DECB DAA3: FC -------------------- DAA4: E0 00 SUBB $00,X DAA6: 45 -------------------- DAA7: 5A DECB DAA8: FC -------------------- DAA9: E0 E1 SUBB $E1,X DAAB: 28 8F BVC $DA3C DAAD: E1 3F CMPB $3F,X DAAF: 90 A8 SUBA $00A8 DAB1: 5A DECB DAB2: D0 2F SUBB $002F DAB4: 37 PSHB DAB5: C0 0A SUBB #0A DAB7: B0 FF 5A SUBA $FF5A DABA: FA D0 E0 ORB $D0E0 DABD: F3 -------------------- DABE: FC -------------------- DABF: E0 E1 SUBB $E1,X DAC1: F5 5A FE BITB $5AFE DAC4: F2 F0 30 SBCB $F030 DAC7: 24 AF BCC $DA78 DAC9: 98 5A EORA $005A DACB: FC -------------------- DACC: E0 00 SUBB $00,X DACE: 1D -------------------- DACF: 5B -------------------- DAD0: FC -------------------- DAD1: E0 E1 SUBB $E1,X DAD3: E3 -------------------- DAD4: 5A DECB DAD5: FA F5 E0 ORB $F5E0 DAD8: F3 -------------------- DAD9: D0 E0 SUBB $00E0 DADB: 03 -------------------- DADC: 71 -------------------- DADD: 8F -------------------- DADE: F5 DC 00 BITB $DC00 DAE1: AF 0B STS $0B,X DAE3: 5A DECB DAE4: F6 E0 08 LDB $E008 DAE7: 69 5A ROL $5A,X DAE9: D0 E0 SUBB $00E0 DAEB: F5 93 48 BITB $9348 DAEE: 03 -------------------- DAEF: 57 ASRB DAF0: F2 E1 57 SBCB $E157 DAF3: F2 F2 5A SBCB $F25A DAF6: F5 E0 07 BITB $E007 DAF9: 74 5B D0 LSR $5BD0 DAFC: E0 EE SUBB $EE,X DAFE: 8F -------------------- DAFF: EF DD STX $DD,X DB01: 00 -------------------- DB02: 52 -------------------- DB03: 00 -------------------- DB04: 93 -------------------- DB05: 30 TSX DB06: AB 9D ADDA $9D,X DB08: 1C -------------------- DB09: 8A 0A ORA #0A DB0B: B2 04 5B SBCA $045B DB0E: FC -------------------- DB0F: E6 00 LDB $00,X DB11: DC -------------------- DB12: 55 -------------------- DB13: 08 INX DB14: 00 -------------------- DB15: 31 INS DB16: F6 9B F1 LDB $9BF1 DB19: C0 05 SUBB #05 DB1B: C1 05 CMPB #05 DB1D: 14 -------------------- DB1E: 01 NOP DB1F: 5A DECB DB20: FC -------------------- DB21: E1 35 CMPB $35,X DB23: 04 -------------------- DB24: B1 06 8F CMPA $068F DB27: F5 5B 05 BITB $5B05 DB2A: 0D SEC DB2B: B0 FF 5A SUBA $FF5A DB2E: FC -------------------- DB2F: E0 00 SUBB $00,X DB31: 22 EE BHI $DB21 DB33: 34 DES DB34: 40 NEGA DB35: 41 -------------------- DB36: 42 -------------------- DB37: 47 ASRA DB38: 1D -------------------- DB39: 81 82 CMPA #82 DB3B: 83 -------------------- DB3C: 84 85 ANDA #85 DB3E: 86 87 LDA #87 DB40: 88 09 EORA #09 DB42: 77 5B 00 ASR $5B00 DB45: E2 10 SBCB $10,X DB47: BE BD C6 LDS $BDC6 DB4A: 47 ASRA DB4B: 48 ASLA DB4C: CE DD B0 LDX #DDB0 DB4F: BD EA 24 JSR $EA24 Push Control Stack: Data in A,B,X,$A6,$A7,$AA=#06 DB52: 8F -------------------- DB53: D4 C6 ANDB $00C6 DB55: 00 -------------------- DB56: 5F CLRB DB57: D3 -------------------- DB58: A1 71 CMPA $71,X DB5A: 5A DECB DB5B: FE F2 F1 LDX $F2F1 DB5E: 21 -------------------- DB5F: F9 52 20 ADCB $5220 DB62: 5B -------------------- DB63: F6 4D 02 LDB $4D02 DB66: 19 DAA DB67: 4D TSTA DB68: A0 13 SUBA $13,X DB6A: B1 30 5A CMPA $305A DB6D: FB FB D0 ADDB $FBD0 DB70: E1 D0 CMPB $D0,X DB72: E0 D0 SUBB $D0,X DB74: F9 E1 23 ADCB $E123 DB77: E1 DC CMPB $DC,X DB79: 01 NOP DB7A: 51 -------------------- DB7B: 10 SBA DB7C: 02 -------------------- DB7D: BD D5 F5 JSR $D5F5 DB80: 81 08 CMPA #08 DB82: 2F 01 BLE $DB85 DB84: 44 LSRA DB85: 4C INCA DB86: 16 TAB DB87: 39 RTS DB88: BD D2 D6 JSR $D2D6 DB8B: CE 00 60 LDX #0060 DB8E: DF B8 STX $00B8 DB90: CE E5 C8 LDX #E5C8 DB93: BD D3 0D JSR $D30D DB96: CE E5 8D LDX #E58D DB99: BD D3 0D JSR $D30D DB9C: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DB9F: 25 DBA0: BD D2 D6 JSR $D2D6 DBA3: D6 06 LDB $0006 DBA5: CE 00 61 LDX #0061 DBA8: BD EC 32 JSR $EC32 DBAB: 5D TSTB DBAC: 27 04 BEQ $DBB2 DBAE: CB 1B ADDB #1B DBB0: E7 00 STB $00,X DBB2: D6 06 LDB $0006 DBB4: C4 0F ANDB #0F DBB6: CB 1B ADDB #1B DBB8: E7 01 STB $01,X DBBA: 86 18 LDA #18 DBBC: A7 03 STA $03,X DBBE: 96 05 LDA $0005 DBC0: 81 09 CMPA #09 DBC2: 23 02 BLS $DBC6 DBC4: 86 09 LDA #09 DBC6: 16 TAB DBC7: CB 9B ADDB #9B DBC9: E7 05 STB $05,X DBCB: C6 1B LDB #1B DBCD: E7 06 STB $06,X DBCF: E7 07 STB $07,X DBD1: E7 08 STB $08,X DBD3: 48 ASLA DBD4: 48 ASLA DBD5: 48 ASLA DBD6: 8A 03 ORA #03 DBD8: D6 06 LDB $0006 DBDA: BD EB 3D JSR $EB3D DBDD: 5A DECB DBDE: 26 FA BNE $DBDA DBE0: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DBE3: 25 DBE4: 39 RTS DBE5: D6 05 LDB $0005 DBE7: BD F8 9D JSR $F89D DBEA: 86 7F LDA #7F DBEC: 80 04 SUBA #04 DBEE: 81 09 CMPA #09 DBF0: 2D 05 BLT $DBF7 DBF2: 5A DECB DBF3: 26 F7 BNE $DBEC DBF5: 20 02 BRA $DBF9 DBF7: 86 08 LDA #08 DBF9: 3F SWI DBFA: CE 00 67 LDX #0067 DBFD: BE 01 5A LDS $015A DC00: D0 2F SUBB $002F DC02: F9 45 D6 ADCB $45D6 DC05: E8 4A EORB $4A,X DC07: 5A DECB DC08: FC -------------------- DC09: E0 00 SUBB $00,X DC0B: 09 DEX DC0C: 5B -------------------- DC0D: FA FC E1 ORB $FCE1 DC10: 00 -------------------- DC11: FD -------------------- DC12: EE 30 LDX $30,X DC14: E7 71 STB $71,X DC16: 45 -------------------- DC17: 7F 13 96 CLR $1396 DC1A: AF 61 STS $61,X DC1C: 5A DECB DC1D: FB F3 F5 ADDB $F3F5 DC20: E0 D0 SUBB $D0,X DC22: E0 F1 SUBB $F1,X DC24: B0 53 A0 SUBA $53A0 DC27: EF 52 STX $52,X DC29: 30 TSX DC2A: CE 06 DC LDX #06DC DC2D: 00 -------------------- DC2E: 14 -------------------- DC2F: 01 NOP DC30: D5 01 BITB $0001 DC32: 26 01 BNE $DC35 DC34: E2 67 SBCB $67,X DC36: 5B -------------------- DC37: D0 E0 SUBB $00E0 DC39: 20 BE BRA $DBF9 DC3B: FF 5B FC STX $5BFC DC3E: EE 00 LDX $00,X DC40: F1 24 01 CMPB LAMP_PIA3_CRTL_A DC43: A0 3F SUBA $3F,X DC45: 25 01 BCS $DC48 DC47: 15 -------------------- DC48: 01 NOP DC49: 5B -------------------- DC4A: D0 E0 SUBB $00E0 DC4C: 0D SEC DC4D: DD -------------------- DC4E: 00 -------------------- DC4F: A0 D2 SUBA $D2,X DC51: 5B -------------------- DC52: FC -------------------- DC53: E1 00 CMPB $00,X DC55: D4 52 ANDB $0052 DC57: 00 -------------------- DC58: 8E B8 15 LDS #B8 DC5B: 01 NOP DC5C: 25 01 BCS $DC5F DC5E: 52 -------------------- DC5F: 00 -------------------- DC60: 42 -------------------- DC61: 0C CLC DC62: 5A DECB DC63: FC -------------------- DC64: E7 04 STB $04,X DC66: 02 -------------------- DC67: B7 FF A9 STA $FFA9 DC6A: 85 44 BITA #44 DC6C: 9B 03 ADDA $0003 DC6E: FB 5A FD ADDB $5AFD DC71: E5 09 BITB $09,X DC73: 02 -------------------- DC74: 53 COMB DC75: 20 7F BRA $DCF6 DC77: 5A DECB DC78: D0 2F SUBB $002F DC7A: F4 B0 FF ANDB $B0FF DC7D: 5B -------------------- DC7E: FC -------------------- DC7F: E0 00 SUBB $00,X DC81: ED -------------------- DC82: 8F -------------------- DC83: 91 36 CMPA $0036 DC85: 37 PSHB DC86: BD D5 EB JSR $D5EB DC89: 97 0E STA $000E DC8B: 33 PULB DC8C: 32 PULA DC8D: 27 2D BEQ $DCBC DC8F: 36 PSHA DC90: B6 13 96 LDA $1396 DC93: 81 03 CMPA #03 DC95: 32 PULA DC96: 2E 24 BGT $DCBC DC98: 36 PSHA DC99: 86 30 LDA #30 DC9B: 97 C8 STA $00C8 DC9D: 32 PULA DC9E: CE DC BD LDX #DCBD DCA1: BD E9 D8 JSR $E9D8 Push Control Stack: Data in A,B,X,$AA,$A6,$A7 DCA4: 3F SWI DCA5: FD -------------------- DCA6: 7A 5A FE DEC $5AFE DCA9: F2 FF 30 SBCB $FF30 DCAC: F9 04 8D ADCB $048D DCAF: 5F CLRB DCB0: 27 0A BEQ $DCBC DCB2: 7D 13 9D TST $139D DCB5: 26 05 BNE $DCBC DCB7: 7A 00 0E DEC $000E DCBA: 26 DC BNE $DC98 DCBC: 39 RTS DCBD: 97 0D STA $000D DCBF: 80 53 SUBA #53 DCC1: BD F3 7D JSR $F37D DCC4: 8A C0 ORA #C0 DCC6: BD F2 7E JSR $F27E DCC9: 84 8F ANDA #8F DCCB: 36 PSHA DCCC: 17 TBA DCCD: F6 13 96 LDB $1396 DCD0: BD F1 DA JSR $F1DA DCD3: 32 PULA DCD4: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DCD7: 08 DCD8: 36 PSHA DCD9: 37 PSHB DCDA: 96 0D LDA $000D DCDC: BD F3 6F JSR $F36F DCDF: 33 PULB DCE0: 32 PULA DCE1: 27 21 BEQ $DD04 DCE3: BD F2 F2 JSR $F2F2 DCE6: 5C INCB DCE7: C1 05 CMPB #05 DCE9: 23 E9 BLS $DCD4 DCEB: 8D 05 BSR $DCF2 DCED: 3F SWI DCEE: 52 -------------------- DCEF: 00 -------------------- DCF0: 8E 14 36 LDS #14 DCF3: 37 PSHB DCF4: 86 2F LDA #2F DCF6: BD F3 6F JSR $F36F DCF9: 33 PULB DCFA: 32 PULA DCFB: 26 BF BNE $DCBC DCFD: 8D 02 BSR $DD01 DCFF: 8A C0 ORA #C0 DD01: 7E F2 1D JMP $F21D DD04: 36 PSHA DD05: 86 0B LDA #0B DD07: BD EB 3D JSR $EB3D DD0A: 32 PULA DD0B: 8D E5 BSR $DCF2 DD0D: 20 75 BRA $DD84 DD0F: 36 PSHA DD10: 37 PSHB DD11: BD F3 6F JSR $F36F DD14: 33 PULB DD15: 32 PULA DD16: 39 RTS DD17: 36 PSHA DD18: 4F CLRA DD19: 5A DECB DD1A: 27 04 BEQ $DD20 DD1C: 8B 06 ADDA #06 DD1E: 20 F9 BRA $DD19 DD20: 16 TAB DD21: 32 PULA DD22: 39 RTS DD23: 36 PSHA DD24: B6 13 96 LDA $1396 DD27: 4C INCA DD28: B7 13 96 STA $1396 DD2B: 81 06 CMPA #06 DD2D: 32 PULA DD2E: 26 02 BNE $DD32 DD30: 5F CLRB DD31: 39 RTS DD32: 74 13 9D LSR $139D DD35: 25 11 BCS $DD48 DD37: 74 13 9D LSR $139D DD3A: 25 15 BCS $DD51 DD3C: 36 PSHA DD3D: BD FB 94 JSR $FB94 DD40: 46 RORA DD41: 85 08 BITA #08 DD43: 32 PULA DD44: 25 18 BCS $DD5E DD46: 27 09 BEQ $DD51 DD48: 4A DECA DD49: 81 53 CMPA #53 DD4B: 27 0D BEQ $DD5A DD4D: C0 05 SUBB #05 DD4F: 20 0E BRA $DD5F DD51: 4C INCA DD52: 81 5D CMPA #5D DD54: 27 07 BEQ $DD5D DD56: CB 07 ADDB #07 DD58: 20 05 BRA $DD5F DD5A: 4C INCA DD5B: 20 01 BRA $DD5E DD5D: 4A DECA DD5E: 5C INCB DD5F: 36 PSHA DD60: 37 PSHB DD61: 80 53 SUBA #53 DD63: BD F3 54 JSR $F354 DD66: 24 05 BCC $DD6D DD68: BD F3 6F JSR $F36F DD6B: 27 A7 BEQ $DD14 DD6D: 33 PULB DD6E: 32 PULA DD6F: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DD72: 01 DD73: 5A DECB DD74: 20 BC BRA $DD32 DD76: BD F2 E1 JSR $F2E1 DD79: BD F3 54 JSR $F354 DD7C: 25 06 BCS $DD84 DD7E: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DD81: 04 DD82: 20 F2 BRA $DD76 DD84: 7E E9 C4 JMP $E9C4 Remove Current Thread from Control Stack DD87: C6 0F LDB #0F DD89: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DD8C: 40 DD8D: 5A DECB DD8E: 26 F9 BNE $DD89 DD90: 96 09 LDA $0009 DD92: 4A DECA DD93: 97 09 STA $0009 DD95: 81 09 CMPA #09 DD97: 2E EE BGT $DD87 DD99: 20 E9 BRA $DD84 DD9B: 5A DECB DD9C: FB F3 F1 ADDB $F3F1 DD9F: D0 30 SUBB $0030 DDA1: 1E -------------------- DDA2: 52 -------------------- DDA3: 10 SBA DDA4: 55 -------------------- DDA5: FF 10 57 STX $1057 DDA8: D2 D6 SBCB $00D6 DDAA: 57 ASRB DDAB: D3 -------------------- DDAC: 49 ROLA DDAD: 5C INCB DDAE: DE EE LDX $00EE DDB0: 3F SWI DDB1: C0 09 SUBB #09 DDB3: 1D -------------------- DDB4: 96 15 LDA $0015 DDB6: EF 75 STX $75,X DDB8: B0 FF 5B SUBA $FF5B DDBB: FC -------------------- DDBC: E0 00 SUBB $00,X DDBE: F4 03 5A ANDB $035A DDC1: FB D0 2F ADDB $D02F DDC4: D0 30 SUBB $0030 DDC6: F8 4A BD EORB $4ABD DDC9: D3 -------------------- DDCA: F3 -------------------- DDCB: 27 03 BEQ $DDD0 DDCD: 5A DECB DDCE: E7 00 STB $00,X DDD0: B0 0B 5A SUBA $0B5A DDD3: F5 E0 E9 BITB $E0E9 DDD6: 5A DECB DDD7: FD -------------------- DDD8: E1 02 CMPB $02,X DDDA: 03 -------------------- DDDB: 57 ASRB DDDC: F2 E1 D8 SBCB $E1D8 DDDF: 2F 42 BLE $DE23 DDE1: 09 DEX DDE2: 52 -------------------- DDE3: A1 29 CMPA $29,X DDE5: 52 -------------------- DDE6: 19 DAA DDE7: CF -------------------- DDE8: D3 -------------------- DDE9: 12 -------------------- DDEA: C1 00 CMPB #00 DDEC: 5B -------------------- DDED: FE F2 FF LDX $F2FF DDF0: 50 NEGB DDF1: 0B SEV DDF2: B8 01 B1 EORA $01B1 DDF5: 01 NOP DDF6: 42 -------------------- DDF7: 2B 54 BMI $DE4D DDF9: FF 50 8F STX $508F DDFC: EF 5B STX $5B,X DDFE: FE F2 FF LDX $F2FF DE01: 20 0B BRA $DE0E DE03: 42 -------------------- DE04: 0B SEV DE05: B1 01 B8 CMPA $01B8 DE08: 01 NOP DE09: 54 LSRB DE0A: FF 20 8F STX $208F DE0D: EF 5B STX $5B,X DE0F: FE F2 F4 LDX $F2F4 DE12: A4 07 ANDA $07,X DE14: 48 ASLA DE15: CE D7 D2 LDX #D7D2 DE18: BD D5 0D JSR $D50D DE1B: 28 54 BVC $DE71 DE1D: 90 19 SUBA $0019 DE1F: 4A DECA DE20: 96 03 LDA $0003 DE22: 10 SBA DE23: 2E 01 BGT $DE26 DE25: 4F CLRA DE26: 97 03 STA $0003 DE28: A0 16 SUBA $16,X DE2A: EB A0 ADDB $A0,X DE2C: 4D TSTA DE2D: 19 DAA DE2E: 12 -------------------- DE2F: 29 54 BVS $DE85 DE31: D9 2F ADCB $002F DE33: 89 0E ADCA #0E DE35: 03 -------------------- DE36: B8 01 5B EORA $015B DE39: FD -------------------- DE3A: E8 06 EORB $06,X DE3C: 02 -------------------- DE3D: C8 06 EORB #06 DE3F: 02 -------------------- DE40: CE E6 32 LDX #E632 DE43: 08 INX DE44: 8C E6 82 CMPX #E6 DE47: 27 17 BEQ $DE60 DE49: E6 00 LDB $00,X DE4B: 17 TBA DE4C: 84 7F ANDA #7F DE4E: BD F1 E8 JSR $F1E8 DE51: 5D TSTB DE52: 2B EF BMI $DE43 DE54: 86 0F LDA #0F DE56: BD EC 3B JSR $EC3B DE59: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DE5C: 02 DE5D: 20 E4 BRA $DE43 DE5F: 39 RTS DE60: CE E6 32 LDX #E632 DE63: 08 INX DE64: 8C E6 82 CMPX #E6 DE67: 27 F6 BEQ $DE5F DE69: E6 00 LDB $00,X DE6B: 17 TBA DE6C: 84 7F ANDA #7F DE6E: BD F1 EF JSR $F1EF DE71: 5D TSTB DE72: 2B EF BMI $DE63 DE74: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DE77: 02 DE78: 20 E9 BRA $DE63 DE7A: CE E6 32 LDX #E632 DE7D: FF 13 98 STX $1398 DE80: 08 INX DE81: 8C E6 82 CMPX #E6 DE84: 27 D9 BEQ $DE5F DE86: E6 00 LDB $00,X DE88: 17 TBA DE89: 84 7F ANDA #7F DE8B: BD F1 E8 JSR $F1E8 DE8E: 5D TSTB DE8F: 2B EF BMI $DE80 DE91: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DE94: 03 DE95: FE 13 98 LDX $1398 DE98: 08 INX DE99: E6 00 LDB $00,X DE9B: 17 TBA DE9C: 84 7F ANDA #7F DE9E: BD F1 EF JSR $F1EF DEA1: 5D TSTB DEA2: 2B F4 BMI $DE98 DEA4: 20 D7 BRA $DE7D DEA6: 00 -------------------- Game Over Init Hook: DEA7: 3F SWI DEA8: 36 PSHA DEA9: 01 NOP DEAA: 02 -------------------- DEAB: 03 -------------------- DEAC: 06 TAP DEAD: 07 TPA DEAE: 09 DEX DEAF: F8 19 14 EORB $1914 DEB2: 29 D4 BVS $DE88 DEB4: 14 -------------------- DEB5: 52 -------------------- DEB6: 10 SBA DEB7: 04 -------------------- DEB8: CE DF 6F LDX #DF6F DEBB: BD D5 0D JSR $D50D DEBE: 7F 00 E6 CLR $00E6 DEC1: 7F 00 22 CLR $0022 DEC4: CE E5 29 LDX #E529 DEC7: 8D 45 BSR $DF0E DEC9: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DECC: 90 DECD: CE E5 32 LDX #E532 DED0: 8D 3C BSR $DF0E DED2: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DED5: 90 DED6: CE E5 3E LDX #E53E DED9: 8D 33 BSR $DF0E DEDB: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DEDE: 70 DEDF: CE E5 47 LDX #E547 DEE2: 5F CLRB DEE3: BD D3 15 JSR $D315 DEE6: C6 25 LDB #25 DEE8: CE 00 6B LDX #006B DEEB: BD D2 F7 JSR $D2F7 DEEE: 7C 00 22 INC $0022 DEF1: BD E2 E7 JSR $E2E7 DEF4: BD D2 D6 JSR $D2D6 DEF7: BD D3 49 JSR $D349 DEFA: 97 22 STA $0022 DEFC: CE E5 51 LDX #E551 DEFF: BD D3 0B JSR $D30B DF02: B6 11 9A LDA $119A DF05: BD E6 D4 JSR $E6D4 DF08: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DF0B: E0 DF0C: 20 B6 BRA $ DF0E: BD D3 0B JSR $D30B DF11: BD D3 4C JSR $D34C DF14: 86 04 LDA #04 DF16: CE 00 6C LDX #006C DF19: 8D 1D BSR $DF38 DF1B: BD EA E5 JSR $EAE5 Convert Hex(A&07) into Bitpos(B) DF1E: 53 COMB DF1F: D4 7A ANDB $007A DF21: D7 7A STB $007A DF23: 08 INX DF24: 4A DECA DF25: 2A F2 BPL $DF19 DF27: 86 06 LDA #06 DF29: 8D 0D BSR $DF38 DF2B: BD EA E5 JSR $EAE5 Convert Hex(A&07) into Bitpos(B) DF2E: 53 COMB DF2F: D4 7B ANDB $007B DF31: D7 7B STB $007B DF33: 08 INX DF34: 4A DECA DF35: 2A F2 BPL $DF29 DF37: 39 RTS DF38: 36 PSHA DF39: 37 PSHB DF3A: C6 01 LDB #01 DF3C: 86 18 LDA #18 DF3E: A7 00 STA $00,X DF40: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DF43: 02 DF44: 86 2B LDA #2B DF46: A7 00 STA $00,X DF48: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DF4B: 02 DF4C: 5A DECB DF4D: 26 ED BNE $DF3C DF4F: 20 07 BRA $DF58 DF51: 36 PSHA DF52: 37 PSHB DF53: 8D 06 BSR $DF5B DF55: BD F1 BE JSR $F1BE DF58: 33 PULB DF59: 32 PULA DF5A: 39 RTS DF5B: CE E4 7D LDX #E47D DF5E: BD EE 8C JSR $EE8C DF61: A6 00 LDA $00,X DF63: 39 RTS DF64: CE DF 74 LDX #DF74 DF67: 8D 03 BSR $DF6C DF69: CE E3 5E LDX #E35E DF6C: 7E D5 0D JMP $D50D DF6F: CE E3 34 LDX #E334 DF72: 8D F8 BSR $DF6C DF74: CE DF B0 LDX #DFB0 DF77: 8D F3 BSR $DF6C DF79: CE E6 81 LDX #E681 DF7C: 08 INX DF7D: 8C E6 D2 CMPX #E6 DF80: 27 14 BEQ $DF96 DF82: A6 00 LDA $00,X DF84: 16 TAB DF85: 84 7F ANDA #7F DF87: BD F1 91 JSR $F191 DF8A: BD F1 D3 JSR $F1D3 DF8D: 5D TSTB DF8E: 2B EC BMI $DF7C DF90: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DF93: 05 DF94: 20 E6 BRA $DF7C DF96: CE E6 81 LDX #E681 DF99: 08 INX DF9A: 8C E6 D2 CMPX #E6 DF9D: 27 DA BEQ $DF79 DF9F: A6 00 LDA $00,X DFA1: 16 TAB DFA2: 84 7F ANDA #7F DFA4: BD F1 B0 JSR $F1B0 DFA7: 5D TSTB DFA8: 2B EF BMI $DF99 DFAA: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DFAD: 05 DFAE: 20 E9 BRA $DF99 DFB0: 86 D4 LDA #D4 DFB2: BD F2 3D JSR $F23D DFB5: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DFB8: 04 DFB9: 20 F5 BRA $DFB0 DFBB: 86 08 LDA #08 DFBD: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer DFC0: 40 DFC1: 4A DECA DFC2: 26 F9 BNE $DFBD DFC4: 86 09 LDA #09 DFC6: BD EA 83 JSR $EA83 DFC9: 7E E9 C4 JMP $E9C4 Remove Current Thread from Control Stack DFCC: 5F CLRB DFCD: 86 0C LDA #0C DFCF: 7E D2 C8 JMP $D2C8 DFD2: 16 TAB DFD3: 84 0F ANDA #0F DFD5: 8B 1B ADDA #1B DFD7: 8A 80 ORA #80 DFD9: A7 02 STA $02,X DFDB: BD EC 32 JSR $EC32 DFDE: 4F CLRA DFDF: 5D TSTB DFE0: 27 03 BEQ $DFE5 DFE2: CB 1B ADDB #1B DFE4: 17 TBA DFE5: A7 01 STA $01,X DFE7: 86 1B LDA #1B DFE9: A7 03 STA $03,X DFEB: A7 04 STA $04,X DFED: A7 05 STA $05,X DFEF: 39 RTS DFF0: CE E5 A5 LDX #E5A5 DFF3: 86 04 LDA #04 DFF5: 97 0A STA $000A DFF7: BD D2 6D JSR $D26D DFFA: CE E5 74 LDX #E574 DFFD: BD D2 6D JSR $D26D E000: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer E003: 40 E004: 8D C6 BSR $DFCC E006: 97 0E STA $000E E008: 97 0A STA $000A E00A: BD D2 D6 JSR $D2D6 E00D: 7C 00 0E INC $000E E010: 86 14 LDA #14 E012: 91 0E CMPA $000E E014: 26 53 BNE $E069 E016: BD D2 D6 JSR $D2D6 E019: 86 10 LDA #10 E01B: BD EC 3B JSR $EC3B E01E: 86 01 LDA #01 E020: 97 22 STA $0022 E022: CE E5 FD LDX #E5FD E025: BD D2 6D JSR $D26D E028: 8D A2 BSR $DFCC E02A: CE 00 60 LDX #0060 E02D: 96 05 LDA $0005 E02F: 81 06 CMPA #06 E031: 2E 0B BGT $E03E E033: 86 2C LDA #2C E035: BD EB 3D JSR $EB3D E038: 86 50 LDA #50 E03A: 8D 96 BSR $DFD2 E03C: 20 11 BRA $E04F E03E: 86 0D LDA #0D E040: BD EB 3D JSR $EB3D E043: 86 1C LDA #1C E045: A7 00 STA $00,X E047: 86 9B LDA #9B E049: A7 02 STA $02,X E04B: 86 1B LDA #1B E04D: 8D 96 BSR $DFE5 E04F: CE 00 67 LDX #0067 E052: DF B8 STX $00B8 E054: CE E5 8D LDX #E58D E057: BD D3 0D JSR $D30D E05A: 3F SWI E05B: 55 -------------------- E05C: 08 INX E05D: 00 -------------------- E05E: 56 RORB E05F: D7 0A STB $000A E061: AF 01 STS $01,X E063: ED -------------------- E064: 53 COMB E065: 50 NEGB E066: 5F CLRB E067: D7 5E STB $005E E069: 3F SWI E06A: 52 -------------------- E06B: 00 -------------------- E06C: 71 -------------------- E06D: 57 ASRB E06E: FB 94 44 ADDB $9444 E071: 84 1F ANDA #1F E073: 5A DECB E074: FB FD E0 ADDB $FDE0 E077: 16 TAB E078: D0 2F SUBB $002F E07A: F1 5B F6 CMPB $5BF6 E07D: 57 ASRB E07E: 02 -------------------- E07F: 19 DAA E080: 57 ASRB E081: 51 -------------------- E082: 10 SBA E083: B1 31 5B CMPA $315B E086: D0 E1 SUBB $00E1 E088: 04 -------------------- E089: B0 01 8F SUBA $018F E08C: E3 -------------------- E08D: DC -------------------- E08E: 01 NOP E08F: 51 -------------------- E090: 10 SBA E091: B0 49 DC SUBA $49DC E094: 00 -------------------- E095: 5A DECB E096: FB FC E1 ADDB $FCE1 E099: 16 TAB E09A: FC -------------------- E09B: E1 08 CMPB $08,X E09D: 04 -------------------- E09E: AE B1 LDS $B1,X E0A0: 80 0F SUBA #0F E0A2: 5A DECB E0A3: FD -------------------- E0A4: E1 08 CMPB $08,X E0A6: 06 TAP E0A7: 13 -------------------- E0A8: BA BB 3C ORA $BB3C E0AB: 80 04 SUBA #04 E0AD: 13 -------------------- E0AE: C3 -------------------- E0AF: C4 45 ANDB #45 E0B1: 04 -------------------- E0B2: 36 PSHA E0B3: 37 PSHB E0B4: CE 00 62 LDX #0062 E0B7: 96 0F LDA $000F E0B9: BD DF D2 JSR $DFD2 E0BC: 33 PULB E0BD: 32 PULA E0BE: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer E0C1: 30 E0C2: 36 PSHA E0C3: 96 0C LDA $000C E0C5: 97 0D STA $000D E0C7: 96 0D LDA $000D E0C9: 81 04 CMPA #04 E0CB: 2D 03 BLT $E0D0 E0CD: 7A 00 0D DEC $000D E0D0: 97 D5 STA $00D5 E0D2: 86 01 LDA #01 E0D4: BD EC 3B JSR $EC3B E0D7: BD E9 71 JSR $E971 E0DA: 32 PULA E0DB: BD DD 0F JSR $DD0F E0DE: 27 2F BEQ $E10F E0E0: CE 00 63 LDX #0063 E0E3: 36 PSHA E0E4: BD E1 37 JSR $E137 E0E7: 26 DE BNE $E0C7 E0E9: 96 0E LDA $000E E0EB: 81 05 CMPA #05 E0ED: 2F 1B BLE $E10A E0EF: 32 PULA E0F0: 86 1E LDA #1E E0F2: 97 E6 STA $00E6 E0F4: BD EC 3B JSR $EC3B E0F7: BD D2 D6 JSR $D2D6 E0FA: 86 01 LDA #01 E0FC: 97 22 STA $0022 E0FE: CE E5 9A LDX #E59A E101: BD D2 6D JSR $D26D E104: BD DF CC JSR $DFCC E107: 7E E0 5A JMP $E05A E10A: 32 PULA E10B: 8D 46 BSR $E153 E10D: 20 25 BRA $E134 E10F: 8D 42 BSR $E153 E111: CE 00 63 LDX #0063 E114: BD D8 34 JSR $D834 E117: BD D3 46 JSR $D346 E11A: 86 06 LDA #06 E11C: BD D8 53 JSR $D853 E11F: 36 PSHA E120: 86 0E LDA #0E E122: BD EC 3B JSR $EC3B E125: 32 PULA E126: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer E129: 05 E12A: 4A DECA E12B: 26 EF BNE $E11C E12D: 96 0F LDA $000F E12F: 8B 01 ADDA #01 E131: 19 DAA E132: 97 0F STA $000F E134: 7E E0 0A JMP $E00A E137: A6 01 LDA $01,X E139: 81 9B CMPA #9B E13B: 27 05 BEQ $E142 E13D: 4A DECA E13E: A7 01 STA $01,X E140: 20 10 BRA $E152 E142: A6 00 LDA $00,X E144: 27 0C BEQ $E152 E146: 4A DECA E147: 81 1B CMPA #1B E149: 26 01 BNE $E14C E14B: 4F CLRA E14C: A7 00 STA $00,X E14E: 86 A4 LDA #A4 E150: A7 01 STA $01,X E152: 39 RTS E153: 3F SWI E154: DD -------------------- E155: 00 -------------------- E156: 5A DECB E157: FB FC E1 ADDB $FCE1 E15A: 16 TAB E15B: FC -------------------- E15C: E1 08 CMPB $08,X E15E: 06 TAP E15F: AD FA JSR $FA,X E161: 15 -------------------- E162: 00 -------------------- E163: 80 0B SUBA #0B E165: 5A DECB E166: FD -------------------- E167: E1 08 CMPB $08,X E169: 04 -------------------- E16A: 19 DAA E16B: 10 SBA E16C: 80 02 SUBA #02 E16E: 19 DAA E16F: 11 CBA E170: 04 -------------------- E171: 39 RTS E172: 3F SWI E173: E6 5A LDB $5A,X E175: FB FB F0 ADDB $FBF0 E178: D0 30 SUBB $0030 E17A: F3 -------------------- E17B: F1 F3 55 CMPB $F355 E17E: FF 10 04 STX $1004 E181: 86 10 LDA #10 E183: CE DE F4 LDX #DEF4 E186: 7E D5 0E JMP $D50E E189: C6 0A LDB #0A E18B: 7F 00 E6 CLR $00E6 E18E: 96 BF LDA $00BF E190: B7 13 B7 STA $13B7 E193: 97 E7 STA $00E7 E195: B6 D0 5A LDA $D05A E198: BD EC 3B JSR $EC3B E19B: CE E5 58 LDX #E558 E19E: 37 PSHB E19F: BD D3 0B JSR $D30B E1A2: 33 PULB E1A3: B6 13 B7 LDA $13B7 E1A6: 40 NEGA E1A7: 8B 1E ADDA #1E E1A9: DE B8 LDX $00B8 E1AB: A7 01 STA $01,X E1AD: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer E1B0: 08 E1B1: BD D2 D6 JSR $D2D6 E1B4: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer E1B7: 08 E1B8: 5A DECB E1B9: 26 DA BNE $E195 E1BB: CE E6 1E LDX #E61E E1BE: BD D3 0B JSR $D30B E1C1: DE B8 LDX $00B8 E1C3: C6 10 LDB #10 E1C5: BD D2 F7 JSR $D2F7 E1C8: 86 18 LDA #18 E1CA: BD EC 3B JSR $EC3B E1CD: 86 05 LDA #05 E1CF: C6 40 LDB #40 E1D1: E7 00 STB $00,X E1D3: BD D2 C8 JSR $D2C8 E1D6: CE E6 0A LDX #E60A E1D9: BD D2 6D JSR $D26D E1DC: CE E6 15 LDX #E615 E1DF: BD D2 6D JSR $D26D E1E2: 86 05 LDA #05 E1E4: C6 40 LDB #40 E1E6: BD D2 C8 JSR $D2C8 E1E9: BD E6 E8 JSR $E6E8 E1EC: CE 00 60 LDX #0060 E1EF: FF 13 A7 STX $13A7 E1F2: 86 2E LDA #2E E1F4: A7 00 STA $00,X E1F6: BD E2 28 JSR $E228 E1F9: A6 00 LDA $00,X E1FB: 81 2D CMPA #2D E1FD: 26 09 BNE $E208 E1FF: 6F 00 CLR $00,X E201: 09 DEX E202: A6 00 LDA $00,X E204: 26 F0 BNE $E1F6 E206: 20 EA BRA $E1F2 E208: 81 2E CMPA #2E E20A: 26 04 BNE $E210 E20C: 86 00 LDA #00 E20E: A7 00 STA $00,X E210: 08 INX E211: 8C 00 63 CMPX #00 E214: 26 DC BNE $E1F2 E216: CE 01 2E LDX #012E E219: DF B8 STX $00B8 E21B: C6 0C LDB #0C E21D: CE 00 60 LDX #0060 E220: BD EF 23 JSR $EF23 E223: D7 22 STB $0022 E225: 7E FB 3E JMP $FB3E E228: A6 00 LDA $00,X E22A: B7 13 B6 STA $13B6 E22D: 86 60 LDA #60 E22F: B7 13 B8 STA $13B8 E232: 86 06 LDA #06 E234: B7 13 B7 STA $13B7 E237: 7A 13 B8 DEC $13B8 E23A: 26 06 BNE $E242 E23C: 31 INS E23D: 31 INS E23E: 6F 00 CLR $00,X E240: 20 D4 BRA $E216 E242: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer E245: 02 E246: 96 80 LDA $0080 E248: 2A 0C BPL $E256 E24A: BD E2 DF JSR $E2DF E24D: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer E250: 02 E251: 96 80 LDA $0080 E253: 2B F8 BMI $E24D E255: 39 RTS E256: 96 81 LDA $0081 E258: 84 03 ANDA #03 E25A: 26 14 BNE $E270 E25C: 7A 13 B7 DEC $13B7 E25F: 26 E1 BNE $E242 E261: A6 00 LDA $00,X E263: 27 04 BEQ $E269 E265: 6F 00 CLR $00,X E267: 20 C9 BRA $E232 E269: B6 13 B6 LDA $13B6 E26C: A7 00 STA $00,X E26E: 20 C2 BRA $E232 E270: BD E2 DF JSR $E2DF E273: C6 20 LDB #20 E275: F7 13 B7 STB $13B7 E278: 46 RORA E279: 25 18 BCS $E293 E27B: 8D 2D BSR $E2AA E27D: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer E280: 01 E281: 96 81 LDA $0081 E283: 85 02 BITA #02 E285: 27 A1 BEQ $E228 E287: 7A 13 B7 DEC $13B7 E28A: 26 F1 BNE $E27D E28C: 86 05 LDA #05 E28E: B7 13 B7 STA $13B7 E291: 20 E8 BRA $E27B E293: 8D 32 BSR $E2C7 E295: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer E298: 01 E299: 96 81 LDA $0081 E29B: 46 RORA E29C: 24 8A BCC $E228 E29E: 7A 13 B7 DEC $13B7 E2A1: 26 F2 BNE $E295 E2A3: 86 05 LDA #05 E2A5: B7 13 B7 STA $13B7 E2A8: 20 E9 BRA $E293 E2AA: A6 00 LDA $00,X E2AC: 4C INCA E2AD: 81 2E CMPA #2E E2AF: 26 02 BNE $E2B3 E2B1: 86 2E LDA #2E E2B3: 81 2F CMPA #2F E2B5: 26 02 BNE $E2B9 E2B7: 86 01 LDA #01 E2B9: 81 1B CMPA #1B E2BB: 26 07 BNE $E2C4 E2BD: 8C 00 60 CMPX #00 E2C0: 27 EF BEQ $E2B1 E2C2: 86 2D LDA #2D E2C4: A7 00 STA $00,X E2C6: 39 RTS E2C7: A6 00 LDA $00,X E2C9: 4A DECA E2CA: 26 02 BNE $E2CE E2CC: 86 2E LDA #2E E2CE: 81 2C CMPA #2C E2D0: 26 02 BNE $E2D4 E2D2: 86 1A LDA #1A E2D4: 81 2D CMPA #2D E2D6: 26 EC BNE $E2C4 E2D8: 8C 00 60 CMPX #00 E2DB: 27 F5 BEQ $E2D2 E2DD: 20 E3 BRA $E2C2 E2DF: 36 PSHA E2E0: B6 13 B6 LDA $13B6 E2E3: A7 00 STA $00,X E2E5: 32 PULA E2E6: 39 RTS E2E7: BD FA B1 JSR $FAB1 E2EA: D6 7C LDB $007C E2EC: F7 13 B6 STB $13B6 E2EF: 43 COMA E2F0: 7D 00 54 TST $0054 E2F3: 26 06 BNE $E2FB E2F5: 97 54 STA $0054 E2F7: 97 58 STA $0058 E2F9: 86 33 LDA #33 E2FB: 97 7C STA $007C E2FD: 86 7F LDA #7F E2FF: BD F9 27 JSR $F927 E302: CE E6 2A LDX #E62A E305: BD D3 0B JSR $D30B E308: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer E30B: 30 E30C: 86 0C LDA #0C E30E: B7 13 A9 STA $13A9 E311: CE 13 AA LDX #13AA E314: DF B8 STX $00B8 E316: CE 01 2E LDX #012E E319: C6 0C LDB #0C E31B: BD FF CD JSR $FFCD E31E: CE 13 A9 LDX #13A9 E321: BD D2 B0 JSR $D2B0 E324: BD D2 58 JSR $D258 E327: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer E32A: A0 E32B: F6 13 B6 LDB $13B6 E32E: D7 7C STB $007C E330: 4F CLRA E331: 7E F9 27 JMP $F927 E334: CE 55 01 LDX #5501 E337: DF 32 STX $0032 E339: 86 80 LDA #80 E33B: D6 EB LDB $00EB E33D: 27 01 BEQ $E340 E33F: 44 LSRA E340: 97 31 STA $0031 E342: CE E3 58 LDX #E358 E345: BD D5 0D JSR $D50D E348: 3F SWI E349: 5B -------------------- E34A: F1 05 18 CMPB $0518 E34D: 0A CLV E34E: 1C -------------------- E34F: 8A 0A ORA #0A E351: 29 0A BVS $E35D E353: 75 -------------------- E354: 2F 4A BLE $E3A0 E356: 8F -------------------- E357: FB 3F 62 ADDB $3F62 E35A: 1E -------------------- E35B: 0A CLV E35C: 8F -------------------- E35D: FB 86 40 ADDB $8640 E360: BD EA 83 JSR $EA83 E363: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer E366: 0A E367: 20 F5 BRA $E35E E369: 00 -------------------- E36A: 5F CLRB E36B: 00 -------------------- E36C: 05 -------------------- E36D: 06 TAP E36E: 0B SEV E36F: 0C CLC E370: 11 CBA E371: 12 -------------------- E372: 17 TBA E373: 18 -------------------- E374: 1D -------------------- E375: 1E -------------------- E376: 23 24 BLS $E39C E378: 29 2A BVS $E3A4 E37A: 2F 30 BLE $E3AC E37C: 35 TXS E37D: 50 NEGB E37E: 59 ROLB E37F: 48 ASLA E380: 4A DECA E381: 4B -------------------- E382: 4D TSTA E383: 31 INS E384: 39 RTS E385: 3A -------------------- E386: 47 ASRA E387: 49 ROLA E388: 5F CLRB E389: 3A -------------------- E38A: 3C -------------------- E38B: 43 COMA E38C: 45 -------------------- E38D: 00 -------------------- E38E: 47 ASRA E38F: 01 NOP E390: 09 DEX E391: 00 -------------------- E392: 4F CLRA E393: 36 PSHA E394: 3E -------------------- E395: 3F SWI E396: 47 ASRA E397: 31 INS E398: 47 ASRA E399: 22 30 BHI $E3CB E39B: 3C -------------------- E39C: 23 10 BLS $E3AE E39E: 3B RTI E39F: 22 20 BHI $E3C1 E3A1: 3A -------------------- E3A2: E3 -------------------- E3A3: FB FF E3 ADDB $FFE3 E3A6: F6 FF E4 LDB $FFE4 E3A9: 06 TAP E3AA: FF 22 30 STX $2230 E3AD: 36 PSHA E3AE: 22 20 BHI $E3D0 E3B0: 35 TXS E3B1: 22 20 BHI $E3D3 E3B3: 34 DES E3B4: E4 01 ANDB $01,X E3B6: FF 22 20 STX $2220 E3B9: 30 TSX E3BA: 22 20 BHI $E3DC E3BC: 2F 22 BLE $E3E0 E3BE: 20 2E BRA $E3EE E3C0: 22 20 BHI $E3E2 E3C2: 2D 22 BLT $E3E6 E3C4: 20 2C BRA $E3F2 E3C6: 22 20 BHI $E3E8 E3C8: 2B 83 BMI $E34D E3CA: 50 NEGB E3CB: 2A 22 BPL $E3EF E3CD: 20 29 BRA $E3F8 E3CF: 83 -------------------- E3D0: 40 NEGA E3D1: 32 PULA E3D2: 22 20 BHI $E3F4 E3D4: 28 22 BVC $E3F8 E3D6: 20 27 BRA $E3FF E3D8: 23 20 BLS $E3FA E3DA: 3D WAI E3DB: 22 20 BHI $E3FD E3DD: 26 22 BNE $E401 E3DF: 20 25 BRA $E406 E3E1: 24 20 BCC $E403 E3E3: 3E -------------------- E3E4: 22 20 BHI $E406 E3E6: 24 22 BCC $E40A E3E8: 20 23 BRA $E40D E3EA: 22 20 BHI $E40C E3EC: 22 22 BHI $E410 E3EE: 20 31 BRA $E421 E3F0: 22 20 BHI $E412 E3F2: 21 -------------------- E3F3: 23 30 BLS $E425 E3F5: 20 21 BRA $E418 E3F7: 92 38 SBCA $0038 E3F9: 3E -------------------- E3FA: 3F SWI E3FB: 26 F5 BNE $E3F2 E3FD: 2E C0 BGT $E3BF E3FF: 2D 3F BLT $E440 E401: 26 FF BNE $E402 E403: 37 PSHB E404: 2D 3F BLT $E445 E406: 26 FF BNE $E407 E408: 24 2D BCC $E437 E40A: 3F SWI E40B: 93 -------------------- E40C: D3 -------------------- E40D: 5A DECB E40E: 71 -------------------- E40F: D1 3F CMPB $003F E411: 71 -------------------- E412: D1 3E CMPB $003E E414: F2 F8 0A SBCB $F80A E417: F2 F8 0A SBCB $F80A E41A: F2 F8 0A SBCB $F80A E41D: 71 -------------------- E41E: E7 30 STB $30,X E420: 71 -------------------- E421: D1 1B CMPB $001B E423: 11 CBA E424: D7 C7 STB $00C7 E426: 11 CBA E427: D7 C7 STB $00C7 E429: 11 CBA E42A: D7 C7 STB $00C7 E42C: 11 CBA E42D: D7 C7 STB $00C7 E42F: 11 CBA E430: D7 C7 STB $00C7 E432: 11 CBA E433: D7 C7 STB $00C7 E435: 11 CBA E436: D7 C7 STB $00C7 E438: 11 CBA E439: D7 C7 STB $00C7 E43B: 91 D7 CMPA $00D7 E43D: 94 11 ANDA $0011 E43F: D7 9E STB $009E E441: 11 CBA E442: D7 A2 STB $00A2 E444: 8F -------------------- E445: D7 28 STB $0028 E447: 8F -------------------- E448: D7 28 STB $0028 E44A: 8F -------------------- E44B: D7 28 STB $0028 E44D: 8F -------------------- E44E: D7 28 STB $0028 E450: 8F -------------------- E451: D7 28 STB $0028 E453: 8F -------------------- E454: D7 28 STB $0028 E456: 8F -------------------- E457: D7 28 STB $0028 E459: 8F -------------------- E45A: D7 28 STB $0028 E45C: 8F -------------------- E45D: D7 28 STB $0028 E45F: 11 CBA E460: D7 C3 STB $00C3 E462: 11 CBA E463: D7 BF STB $00BF E465: 91 D7 CMPA $00D7 E467: 8A B3 ORA #B3 E469: DD -------------------- E46A: 9B 94 ADDA $0094 E46C: D5 47 BITB $0047 E46E: 94 D5 ANDA $00D5 E470: 47 ASRA E471: 3D WAI E472: 3E -------------------- E473: 36 PSHA E474: 37 PSHB E475: 38 -------------------- E476: 39 RTS E477: 3F SWI E478: 40 NEGA E479: 41 -------------------- E47A: 42 -------------------- E47B: 46 RORA E47C: 47 ASRA E47D: 36 PSHA E47E: 37 PSHB E47F: 38 -------------------- E480: 39 RTS E481: 3F SWI E482: 40 NEGA E483: 41 -------------------- E484: 42 -------------------- E485: 00 -------------------- E486: 3D WAI E487: 3E -------------------- E488: 00 -------------------- E489: 06 TAP E48A: 0C CLC E48B: 12 -------------------- E48C: 18 -------------------- E48D: 1E -------------------- E48E: 24 2A BCC $E4BA E490: 30 TSX E491: 47 ASRA E492: 46 RORA E493: 00 -------------------- E494: 06 TAP E495: 07 TPA E496: 01 NOP E497: 02 -------------------- E498: 03 -------------------- E499: 04 -------------------- E49A: 19 DAA E49B: 17 TBA E49C: 16 TAB E49D: 15 -------------------- E49E: 13 -------------------- E49F: 12 -------------------- E4A0: 05 -------------------- E4A1: 14 -------------------- E4A2: 0C CLC E4A3: 0F SEI E4A4: 13 -------------------- E4A5: 15 -------------------- E4A6: E5 93 BITB $93,X E4A8: E5 8D BITB $8D,X E4AA: E5 C2 BITB $C2,X E4AC: E5 DD BITB $DD,X E4AE: E5 EA BITB $EA,X E4B0: E5 E4 BITB $E4,X E4B2: E5 F0 BITB $F0,X E4B4: 01 NOP E4B5: 02 -------------------- E4B6: 03 -------------------- E4B7: 04 -------------------- E4B8: 19 DAA E4B9: 17 TBA E4BA: 16 TAB E4BB: 15 -------------------- E4BC: 05 -------------------- E4BD: 06 TAP E4BE: 07 TPA E4BF: 08 INX E4C0: 09 DEX E4C1: 0A CLV E4C2: 0B SEV E4C3: 0C CLC E4C4: 0D SEC E4C5: 0E CLI E4C6: 0F SEI E4C7: 10 SBA E4C8: 12 -------------------- E4C9: 13 -------------------- E4CA: 14 -------------------- E4CB: 00 -------------------- E4CC: 00 -------------------- E4CD: 37 PSHB E4CE: 06 TAP E4CF: 8F -------------------- E4D0: 14 -------------------- E4D1: 39 RTS E4D2: 00 -------------------- E4D3: 8F -------------------- E4D4: 10 SBA E4D5: 39 RTS E4D6: 02 -------------------- E4D7: 31 INS E4D8: 02 -------------------- E4D9: 3D WAI E4DA: 04 -------------------- E4DB: 36 PSHA E4DC: 06 TAP E4DD: 89 10 ADCA #10 E4DF: 1E -------------------- E4E0: 00 -------------------- E4E1: 30 TSX E4E2: 23 38 BLS $E51C E4E4: 00 -------------------- E4E5: 76 01 76 ROR $0176 E4E8: 20 3F BRA $E529 E4EA: 00 -------------------- E4EB: 33 PULB E4EC: 06 TAP E4ED: 3F SWI E4EE: 20 33 BRA $E523 E4F0: 26 2D BNE $E51F E4F2: 06 TAP E4F3: 81 10 CMPA #10 E4F5: 3E -------------------- E4F6: 00 -------------------- E4F7: 30 TSX E4F8: 09 DEX E4F9: 36 PSHA E4FA: 28 40 BVC $E53C E4FC: 29 22 BVS $E520 E4FE: 16 TAB E4FF: 09 DEX E500: 09 DEX E501: 3F SWI E502: 09 DEX E503: 80 10 SUBA #10 E505: 0B SEV E506: 0C CLC E507: 0D SEC E508: 05 -------------------- E509: 26 06 BNE $E511 E50B: 29 22 BVS $E52F E50D: 3D WAI E50E: 06 TAP E50F: 07 TPA E510: 00 -------------------- E511: 3F SWI E512: 06 TAP E513: 2F 06 BLE $E51B E515: 82 00 SBCA #00 E517: 00 -------------------- E518: 06 TAP E519: 40 NEGA E51A: 20 80 BRA $E49C E51C: 10 SBA E51D: 00 -------------------- E51E: 09 DEX E51F: BB 04 80 ADDA $0480 E522: 16 TAB E523: C0 3F SUBB #3F E525: 00 -------------------- E526: 25 08 BCS $E530 E528: 00 -------------------- E529: 28 17 BVC $E542 E52B: 09 DEX E52C: 0C CLC E52D: 0C CLC E52E: 09 DEX E52F: 01 NOP E530: 0D SEC E531: 13 -------------------- E532: 0B SEV E533: 05 -------------------- E534: 0C CLC E535: 05 -------------------- E536: 03 -------------------- E537: 14 -------------------- E538: 12 -------------------- E539: 0F SEI E53A: 0E CLI E53B: 09 DEX E53C: 03 -------------------- E53D: 13 -------------------- E53E: 28 10 BVC $E550 E540: 12 -------------------- E541: 05 -------------------- E542: 13 -------------------- E543: 05 -------------------- E544: 0E CLI E545: 14 -------------------- E546: 13 -------------------- E547: 19 DAA E548: 08 INX E549: 19 DAA E54A: 10 SBA E54B: 05 -------------------- E54C: 12 -------------------- E54D: 02 -------------------- E54E: 01 NOP E54F: 0C CLC E550: 0C CLC E551: 16 TAB E552: 03 -------------------- E553: 12 -------------------- E554: 05 -------------------- E555: 04 -------------------- E556: 09 DEX E557: 14 -------------------- E558: 26 10 BNE $E56A E55A: 0C CLC E55B: 01 NOP E55C: 19 DAA E55D: 05 -------------------- E55E: 12 -------------------- E55F: 05 -------------------- E560: 00 -------------------- E561: 07 TPA E562: 01 NOP E563: 0D SEC E564: 05 -------------------- E565: 05 -------------------- E566: 0F SEI E567: 16 TAB E568: 05 -------------------- E569: 12 -------------------- E56A: 00 -------------------- E56B: 28 03 BVC $E570 E56D: 12 -------------------- E56E: 09 DEX E56F: 14 -------------------- E570: 09 DEX E571: 03 -------------------- E572: 01 NOP E573: 0C CLC E574: 24 17 BCC $E58D E576: 01 NOP E577: 16 TAB E578: 05 -------------------- E579: 19 DAA E57A: 03 -------------------- E57B: 0F SEI E57C: 0D SEC E57D: 10 SBA E57E: 0C CLC E57F: 05 -------------------- E580: 14 -------------------- E581: 05 -------------------- E582: 04 -------------------- E583: 19 DAA E584: 2C 00 BGE $E586 E586: 13 -------------------- E587: 10 SBA E588: 05 -------------------- E589: 0C CLC E58A: 0C CLC E58B: 00 -------------------- E58C: 2C 05 BGE $E593 E58E: 02 -------------------- E58F: 0F SEI E590: 0E CLI E591: 15 -------------------- E592: 13 -------------------- E593: 06 TAP E594: 05 -------------------- E595: 0E CLI E596: 05 -------------------- E597: 12 -------------------- E598: 07 TPA E599: 19 DAA E59A: 0A CLV E59B: 19 DAA E59C: 0F SEI E59D: 15 -------------------- E59E: 00 -------------------- E59F: 0D SEC E5A0: 09 DEX E5A1: 13 -------------------- E5A2: 13 -------------------- E5A3: 05 -------------------- E5A4: 04 -------------------- E5A5: 06 TAP E5A6: 12 -------------------- E5A7: 05 -------------------- E5A8: 06 TAP E5A9: 0C CLC E5AA: 05 -------------------- E5AB: 18 -------------------- E5AC: 03 -------------------- E5AD: 08 INX E5AE: 09 DEX E5AF: 14 -------------------- E5B0: 15 -------------------- E5B1: 1E -------------------- E5B2: 26 45 BNE $E5F9 E5B4: 55 -------------------- E5B5: 00 -------------------- E5B6: 15 -------------------- E5B7: 1E -------------------- E5B8: 26 5A BNE $E614 E5BA: 42 -------------------- E5BB: 00 -------------------- E5BC: 05 -------------------- E5BD: 24 9B BCC $E55A E5BF: 1B ABA E5C0: 1B ABA E5C1: 1B ABA E5C2: 05 -------------------- E5C3: 08 INX E5C4: 19 DAA E5C5: 10 SBA E5C6: 05 -------------------- E5C7: 12 -------------------- E5C8: 07 TPA E5C9: 05 -------------------- E5CA: 26 15 BNE $E5E1 E5CC: 0E CLI E5CD: 09 DEX E5CE: 14 -------------------- E5CF: 00 -------------------- E5D0: 0C CLC E5D1: 2C 00 BGE $E5D3 E5D3: 13 -------------------- E5D4: 13 -------------------- E5D5: 12 -------------------- E5D6: 00 -------------------- E5D7: 00 -------------------- E5D8: 05 -------------------- E5D9: 0A CLV E5DA: 13 -------------------- E5DB: 00 -------------------- E5DC: 2C 06 BGE $E5E4 E5DE: 03 -------------------- E5DF: 01 NOP E5E0: 0E CLI E5E1: 0E CLI E5E2: 0F SEI E5E3: 0E CLI E5E4: 05 -------------------- E5E5: 01 NOP E5E6: 0C CLC E5E7: 09 DEX E5E8: 05 -------------------- E5E9: 0E CLI E5EA: 05 -------------------- E5EB: 0C CLC E5EC: 01 NOP E5ED: 13 -------------------- E5EE: 05 -------------------- E5EF: 12 -------------------- E5F0: 03 -------------------- E5F1: 12 -------------------- E5F2: 01 NOP E5F3: 19 DAA E5F4: 28 2C BVC $E622 E5F6: 00 -------------------- E5F7: 14 -------------------- E5F8: 09 DEX E5F9: 0C CLC E5FA: 14 -------------------- E5FB: 00 -------------------- E5FC: 2C 0C BGE $E60A E5FE: 07 TPA E5FF: 12 -------------------- E600: 05 -------------------- E601: 01 NOP E602: 14 -------------------- E603: 00 -------------------- E604: 12 -------------------- E605: 05 -------------------- E606: 06 TAP E607: 0C CLC E608: 05 -------------------- E609: 18 -------------------- E60A: 0A CLV E60B: 05 -------------------- E60C: 0E CLI E60D: 14 -------------------- E60E: 05 -------------------- E60F: 12 -------------------- E610: 00 -------------------- E611: 19 DAA E612: 0F SEI E613: 15 -------------------- E614: 12 -------------------- E615: 08 INX E616: 09 DEX E617: 0E CLI E618: 09 DEX E619: 14 -------------------- E61A: 09 DEX E61B: 01 NOP E61C: 0C CLC E61D: 13 -------------------- E61E: 0B SEV E61F: 07 TPA E620: 12 -------------------- E621: 05 -------------------- E622: 01 NOP E623: 14 -------------------- E624: 00 -------------------- E625: 13 -------------------- E626: 03 -------------------- E627: 0F SEI E628: 12 -------------------- E629: 05 -------------------- E62A: 28 08 BVC $E634 E62C: 19 DAA E62D: 00 -------------------- E62E: 13 -------------------- E62F: 03 -------------------- E630: 0F SEI E631: 12 -------------------- E632: 05 -------------------- E633: 1B ABA E634: 95 21 BITA $0021 E636: A7 A2 STA $A2,X E638: 9C 96 CPX $0096 E63A: 8F -------------------- E63B: 1A -------------------- E63C: A0 AD SUBA $AD,X E63E: A8 90 EORA $90,X E640: 89 14 ADCA #14 E642: A6 B3 LDA $B3,X E644: AE 8A LDS $8A,X E646: 83 -------------------- E647: 0E CLI E648: AC A9 CPX $A9,X E64A: A3 -------------------- E64B: 9D -------------------- E64C: 97 91 STA $0091 E64E: 84 B4 ANDA #B4 E650: 08 INX E651: B2 B5 AF SBCA $B5AF E654: 8B 85 ADDA #85 E656: 02 -------------------- E657: CE CF C8 LDX #CFC8 E65A: CB 93 ADDB #93 E65C: 99 1F ADCA $001F E65E: CD -------------------- E65F: CC -------------------- E660: C9 CA ADCB #CA E662: 81 87 CMPA #87 E664: 8D A5 BSR $E60B E666: AB 31 ADDA $31,X E668: C7 -------------------- E669: C3 -------------------- E66A: C2 BA SBCB #BA E66C: B9 3E C6 ADCA $3EC6 E66F: C4 C1 ANDB #C1 E671: B8 BB BD EORA $BBBD E674: 92 98 SBCA $0098 E676: 1E -------------------- E677: A4 AA ANDA $AA,X E679: B0 C5 BF SUBA $C5BF E67C: B6 B7 BC LDA $B7BC E67F: 80 86 SUBA #86 E681: 0C CLC E682: B6 3F B7 LDA $3FB7 E685: 40 NEGA E686: B8 C1 CA EORA $C1CA E689: 4D TSTA E68A: C9 CC ADCB #CC E68C: 85 8B BITA #8B E68E: 91 97 CMPA $0097 E690: 9D -------------------- E691: A3 -------------------- E692: A9 AF ADCA $AF,X E694: 35 TXS E695: C8 CB EORB #CB E697: 84 8A ANDA #8A E699: 90 96 SUBA $0096 E69B: 9C A2 CPX $00A2 E69D: A8 AE EORA $AE,X E69F: 34 DES E6A0: C2 CF SBCB #CF E6A2: B9 4E 83 ADCA $4E83 E6A5: 89 8F ADCA #8F E6A7: 95 9B BITA $009B E6A9: A1 A7 CMPA $A7,X E6AB: AD 33 JSR $33,X E6AD: BA C3 82 ORA $C382 E6B0: 88 8E EORA #8E E6B2: 94 9A ANDA $009A E6B4: A0 A6 SUBA $A6,X E6B6: AC 32 CPX $32,X E6B8: BB 44 C6 ADDA $44C6 E6BB: C7 -------------------- E6BC: BC 81 87 CPX $8187 E6BF: 8D 93 BSR $E654 E6C1: 99 9F ADCA $009F E6C3: A5 AB BITA $AB,X E6C5: 31 INS E6C6: BD C5 3E JSR $C53E E6C9: 80 86 SUBA #86 E6CB: 8C 92 98 CMPX #92 E6CE: 9E A4 LDS $00A4 E6D0: AA 30 ORA $30,X E6D2: 96 05 LDA $0005 E6D4: 16 TAB E6D5: 84 0F ANDA #0F E6D7: 8B 1B ADDA #1B E6D9: DE B8 LDX $00B8 E6DB: A7 02 STA $02,X E6DD: BD EC 32 JSR $EC32 E6E0: 5D TSTB E6E1: 27 02 BEQ $E6E5 E6E3: CB 1B ADDB #1B E6E5: E7 01 STB $01,X E6E7: 39 RTS E6E8: CE 13 A7 LDX #13A7 E6EB: DF B8 STX $00B8 E6ED: 8D E3 BSR $E6D2 E6EF: 86 08 LDA #08 E6F1: A7 00 STA $00,X E6F3: 86 13 LDA #13 E6F5: A7 08 STA $08,X E6F7: 6F 03 CLR $03,X E6F9: CE 13 AB LDX #13AB E6FC: DF B8 STX $00B8 E6FE: CE E5 74 LDX #E574 E701: BD D3 0D JSR $D30D E704: BD D2 B0 JSR $D2B0 E707: 5F CLRB E708: 86 04 LDA #04 E70A: BD D2 C8 JSR $D2C8 E70D: CE 13 A7 LDX #13A7 E710: 7E D2 58 JMP $D258 *** RESET ENTRY *** E730: 0F SEI Begin PIA Setup E731: 8E F1 70 LDS #F1 E734: C6 0C LDB #0C E736: CE 21 00 LDX #2100 PIA Base Address E739: 86 04 LDA #04 E73B: A7 01 STA $01,X E73D: 86 7F LDA #7F E73F: A7 00 STA $00,X E741: DF B8 STX $00B8 E743: 9C B8 CPX $00B8 E745: 26 2D BNE $E774 E747: DE B8 LDX $00B8 E749: 6F 01 CLR $01,X E74B: 32 PULA E74C: A7 00 STA $00,X E74E: 32 PULA E74F: A7 01 STA $01,X E751: 8C 21 00 CMPX #21 E754: 27 02 BEQ $E758 E756: 6F 00 CLR $00,X E758: 08 INX E759: 08 INX E75A: 5A DECB E75B: 27 1B BEQ $E778 E75D: C5 01 BITB #01 E75F: 26 E8 BNE $E749 E761: 96 B8 LDA $00B8 E763: 48 ASLA E764: 84 1F ANDA #1F E766: 26 06 BNE $E76E E768: 86 40 LDA #40 E76A: 97 B8 STA $00B8 E76C: 20 D9 BRA $E747 E76E: 8A 20 ORA #20 E770: 97 B8 STA $00B8 E772: 20 D3 BRA $E747 E774: 7E FF 31 JMP $FF31 -> NMI Entry E777: C0 Data E778: CE 13 FF LDX #13FF \ E77B: 35 TXS | E77C: 6F 00 CLR $00,X |-- Clear RAM 1000-13FF E77E: 09 DEX | E77F: 8C 0F FF CMPX #0F | E782: 26 F8 BNE $E77C / E784: BD EE 61 JSR $EE61 Initially set up the Control Stack E787: B6 D0 55 LDA $D055 GAMEROM: Lamp Flash Rate E78A: 97 D3 STA $00D3 E78C: CE 11 00 LDX #1100 E78F: DF B4 STX $00B4 E791: CE 11 18 LDX #1118 E794: DF B6 STX $00B6 Solenoid Buffer Pointer E796: CE 01 7D LDX #017D E799: BD EE 92 JSR $EE92 ( CMOS,X++ -> A) E79C: BD EE A2 JSR $EEA2 ( CMOS,X++ -> B) E79F: 1B ABA E7A0: 81 57 CMPA #57 CSUM CMOS RAM E7A2: 27 03 BEQ $E7A7 E7A4: BD EE BC JSR $EEBC Restore Factory Settings and Zero Audit Totals E7A7: CE 01 6E LDX #016E Current Credits E7AA: BD EE 92 JSR $EE92 ( CMOS,X++ -> A) E7AD: B7 11 9A STA $119A E7B0: BD FD DB JSR $FDDB ( CMOS, X -> A ) Audit 50 Setup E7B3: 6F 00 CLR $00,X E7B5: 6F 01 CLR $01,X E7B7: 81 15 CMPA #15 Auto Cycle? E7B9: 26 06 BNE $E7C1 E7BB: CE FE 7C LDX #FE7C Auto Cycle Entry E7BE: BD EA 24 JSR $EA24 Push Control Stack: Data in A,B,X,$A6,$A7,$AA=#06 E7C1: 81 45 CMPA #45 E7C3: 27 DF BEQ $E7A4 Restore Factory Settings/Zero Audits E7C5: 81 35 CMPA #35 E7C7: 26 03 BNE $E7CC Zero Audits E7C9: BD EE AE JSR $EEAE Reset Audits 0100-0165 E7CC: BD F7 9C JSR $F79C Check Max Credits, Adjust Coin Lockout E7CF: 7A 00 7D DEC $007D E7D2: BD F9 11 JSR $F911 Blank all Player Displays (buffer 0) E7D5: 97 4F STA $004F E7D7: 4A DECA E7D8: 97 5E STA $005E E7DA: 97 5C STA $005C E7DC: 0E CLI E7DD: FE D0 C4 LDX $D0C4 GAMEROM:Reset Hook E7E0: AD 00 JSR $00,X E7E2: CE FA D7 LDX #FAD7 E7E5: BD EA 24 JSR $EA24 Initialization Thread E7E8: 7E E9 3A JMP $E93A Begin of Thread Loop *** Begin Main Loop *** E7EB: CE 00 CB LDX #00CB E7EE: DF D1 STX $00D1 Reset Thread Stack E7F0: DF CF STX $00CF E7F2: FE D0 C6 LDX $D0C6 GAMEROM:Main Loop Begin Hook E7F5: AD 00 JSR $00,X E7F7: 0F SEI E7F8: 96 B3 LDA $00B3 IRQ Counter, Incremented very 16 IRQ's E7FA: 7F 00 B3 CLR $00B3 Reset the counter E7FD: 0E CLI E7FE: 97 CA STA $00CA Store away for now E800: 96 E9 LDA $00E9 Flag E802: 27 03 BEQ $E807 E804: 7E E8 84 JMP $E884 E807: B6 28 01 LDA $2801 Check the Advance Switch E80A: 2A 06 BPL $E812 E80C: CE FC 41 LDX #FC41 E80F: BD EA 24 JSR $EA24 Diagnostics Entry Thread Check for active switches: E812: CE 00 00 LDX #0000 E815: A6 9D LDA $9D,X E817: 43 COMA E818: A4 8D ANDA $8D,X E81A: 27 03 BEQ $E81F E81C: BD ED A0 JSR $EDA0 Switch Closed long enough? E81F: A6 9D LDA $9D,X E821: A4 95 ANDA $95,X E823: 27 03 BEQ $E828 E825: BD ED FA JSR $EDFA Switch Open long enough? E828: 08 INX E829: 8C 00 08 CMPX #00 E82C: 26 E7 BNE $E815 Clock: E82E: D6 F4 LDB $00F4 Ball Timer Flag E830: 27 19 BEQ $E84B E832: 96 CA LDA $00CA Number of IRQ's since last loop E834: DE F2 LDX $00F2 E836: BD EE 3E JSR $EE3E ( X = X + A) E839: DF F2 STX $00F2 E83B: 8C 0E FF CMPX #0EFF E83E: 2B 0B BMI $E84B Not 1 Minute yet E840: 5F CLRB E841: D7 F2 STB $00F2 Clear the Minute Timer E843: D7 F3 STB $00F3 E845: CE 01 26 LDX #0126 AUDIT: Ball Time in Minutes E848: BD F7 E7 JSR $F7E7 Add 1 to data in X E84B: CE 11 00 LDX #1100 E84E: 9C B4 CPX $00B4 Check Buffer Pointer E850: 27 32 BEQ $E884 E852: A6 00 LDA $00,X Command Timer E854: 90 CA SUBA $00CA Subtract our IRQ's E856: 22 26 BHI $E87E Ready to run? E858: DF C6 STX $00C6 Yes! E85A: A6 01 LDA $01,X Encoded Switch # E85C: 97 C3 STA $00C3 E85E: 7F 00 BE CLR $00BE E861: 16 TAB E862: 57 ASRB E863: 57 ASRB E864: 57 ASRB E865: D7 BF STB $00BF E867: BD EA E5 JSR $EAE5 Convert Hex(A&07) into Bitpos(B) E86A: D7 C0 STB $00C0 E86C: DE BE LDX $00BE E86E: A6 7D LDA $7D,X E870: 97 C2 STA $00C2 E872: BD ED 43 JSR $ED43 Switch Triggered E875: DE C6 LDX $00C6 E877: 24 07 BCC $E880 E879: BD EE 4E JSR $EE4E Copy Word: $B4-- Data,$B4 -> Data,X E87C: 20 D0 BRA $E84E E87E: A7 00 STA $00,X E880: 08 INX E881: 08 INX E882: 20 CA BRA $E84E E884: DE CB LDX $00CB Check the start of the Thread List E886: 27 0D BEQ $E895 E888: A6 02 LDA $02,X E88A: 90 CA SUBA $00CA Subtract the number of IRQ loop completed E88C: 24 01 BCC $E88F E88E: 4F CLRA Clear it so the thread can run next loop E88F: A7 02 STA $02,X E891: EE 00 LDX $00,X E893: 20 F1 BRA $E886 E895: 96 D4 LDA $00D4 Timer for Flashing lamps E897: 90 CA SUBA $00CA Subtract the IRQ's E899: 22 11 BHI $E8AC E89B: CE 00 00 LDX #0000 E89E: C6 0C LDB #0C E8A0: A6 10 LDA $10,X Invert Selected Lamps E8A2: A8 40 EORA $40,X E8A4: A7 10 STA $10,X E8A6: 08 INX E8A7: 5A DECB E8A8: 26 F6 BNE $E8A0 E8AA: 96 D3 LDA $00D3 Get the reset value E8AC: 97 D4 STA $00D4 Reset the Lamp Timer Read the Solenoid Queue: E8AE: 96 B2 LDA $00B2 Solenoid Counter E8B0: 26 18 BNE $E8CA Skip if Counter hasn't Expired E8B2: CE 11 18 LDX #1118 E8B5: 9C B6 CPX $00B6 E8B7: 27 11 BEQ $E8CA Skip Solenoids for now E8B9: A6 00 LDA $00,X Takes lowest Solenoid # into A E8BB: E6 01 LDB $01,X Moves rest down into place E8BD: E7 00 STB $00,X E8BF: 08 INX E8C0: 9C B6 CPX $00B6 E8C2: 26 F7 BNE $E8BB E8C4: 09 DEX E8C5: DF B6 STX $00B6 Adjust pointer to end of list E8C7: BD EA A7 JSR $EAA7 Turn On/Off Solenoid (Solenoid # in A) E8CA: 96 DF LDA $00DF Sound Flag? E8CC: 27 55 BEQ $E923 Done with Current Sound Command, Check for another E8CE: 96 D8 LDA $00D8 Get Sound Flags/SC2 E8D0: 85 10 BITA #10 E8D2: 27 09 BEQ $E8DD E8D4: F6 21 02 LDB $2102 Check Spare Input (Sound Board Busy?) E8D7: C4 20 ANDB #20 E8D9: 27 5F BEQ $E93A Get Outta Here E8DB: 20 0E BRA $E8EB E8DD: 96 DC LDA $00DC Mini-Timer E8DF: 90 CA SUBA $00CA Number of IRQ's since last loop E8E1: 97 DC STA $00DC E8E3: 96 DB LDA $00DB E8E5: 82 00 SBCA #00 E8E7: 97 DB STA $00DB E8E9: 24 4F BCC $E93A Get Outta here, Not time yet for next sound E8EB: 86 7F LDA #7F E8ED: BD EC DF JSR $ECDF Send A->Sound Board(Clear Lines) E8F0: 96 D8 LDA $00D8 Get Sound Flags/SC2 E8F2: 2B 1C BMI $E910 E8F4: 7A 00 D6 DEC $00D6 E8F7: 27 1C BEQ $E915 Sound Repeat Counter E8F9: D6 DF LDB $00DF Sound Flag? E8FB: 2B 0B BMI $E908 E8FD: DE DD LDX $00DD E8FF: DF DB STX $00DB E901: 96 D7 LDA $00D7 E903: BD EC DD JSR $ECDD A -> $D7 Send A-> Sound Command E906: 20 32 BRA $E93A Get Outta Here E908: 8A 80 ORA #80 E90A: 97 D8 STA $00D8 Set Sound Flags/SC2 E90C: DE DD LDX $00DD E90E: DF D9 STX $00D9 E910: BD EC E6 JSR $ECE6 E913: 20 25 BRA $E93A Get Outta Here E915: D6 E4 LDB $00E4 Here if we are done iterating the sound command E917: 27 0A BEQ $E923 Outta Here! E919: 96 E5 LDA $00E5 E91B: BD EC 92 JSR $EC92 Play Sound Index(A),(B)Times E91E: 7F 00 E4 CLR $00E4 E921: 20 17 BRA $E93A Get Outta Here Do the Chime Buffer: E923: 7F 00 DF CLR $00DF Reset the sound flag? E926: CE 11 27 LDX #1127 See if there is something in this stack E929: 86 08 LDA #08 E92B: 08 INX E92C: 4A DECA E92D: 2B 0B BMI $E93A Nothing to do, leave. E92F: E6 00 LDB $00,X E931: 27 F8 BEQ $E92B Nothing, check next entry E933: 6A 00 DEC $00,X Re-Adjust the Sound Command So Sound #00 will still work! E935: 8A 08 ORA #08 E937: BD EB 36 JSR $EB36 Add Points(A), Play Digit Sound Begin Control Stack Check: E93A: CE 00 CB LDX #00CB E93D: EE 00 LDX $00,X Check to see if we have a routine to do? E93F: 26 03 BNE $E944 E941: 7E E7 EB JMP $E7EB Back to the start of the main loop E944: A6 02 LDA $02,X Timer Expired? E946: 26 F5 BNE $E93D No, goto next E948: DF CF STX $00CF Yes, lets do it now E94A: DF D1 STX $00D1 Current Control Stack Routine being run E94C: A6 03 LDA $03,X E94E: 36 PSHA E94F: A6 04 LDA $04,X E951: 36 PSHA E952: A6 05 LDA $05,X E954: 36 PSHA E955: A6 06 LDA $06,X E957: 36 PSHA E958: A6 07 LDA $07,X E95A: 36 PSHA E95B: A6 08 LDA $08,X E95D: 36 PSHA E95E: A6 09 LDA $09,X E960: 36 PSHA E961: A6 0A LDA $0A,X E963: 36 PSHA E964: A6 0C LDA $0C,X E966: 36 PSHA E967: A6 0B LDA $0B,X E969: 36 PSHA E96A: A6 0E LDA $0E,X E96C: E6 0F LDB $0F,X E96E: EE 10 LDX $10,X E970: 39 RTS Jump to the offending Thread! ----------------- Begin Control Stack Routines ------------------------ E971: 97 BA STA $00BA E973: DF B8 STX $00B8 E975: 96 D5 LDA $00D5 E977: 30 TSX E978: EE 00 LDX $00,X E97A: 20 0A BRA $E986 Push Following Routine onto Control Stack with Timer: E97C: DF B8 STX $00B8 E97E: 97 BA STA $00BA E980: 30 TSX E981: EE 00 LDX $00,X Return Address from RTS to $E97C E983: A6 00 LDA $00,X New Timer Value E985: 08 INX E986: DF BC STX $00BC Now X Points to the replacement address E988: DE CF LDX $00CF Current Control Stack Routine being run E98A: A7 02 STA $02,X Timer for next Time E98C: 96 BC LDA $00BC E98E: A7 0B STA $0B,X E990: 96 BD LDA $00BD E992: A7 0C STA $0C,X E994: E7 0F STB $0F,X E996: 96 BA LDA $00BA E998: A7 0E STA $0E,X E99A: 96 B8 LDA $00B8 E99C: A7 10 STA $10,X E99E: 96 B9 LDA $00B9 E9A0: A7 11 STA $11,X E9A2: 31 INS E9A3: 31 INS E9A4: 32 PULA E9A5: A7 0A STA $0A,X E9A7: 32 PULA E9A8: A7 09 STA $09,X E9AA: 32 PULA E9AB: A7 08 STA $08,X E9AD: 32 PULA E9AE: A7 07 STA $07,X E9B0: 32 PULA E9B1: A7 06 STA $06,X E9B3: 32 PULA E9B4: A7 05 STA $05,X E9B6: 32 PULA E9B7: A7 04 STA $04,X E9B9: 32 PULA E9BA: A7 03 STA $03,X E9BC: DE CF LDX $00CF E9BE: 8E 13 F7 LDS #13F7 Restore the Stack E9C1: 7E E9 3D JMP $E93D Check the control stack for another thread Remove Current Thread from Control Stack: E9C4: CE 00 CB LDX #00CB E9C7: DF BA STX $00BA E9C9: EE 00 LDX $00,X E9CB: 26 03 BNE $E9D0 E9CD: 7E E9 3A JMP $E93A Nothing on Control Stack E9D0: 9C CF CPX $00CF Current Control Stack Being Run E9D2: 26 F3 BNE $E9C7 of $CF != *$00CB check next entry E9D4: 8D 56 BSR $EA2C Remove Entry (X)($B1) From Control Stack E9D6: 20 E6 BRA $E9BE Push Control Stack: Data in A,B,X,$AA,$A6,$A7: E9D8: DF B8 STX $00B8 E9DA: 0D SEC E9DB: DE CD LDX $00CD E9DD: 27 44 BEQ $EA23 E9DF: 36 PSHA E9E0: A6 00 LDA $00,X E9E2: 97 CD STA $00CD E9E4: A6 01 LDA $01,X E9E6: 97 CE STA $00CE E9E8: DF BA STX $00BA E9EA: DE D1 LDX $00D1 E9EC: A6 00 LDA $00,X E9EE: 97 BC STA $00BC E9F0: A6 01 LDA $01,X E9F2: 97 BD STA $00BD E9F4: 96 BA LDA $00BA E9F6: A7 00 STA $00,X E9F8: 96 BB LDA $00BB E9FA: A7 01 STA $01,X E9FC: EE 00 LDX $00,X E9FE: DF D1 STX $00D1 EA00: 96 BC LDA $00BC EA02: A7 00 STA $00,X EA04: 96 BD LDA $00BD EA06: A7 01 STA $01,X EA08: 96 B8 LDA $00B8 EA0A: A7 0B STA $0B,X EA0C: 96 B9 LDA $00B9 EA0E: A7 0C STA $0C,X EA10: 96 C8 LDA $00C8 EA12: A7 0D STA $0D,X EA14: 96 C4 LDA $00C4 EA16: A7 10 STA $10,X EA18: 96 C5 LDA $00C5 EA1A: A7 11 STA $11,X EA1C: 32 PULA EA1D: A7 0E STA $0E,X EA1F: E7 0F STB $0F,X EA21: 6F 02 CLR $02,X EA23: 39 RTS Push Control Stack: Data in A,B,X,$A6,$A7,$AA=#06: EA24: 36 PSHA EA25: 86 06 LDA #06 EA27: 97 C8 STA $00C8 EA29: 32 PULA EA2A: 20 AC BRA $E9D8 Push Control Stack: Data in A,B,X,$AA,$A6,$A7 Remove Entry (X)($B1) From Control Stack: EA2C: 36 PSHA EA2D: A6 00 LDA $00,X \ EA2F: 97 B8 STA $00B8 |-- Get 'next' EA31: A6 01 LDA $01,X | EA33: 97 B9 STA $00B9 / EA35: 96 CD LDA $00CD EA37: A7 00 STA $00,X EA39: 96 CE LDA $00CE EA3B: A7 01 STA $01,X EA3D: DF CD STX $00CD EA3F: 9C D1 CPX $00D1 EA41: 26 04 BNE $EA47 EA43: DE CF LDX $00CF Current control Stack Routine Being Run EA45: DF D1 STX $00D1 EA47: DE BA LDX $00BA EA49: 96 B8 LDA $00B8 EA4B: A7 00 STA $00,X EA4D: 96 B9 LDA $00B9 EA4F: A7 01 STA $01,X EA51: 32 PULA EA52: 39 RTS EA53: 8D 0B BSR $EA60 EA55: 25 03 BCS $EA5A EA57: 8D D3 BSR $EA2C Remove Entry (X)($B1) From Control Stack EA59: 0C CLC EA5A: 39 RTS EA5B: 8D F6 BSR $EA53 EA5D: 24 FC BCC $EA5B EA5F: 39 RTS EA60: 37 PSHB EA61: D7 B8 STB $00B8 EA63: CE 00 CB LDX #00CB EA66: DF BA STX $00BA EA68: DE CB LDX $00CB EA6A: 0D SEC EA6B: 27 14 BEQ $EA81 EA6D: 16 TAB EA6E: E8 0D EORB $0D,X EA70: 53 COMB EA71: D4 B8 ANDB $00B8 EA73: D1 B8 CMPB $00B8 EA75: 27 06 BEQ $EA7D EA77: DF BA STX $00BA EA79: EE 00 LDX $00,X EA7B: 20 ED BRA $EA6A EA7D: 9C CF CPX $00CF EA7F: 27 F6 BEQ $EA77 EA81: 33 PULB EA82: 39 RTS EA83: 36 PSHA EA84: 37 PSHB EA85: DF B8 STX $00B8 EA87: DE B6 LDX $00B6 EA89: 8C 11 18 CMPX #11 EA8C: 27 11 BEQ $EA9F EA8E: 0D SEC EA8F: 8C 11 28 CMPX #11 EA92: 27 06 BEQ $EA9A EA94: A7 00 STA $00,X EA96: 08 INX EA97: DF B6 STX $00B6 EA99: 0C CLC EA9A: 33 PULB EA9B: 32 PULA EA9C: DE B8 LDX $00B8 EA9E: 39 RTS EA9F: D6 B2 LDB $00B2 EAA1: 26 F1 BNE $EA94 EAA3: 8D 02 BSR $EAA7 EAA5: 20 F2 BRA $EA99 Turn On/Off Solenoid (Solenoid # in A): EAA7: 37 PSHB EAA8: 16 TAB EAA9: C4 F0 ANDB #F0 EAAB: 27 1A BEQ $EAC7 EAAD: C1 F0 CMPB #F0 EAAF: 27 0A BEQ $EABB EAB1: D7 B2 STB $00B2 EAB3: 8D 1C BSR $EAD1 EAB5: DF AF STX $00AF EAB7: D7 B1 STB $00B1 EAB9: 20 02 BRA $EABD EABB: 8D 14 BSR $EAD1 EABD: 25 0C BCS $EACB EABF: 0F SEI EAC0: EA 00 ORB $00,X EAC2: E7 00 STB $00,X EAC4: 0E CLI EAC5: 33 PULB EAC6: 39 RTS EAC7: 8D 08 BSR $EAD1 EAC9: 25 F4 BCS $EABF EACB: 53 COMB EACC: 0F SEI EACD: E4 00 ANDB $00,X EACF: 20 F1 BRA $EAC2 EAD1: 84 0F ANDA #0F EAD3: CE 22 02 LDX #SOLENOID_PIA4_DATA_B EAD6: 81 07 CMPA #07 EAD8: 2F 0B BLE $EAE5 Convert Hex(A&07) into Bitpos(B) EADA: 08 INX EADB: C6 08 LDB #08 EADD: 11 CBA EADE: 26 04 BNE $EAE4 EAE0: CE 22 01 LDX #SOLENOID_PIA4_CRTL_A EAE3: 0D SEC EAE4: 39 RTS EAE5: 36 PSHA EAE6: 84 07 ANDA #07 EAE8: 5F CLRB EAE9: 0D SEC EAEA: 59 ROLB EAEB: 4A DECA EAEC: 2A FC BPL $EAEA EAEE: 32 PULA EAEF: 39 RTS EAF0: 40 NEGA EAF1: 04 -------------------- EAF2: 80 08 SUBA #08 EAF4: 10 SBA EAF5: 01 NOP EAF6: 20 02 BRA $EAFA EAF8: C6 40 LDB #40 EAFA: 8D 2B BSR $EB27 EAFC: 26 0C BNE $EB0A EAFE: DE EC LDX $00EC EB00: E6 00 LDB $00,X EB02: 5C INCB EB03: 27 05 BEQ $EB0A EB05: CE EA F0 LDX #EAF0 EB08: 8D 11 BSR $EB1B EB0A: C6 08 LDB #08 EB0C: 8D 19 BSR $EB27 EB0E: 26 16 BNE $EB26 EB10: DE EC LDX $00EC EB12: E6 02 LDB $02,X EB14: C1 F0 CMPB #F0 EB16: 24 0E BCC $EB26 EB18: CE EA F4 LDX #EAF4 EB1B: 96 EB LDA $00EB EB1D: BD EE 3E JSR $EE3E ( X = X + A) EB20: A6 00 LDA $00,X EB22: 9A 7C ORA $007C EB24: 97 7C STA $007C EB26: 39 RTS EB27: 96 EB LDA $00EB EB29: CE 00 78 LDX #0078 EB2C: BD EE 3E JSR $EE3E ( X = X + A) EB2F: E5 00 BITB $00,X EB31: 39 RTS EB32: 36 PSHA EB33: 17 TBA EB34: 20 03 BRA $EB39 Add Points(A), Play Digit Sound: EB36: 36 PSHA EB37: 84 07 ANDA #07 EB39: BD EC 3B JSR $EC3B EB3C: 32 PULA EB3D: 36 PSHA EB3E: 37 PSHB EB3F: 7A 00 F5 DEC $00F5 EB42: DF F6 STX $00F6 EB44: BD D0 B4 JSR $D0B4 EB47: D6 E8 LDB $00E8 EB49: 26 03 BNE $EB4E EB4B: 73 00 E8 COM $00E8 EB4E: 8D 0A BSR $EB5A EB50: 8D A6 BSR $EAF8 EB52: BD EB E9 JSR $EBE9 EB55: DE F6 LDX $00F6 EB57: 33 PULB EB58: 32 PULA EB59: 39 RTS EB5A: DE EC LDX $00EC EB5C: EE 00 LDX $00,X EB5E: DF FC STX $00FC EB60: DE EC LDX $00EC EB62: C6 04 LDB #04 EB64: D7 F4 STB $00F4 EB66: D7 BE STB $00BE EB68: 97 C0 STA $00C0 EB6A: 5F CLRB EB6B: D7 C1 STB $00C1 EB6D: D7 BF STB $00BF EB6F: 16 TAB EB70: C4 07 ANDB #07 EB72: 26 27 BNE $EB9B EB74: 5C INCB EB75: D7 BC STB $00BC EB77: D6 C0 LDB $00C0 EB79: 54 LSRB EB7A: 54 LSRB EB7B: 54 LSRB EB7C: 8D 45 BSR $EBC3 EB7E: 9B BC ADDA $00BC EB80: 8D 3A BSR $EBBC EB82: 5A DECB EB83: 26 F9 BNE $EB7E EB85: D6 BF LDB $00BF EB87: 27 26 BEQ $EBAF EB89: A7 03 STA $03,X EB8B: 09 DEX EB8C: 7A 00 BE DEC $00BE EB8F: 27 2A BEQ $EBBB EB91: 8D 30 BSR $EBC3 EB93: 7F 00 BF CLR $00BF EB96: 1B ABA EB97: 8D 23 BSR $EBBC EB99: 20 EA BRA $EB85 EB9B: 5A DECB EB9C: 26 06 BNE $EBA4 EB9E: C6 10 LDB #10 EBA0: D7 BC STB $00BC EBA2: 20 D3 BRA $EB77 EBA4: 8D 1D BSR $EBC3 EBA6: A7 03 STA $03,X EBA8: 7A 00 BE DEC $00BE EBAB: 09 DEX EBAC: 5A DECB EBAD: 20 C3 BRA $EB72 EBAF: D6 C1 LDB $00C1 EBB1: 27 06 BEQ $EBB9 EBB3: 81 10 CMPA #10 EBB5: 24 02 BCC $EBB9 EBB7: 8B F0 ADDA #F0 EBB9: A7 03 STA $03,X EBBB: 39 RTS EBBC: 19 DAA EBBD: 24 03 BCC $EBC2 EBBF: 7C 00 BF INC $00BF EBC2: 39 RTS EBC3: A6 03 LDA $03,X EBC5: 4C INCA EBC6: 27 07 BEQ $EBCF EBC8: 4A DECA EBC9: 81 F0 CMPA #F0 EBCB: 25 05 BCS $EBD2 EBCD: 8B 10 ADDA #10 EBCF: 7C 00 C1 INC $00C1 EBD2: 39 RTS EBD3: 36 PSHA EBD4: 37 PSHB EBD5: 16 TAB EBD6: C4 07 ANDB #07 EBD8: CE 11 30 LDX #1130 EBDB: 09 DEX EBDC: 5A DECB EBDD: 2A FC BPL $EBDB EBDF: 44 LSRA EBE0: 44 LSRA EBE1: 44 LSRA EBE2: AB 00 ADDA $00,X EBE4: A7 00 STA $00,X EBE6: 33 PULB EBE7: 32 PULA EBE8: 39 RTS EBE9: CE 00 FC LDX #00FC EBEC: 8D 31 BSR $EC1F EBEE: D7 FC STB $00FC EBF0: DE EC LDX $00EC EBF2: 8D 2B BSR $EC1F EBF4: 01 NOP EBF5: 01 NOP EBF6: 01 NOP EBF7: 01 NOP EBF8: BD FA F1 JSR $FAF1 EBFB: BD EE 92 JSR $EE92 ( CMOS,X++ -> A) EBFE: 11 CBA EBFF: 22 18 BHI $EC19 EC01: 91 FC CMPA $00FC EC03: 23 14 BLS $EC19 EC05: DF C8 STX $00C8 EC07: 01 NOP EC08: 01 NOP EC09: 01 NOP EC0A: 01 NOP EC0B: 01 NOP EC0C: 01 NOP EC0D: CE 01 52 LDX #0152 EC10: 01 NOP EC11: BD F7 E7 JSR $F7E7 Add 1 to data in X EC14: DE C8 LDX $00C8 EC16: BD F7 4C JSR $F74C EC19: 01 NOP EC1A: 01 NOP EC1B: 01 NOP EC1C: 01 NOP EC1D: 01 NOP EC1E: 39 RTS EC1F: A6 00 LDA $00,X EC21: 84 0F ANDA #0F EC23: E6 01 LDB $01,X EC25: 8D 04 BSR $EC2B EC27: 8D 09 BSR $EC32 EC29: 1B ABA EC2A: 16 TAB EC2B: C1 A0 CMPB #A0 EC2D: 25 02 BCS $EC31 EC2F: CB 10 ADDB #10 EC31: 39 RTS EC32: 48 ASLA EC33: 48 ASLA EC34: 48 ASLA EC35: 48 ASLA EC36: 54 LSRB EC37: 54 LSRB EC38: 54 LSRB EC39: 54 LSRB EC3A: 39 RTS EC3B: 37 PSHB EC3C: C6 01 LDB #01 EC3E: 8D 02 BSR $EC42 EC40: 33 PULB EC41: 39 RTS EC42: DF C8 STX $00C8 EC44: 36 PSHA EC45: 37 PSHB EC46: D6 DF LDB $00DF EC48: 27 1C BEQ $EC66 EC4A: 16 TAB EC4B: 48 ASLA EC4C: 1B ABA EC4D: FE D0 53 LDX $D053 EC50: BD EE 3E JSR $EE3E ( X = X + A) EC53: A6 02 LDA $02,X EC55: 4C INCA EC56: 26 02 BNE $EC5A EC58: EE 00 LDX $00,X EC5A: A6 00 LDA $00,X EC5C: D6 D8 LDB $00D8 Get Sound Flags/SC2 EC5E: C5 40 BITB #40 EC60: 26 08 BNE $EC6A EC62: 8D 1D BSR $EC81 EC64: 25 04 BCS $EC6A EC66: 33 PULB EC67: 32 PULA EC68: 20 2A BRA $EC94 EC6A: 4D TSTA EC6B: 2A 6B BPL $ECD8 EC6D: D6 E4 LDB $00E4 EC6F: 27 06 BEQ $EC77 EC71: D6 E3 LDB $00E3 EC73: 8D 0C BSR $EC81 EC75: 25 61 BCS $ECD8 EC77: 97 E3 STA $00E3 EC79: 33 PULB EC7A: 32 PULA EC7B: 97 E5 STA $00E5 EC7D: D7 E4 STB $00E4 EC7F: 20 59 BRA $ECDA EC81: 36 PSHA EC82: 37 PSHB EC83: 84 0F ANDA #0F EC85: C4 0F ANDB #0F EC87: 11 CBA EC88: 33 PULB EC89: 32 PULA EC8A: 26 05 BNE $EC91 EC8C: C5 20 BITB #20 EC8E: 26 01 BNE $EC91 EC90: 0D SEC EC91: 39 RTS Play Sound Index(A),(B)Times: EC92: DF C8 STX $00C8 EC94: 36 PSHA EC95: 37 PSHB EC96: D7 D6 STB $00D6 EC98: 16 TAB EC99: 86 7F LDA #7F EC9B: 8D 42 BSR $ECDF EC9D: 17 TBA EC9E: 97 E0 STA $00E0 ECA0: 48 ASLA ECA1: 1B ABA ECA2: FE D0 53 LDX $D053 ECA5: BD EE 3E JSR $EE3E ( X = X + A) ECA8: A6 02 LDA $02,X ECAA: 81 FF CMPA #FF ECAC: 27 19 BEQ $ECC7 ECAE: E6 00 LDB $00,X ECB0: C4 7F ANDB #7F ECB2: D7 D8 STB $00D8 Set Sound Flags/SC2 ECB4: E6 01 LDB $01,X ECB6: D7 DC STB $00DC ECB8: 7F 00 DB CLR $00DB ECBB: DE DB LDX $00DB ECBD: DF DD STX $00DD ECBF: C6 40 LDB #40 ECC1: D7 DF STB $00DF ECC3: 8D 18 BSR $ECDD A -> $D7 Send A-> Sound Command ECC5: 20 11 BRA $ECD8 ECC7: EE 00 LDX $00,X ECC9: C6 80 LDB #80 ECCB: D7 DF STB $00DF ECCD: EA 00 ORB $00,X ECCF: D7 D8 STB $00D8 Set Sound Flags/SC2 ECD1: 08 INX ECD2: DF DD STX $00DD ECD4: DF D9 STX $00D9 ECD6: 8D 0E BSR $ECE6 ECD8: 33 PULB ECD9: 32 PULA ECDA: DE C8 LDX $00C8 ECDC: 39 RTS A -> $D7 Send A-> Sound Command: ECDD: 97 D7 STA $00D7 Send A->Sound Board: ECDF: BD D0 B2 JSR $D0B2 ECE2: B7 21 00 STA SOUND_PIA5_DATA_A ECE5: 39 RTS ECE6: DE D9 LDX $00D9 ECE8: A6 00 LDA $00,X ECEA: 16 TAB ECEB: C4 C0 ANDB #C0 ECED: 27 21 BEQ $ED10 ECEF: 2B 12 BMI $ED03 ECF1: 84 3F ANDA #3F ECF3: 97 E1 STA $00E1 ECF5: 08 INX ECF6: A6 00 LDA $00,X ECF8: 97 E2 STA $00E2 ECFA: 96 D8 LDA $00D8 Get Sound Flags/SC2 ECFC: 84 EF ANDA #EF ECFE: 97 D8 STA $00D8 Set Sound Flags/SC2 ED00: 08 INX ED01: 20 E5 BRA $ECE8 ED03: 7F 00 E1 CLR $00E1 ED06: 84 7F ANDA #7F ED08: 26 EE BNE $ECF8 ED0A: 96 D8 LDA $00D8 Get Sound Flags/SC2 ED0C: 8A 10 ORA #10 ED0E: 20 EE BRA $ECFE ED10: 8D CB BSR $ECDD A -> $D7 Send A-> Sound Command ED12: 08 INX ED13: DF D9 STX $00D9 ED15: A6 00 LDA $00,X ED17: 81 3F CMPA #3F ED19: 26 06 BNE $ED21 ED1B: 96 D8 LDA $00D8 Get Sound Flags/SC2 ED1D: 84 7F ANDA #7F ED1F: 97 D8 STA $00D8 Set Sound Flags/SC2 ED21: DE E1 LDX $00E1 ED23: DF DB STX $00DB ED25: 39 RTS ED26: 36 PSHA ED27: B6 D0 4D LDA $D04D ED2A: 91 C3 CMPA $00C3 ED2C: 23 12 BLS $ED40 ED2E: C5 40 BITB #40 ED30: 26 05 BNE $ED37 ED32: 7D 00 E6 TST $00E6 ED35: 26 09 BNE $ED40 ED37: C5 20 BITB #20 ED39: 26 06 BNE $ED41 ED3B: 7D 00 E7 TST $00E7 ED3E: 27 01 BEQ $ED41 ED40: 0D SEC ED41: 32 PULA ED42: 39 RTS Switch Triggered: ED43: BD EE 36 JSR $EE36 ED46: E6 00 LDB $00,X ED48: 96 C2 LDA $00C2 ED4A: 95 C0 BITA $00C0 ED4C: 27 06 BEQ $ED54 ED4E: C5 08 BITB #08 ED50: 27 2D BEQ $ED7F ED52: 20 04 BRA $ED58 ED54: C5 10 BITB #10 ED56: 27 27 BEQ $ED7F ED58: 8D CC BSR $ED26 ED5A: 25 23 BCS $ED7F ED5C: 4F CLRA ED5D: C5 40 BITB #40 ED5F: 27 02 BEQ $ED63 ED61: 8A 04 ORA #04 ED63: 97 C8 STA $00C8 ED65: 96 C3 LDA $00C3 ED67: EE 01 LDX $01,X ED69: C5 07 BITB #07 ED6B: 26 02 BNE $ED6F ED6D: EE 02 LDX $02,X ED6F: 5D TSTB ED70: 2A 05 BPL $ED77 ED72: DF C4 STX $00C4 ED74: CE F4 52 LDX #F452 ED77: BD D0 B0 JSR $D0B0 ED7A: BD E9 D8 JSR $E9D8 Push Control Stack: Data in A,B,X,$AA,$A6,$A7 ED7D: 25 69 BCS $EDE8 ED7F: DE BE LDX $00BE ED81: 96 C0 LDA $00C0 ED83: A8 7D EORA $7D,X ED85: A7 7D STA $7D,X ED87: DE BE LDX $00BE ED89: D6 C0 LDB $00C0 ED8B: 53 COMB ED8C: 17 TBA ED8D: E4 85 ANDB $85,X ED8F: E7 85 STB $85,X ED91: 16 TAB ED92: E4 8D ANDB $8D,X ED94: E7 8D STB $8D,X ED96: 16 TAB ED97: A4 95 ANDA $95,X ED99: A7 95 STA $95,X ED9B: E4 9D ANDB $9D,X ED9D: E7 9D STB $9D,X ED9F: 39 RTS Switch Closed long enough?: EDA0: DF BE STX $00BE EDA2: E6 7D LDB $7D,X EDA4: D7 C2 STB $00C2 EDA6: 97 C1 STA $00C1 EDA8: 8D 2D BSR $EDD7 EDAA: 25 28 BCS $EDD4 EDAC: 8D 3C BSR $EDEA EDAE: 8D 6A BSR $EE1A EDB0: 27 1D BEQ $EDCF EDB2: 9B CA ADDA $00CA Number of IRQ's since last loop EDB4: DE B4 LDX $00B4 EDB6: 8C 11 18 CMPX #11 EDB9: 27 ED BEQ $EDA8 EDBB: A7 00 STA $00,X EDBD: 96 C3 LDA $00C3 EDBF: A7 01 STA $01,X EDC1: 08 INX EDC2: 08 INX EDC3: DF B4 STX $00B4 EDC5: DE BE LDX $00BE EDC7: A6 9D LDA $9D,X EDC9: 9A C0 ORA $00C0 EDCB: A7 9D STA $9D,X EDCD: 20 D9 BRA $EDA8 EDCF: BD ED 43 JSR $ED43 Switch Triggered EDD2: 20 D4 BRA $EDA8 EDD4: DE BE LDX $00BE EDD6: 39 RTS EDD7: 4F CLRA EDD8: 0D SEC EDD9: D6 C1 LDB $00C1 EDDB: 27 0C BEQ $EDE9 EDDD: 49 ROLA EDDE: 95 C1 BITA $00C1 EDE0: 27 FB BEQ $EDDD EDE2: 97 C0 STA $00C0 EDE4: 98 C1 EORA $00C1 EDE6: 97 C1 STA $00C1 EDE8: 0C CLC EDE9: 39 RTS EDEA: 96 BF LDA $00BF EDEC: 48 ASLA EDED: 48 ASLA EDEE: 48 ASLA EDEF: D6 C0 LDB $00C0 EDF1: 56 RORB EDF2: 25 03 BCS $EDF7 EDF4: 4C INCA EDF5: 20 FA BRA $EDF1 EDF7: 97 C3 STA $00C3 EDF9: 39 RTS Switch Open long enough?: EDFA: 97 C1 STA $00C1 EDFC: DF BE STX $00BE EDFE: 8D D7 BSR $EDD7 EE00: 25 D2 BCS $EDD4 EE02: 8D E6 BSR $EDEA EE04: CE 11 00 LDX #1100 EE07: 9C B4 CPX $00B4 EE09: 27 F3 BEQ $EDFE EE0B: A1 01 CMPA $01,X EE0D: 26 07 BNE $EE16 EE0F: 8D 3D BSR $EE4E Copy Word: $B4-- Data,$B4 -> Data,X EE11: BD ED 87 JSR $ED87 EE14: 20 E8 BRA $EDFE EE16: 08 INX EE17: 08 INX EE18: 20 ED BRA $EE07 EE1A: 8D 1A BSR $EE36 EE1C: A6 00 LDA $00,X EE1E: 84 07 ANDA #07 EE20: 27 08 BEQ $EE2A EE22: 48 ASLA EE23: CE D0 64 LDX #D064 EE26: 8D 16 BSR $EE3E ( X = X + A) EE28: 20 02 BRA $EE2C EE2A: EE 01 LDX $01,X EE2C: 96 C2 LDA $00C2 EE2E: 94 C0 ANDA $00C0 EE30: 27 01 BEQ $EE33 EE32: 08 INX EE33: A6 00 LDA $00,X EE35: 39 RTS EE36: 96 C3 LDA $00C3 EE38: 16 TAB EE39: 48 ASLA EE3A: 1B ABA EE3B: FE D0 51 LDX $D051 ( X = X + A): EE3E: 36 PSHA EE3F: DF C4 STX $00C4 EE41: 9B C5 ADDA $00C5 EE43: 97 C5 STA $00C5 EE45: 24 03 BCC $EE4A EE47: 7C 00 C4 INC $00C4 EE4A: DE C4 LDX $00C4 EE4C: 32 PULA EE4D: 39 RTS Copy Word: $B4-- Data,$B4 -> Data,X: EE4E: DF C4 STX $00C4 EE50: DE B4 LDX $00B4 EE52: 09 DEX EE53: 09 DEX EE54: DF B4 STX $00B4 EE56: A6 00 LDA $00,X EE58: E6 01 LDB $01,X EE5A: DE C4 LDX $00C4 EE5C: A7 00 STA $00,X EE5E: E7 01 STB $01,X EE60: 39 RTS Initially Set up the Control Stack EE61: F6 D0 4B LDB $D04B EE64: CE 11 9C LDX #119C EE67: DF CD STX $00CD EE69: DF BA STX $00BA EE6B: 96 BB LDA $00BB EE6D: 8B 12 ADDA #12 EE6F: A7 01 STA $01,X EE71: 86 00 LDA #00 EE73: 99 BA ADCA $00BA EE75: A7 00 STA $00,X EE77: 5A DECB EE78: 27 04 BEQ $EE7E EE7A: EE 00 LDX $00,X EE7C: 20 EB BRA $EE69 EE7E: E7 00 STB $00,X EE80: E7 01 STB $01,X EE82: D7 CB STB $00CB EE84: D7 CC STB $00CC EE86: CE 00 CB LDX #00CB EE89: DF D1 STX $00D1 EE8B: 39 RTS EE8C: 36 PSHA EE8D: 17 TBA EE8E: 8D AE BSR $EE3E ( X = X + A) EE90: 32 PULA EE91: 39 RTS ( CMOS,X++ -> A): EE92: 37 PSHB EE93: A6 00 LDA $00,X EE95: E6 01 LDB $01,X EE97: 08 INX EE98: 08 INX EE99: C4 0F ANDB #0F EE9B: 48 ASLA EE9C: 48 ASLA EE9D: 48 ASLA EE9E: 48 ASLA EE9F: 1B ABA EEA0: 33 PULB EEA1: 39 RTS ( CMOS,X++ -> B): EEA2: 36 PSHA EEA3: 8D ED BSR $EE92 ( CMOS,X++ -> A) EEA5: 16 TAB EEA6: 32 PULA EEA7: 39 RTS EEA8: 36 PSHA EEA9: 17 TBA EEAA: 8D 42 BSR $EEEE EEAC: 32 PULA EEAD: 39 RTS Zero Audits: EEAE: CE 00 66 LDX #0066 EEB1: 20 03 BRA $EEB6 EEB3: CE 01 00 LDX #0100 EEB6: 6F FF CLR $FF,X EEB8: 09 DEX EEB9: 26 FB BNE $EEB6 EEBB: 39 RTS EEBC: 8D F5 BSR $EEB3 EEBE: CE 01 7D LDX #017D EEC1: DF B8 STX $00B8 EEC3: CE D0 03 LDX #D003 EEC6: C6 18 LDB #18 EEC8: 8D 59 BSR $EF23 EECA: C6 01 LDB #01 EECC: B6 21 00 LDA SOUND_PIA5_DATA_A EECF: 2A 01 BPL $EED2 EED1: 5C INCB EED2: 8D 3B BSR $EF0F EED4: 8D 06 BSR $EEDC Restore Backup High Score EED6: CE FC C8 LDX #FCC8 EED9: 7E EA 24 JMP $EA24 Restore Backup High Score: EEDC: 4F CLRA EEDD: BD FB 7F JSR $FB7F EEE0: CE 01 81 LDX #0181 EEE3: 8D AD BSR $EE92 ( CMOS,X++ -> A) EEE5: 16 TAB EEE6: BD EC 32 JSR $EC32 EEE9: CE 01 66 LDX #0166 EEEC: 8D BA BSR $EEA8 EEEE: 36 PSHA EEEF: A7 01 STA $01,X EEF1: 44 LSRA EEF2: 44 LSRA EEF3: 44 LSRA EEF4: 44 LSRA EEF5: A7 00 STA $00,X EEF7: 08 INX EEF8: 08 INX EEF9: 32 PULA EEFA: 39 RTS EEFB: 36 PSHA EEFC: A6 00 LDA $00,X EEFE: 08 INX EEFF: DF BA STX $00BA EF01: DE B8 LDX $00B8 EF03: A7 00 STA $00,X EF05: 08 INX EF06: DF B8 STX $00B8 EF08: DE BA LDX $00BA EF0A: 5A DECB EF0B: 26 EF BNE $EEFC EF0D: 32 PULA EF0E: 39 RTS EF0F: F7 01 AE STB $01AE EF12: CE 01 AF LDX #01AF EF15: DF B8 STX $00B8 EF17: 58 ASLB EF18: 17 TBA EF19: 48 ASLA EF1A: 1B ABA EF1B: CE D0 15 LDX #D015 EF1E: BD EE 3E JSR $EE3E ( X = X + A) EF21: C6 06 LDB #06 EF23: 36 PSHA EF24: A6 00 LDA $00,X EF26: 08 INX EF27: DF BA STX $00BA EF29: DE B8 LDX $00B8 EF2B: 8D C1 BSR $EEEE EF2D: DF B8 STX $00B8 EF2F: DE BA LDX $00BA EF31: 5A DECB EF32: 26 F0 BNE $EF24 EF34: 32 PULA EF35: 39 RTS *** System IRQ Entry *** EF36: D6 A5 LDB $00A5 EF38: 7A 00 F5 DEC $00F5 EF3B: 56 RORB EF3C: 25 11 BCS $EF4F EF3E: 7C 00 A7 INC $00A7 EF41: 96 A8 LDA $00A8 EF43: 48 ASLA EF44: 26 07 BNE $EF4D EF46: 97 A7 STA $00A7 EF48: 97 A5 STA $00A5 EF4A: 97 AE STA $00AE EF4C: 4C INCA EF4D: 97 A8 STA $00A8 EF4F: DE A6 LDX $00A6 EF51: D6 A5 LDB $00A5 EF53: C4 07 ANDB #07 EF55: 26 15 BNE $EF6C EF57: 86 FF LDA #FF EF59: B7 28 02 STA DISPLAY_PIA1_DATA_B EF5C: 7F 40 00 CLR ALPHA/NUM_PIA2_DATA_A EF5F: 7F 40 02 CLR ALPHA/NUM_PIA2_DATA_B EF62: D6 A5 LDB $00A5 EF64: F7 28 00 STB DISPLAY_PIA1_DATA_A EF67: 27 19 BEQ $EF82 EF69: 7E F0 1A JMP $F01A EF6C: D7 AC STB $00AC EF6E: 5A DECB EF6F: 27 04 BEQ $EF75 EF71: C0 03 SUBB #03 EF73: 26 30 BNE $EFA5 EF75: 79 00 A9 ROL $00A9 EF78: 56 RORB EF79: 79 00 A9 ROL $00A9 EF7C: 56 RORB EF7D: FA 21 02 ORB SOUND_PIA5_DATA_B EF80: 20 28 BRA $EFAA EF82: 7C 00 B3 INC $00B3 EF85: 96 7C LDA $007C EF87: 97 A9 STA $00A9 EF89: 96 78 LDA $0078 EF8B: 97 AA STA $00AA EF8D: 96 7A LDA $007A EF8F: 97 AB STA $00AB EF91: D6 5E LDB $005E EF93: 79 00 AA ROL $00AA EF96: 24 02 BCC $EF9A EF98: D6 5F LDB $005F EF9A: 96 5C LDA $005C EF9C: 79 00 AB ROL $00AB EF9F: 24 71 BCC $F012 EFA1: 96 5D LDA $005D EFA3: 20 6D BRA $F012 EFA5: F6 21 02 LDB SOUND_PIA5_DATA_B EFA8: C4 3F ANDB #3F EFAA: F7 21 02 STB SOUND_PIA5_DATA_B EFAD: 7F 40 00 CLR ALPHA/NUM_PIA2_DATA_A EFB0: 7F 40 02 CLR ALPHA/NUM_PIA2_DATA_B EFB3: 86 FF LDA #FF EFB5: B7 28 02 STA DISPLAY_PIA1_DATA_B EFB8: 96 A5 LDA $00A5 EFBA: B7 28 00 STA DISPLAY_PIA1_DATA_A EFBD: A6 4C LDA $4C,X EFBF: 79 00 AA ROL $00AA EFC2: 24 02 BCC $EFC6 EFC4: A6 54 LDA $54,X EFC6: C6 03 LDB #03 EFC8: D1 A5 CMPB $00A5 EFCA: 2F 05 BLE $EFD1 EFCC: 79 00 AB ROL $00AB EFCF: 20 3A BRA $F00B EFD1: DE AD LDX $00AD EFD3: 7C 00 AE INC $00AE EFD6: E6 60 LDB $60,X EFD8: 79 00 AB ROL $00AB EFDB: 24 02 BCC $EFDF EFDD: E6 6C LDB $6C,X EFDF: FE D0 61 LDX $D061 EFE2: 36 PSHA EFE3: 17 TBA EFE4: C4 3F ANDB #3F EFE6: 58 ASLB EFE7: DF FE STX $00FE EFE9: DB FF ADDB $00FF EFEB: D7 FF STB $00FF EFED: 24 03 BCC $EFF2 EFEF: 7C 00 FE INC $00FE EFF2: DE FE LDX $00FE EFF4: E6 00 LDB $00,X EFF6: F7 40 00 STB ALPHA/NUM_PIA2_DATA_A EFF9: E6 01 LDB $01,X EFFB: 85 80 BITA #80 EFFD: 27 02 BEQ $F001 EFFF: CA 40 ORB #40 F001: 85 40 BITA #40 F003: 27 02 BEQ $F007 F005: CA 80 ORB #80 F007: F7 40 02 STB ALPHA/NUM_PIA2_DATA_B F00A: 32 PULA F00B: C6 FF LDB #FF F00D: 76 00 AC ROR $00AC F010: 25 22 BCS $F034 F012: 54 LSRB F013: 54 LSRB F014: 54 LSRB F015: 54 LSRB F016: 84 F0 ANDA #F0 F018: 20 20 BRA $F03A F01A: 96 79 LDA $0079 F01C: 97 AA STA $00AA F01E: 96 7B LDA $007B F020: 97 AB STA $00AB F022: D6 5E LDB $005E F024: 79 00 AA ROL $00AA F027: 24 02 BCC $F02B F029: D6 5F LDB $005F F02B: 96 5C LDA $005C F02D: 79 00 AB ROL $00AB F030: 24 02 BCC $F034 F032: 96 5D LDA $005D F034: 48 ASLA F035: 48 ASLA F036: 48 ASLA F037: 48 ASLA F038: C4 0F ANDB #0F F03A: 1B ABA F03B: B7 28 02 STA DISPLAY_PIA1_DATA_B F03E: 86 FF LDA #FF F040: D6 A5 LDB $00A5 F042: 56 RORB F043: 25 4A BCS $F08F F045: CE 24 00 LDX #LAMP_PIA3_DATA_A F048: A7 00 STA $00,X F04A: B7 22 00 STA SOLENOID_PIA4_DATA_A F04D: E6 03 LDB $03,X F04F: 6F 03 CLR $03,X F051: A7 02 STA $02,X F053: E7 03 STB $03,X F055: 96 A8 LDA $00A8 F057: A7 02 STA $02,X F059: A1 02 CMPA $02,X F05B: 26 32 BNE $F08F F05D: DE A6 LDX $00A6 F05F: A6 28 LDA $28,X F061: 16 TAB F062: 53 COMB F063: E4 10 ANDB $10,X F065: A4 34 ANDA $34,X F067: 1B ABA F068: 43 COMA F069: B7 24 00 STA LAMP_PIA3_DATA_A F06C: 96 A7 LDA $00A7 F06E: 16 TAB F06F: 44 LSRA F070: 97 A7 STA $00A7 F072: DE A6 LDX $00A6 F074: D7 A7 STB $00A7 F076: A6 30 LDA $30,X F078: 16 TAB F079: 53 COMB F07A: E4 18 ANDB $18,X F07C: A4 3C ANDA $3C,X F07E: 1B ABA F07F: 43 COMA F080: D6 A7 LDB $00A7 F082: 0C CLC F083: 56 RORB F084: 24 04 BCC $F08A F086: 44 LSRA F087: 44 LSRA F088: 44 LSRA F089: 44 LSRA F08A: 84 0F ANDA #0F F08C: B7 22 00 STA SOLENOID_PIA4_DATA_A F08F: 96 A5 LDA $00A5 F091: 4C INCA F092: 97 A5 STA $00A5 F094: 46 RORA F095: 24 03 BCC $F09A F097: 7E F1 5F JMP $F15F F09A: 86 01 LDA #01 F09C: B7 30 02 STA SWITCH_PIA2_DATA_B F09F: 96 7D LDA $007D F0A1: B8 30 00 EORA SWITCH_PIA2_DATA_A F0A4: 16 TAB F0A5: 94 85 ANDA $0085 F0A7: 9A 8D ORA $008D F0A9: 97 8D STA $008D F0AB: D7 85 STB $0085 F0AD: 53 COMB F0AE: D4 8D ANDB $008D F0B0: DA 95 ORB $0095 F0B2: D7 95 STB $0095 F0B4: 78 30 02 ASL SWITCH_PIA2_DATA_B F0B7: 96 7E LDA $007E F0B9: B8 30 00 EORA SWITCH_PIA2_DATA_A F0BC: 16 TAB F0BD: 94 86 ANDA $0086 F0BF: 9A 8E ORA $008E F0C1: 97 8E STA $008E F0C3: D7 86 STB $0086 F0C5: 53 COMB F0C6: D4 8E ANDB $008E F0C8: DA 96 ORB $0096 F0CA: D7 96 STB $0096 F0CC: 78 30 02 ASL SWITCH_PIA2_DATA_B F0CF: 96 7F LDA $007F F0D1: B8 30 00 EORA SWITCH_PIA2_DATA_A F0D4: 16 TAB F0D5: 94 87 ANDA $0087 F0D7: 9A 8F ORA $008F F0D9: 97 8F STA $008F F0DB: D7 87 STB $0087 F0DD: 53 COMB F0DE: D4 8F ANDB $008F F0E0: DA 97 ORB $0097 F0E2: D7 97 STB $0097 F0E4: 78 30 02 ASL SWITCH_PIA2_DATA_B F0E7: 96 80 LDA $0080 F0E9: B8 30 00 EORA SWITCH_PIA2_DATA_A F0EC: 16 TAB F0ED: 94 88 ANDA $0088 F0EF: 9A 90 ORA $0090 F0F1: 97 90 STA $0090 F0F3: D7 88 STB $0088 F0F5: 53 COMB F0F6: D4 90 ANDB $0090 F0F8: DA 98 ORB $0098 F0FA: D7 98 STB $0098 F0FC: 78 30 02 ASL SWITCH_PIA2_DATA_B F0FF: 96 81 LDA $0081 F101: B8 30 00 EORA SWITCH_PIA2_DATA_A F104: 16 TAB F105: 94 89 ANDA $0089 F107: 9A 91 ORA $0091 F109: 97 91 STA $0091 F10B: D7 89 STB $0089 F10D: 53 COMB F10E: D4 91 ANDB $0091 F110: DA 99 ORB $0099 F112: D7 99 STB $0099 F114: 78 30 02 ASL SWITCH_PIA2_DATA_B F117: 96 82 LDA $0082 F119: B8 30 00 EORA SWITCH_PIA2_DATA_A F11C: 16 TAB F11D: 94 8A ANDA $008A F11F: 9A 92 ORA $0092 F121: 97 92 STA $0092 F123: D7 8A STB $008A F125: 53 COMB F126: D4 92 ANDB $0092 F128: DA 9A ORB $009A F12A: D7 9A STB $009A F12C: 78 30 02 ASL SWITCH_PIA2_DATA_B F12F: 96 83 LDA $0083 F131: B8 30 00 EORA SWITCH_PIA2_DATA_A F134: 16 TAB F135: 94 8B ANDA $008B F137: 9A 93 ORA $0093 F139: 97 93 STA $0093 F13B: D7 8B STB $008B F13D: 53 COMB F13E: D4 93 ANDB $0093 F140: DA 9B ORB $009B F142: D7 9B STB $009B F144: 78 30 02 ASL SWITCH_PIA2_DATA_B F147: 96 84 LDA $0084 F149: B8 30 00 EORA SWITCH_PIA2_DATA_A F14C: 16 TAB F14D: 94 8C ANDA $008C F14F: 9A 94 ORA $0094 F151: 97 94 STA $0094 F153: D7 8C STB $008C F155: 53 COMB F156: D4 94 ANDB $0094 F158: DA 9C ORB $009C F15A: D7 9C STB $009C F15C: 78 30 02 ASL SWITCH_PIA2_DATA_B F15F: 96 B2 LDA $00B2 F161: 27 0D BEQ $F170 F163: 7A 00 B2 DEC $00B2 F166: 26 08 BNE $F170 F168: DE AF LDX $00AF F16A: A6 00 LDA $00,X F16C: 98 B1 EORA $00B1 F16E: A7 00 STA $00,X F170: 3B RTI *** End IRQ *** F171: 7F 3E C0 CLR $3EC0 F174: 3E -------------------- F175: FF 3C FF STX $3CFF F178: 34 DES F179: FF 3C FF STX $3CFF F17C: 3C -------------------- F17D: FF 3C FF STX $3CFF F180: 3C -------------------- F181: 00 -------------------- F182: 3C -------------------- F183: FF 3C FF STX $3CFF F186: 3C -------------------- F187: FF 3C 00 STX $3C00 F18A: 10 SBA F18B: 00 -------------------- F18C: 1C -------------------- F18D: 00 -------------------- F18E: 34 DES F18F: 00 -------------------- F190: 28 DF BVC $F171 F192: BC CE 00 CPX $CE00 F195: 10 SBA F196: 37 PSHB F197: 8D 79 BSR $F212 F199: 37 PSHB F19A: EA 00 ORB $00,X F19C: E7 00 STB $00,X F19E: DF BA STX $00BA F1A0: D6 BB LDB $00BB F1A2: C1 1C CMPB #1C F1A4: 33 PULB F1A5: 24 05 BCC $F1AC F1A7: 53 COMB F1A8: E4 30 ANDB $30,X F1AA: E7 30 STB $30,X F1AC: 33 PULB F1AD: DE BC LDX $00BC F1AF: 39 RTS F1B0: DF BC STX $00BC F1B2: CE 00 10 LDX #0010 F1B5: 37 PSHB F1B6: 8D 5A BSR $F212 F1B8: 37 PSHB F1B9: 53 COMB F1BA: E4 00 ANDB $00,X F1BC: 20 DE BRA $F19C F1BE: DF BC STX $00BC F1C0: CE 00 40 LDX #0040 F1C3: 20 D1 BRA $F196 F1C5: DF BC STX $00BC F1C7: CE 00 10 LDX #0010 F1CA: 37 PSHB F1CB: 8D 45 BSR $F212 F1CD: E8 00 EORB $00,X F1CF: E7 00 STB $00,X F1D1: 20 D9 BRA $F1AC F1D3: DF BC STX $00BC F1D5: CE 00 28 LDX #0028 F1D8: 20 BC BRA $F196 F1DA: DF BC STX $00BC F1DC: CE 00 28 LDX #0028 F1DF: 20 D4 BRA $F1B5 F1E1: DF BC STX $00BC F1E3: CE 00 28 LDX #0028 F1E6: 20 E2 BRA $F1CA F1E8: DF BC STX $00BC F1EA: CE 00 34 LDX #0034 F1ED: 20 A7 BRA $F196 F1EF: DF BC STX $00BC F1F1: CE 00 34 LDX #0034 F1F4: 20 BF BRA $F1B5 F1F6: DF BC STX $00BC F1F8: CE 00 34 LDX #0034 F1FB: 20 CD BRA $F1CA F1FD: DF BC STX $00BC F1FF: CE 00 1C LDX #001C F202: 20 92 BRA $F196 F204: DF BC STX $00BC F206: CE 00 1C LDX #001C F209: 20 AA BRA $F1B5 F20B: DF BC STX $00BC F20D: CE 00 1C LDX #001C F210: 20 B8 BRA $F1CA F212: 36 PSHA F213: 44 LSRA F214: 44 LSRA F215: 44 LSRA F216: BD EE 3E JSR $EE3E ( X = X + A) F219: 32 PULA F21A: 7E EA E5 JMP $EAE5 Convert Hex(A&07) into Bitpos(B) F21D: 8D 71 BSR $F290 F21F: 17 TBA F220: 43 COMA F221: A4 00 ANDA $00,X F223: 8D 07 BSR $F22C F225: BD F2 CB JSR $F2CB F228: 24 F5 BCC $F21F F22A: 20 5D BRA $F289 F22C: A7 00 STA $00,X F22E: DF BA STX $00BA F230: 96 BB LDA $00BB F232: 81 1C CMPA #1C F234: 24 06 BCC $F23C F236: 17 TBA F237: 43 COMA F238: A4 30 ANDA $30,X F23A: A7 30 STA $30,X F23C: 39 RTS F23D: 8D 51 BSR $F290 F23F: 17 TBA F240: A8 00 EORA $00,X F242: A7 00 STA $00,X F244: BD F2 CB JSR $F2CB F247: 24 F6 BCC $F23F F249: 20 3E BRA $F289 F24B: 8D 4F BSR $F29C F24D: 26 3A BNE $F289 F24F: BD F2 DA JSR $F2DA F252: 25 08 BCS $F25C F254: 27 F9 BEQ $F24F F256: 17 TBA F257: 43 COMA F258: A4 00 ANDA $00,X F25A: A7 00 STA $00,X F25C: 8D 6D BSR $F2CB F25E: EA 00 ORB $00,X F260: E7 00 STB $00,X F262: 20 25 BRA $F289 F264: 8D 2A BSR $F290 F266: 27 F6 BEQ $F25E F268: 8D 61 BSR $F2CB F26A: 25 1D BCS $F289 F26C: 20 F8 BRA $F266 F26E: 8D 20 BSR $F290 F270: 27 EC BEQ $F25E F272: 8D 57 BSR $F2CB F274: 24 FA BCC $F270 F276: DE BC LDX $00BC F278: 96 BE LDA $00BE F27A: D6 BF LDB $00BF F27C: 20 9F BRA $F21D F27E: 8D 10 BSR $F290 F280: 17 TBA F281: AA 00 ORA $00,X F283: 8D A7 BSR $F22C F285: 8D 44 BSR $F2CB F287: 24 F7 BCC $F280 F289: 96 BE LDA $00BE F28B: D6 BF LDB $00BF F28D: DE BC LDX $00BC F28F: 39 RTS F290: BD F2 A2 JSR $F2A2 F293: 96 C0 LDA $00C0 F295: BD F2 12 JSR $F212 F298: 17 TBA F299: A4 00 ANDA $00,X F29B: 39 RTS F29C: 8D 04 BSR $F2A2 F29E: 96 C1 LDA $00C1 F2A0: 20 F3 BRA $F295 F2A2: DF BC STX $00BC F2A4: 97 BE STA $00BE F2A6: D7 BF STB $00BF F2A8: FE D0 4F LDX $D04F F2AB: 16 TAB F2AC: 58 ASLB F2AD: C4 7F ANDB #7F F2AF: BD EE 8C JSR $EE8C F2B2: EE 00 LDX $00,X F2B4: DF C0 STX $00C0 F2B6: CE F1 89 LDX #F189 F2B9: 49 ROLA F2BA: 49 ROLA F2BB: 49 ROLA F2BC: 48 ASLA F2BD: 84 07 ANDA #07 F2BF: BD EE 3E JSR $EE3E ( X = X + A) F2C2: EE 00 LDX $00,X F2C4: D6 C1 LDB $00C1 F2C6: D0 C0 SUBB $00C0 F2C8: D7 B8 STB $00B8 F2CA: 39 RTS F2CB: 58 ASLB F2CC: 24 02 BCC $F2D0 F2CE: 59 ROLB F2CF: 08 INX F2D0: 96 B8 LDA $00B8 F2D2: 80 01 SUBA #01 F2D4: 97 B8 STA $00B8 F2D6: 17 TBA F2D7: A4 00 ANDA $00,X F2D9: 39 RTS F2DA: 54 LSRB F2DB: 24 F3 BCC $F2D0 F2DD: 56 RORB F2DE: 09 DEX F2DF: 20 EF BRA $F2D0 F2E1: 8D B9 BSR $F29C F2E3: 26 06 BNE $F2EB F2E5: 8D F3 BSR $F2DA F2E7: 24 FA BCC $F2E3 F2E9: 20 9E BRA $F289 F2EB: 53 COMB F2EC: E4 00 ANDB $00,X F2EE: E7 00 STB $00,X F2F0: 20 97 BRA $F289 F2F2: 8D 9C BSR $F290 F2F4: DF BA STX $00BA F2F6: D7 B9 STB $00B9 F2F8: 97 C2 STA $00C2 F2FA: 8D CF BSR $F2CB F2FC: 25 04 BCS $F302 F2FE: 8D 1A BSR $F31A F300: 20 F6 BRA $F2F8 F302: DE BA LDX $00BA F304: D6 B9 LDB $00B9 F306: 8D 12 BSR $F31A F308: 20 38 BRA $F342 F30A: 8D 90 BSR $F29C F30C: DF BA STX $00BA F30E: D7 B9 STB $00B9 F310: 97 C2 STA $00C2 F312: 8D C6 BSR $F2DA F314: 25 EC BCS $F302 F316: 8D 02 BSR $F31A F318: 20 F6 BRA $F310 F31A: 36 PSHA F31B: 17 TBA F31C: 43 COMA F31D: A4 00 ANDA $00,X F31F: 7D 00 C2 TST $00C2 F322: 27 01 BEQ $F325 F324: 1B ABA F325: A7 00 STA $00,X F327: 32 PULA F328: 39 RTS F329: BD F2 9C JSR $F29C F32C: 26 06 BNE $F334 F32E: 8D AA BSR $F2DA F330: 25 10 BCS $F342 F332: 27 FA BEQ $F32E F334: 17 TBA F335: A8 00 EORA $00,X F337: A7 00 STA $00,X F339: BD F2 DA JSR $F2DA F33C: 25 04 BCS $F342 F33E: EA 00 ORB $00,X F340: E7 00 STB $00,X F342: 7E F2 89 JMP $F289 F345: BD F2 90 JSR $F290 F348: 27 07 BEQ $F351 F34A: BD F2 CB JSR $F2CB F34D: 24 F9 BCC $F348 F34F: 20 F1 BRA $F342 F351: 0C CLC F352: 20 EE BRA $F342 F354: BD F2 90 JSR $F290 F357: 26 F8 BNE $F351 F359: BD F2 CB JSR $F2CB F35C: 24 F9 BCC $F357 F35E: 20 E2 BRA $F342 F360: CE 00 7D LDX #007D F363: 20 12 BRA $F377 F365: CE 00 40 LDX #0040 F368: 20 0D BRA $F377 F36A: CE 00 34 LDX #0034 F36D: 20 08 BRA $F377 F36F: CE 00 1C LDX #001C F372: 20 03 BRA $F377 F374: CE 00 10 LDX #0010 F377: BD F2 12 JSR $F212 F37A: E5 00 BITB $00,X F37C: 39 RTS F37D: 84 3F ANDA #3F F37F: BD F2 90 JSR $F290 F382: 97 C8 STA $00C8 F384: 17 TBA F385: 43 COMA F386: A4 24 ANDA $24,X F388: 9A C8 ORA $00C8 F38A: A7 24 STA $24,X F38C: BD F2 CB JSR $F2CB F38F: 24 F1 BCC $F382 F391: 20 AF BRA $F342 F393: D8 F4 EORB $00F4 F395: 5A DECB F396: F4 7B F4 ANDB $7BF4 F399: C1 F4 CMPB #F4 F39B: DC -------------------- F39C: F4 E9 F5 ANDB $E9F5 F39F: 3B RTI F3A0: F5 DA F5 BITB $DAF5 F3A3: DE F5 LDX $00F5 F3A5: E2 F5 SBCB $F5,X F3A7: F2 F5 FC SBCB $F5FC F3AA: F6 05 F6 LDB $05F6 F3AD: 12 -------------------- F3AE: F4 CD F6 ANDB $CDF6 F3B1: 21 -------------------- F3B2: F6 21 F4 LDB $21F4 F3B5: 62 -------------------- F3B6: F4 3C F4 ANDB $3CF4 F3B9: 36 PSHA F3BA: E9 C4 ADCB $C4,X F3BC: F4 69 F4 ANDB $69F4 F3BF: 71 -------------------- F3C0: F4 76 F2 ANDB $76F2 F3C3: 7E F2 1D JMP $F21D F3C6: F2 64 F2 SBCB $64F2 F3C9: 6E F2 JMP $F2,X F3CB: E1 F3 CMPB $F3,X F3CD: 0A CLV F3CE: F2 F2 F2 SBCB $F2F2 F3D1: 3D WAI F3D2: F1 91 F1 CMPB $91F1 F3D5: B0 F1 C5 SUBA $F1C5 F3D8: F1 BE F1 CMPB $BEF1 F3DB: D3 -------------------- F3DC: F1 DA F1 CMPB $DAF1 F3DF: E1 F1 CMPB $F1,X F3E1: E8 F1 EORB $F1,X F3E3: EF F1 STX $F1,X F3E5: F6 F1 FD LDB $F1FD F3E8: F2 04 F2 SBCB $04F2 F3EB: 0B SEV F3EC: EB D3 ADDB $D3,X F3EE: EB 3D ADDB $3D,X F3F0: EB 36 ADDB $36,X F3F2: F5 44 F5 BITB $44F5 F3F5: 59 ROLB F3F6: F5 64 F5 BITB $64F5 F3F9: 6C F5 INC $F5,X F3FB: 89 F5 ADCA #F5 F3FD: 90 F5 SUBA $00F5 F3FF: 97 F5 STA $00F5 F401: C1 F6 CMPB #F6 F403: 67 F6 ASR $F6,X F405: 67 F6 ASR $F6,X F407: 67 F6 ASR $F6,X F409: 67 F5 ASR $F5,X F40B: E9 F6 ADCB $F6,X F40D: 3E -------------------- F40E: F6 56 F6 LDB $56F6 F411: 00 -------------------- F412: F6 F3 F6 LDB $F3F6 F415: FA F5 2F ORB $F52F F418: F6 D6 F6 LDB $D6F6 F41B: DB F6 ADDB $00F6 F41D: E7 F6 STB $F6,X F41F: EE F7 LDX $F7,X F421: 01 NOP F422: F7 0D F7 STB $0DF7 F425: 17 TBA F426: F7 12 F7 STB $12F7 F429: 19 DAA F42A: F7 1E F7 STB $1EF7 F42D: 23 F7 BLS $F426 F42F: 26 F7 BNE $F428 F431: 2D 97 BLT $F3CA F433: 00 -------------------- F434: D7 01 STB $0001 F436: 32 PULA F437: 97 EF STA $00EF F439: 32 PULA F43A: 97 F0 STA $00F0 F43C: BD D0 BA JSR $D0BA F43F: BD F5 2F JSR $F52F F442: 16 TAB F443: 54 LSRB F444: 54 LSRB F445: 54 LSRB F446: C4 1E ANDB #1E F448: CE F3 94 LDX #F394 F44B: BD EE 8C JSR $EE8C F44E: EE 00 LDX $00,X F450: 6E 00 JMP $00,X F452: DF EF STX $00EF F454: 97 00 STA $0000 F456: D7 01 STB $0001 F458: 20 E2 BRA $F43C F45A: CE F3 B4 LDX #F3B4 F45D: BD F5 28 JSR $F528 F460: 6E 00 JMP $00,X F462: DE EF LDX $00EF F464: 09 DEX F465: DF EF STX $00EF F467: 20 D3 BRA $F43C F469: DE EF LDX $00EF F46B: 96 00 LDA $0000 F46D: D6 01 LDB $0001 F46F: 6E 00 JMP $00,X F471: BD F7 4C JSR $F74C F474: 20 C6 BRA $F43C F476: BD F7 5C JSR $F75C F479: 20 C1 BRA $F43C F47B: 16 TAB F47C: C4 0F ANDB #0F F47E: C0 08 SUBB #08 F480: 25 1D BCS $F49F F482: 58 ASLB F483: CE F3 C2 LDX #F3C2 F486: BD EE 8C JSR $EE8C F489: EE 00 LDX $00,X F48B: 16 TAB F48C: 58 ASLB F48D: 58 ASLB F48E: C4 80 ANDB #80 F490: BD F5 2F JSR $F52F F493: 36 PSHA F494: 84 7F ANDA #7F F496: 1B ABA F497: AD 00 JSR $00,X F499: 32 PULA F49A: 4D TSTA F49B: 2B F3 BMI $F490 F49D: 20 9D BRA $F43C F49F: CE F3 D2 LDX #F3D2 F4A2: 16 TAB F4A3: 84 03 ANDA #03 F4A5: BD F5 28 JSR $F528 F4A8: C5 04 BITB #04 F4AA: 26 03 BNE $F4AF F4AC: 5F CLRB F4AD: 20 E1 BRA $F490 F4AF: 8D 7E BSR $F52F F4B1: 16 TAB F4B2: DF BC STX $00BC F4B4: BD F5 B2 JSR $F5B2 F4B7: AD 00 JSR $00,X F4B9: DE BC LDX $00BC F4BB: 5D TSTB F4BC: 2B F1 BMI $F4AF F4BE: 7E F4 3C JMP $F43C F4C1: 16 TAB F4C2: C4 0F ANDB #0F F4C4: C0 08 SUBB #08 F4C6: 24 BA BCC $F482 F4C8: CE F3 DA LDX #F3DA F4CB: 20 D5 BRA $F4A2 F4CD: CE F3 E0 LDX #F3E0 F4D0: 16 TAB F4D1: C4 0F ANDB #0F F4D3: C0 08 SUBB #08 F4D5: 25 CB BCS $F4A2 F4D7: CE F3 E6 LDX #F3E6 F4DA: 20 C6 BRA $F4A2 F4DC: 16 TAB F4DD: C4 0F ANDB #0F F4DF: 8D 4E BSR $F52F F4E1: BD EA 83 JSR $EA83 F4E4: 5A DECB F4E5: 26 F8 BNE $F4DF F4E7: 20 D5 BRA $F4BE F4E9: 84 0F ANDA #0F F4EB: 26 08 BNE $F4F5 F4ED: BD F5 84 JSR $F584 F4F0: BD EB 32 JSR $EB32 F4F3: 20 C9 BRA $F4BE F4F5: 81 04 CMPA #04 F4F7: 24 0C BCC $F505 F4F9: CE F3 EA LDX #F3EA F4FC: BD F5 28 JSR $F528 F4FF: 8D 2E BSR $F52F F501: AD 00 JSR $00,X F503: 20 B9 BRA $F4BE F505: 16 TAB F506: C0 02 SUBB #02 F508: CE 11 30 LDX #1130 F50B: 8D 22 BSR $F52F F50D: A7 00 STA $00,X F50F: 08 INX F510: 5A DECB F511: 26 F8 BNE $F50B F513: 86 7E LDA #7E F515: A7 00 STA $00,X F517: 86 F4 LDA #F4 F519: A7 01 STA $01,X F51B: 86 54 LDA #54 F51D: A7 02 STA $02,X F51F: 96 00 LDA $0000 F521: D6 01 LDB $0001 F523: 7E 11 30 JMP $1130 F526: 84 0F ANDA #0F F528: 48 ASLA F529: BD EE 3E JSR $EE3E ( X = X + A) F52C: EE 00 LDX $00,X F52E: 39 RTS F52F: DF B8 STX $00B8 F531: DE EF LDX $00EF F533: A6 00 LDA $00,X F535: 08 INX F536: DF EF STX $00EF F538: DE B8 LDX $00B8 F53A: 39 RTS F53B: CE F3 F2 LDX #F3F2 F53E: 16 TAB F53F: BD F5 26 JSR $F526 F542: 6E 00 JMP $00,X F544: 8D E9 BSR $F52F F546: 16 TAB F547: 8D 69 BSR $F5B2 F549: 97 BC STA $00BC F54B: 54 LSRB F54C: 54 LSRB F54D: 54 LSRB F54E: 54 LSRB F54F: 17 TBA F550: 8D 60 BSR $F5B2 F552: 9B BC ADDA $00BC F554: 8D 4D BSR $F5A3 F556: 7E F4 3C JMP $F43C F559: 8D D4 BSR $F52F F55B: 16 TAB F55C: 8D 54 BSR $F5B2 F55E: 54 LSRB F55F: 54 LSRB F560: 54 LSRB F561: 54 LSRB F562: 20 F0 BRA $F554 F564: 8D C9 BSR $F52F F566: DE CF LDX $00CF F568: A7 0D STA $0D,X F56A: 20 EA BRA $F556 F56C: 8D C1 BSR $F52F F56E: 97 D5 STA $00D5 F570: DE EF LDX $00EF F572: 96 00 LDA $0000 F574: D6 01 LDB $0001 F576: BD E9 71 JSR $E971 F579: 7E F4 52 JMP $F452 F57C: 8D 06 BSR $F584 F57E: D7 B8 STB $00B8 F580: 97 B9 STA $00B9 F582: 20 B4 BRA $F538 F584: 8D A9 BSR $F52F F586: 16 TAB F587: 20 A6 BRA $F52F F589: 8D F9 BSR $F584 F58B: BD EA 53 JSR $EA53 F58E: 20 C6 BRA $F556 F590: 8D F2 BSR $F584 F592: BD EA 5B JSR $EA5B F595: 20 BF BRA $F556 F597: 8D E3 BSR $F57C F599: 96 F0 LDA $00F0 F59B: 36 PSHA F59C: 96 EF LDA $00EF F59E: 36 PSHA F59F: DF EF STX $00EF F5A1: 20 B3 BRA $F556 F5A3: DF B8 STX $00B8 F5A5: C4 0F ANDB #0F F5A7: D7 BB STB $00BB F5A9: 7F 00 BA CLR $00BA F5AC: DE BA LDX $00BA F5AE: A7 00 STA $00,X F5B0: 20 86 BRA $F538 F5B2: DF B8 STX $00B8 F5B4: 84 0F ANDA #0F F5B6: 97 BB STA $00BB F5B8: 7F 00 BA CLR $00BA F5BB: DE BA LDX $00BA F5BD: A6 00 LDA $00,X F5BF: 20 EF BRA $F5B0 F5C1: 8D B9 BSR $F57C F5C3: 96 F0 LDA $00F0 F5C5: 36 PSHA F5C6: 96 EF LDA $00EF F5C8: 36 PSHA F5C9: 96 00 LDA $0000 F5CB: D6 01 LDB $0001 F5CD: AD 00 JSR $00,X F5CF: 97 00 STA $0000 F5D1: 32 PULA F5D2: 97 EF STA $00EF F5D4: 32 PULA F5D5: 97 F0 STA $00F0 F5D7: 7E F4 56 JMP $F456 F5DA: 8D D6 BSR $F5B2 F5DC: 20 90 BRA $F56E F5DE: 84 0F ANDA #0F F5E0: 20 8C BRA $F56E F5E2: 8D 44 BSR $F628 F5E4: DF EF STX $00EF F5E6: 7E F4 3C JMP $F43C F5E9: BD F5 7C JSR $F57C F5EC: 96 00 LDA $0000 F5EE: D6 01 LDB $0001 F5F0: 6E 00 JMP $00,X F5F2: 8D 34 BSR $F628 F5F4: D6 F0 LDB $00F0 F5F6: 37 PSHB F5F7: D6 EF LDB $00EF F5F9: 37 PSHB F5FA: 20 E8 BRA $F5E4 F5FC: 8D 2A BSR $F628 F5FE: 20 C3 BRA $F5C3 F600: BD F5 7C JSR $F57C F603: 20 DF BRA $F5E4 F605: 16 TAB F606: 8D AA BSR $F5B2 F608: 97 BA STA $00BA F60A: 8D 58 BSR $F664 F60C: 9B BA ADDA $00BA F60E: 8D 93 BSR $F5A3 F610: 20 D4 BRA $F5E6 F612: 16 TAB F613: 8D 4F BSR $F664 F615: 20 F7 BRA $F60E F617: 84 0F ANDA #0F F619: 16 TAB F61A: 8D 48 BSR $F664 F61C: BD EC 42 JSR $EC42 F61F: 20 C5 BRA $F5E6 F621: 84 1F ANDA #1F F623: BD EC 3B JSR $EC3B F626: 20 BE BRA $F5E6 F628: 84 0F ANDA #0F F62A: 85 08 BITA #08 F62C: 27 02 BEQ $F630 F62E: 8A F0 ORA #F0 F630: 16 TAB F631: 8D 31 BSR $F664 F633: 9B F0 ADDA $00F0 F635: 97 B9 STA $00B9 F637: D9 EF ADCB $00EF F639: D7 B8 STB $00B8 F63B: DE B8 LDX $00B8 F63D: 39 RTS F63E: 8D 0A BSR $F64A F640: EA 00 ORB $00,X F642: E7 00 STB $00,X F644: 96 C6 LDA $00C6 F646: 2B F6 BMI $F63E F648: 20 17 BRA $F661 F64A: 8D 18 BSR $F664 F64C: 97 C6 STA $00C6 F64E: 84 3F ANDA #3F F650: CE 00 7D LDX #007D F653: 7E F2 12 JMP $F212 F656: 8D F2 BSR $F64A F658: 53 COMB F659: E4 00 ANDB $00,X F65B: E7 00 STB $00,X F65D: 96 C6 LDA $00C6 F65F: 2B F5 BMI $F656 F661: 7E F4 3C JMP $F43C F664: 7E F5 2F JMP $F52F F667: 37 PSHB F668: 8D 28 BSR $F692 F66A: BD F7 39 JSR $F739 F66D: 33 PULB F66E: 1B ABA F66F: 36 PSHA F670: C5 02 BITB #02 F672: 26 05 BNE $F679 F674: BD F5 7C JSR $F57C F677: 20 12 BRA $F68B F679: 8D E9 BSR $F664 F67B: C6 FF LDB #FF F67D: 81 80 CMPA #80 F67F: C9 00 ADCB #00 F681: 9B F0 ADDA $00F0 F683: D9 EF ADCB $00EF F685: 97 B9 STA $00B9 F687: D7 B8 STB $00B8 F689: DE B8 LDX $00B8 F68B: 32 PULA F68C: 46 RORA F68D: 24 D2 BCC $F661 F68F: 7E F5 9F JMP $F59F F692: 8D D0 BSR $F664 F694: 81 D0 CMPA #D0 F696: 27 1D BEQ $F6B5 F698: 25 40 BCS $F6DA F69A: 81 F0 CMPA #F0 F69C: 24 13 BCC $F6B1 F69E: 81 E0 CMPA #E0 F6A0: 25 03 BCS $F6A5 F6A2: 7E F5 B2 JMP $F5B2 F6A5: CE 01 93 LDX #0193 F6A8: 84 0F ANDA #0F F6AA: 48 ASLA F6AB: BD EE 3E JSR $EE3E ( X = X + A) F6AE: 7E EE 92 JMP $EE92 ( CMOS,X++ -> A) F6B1: 81 F3 CMPA #F3 F6B3: 25 13 BCS $F6C8 F6B5: 36 PSHA F6B6: 8D DA BSR $F692 F6B8: 16 TAB F6B9: D7 B8 STB $00B8 F6BB: 32 PULA F6BC: 81 F9 CMPA #F9 F6BE: 25 08 BCS $F6C8 F6C0: 36 PSHA F6C1: 37 PSHB F6C2: 8D CE BSR $F692 F6C4: 97 B8 STA $00B8 F6C6: 33 PULB F6C7: 32 PULA F6C8: 81 D0 CMPA #D0 F6CA: 27 3A BEQ $F706 F6CC: CE F4 12 LDX #F412 F6CF: BD F5 26 JSR $F526 F6D2: 96 B8 LDA $00B8 F6D4: 6E 00 JMP $00,X F6D6: 8D 61 BSR $F739 F6D8: 88 01 EORA #01 F6DA: 39 RTS F6DB: BD F3 74 JSR $F374 F6DE: 26 1E BNE $F6FE F6E0: BD F3 65 JSR $F365 F6E3: 26 19 BNE $F6FE F6E5: 20 10 BRA $F6F7 F6E7: BD F3 54 JSR $F354 F6EA: 25 12 BCS $F6FE F6EC: 20 09 BRA $F6F7 F6EE: BD F3 45 JSR $F345 F6F1: 20 F7 BRA $F6EA F6F3: 96 E6 LDA $00E6 F6F5: 26 07 BNE $F6FE F6F7: 86 80 LDA #80 F6F9: 39 RTS F6FA: 96 E7 LDA $00E7 F6FC: 27 F9 BEQ $F6F7 F6FE: 86 81 LDA #81 F700: 39 RTS F701: BD F3 6A JSR $F36A F704: 20 DD BRA $F6E3 F706: 96 B8 LDA $00B8 F708: BD F3 6F JSR $F36F F70B: 20 D6 BRA $F6E3 F70D: BD F3 60 JSR $F360 F710: 20 D1 BRA $F6E3 F712: 8D 1E BSR $F732 F714: 94 B8 ANDA $00B8 F716: 39 RTS F717: 1B ABA F718: 39 RTS F719: 8D 17 BSR $F732 F71B: 9A B8 ORA $00B8 F71D: 39 RTS F71E: 11 CBA F71F: 27 DD BEQ $F6FE F721: 20 D4 BRA $F6F7 F723: 11 CBA F724: 20 C4 BRA $F6EA F726: BD EA 60 JSR $EA60 F729: 24 D3 BCC $F6FE F72B: 20 CA BRA $F6F7 F72D: D7 B8 STB $00B8 F72F: 94 B8 ANDA $00B8 F731: 39 RTS F732: 36 PSHA F733: 17 TBA F734: 8D 03 BSR $F739 F736: 97 B8 STA $00B8 F738: 32 PULA F739: 4D TSTA F73A: 2B F5 BMI $F731 F73C: BD F3 74 JSR $F374 F73F: 27 B6 BEQ $F6F7 F741: 81 40 CMPA #40 F743: 24 B9 BCC $F6FE F745: BD F3 65 JSR $F365 F748: 26 AD BNE $F6F7 F74A: 20 B2 BRA $F6FE F74C: 36 PSHA F74D: DF FA STX $00FA F74F: CE 01 16 LDX #0116 F752: BD F7 E7 JSR $F7E7 Add 1 to data in X F755: BD D0 B8 JSR $D0B8 F758: DE FA LDX $00FA F75A: 20 0E BRA $F76A F75C: 36 PSHA F75D: DF F8 STX $00F8 F75F: BD D0 B6 JSR $D0B6 F762: CE 01 22 LDX #0122 F765: BD F7 E7 JSR $F7E7 Add 1 to data in X F768: DE F8 LDX $00F8 F76A: 32 PULA F76B: 39 RTS F76C: DF FA STX $00FA F76E: 36 PSHA F76F: 37 PSHB F770: 8D 3C BSR $F7AE F772: 24 24 BCC $F798 F774: BD EE A2 JSR $EEA2 ( CMOS,X++ -> B) F777: 09 DEX F778: 09 DEX F779: 1B ABA F77A: 19 DAA F77B: 24 02 BCC $F77F F77D: 86 99 LDA #99 F77F: BD EE EE JSR $EEEE F782: F1 11 9A CMPB $119A F785: 26 0F BNE $F796 F787: C6 0E LDB #0E F789: D7 C8 STB $00C8 F78B: CE F7 C4 LDX #F7C4 F78E: BD E9 D8 JSR $E9D8 Push Control Stack: Data in A,B,X,$AA,$A6,$A7 F791: 24 03 BCC $F796 F793: B7 11 9A STA $119A F796: 8D 04 BSR $F79C Check Max Credits, Adjust Coin Lockout F798: DE FA LDX $00FA F79A: 20 25 BRA $F7C1 Check Max Credits, Adjust Coin Lockout: F79C: 36 PSHA F79D: BD F7 AE JSR $F7AE F7A0: B6 D0 63 LDA $D063 F7A3: 8A F0 ORA #F0 F7A5: 25 02 BCS $F7A9 F7A7: 84 0F ANDA #0F F7A9: BD EA 83 JSR $EA83 F7AC: 32 PULA F7AD: 39 RTS F7AE: 36 PSHA F7AF: 37 PSHB F7B0: CE 01 AB LDX #01AB F7B3: BD EE A2 JSR $EEA2 ( CMOS,X++ -> B) F7B6: CE 01 6E LDX #016E F7B9: 5D TSTB F7BA: 0D SEC F7BB: 27 04 BEQ $F7C1 F7BD: BD FD DB JSR $FDDB ( CMOS, X -> A ) F7C0: 11 CBA F7C1: 33 PULB F7C2: 32 PULA F7C3: 39 RTS F7C4: CE 01 6E LDX #016E F7C7: BD EE A2 JSR $EEA2 ( CMOS,X++ -> B) F7CA: F1 11 9A CMPB $119A F7CD: 27 15 BEQ $F7E4 F7CF: B6 11 9A LDA $119A F7D2: 8B 01 ADDA #01 F7D4: 19 DAA F7D5: B7 11 9A STA $119A F7D8: FE D0 C8 LDX $D0C8 F7DB: 11 CBA F7DC: 27 04 BEQ $F7E2 F7DE: AD 00 JSR $00,X F7E0: 20 E2 BRA $F7C4 F7E2: AD 00 JSR $00,X F7E4: 7E E9 C4 JMP $E9C4 Remove Current Thread from Control Stack F7E7: 36 PSHA F7E8: 86 01 LDA #01 F7EA: 20 01 BRA $F7ED F7EC: 36 PSHA F7ED: 37 PSHB F7EE: DF B8 STX $00B8 F7F0: BD EE A2 JSR $EEA2 ( CMOS,X++ -> B) F7F3: 37 PSHB F7F4: BD EE A2 JSR $EEA2 ( CMOS,X++ -> B) F7F7: 1B ABA F7F8: 19 DAA F7F9: 16 TAB F7FA: 32 PULA F7FB: 89 00 ADCA #00 F7FD: 19 DAA F7FE: DE B8 LDX $00B8 F800: BD EE EE JSR $EEEE F803: BD EE A8 JSR $EEA8 F806: DE B8 LDX $00B8 F808: 20 B7 BRA $F7C1 F80A: 90 03 SUBA $0003 F80C: 7E E9 C4 JMP $E9C4 Remove Current Thread from Control Stack F80F: 52 -------------------- F810: 0E CLI F811: 53 COMB F812: 20 04 BRA $F818 F814: 43 COMA F815: 8B 06 ADDA #06 F817: 48 ASLA F818: 16 TAB F819: 58 ASLB F81A: CE 01 02 LDX #0102 F81D: BD EE 8C JSR $EE8C F820: BD F7 E7 JSR $F7E7 Add 1 to data in X F823: CE 01 AF LDX #01AF F826: BD EE 3E JSR $EE3E ( X = X + A) F829: BD EE A2 JSR $EEA2 ( CMOS,X++ -> B) F82C: 8D 6F BSR $F89D F82E: CE 01 62 LDX #0162 F831: 8D 46 BSR $F879 F833: 8D 44 BSR $F879 F835: CE 01 B9 LDX #01B9 F838: BD EE A2 JSR $EEA2 ( CMOS,X++ -> B) F83B: 8D 60 BSR $F89D F83D: 11 CBA F83E: 25 33 BCS $F873 F840: CE 01 B5 LDX #01B5 F843: BD EE A2 JSR $EEA2 ( CMOS,X++ -> B) F846: 8D 55 BSR $F89D F848: 8D 36 BSR $F880 F84A: 97 B8 STA $00B8 F84C: CE 01 64 LDX #0164 F84F: BD EE A8 JSR $EEA8 F852: CE 01 B7 LDX #01B7 F855: BD EE A2 JSR $EEA2 ( CMOS,X++ -> B) F858: CE 01 62 LDX #0162 F85B: BD EE 92 JSR $EE92 ( CMOS,X++ -> A) F85E: 8D 3D BSR $F89D F860: 8D 1E BSR $F880 F862: 4D TSTA F863: 27 02 BEQ $F867 F865: 8D 2C BSR $F893 F867: 9B B8 ADDA $00B8 F869: 19 DAA F86A: CE 01 0E LDX #010E F86D: BD F7 EC JSR $F7EC F870: 7E F7 6C JMP $F76C F873: B6 D0 5C LDA $D05C F876: 7E EC 3B JMP $EC3B F879: BD FD DB JSR $FDDB ( CMOS, X -> A ) F87C: 1B ABA F87D: 7E EE EE JMP $EEEE F880: D7 BB STB $00BB F882: 27 0D BEQ $F891 F884: 16 TAB F885: 86 99 LDA #99 F887: 8B 01 ADDA #01 F889: 19 DAA F88A: D0 BB SUBB $00BB F88C: 24 F9 BCC $F887 F88E: DB BB ADDB $00BB F890: 39 RTS F891: 17 TBA F892: 39 RTS F893: CE 00 00 LDX #0000 F896: FF 01 64 STX $0164 F899: FF 01 62 STX $0162 F89C: 39 RTS F89D: 36 PSHA F89E: 17 TBA F89F: 5F CLRB F8A0: 4D TSTA F8A1: 27 6C BEQ $F90F F8A3: 8B 99 ADDA #99 F8A5: 19 DAA F8A6: 5C INCB F8A7: 20 F7 BRA $F8A0 F8A9: A7 00 STA $00,X F8AB: 08 INX F8AC: 5A DECB F8AD: 26 FA BNE $F8A9 F8AF: 39 RTS F8B0: FE D0 CA LDX $D0CA F8B3: AD 00 JSR $00,X F8B5: BD FA 2C JSR $FA2C F8B8: 8D 57 BSR $F911 Blank all Player Displays (buffer 0) F8BA: 4A DECA F8BB: 97 5C STA $005C F8BD: 8D 36 BSR $F8F5 F8BF: 8D 03 BSR $F8C4 F8C1: 7E F9 51 JMP $F951 F8C4: BD D0 BE JSR $D0BE F8C7: 7C 00 EA INC $00EA F8CA: D6 EA LDB $00EA F8CC: 8D 5E BSR $F92C F8CE: CE D0 57 LDX #D057 F8D1: BD EE 8C JSR $EE8C F8D4: A6 00 LDA $00,X F8D6: BD EC 3B JSR $EC3B F8D9: CE 01 93 LDX #0193 F8DC: BD EE 92 JSR $EE92 ( CMOS,X++ -> A) F8DF: 8A F0 ORA #F0 F8E1: 5D TSTB F8E2: 27 04 BEQ $F8E8 F8E4: 97 5C STA $005C F8E6: 20 02 BRA $F8EA F8E8: 97 5E STA $005E F8EA: 58 ASLB F8EB: 58 ASLB F8EC: CE 00 4C LDX #004C F8EF: BD EE 8C JSR $EE8C F8F2: 6F 03 CLR $03,X F8F4: 39 RTS F8F5: 4F CLRA F8F6: 97 F4 STA $00F4 F8F8: 97 EB STA $00EB F8FA: 97 E7 STA $00E7 F8FC: 97 7C STA $007C F8FE: C6 08 LDB #08 F900: BD EA 5B JSR $EA5B F903: 4A DECA F904: 97 EA STA $00EA F906: C6 12 LDB #12 F908: CE 00 22 LDX #0022 F90B: 36 PSHA F90C: 4F CLRA F90D: 8D 9A BSR $F8A9 F90F: 32 PULA F910: 39 RTS F911: 86 FF LDA #FF F913: C6 10 LDB #10 F915: CE 00 4C LDX #004C F918: 8D 8F BSR $F8A9 F91A: 4F CLRA F91B: C6 0C LDB #0C F91D: CE 00 60 LDX #0060 F920: 8D 87 BSR $F8A9 F922: 4F CLRA F923: 97 7B STA $007B F925: 97 7A STA $007A F927: 97 79 STA $0079 F929: 97 78 STA $0078 F92B: 39 RTS F92C: 36 PSHA F92D: 37 PSHB F92E: 8D 0B BSR $F93B F930: 8D 15 BSR $F947 F932: DE B8 LDX $00B8 F934: C6 06 LDB #06 F936: 8D D3 BSR $F90B F938: 33 PULB F939: 32 PULA F93A: 39 RTS F93B: 86 24 LDA #24 F93D: CE 11 1C LDX #111C F940: BD EE 3E JSR $EE3E ( X = X + A) F943: 5A DECB F944: 2A FA BPL $F940 F946: 39 RTS F947: DF B8 STX $00B8 F949: CE D0 74 LDX #D074 F94C: C6 1E LDB #1E F94E: 7E EE FB JMP $EEFB F951: 8D 78 BSR $F9CB F953: CE 00 5E LDX #005E F956: D6 EB LDB $00EB F958: 27 03 BEQ $F95D F95A: CE 00 5C LDX #005C F95D: A6 00 LDA $00,X F95F: 2A 02 BPL $F963 F961: 84 0F ANDA #0F F963: 8B 99 ADDA #99 F965: 19 DAA F966: 81 10 CMPA #10 F968: 2C 02 BGE $F96C F96A: 8A F0 ORA #F0 F96C: A7 00 STA $00,X F96E: 8D 7A BSR $F9EA F970: FE D0 CC LDX $D0CC F973: AD 00 JSR $00,X F975: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer F978: 05 Timer Data F979: 8D 36 BSR $F9B1 F97B: 43 COMA F97C: 94 7C ANDA $007C F97E: 97 7C STA $007C F980: 8D 3C BSR $F9BE F982: DE CF LDX $00CF F984: 86 07 LDA #07 F986: A7 0D STA $0D,X F988: CE 00 78 LDX #0078 F98B: BD EE 8C JSR $EE8C F98E: A6 00 LDA $00,X F990: 8A 7F ORA #7F F992: A7 00 STA $00,X F994: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer F997: 05 F998: BD D0 BC JSR $D0BC F99B: A6 00 LDA $00,X F99D: 84 80 ANDA #80 F99F: A7 00 STA $00,X F9A1: BD EA F8 JSR $EAF8 F9A4: DE CF LDX $00CF F9A6: 86 04 LDA #04 F9A8: A7 0D STA $0D,X F9AA: 96 F4 LDA $00F4 F9AC: 27 C7 BEQ $F975 F9AE: 7E E9 C4 JMP $E9C4 Remove Current Thread from Control Stack F9B1: D6 EB LDB $00EB F9B3: CE EA F0 LDX #EAF0 F9B6: BD EE 8C JSR $EE8C F9B9: A6 00 LDA $00,X F9BB: AA 04 ORA $04,X F9BD: 39 RTS F9BE: DE EC LDX $00EC F9C0: 86 FF LDA #FF F9C2: A7 08 STA $08,X F9C4: A7 09 STA $09,X F9C6: A7 0A STA $0A,X F9C8: A7 0B STA $0B,X F9CA: 39 RTS F9CB: 96 7D LDA $007D F9CD: 84 FE ANDA #FE F9CF: 97 7D STA $007D F9D1: 4F CLRA F9D2: 97 E6 STA $00E6 F9D4: 97 F1 STA $00F1 F9D6: 97 E8 STA $00E8 F9D8: 86 F9 LDA #F9 F9DA: BD EA 83 JSR $EA83 F9DD: 96 EB LDA $00EB F9DF: 48 ASLA F9E0: 48 ASLA F9E1: CE 00 4C LDX #004C F9E4: BD EE 3E JSR $EE3E ( X = X + A) F9E7: DF EC STX $00EC F9E9: 39 RTS F9EA: CE 00 10 LDX #0010 F9ED: DF B8 STX $00B8 F9EF: BD F9 3B JSR $F93B F9F2: DF BA STX $00BA F9F4: CE D0 74 LDX #D074 F9F7: A6 1E LDA $1E,X F9F9: 16 TAB F9FA: 53 COMB F9FB: E4 00 ANDB $00,X F9FD: 08 INX F9FE: DF BC STX $00BC FA00: DE BA LDX $00BA FA02: A4 00 ANDA $00,X FA04: 08 INX FA05: DF BA STX $00BA FA07: 1B ABA FA08: DE B8 LDX $00B8 FA0A: A7 00 STA $00,X FA0C: 08 INX FA0D: 8C 00 22 CMPX #00 FA10: 26 03 BNE $FA15 FA12: CE 00 40 LDX #0040 FA15: DF B8 STX $00B8 FA17: DE BC LDX $00BC FA19: 8C D0 92 CMPX #D0 FA1C: 26 D9 BNE $F9F7 FA1E: CE 00 02 LDX #0002 FA21: DF B8 STX $00B8 FA23: DE BA LDX $00BA FA25: C6 06 LDB #06 FA27: 8D 52 BSR $FA7B FA29: 7E F7 9C JMP $F79C Check Max Credits, Adjust Coin Lockout FA2C: CE 11 28 LDX #1128 FA2F: 86 0F LDA #0F FA31: E6 00 LDB $00,X FA33: 27 07 BEQ $FA3C FA35: BD EB 3D JSR $EB3D FA38: 6A 00 DEC $00,X FA3A: 26 F9 BNE $FA35 FA3C: 08 INX FA3D: 4A DECA FA3E: 85 08 BITA #08 FA40: 26 EF BNE $FA31 FA42: 39 RTS FA43: 8D E7 BSR $FA2C FA45: BD F4 32 JSR $F432 Begin Macro's FA48: 71 FA49: 5A FA4A: FE FA4B: 01 FA4C: 01 FA4D: FA FA4E: 55 FA4F: 0A FA50: 00 FA51: 04 FA52: FE FA53: D0 FA54: CE AD 00 LDX #AD00 FA57: 7F 00 F4 CLR $00F4 FA5A: D6 EB LDB $00EB FA5C: 8D 05 BSR $FA63 FA5E: 8D 1E BSR $FA7E FA60: 7E F9 51 JMP $F951 FA63: BD F9 3B JSR $F93B FA66: DF B8 STX $00B8 FA68: CE 00 10 LDX #0010 FA6B: C6 12 LDB #12 FA6D: 8D 0C BSR $FA7B FA6F: CE 00 40 LDX #0040 FA72: C6 0C LDB #0C FA74: 8D 05 BSR $FA7B FA76: CE 00 02 LDX #0002 FA79: C6 06 LDB #06 FA7B: 7E EE FB JMP $EEFB FA7E: CE 01 2A LDX #012A FA81: BD F7 E7 JSR $F7E7 Add 1 to data in X FA84: 5F CLRB FA85: 96 EA LDA $00EA FA87: 27 1E BEQ $FAA7 FA89: 96 EB LDA $00EB FA8B: 26 01 BNE $FA8E FA8D: 5C INCB FA8E: D7 EB STB $00EB FA90: 26 05 BNE $FA97 FA92: 8D 18 BSR $FAAC FA94: 27 07 BEQ $FA9D FA96: 39 RTS FA97: 96 5C LDA $005C FA99: 81 F0 CMPA #F0 FA9B: 26 F9 BNE $FA96 FA9D: 8D 0D BSR $FAAC FA9F: 26 E3 BNE $FA84 FAA1: 91 5C CMPA $005C FAA3: 26 DF BNE $FA84 FAA5: 20 1D BRA $FAC4 FAA7: 8D 03 BSR $FAAC FAA9: 27 19 BEQ $FAC4 FAAB: 39 RTS FAAC: 96 5E LDA $005E FAAE: 81 F0 CMPA #F0 FAB0: 39 RTS FAB1: CE 00 54 LDX #0054 FAB4: DF B8 STX $00B8 FAB6: 86 02 LDA #02 FAB8: C6 04 LDB #04 FABA: CE 01 66 LDX #0166 FABD: BD FF CD JSR $FFCD FAC0: 4A DECA FAC1: 26 F5 BNE $FAB8 FAC3: 39 RTS FAC4: BD D0 C0 JSR $D0C0 FAC7: CE 00 40 LDX #0040 FACA: C6 0C LDB #0C FACC: BD F9 0B JSR $F90B FACF: 20 2B BRA $FAFC FAD1: B6 D0 5B LDA $D05B FAD4: BD EC 3B JSR $EC3B Game Initialization Thread: FAD7: B6 D0 5D LDA $D05D GAMEROM: Game Over Lamp Location FADA: BD F4 32 JSR $F432 Begin Macro's FADD: 31 09 Turn Off Solenoid FADF: 17 00 Flash Lamp in Macro RAM $00 FAE1: 04 Resume CPU Execution Set Game Over, Push Thread onto Stack: FAE2: 7C 00 E7 INC $00E7 Set Game Over FAE5: FE D0 5F LDX $D05F GAMEROM: Game Over Init Hook FAE8: BD EA 24 JSR $EA24 Push Control Stack: Data in A,B,X,$A6,$A7,$AA=#06 FAEB: BD F9 22 JSR $F922 FAEE: 7E E9 C4 JMP $E9C4 Remove Current Thread from Control Stack FAF1: CE 01 46 LDX #0146 FAF4: 96 EB LDA $00EB FAF6: 27 03 BEQ $FAFB FAF8: CE 01 48 LDX #0148 FAFB: 39 RTS FAFC: CE 01 81 LDX #0181 FAFF: BD EE 92 JSR $EE92 ( CMOS,X++ -> A) FB02: 27 48 BEQ $FB4C FB04: 7F 00 BF CLR $00BF FB07: C6 02 LDB #02 FB09: D7 BE STB $00BE FB0B: CE 00 49 LDX #0049 FB0E: DF C2 STX $00C2 FB10: C6 04 LDB #04 FB12: D7 C6 STB $00C6 FB14: CE 01 66 LDX #0166 FB17: BD EE A2 JSR $EEA2 ( CMOS,X++ -> B) FB1A: DF C4 STX $00C4 FB1C: DE C2 LDX $00C2 FB1E: BD EB C3 JSR $EBC3 FB21: 11 CBA FB22: 22 2B BHI $FB4F FB24: 26 48 BNE $FB6E FB26: 08 INX FB27: DF C2 STX $00C2 FB29: DE C4 LDX $00C4 FB2B: 7A 00 C6 DEC $00C6 FB2E: 26 E7 BNE $FB17 FB30: 7A 00 BE DEC $00BE FB33: 26 DB BNE $FB10 FB35: 96 BF LDA $00BF FB37: 27 13 BEQ $FB4C FB39: FE D0 64 LDX $D064 FB3C: 6E 00 JMP $00,X FB3E: B6 01 66 LDA $0166 FB41: 84 0F ANDA #0F FB43: 27 07 BEQ $FB4C FB45: 86 99 LDA #99 FB47: 8D 36 BSR $FB7F FB49: 7F 01 66 CLR $0166 FB4C: 7E FA D1 JMP $FAD1 FB4F: CE 01 66 LDX #0166 FB52: 96 BE LDA $00BE FB54: 97 BF STA $00BF FB56: DF B8 STX $00B8 FB58: 8D 18 BSR $FB72 FB5A: C6 04 LDB #04 FB5C: 09 DEX FB5D: BD EF 23 JSR $EF23 FB60: 7C 01 66 INC $0166 FB63: B6 01 67 LDA $0167 FB66: 4C INCA FB67: 84 0F ANDA #0F FB69: 26 C5 BNE $FB30 FB6B: 7F 01 67 CLR $0167 FB6E: 8D 02 BSR $FB72 FB70: 20 BE BRA $FB30 FB72: DE C2 LDX $00C2 FB74: 96 C6 LDA $00C6 FB76: 7F 00 C6 CLR $00C6 FB79: BD EE 3E JSR $EE3E ( X = X + A) FB7C: DF C2 STX $00C2 FB7E: 39 RTS FB7F: CE 01 66 LDX #0166 FB82: C6 04 LDB #04 FB84: BD EE EE JSR $EEEE FB87: 5A DECB FB88: 26 FA BNE $FB84 FB8A: 39 RTS FB8B: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer FB8E: 02 FB8F: 96 DF LDA $00DF FB91: 26 F8 BNE $FB8B FB93: 39 RTS FB94: 37 PSHB FB95: 96 F5 LDA $00F5 FB97: 16 TAB FB98: 56 RORB FB99: 56 RORB FB9A: 97 B8 STA $00B8 FB9C: D8 B8 EORB $00B8 FB9E: 49 ROLA FB9F: 9B A5 ADDA $00A5 FBA1: 97 F5 STA $00F5 FBA3: 33 PULB FBA4: 39 RTS FBA5: CE 01 AB LDX #01AB FBA8: BD EE A2 JSR $EEA2 ( CMOS,X++ -> B) FBAB: CE 01 6E LDX #016E FBAE: BD FD DB JSR $FDDB ( CMOS, X -> A ) FBB1: 26 03 BNE $FBB6 FBB3: 5D TSTB FBB4: 26 21 BNE $FBD7 FBB6: D6 E7 LDB $00E7 FBB8: 26 20 BNE $FBDA FBBA: DF C4 STX $00C4 FBBC: CE 01 93 LDX #0193 FBBF: BD EE A2 JSR $EEA2 ( CMOS,X++ -> B) FBC2: DE C4 LDX $00C4 FBC4: 5A DECB FBC5: CA F0 ORB #F0 FBC7: D1 5E CMPB $005E FBC9: 2E 0C BGT $FBD7 FBCB: D6 EA LDB $00EA FBCD: F1 D0 4E CMPB $D04E FBD0: 24 05 BCC $FBD7 FBD2: 8D 0B BSR $FBDF FBD4: BD F8 C4 JSR $F8C4 FBD7: 7E E9 C4 JMP $E9C4 Remove Current Thread from Control Stack FBDA: 8D 03 BSR $FBDF FBDC: 7E F8 B0 JMP $F8B0 FBDF: 4D TSTA FBE0: 27 0F BEQ $FBF1 FBE2: 8B 99 ADDA #99 FBE4: 19 DAA FBE5: BD EE EE JSR $EEEE FBE8: B6 11 9A LDA $119A FBEB: 8B 99 ADDA #99 FBED: 19 DAA FBEE: B7 11 9A STA $119A FBF1: BD F7 9C JSR $F79C Check Max Credits, Adjust Coin Lockout FBF4: BD F8 93 JSR $F893 FBF7: CE 01 1E LDX #011E FBFA: 7E F7 E7 JMP $F7E7 FBFD: 7C 00 F1 INC $00F1 FC00: B6 01 92 LDA $0192 FC03: 84 0F ANDA #0F FC05: 91 F1 CMPA $00F1 FC07: 22 9B BHI $FBA4 FC09: B6 D0 5E LDA $D05E FC0C: 97 E6 STA $00E6 FC0E: BD F4 32 JSR $F432 Begin Macro's FC11: 14 FC12: 00 FC13: 55 FC14: 0C FC15: 00 FC16: 04 Return to Code FC17: 39 RTS FC18: FD FF FC1A: FE 32 FC1C: FE 5D FC1E: FE 9C FC20: FE D8 FC22: 00 FD 46 FC25: 01 FD 53 FC28: 0C FD 66 FC2B: 0D FD 6E FC2E: 12 FD E2 FC31: 13 FD AC FC34: 14 FD C6 FC37: 1A FD EF FC3A: 2A FD 51 FC3D: 32 FD FA FC40: 33 Diagnostics Entry Thread: FC41: 8D 51 BSR $FC94 FC43: 2B 03 BMI $FC48 FC45: 7E E9 C4 JMP $E9C4 Remove Current Thread from Control Stack FC48: 86 09 LDA #09 FC4A: BD EA 83 JSR $EA83 FC4D: 8D 5B BSR $FCAA FC4F: 8D 4E BSR $FC9F FC51: 2B 77 BMI $FCCA FC53: 4F CLRA FC54: 7F 00 0E CLR $000E FC57: CE FC 18 LDX #FC18 FC5A: 36 PSHA FC5B: 86 09 LDA #09 FC5D: BD EA 83 JSR $EA83 FC60: 32 PULA FC61: 36 PSHA FC62: BD F5 28 JSR $F528 FC65: 32 PULA FC66: 16 TAB FC67: 5A DECB FC68: D7 5E STB $005E FC6A: BD EA 24 JSR $EA24 Push Control Stack: Data in A,B,X,$A6,$A7,$AA=#06 FC6D: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer FC70: 10 FC71: 8D 21 BSR $FC94 FC73: 2A FC BPL $FC71 FC75: 8D 28 BSR $FC9F FC77: 2B 40 BMI $FCB9 FC79: D7 0E STB $000E FC7B: 8D 17 BSR $FC94 FC7D: 2B FC BMI $FC7B FC7F: 20 F0 BRA $FC71 FC81: 36 PSHA FC82: 96 E9 LDA $00E9 FC84: 2B 0C BMI $FC92 FC86: 8D 17 BSR $FC9F FC88: 2B 08 BMI $FC92 FC8A: 96 0E LDA $000E FC8C: 27 04 BEQ $FC92 FC8E: 4F CLRA FC8F: 97 0E STA $000E FC91: 4A DECA FC92: 32 PULA FC93: 39 RTS FC94: F6 28 00 LDB DISPLAY_PIA1_DATA_A FC97: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer FC9A: 02 FC9B: F6 28 01 LDB DISPLAY_PIA1_CRTL_A FC9E: 39 RTS FC9F: F6 28 02 LDB DISPLAY_PIA1_DATA_B FCA2: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer FCA5: 02 FCA6: F6 28 03 LDB DISPLAY_PIA1_CRTL_B FCA9: 39 RTS FCAA: 5F CLRB FCAB: BD EA 5B JSR $EA5B FCAE: 7C 00 E9 INC $00E9 FCB1: CE 00 00 LDX #0000 FCB4: C6 A5 LDB #A5 FCB6: 7E F9 0B JMP $F90B FCB9: C6 3C LDB #3C FCBB: CE 00 10 LDX #0010 FCBE: 8D F6 BSR $FCB6 FCC0: BD EA 5B JSR $EA5B FCC3: 4C INCA FCC4: 81 05 CMPA #05 FCC6: 26 8C BNE $FC54 FCC8: 8D E0 BSR $FCAA FCCA: 7F 00 5C CLR $005C FCCD: 86 04 LDA #04 FCCF: 97 5E STA $005E FCD1: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer FCD4: 10 FCD5: BD F9 11 JSR $F911 Blank all Player Displays (buffer 0) FCD8: 8D 34 BSR $FD0E FCDA: D6 5C LDB $005C FCDC: BD F8 9D JSR $F89D FCDF: CE FC 1F LDX #FC1F FCE2: 08 INX FCE3: 08 INX FCE4: 08 INX FCE5: E1 03 CMPB $03,X FCE7: 24 F9 BCC $FCE2 FCE9: EE 01 LDX $01,X FCEB: AD 00 JSR $00,X FCED: 8D A5 BSR $FC94 FCEF: 2A FC BPL $FCED FCF1: 8D 1B BSR $FD0E FCF3: 8D 9F BSR $FC94 FCF5: 2A DE BPL $FCD5 FCF7: 8D 1A BSR $FD13 FCF9: 26 F8 BNE $FCF3 FCFB: 8D 31 BSR $FD2E FCFD: 9B 5C ADDA $005C FCFF: 19 DAA FD00: 81 51 CMPA #51 FD02: 27 35 BEQ $FD39 FD04: 81 99 CMPA #99 FD06: 26 02 BNE $FD0A FD08: 86 50 LDA #50 FD0A: 97 5C STA $005C FD0C: 20 E5 BRA $FCF3 FD0E: 86 08 LDA #08 FD10: 97 0F STA $000F FD12: 39 RTS FD13: 96 0F LDA $000F FD15: 27 05 BEQ $FD1C FD17: 7A 00 0F DEC $000F FD1A: 81 08 CMPA #08 FD1C: 39 RTS FD1D: 8D EF BSR $FD0E FD1F: BD FC 94 JSR $FC94 FD22: 2B CD BMI $FCF1 FD24: 96 85 LDA $0085 FD26: 85 04 BITA #04 FD28: 27 F3 BEQ $FD1D FD2A: 8D E7 BSR $FD13 FD2C: 26 F1 BNE $FD1F FD2E: 86 99 LDA #99 FD30: BD FC 9F JSR $FC9F FD33: 2A 02 BPL $FD37 FD35: 86 01 LDA #01 FD37: 16 TAB FD38: 39 RTS FD39: 86 FF LDA #FF FD3B: 97 5C STA $005C FD3D: 97 5E STA $005E FD3F: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer FD42: 50 FD43: 7E E7 30 JMP $E730 FD46: FE D0 00 LDX $D000 FD49: DF 4D STX $004D FD4B: B6 D0 02 LDA $D002 FD4E: 97 4F STA $004F FD50: 39 RTS FD51: C0 1E SUBB #1E FD53: 58 ASLB FD54: 58 ASLB FD55: CE 00 FE LDX #00FE FD58: BD EE 8C JSR $EE8C FD5B: BD EE 92 JSR $EE92 ( CMOS,X++ -> A) FD5E: 97 4E STA $004E FD60: BD EE 92 JSR $EE92 ( CMOS,X++ -> A) FD63: 97 4F STA $004F FD65: 39 RTS FD66: BD FA B1 JSR $FAB1 FD69: 86 7F LDA #7F FD6B: 97 78 STA $0078 FD6D: 39 RTS FD6E: CE 01 81 LDX #0181 FD71: C0 0D SUBB #0D FD73: 58 ASLB FD74: BD EE 8C JSR $EE8C FD77: DF EF STX $00EF FD79: 58 ASLB FD7A: CE 01 4E LDX #014E FD7D: BD EE 8C JSR $EE8C FD80: BD EE 92 JSR $EE92 ( CMOS,X++ -> A) FD83: 97 52 STA $0052 FD85: BD EE 92 JSR $EE92 ( CMOS,X++ -> A) FD88: 97 53 STA $0053 FD8A: 5F CLRB FD8B: DE EF LDX $00EF FD8D: 8D 14 BSR $FDA3 FD8F: 16 TAB FD90: BD EC 32 JSR $EC32 FD93: 84 F0 ANDA #F0 FD95: D7 4C STB $004C FD97: 97 4D STA $004D FD99: 5F CLRB FD9A: D7 4E STB $004E FD9C: D7 4F STB $004F FD9E: BD FD 1F JSR $FD1F FDA1: 20 E8 BRA $FD8B FDA3: 8D 36 BSR $FDDB FDA5: 1B ABA FDA6: 19 DAA FDA7: BD EE EE JSR $EEEE FDAA: 20 32 BRA $FDDE FDAC: 5F CLRB FDAD: CE 01 AD LDX #01AD FDB0: BD FD A3 JSR $FDA3 FDB3: C6 99 LDB #99 FDB5: 81 09 CMPA #09 FDB7: 24 F4 BCC $FDAD FDB9: 97 4F STA $004F FDBB: 16 TAB FDBC: 27 03 BEQ $FDC1 FDBE: BD EF 0F JSR $EF0F FDC1: BD FD 1F JSR $FD1F FDC4: 20 E7 BRA $FDAD FDC6: CE 01 AF LDX #01AF FDC9: C0 14 SUBB #14 FDCB: 58 ASLB FDCC: BD EE 8C JSR $EE8C FDCF: 8D 0A BSR $FDDB FDD1: 97 4F STA $004F FDD3: B6 01 AE LDA $01AE FDD6: 84 0F ANDA #0F FDD8: 27 0B BEQ $FDE5 FDDA: 39 RTS FDDB: BD EE 92 JSR $EE92 ( CMOS,X++ -> A) FDDE: 09 DEX FDDF: 09 DEX FDE0: 4D TSTA FDE1: 39 RTS FDE2: CE 01 AB LDX #01AB FDE5: 5F CLRB FDE6: 8D BB BSR $FDA3 FDE8: 97 4F STA $004F FDEA: BD FD 1F JSR $FD1F FDED: 20 F7 BRA $FDE6 FDEF: CE 01 8B LDX #018B FDF2: C0 1A SUBB #1A FDF4: 58 ASLB FDF5: BD EE 8C JSR $EE8C FDF8: 20 EB BRA $FDE5 FDFA: CE 01 70 LDX #0170 FDFD: 20 E6 BRA $FDE5 FDFF: 4F CLRA FE00: CE 00 4C LDX #004C FE03: C6 14 LDB #14 FE05: BD F8 A9 JSR $F8A9 FE08: 36 PSHA FE09: 85 01 BITA #01 FE0B: 27 04 BEQ $FE11 FE0D: 86 CF LDA #CF FE0F: 20 02 BRA $FE13 FE11: 86 2C LDA #2C FE13: C6 0C LDB #0C FE15: CE 00 60 LDX #0060 FE18: BD F8 A9 JSR $F8A9 FE1B: 32 PULA FE1C: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer FE1F: 18 FE20: BD FC 81 JSR $FC81 FE23: 2A DB BPL $FE00 FE25: 73 00 7C COM $007C FE28: 8B 11 ADDA #11 FE2A: 19 DAA FE2B: 24 D3 BCC $FE00 FE2D: D6 E9 LDB $00E9 FE2F: 2A CE BPL $FDFF FE31: 39 RTS FE32: BD F9 11 JSR $F911 Blank all Player Displays (buffer 0) FE35: 4F CLRA FE36: 97 7C STA $007C FE38: 97 5C STA $005C FE3A: 86 FE LDA #FE FE3C: C6 FF LDB #FF FE3E: F7 21 00 STB SOUND_PIA5_DATA_A FE41: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer FE44: 00 FE45: B7 21 00 STA SOUND_PIA5_DATA_A FE48: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer FE4B: 40 FE4C: BD FC 81 JSR $FC81 FE4F: 2A EB BPL $FE3C FE51: 7C 00 5C INC $005C FE54: 48 ASLA FE55: 4C INCA FE56: 2B E4 BMI $FE3C FE58: D6 E9 LDB $00E9 FE5A: 2A D9 BPL $FE35 FE5C: 39 RTS FE5D: C6 AA LDB #AA FE5F: D7 5C STB $005C FE61: D7 0F STB $000F FE63: 96 10 LDA $0010 FE65: 43 COMA FE66: CE 00 10 LDX #0010 FE69: C6 0C LDB #0C FE6B: BD F8 A9 JSR $F8A9 FE6E: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer FE71: 1B FE72: 7A 00 0F DEC $000F FE75: 26 EC BNE $FE63 FE77: D6 E9 LDB $00E9 FE79: 2A E8 BPL $FE63 FE7B: 39 RTS FE7C: BD FC AA JSR $FCAA FE7F: 5A DECB FE80: D7 E9 STB $00E9 FE82: BD FD FF JSR $FDFF FE85: 7F 00 5E CLR $005E FE88: 8D A8 BSR $FE32 FE8A: 7C 00 5E INC $005E FE8D: 8D CE BSR $FE5D FE8F: 7C 00 5E INC $005E FE92: 8D 08 BSR $FE9C FE94: CE 01 4A LDX #014A FE97: BD F7 E7 JSR $F7E7 Add 1 to data in X FE9A: 20 E6 BRA $FE82 FE9C: 86 F9 LDA #F9 FE9E: BD EA 83 JSR $EA83 FEA1: C6 01 LDB #01 FEA3: D7 5C STB $005C FEA5: 86 20 LDA #20 FEA7: 85 08 BITA #08 FEA9: 27 04 BEQ $FEAF FEAB: 8D 1F BSR $FECC FEAD: 20 07 BRA $FEB6 FEAF: BD EA 83 JSR $EA83 FEB2: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer FEB5: 20 FEB6: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer FEB9: 20 FEBA: BD FC 81 JSR $FC81 EFBD: 2A E8 BPL $ FEBF: 4C INCA FEC0: 7C 00 5C INC $005C FEC3: 81 09 CMPA #09 FEC5: 26 E0 BNE $FEA7 FEC7: D6 E9 LDB $00E9 FEC9: 2A D6 BPL $FEA1 FECB: 39 RTS FECC: D6 B2 LDB $00B2 FECE: 26 FC BNE $FECC FED0: 86 08 LDA #08 FED2: C6 0E LDB #0E FED4: 37 PSHB FED5: 7E EA B1 JMP $EAB1 FED8: 86 FF LDA #FF FEDA: 97 5C STA $005C FEDC: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer FEDF: 00 FEE0: B6 D0 4D LDA $D04D FEE3: 4A DECA FEE4: 36 PSHA FEE5: FE D0 51 LDX $D051 FEE8: C6 03 LDB #03 FEEA: 4A DECA FEEB: 2B 05 BMI $FEF2 FEED: BD EE 8C JSR $EE8C FEF0: 20 F8 BRA $FEEA FEF2: A6 00 LDA $00,X FEF4: 84 10 ANDA #10 FEF6: 97 00 STA $0000 FEF8: 32 PULA FEF9: CE 00 85 LDX #0085 FEFC: BD F2 12 JSR $F212 FEFF: 7D 00 00 TST $0000 FF02: 26 06 BNE $FF0A FF04: E5 00 BITB $00,X FF06: 26 18 BNE $FF20 FF08: 20 04 BRA $FF0E FF0A: E5 00 BITB $00,X FF0C: 27 12 BEQ $FF20 FF0E: 36 PSHA FF0F: 4C INCA FF10: C6 01 LDB #01 FF12: BD F8 80 JSR $F880 FF15: 97 5C STA $005C FF17: 4F CLRA FF18: BD EC 3B JSR $EC3B FF1B: 32 PULA FF1C: BD E9 7C JSR $E97C Push Following Routine onto Control Stack with Timer FF1F: 40 FF20: 4A DECA FF21: 2B B5 BMI $FED8 FF23: 20 BF BRA $FEE4 FF25: C6 20 LDB #20 FF27: A8 00 EORA $00,X FF29: 84 F0 ANDA #F0 FF2B: 27 52 BEQ $FF7F FF2D: C6 10 LDB #10 FF2F: 20 4E BRA $FF7F *** NMI Entry *** FF31: 0F SEI FF32: CE 28 00 LDX #DISPLAY_PIA1_DATA_A FF35: 6F 01 CLR $01,X FF37: 86 F0 LDA #F0 FF39: A7 00 STA $00,X FF3B: C6 3C LDB #3C FF3D: E7 01 STB $01,X FF3F: A7 00 STA $00,X FF41: 4F CLRA FF42: CE 10 00 LDX #1000 FF45: A7 00 STA $00,X FF47: 08 INX FF48: 8C 14 00 CMPX #14 FF4B: 26 F8 BNE $FF45 FF4D: 35 TXS FF4E: 09 DEX FF4F: A1 00 CMPA $00,X FF51: 26 D2 BNE $FF25 FF53: 8C 10 00 CMPX #10 FF56: 26 F6 BNE $FF4E FF58: 43 COMA FF59: 26 E7 BNE $FF42 FF5B: 86 03 LDA #03 FF5D: 97 BA STA $00BA FF5F: C6 20 LDB #20 FF61: CE FF FF LDX #FFFF FF64: DF B8 STX $00B8 FF66: CB 10 ADDB #10 FF68: 7A 00 BA DEC $00BA FF6B: 2B 18 BMI $FF85 FF6D: 96 B8 LDA $00B8 FF6F: 80 10 SUBA #10 FF71: 97 B8 STA $00B8 FF73: 4F CLRA FF74: A9 00 ADCA $00,X FF76: 09 DEX FF77: 9C B8 CPX $00B8 FF79: 26 F9 BNE $FF74 FF7B: 81 80 CMPA #80 FF7D: 27 E5 BEQ $FF64 FF7F: 53 COMB FF80: F7 28 00 STB DISPLAY_PIA1_DATA_A FF83: 20 FE BRA $FF83 FF85: C6 90 LDB #90 FF87: B6 01 BB LDA $01BB FF8A: 7C 01 BB INC $01BB FF8D: B1 01 BB CMPA $01BB FF90: 27 ED BEQ $FF7F FF92: C6 80 LDB #80 FF94: CE 12 00 LDX #1200 FF97: DF B8 STX $00B8 FF99: CE 01 00 LDX #0100 FF9C: 8D 2F BSR $FFCD FF9E: 86 F1 LDA #F1 FFA0: 97 BC STA $00BC FFA2: CE 01 00 LDX #0100 FFA5: 96 BC LDA $00BC FFA7: A7 00 STA $00,X FFA9: 8D 43 BSR $FFEE FFAB: 26 FA BNE $FFA7 FFAD: CE 01 00 LDX #0100 FFB0: 96 BC LDA $00BC FFB2: 16 TAB FFB3: E8 00 EORB $00,X FFB5: C4 0F ANDB #0F FFB7: 26 0E BNE $FFC7 FFB9: 8D 33 BSR $FFEE FFBB: 26 F5 BNE $FFB2 FFBD: 7C 00 BC INC $00BC FFC0: 26 E0 BNE $FFA2 FFC2: 8D 1D BSR $FFE1 FFC4: 7E E7 30 JMP $E730 FFC7: 8D 18 BSR $FFE1 FFC9: C6 80 LDB #80 FFCB: 20 B2 BRA $FF7F FFCD: 36 PSHA FFCE: BD EE 92 JSR $EE92 ( CMOS,X++ -> A) FFD1: DF BA STX $00BA FFD3: DE B8 LDX $00B8 FFD5: A7 00 STA $00,X FFD7: 08 INX FFD8: DF B8 STX $00B8 FFDA: DE BA LDX $00BA FFDC: 5A DECB FFDD: 26 EF BNE $FFCE FFDF: 32 PULA FFE0: 39 RTS FFE1: CE 01 00 LDX #0100 FFE4: DF B8 STX $00B8 FFE6: CE 12 00 LDX #1200 FFE9: C6 80 LDB #80 FFEB: 7E EF 23 JMP $EF23 FFEE: 4C INCA FFEF: 26 02 BNE $FFF3 FFF1: 86 F1 LDA #F1 FFF3: 08 INX FFF4: 8C 02 00 CMPX #02 FFF7: 39 RTS FFF8: D0 D0 IRQ Entry FFFA: D0 D3 SWI Entry FFFC: FF 31 NMI Entry FFFE: E7 30 RES Entry