Bank 7
; Zelda uses the MMC very simply. Zelda has no VROM ... everything is in RAM. ; ; 011x : Two-screen (10=vertical mirroring, 11=horizontal) 16K fixed C000 and 16K swappable 8000, 8K VROM at PPU 0000 ;# DPCM 1 C000: F0 F0 B0 F0 3C 3C 3C 3C 3C 3C F0 F0 FC C0 33 0F 3C F0 C0 0F FC C0 0F F3 0F FC 30 3F C3 2F CC CF C020: 83 3F 0C FF 0F FC 03 CF EF 0F FC 00 CF FF 0F F0 00 83 3F 0F F0 C0 E3 F3 00 0F 3C 3F 03 0F CC CF C040: C0 C3 FB 00 0F CC 03 0F F3 C0 03 0F 3C F0 F0 C0 C0 C3 C3 C3 C3 C3 C3 C3 F0 F0 B0 3C 3C 0F 0F C3 C060: C3 F0 3C 0C CF C3 F0 3C 0C CB C3 F0 3C 3C 0F CB C3 C3 F0 30 3C 3C 3C 0C 0F 0F 0F 0F 0F 0F 3C 3C C080: FC F0 C0 0B 0F FC CC 03 3F FC 03 FC 30 3F C0 0F CF 0F F0 0F CF CF C0 3F F0 FC 3C F0 0F 3C FF 3C C0A0: E0 0F 3C FC 3C C0 0F 3C FF 3C F0 00 C3 CF C0 0F CC CF C0 03 F3 00 3C CC 0F F8 C0 0F 3C F0 03 0F C0C0: 2F 3C F0 F0 C0 C0 C3 C3 C3 C3 C3 C3 C3 F0 F0 F0 3C 3C 0C 0F CF C3 F3 30 3C CF C3 B0 3C 0F C3 F2 C0E0: B0 3C 3C 0F 0F C3 C3 C3 C3 F0 F0 F0 F0 F0 F0 F0 F0 C0 C3 03 0F 3F FC F0 03 0F FC C0 0F FC 00 3F C100: CC 0F F0 0F F3 33 FC 03 F3 F3 C0 2F 3C FF 0C F0 03 3C FF 3F F0 03 3C FF 3C F0 0B 3C 3F 0F FC C0 C120: F3 33 C0 03 C3 03 F0 C3 FC 00 3F CC 0F 3C C0 03 3C F0 C0 03 0F 3C 3C F0 F0 F0 F2 F0 F0 F0 F0 F0 C140: F0 F0 3C 3C 0C 0F 0F CB C3 F2 30 0C CF C3 70 3C 0F C3 F3 30 3C 0C 0F CF C3 C3 F3 F0 F0 F0 30 FC C160: 3C 3C F0 F0 F0 F0 C2 C3 0B 0F 3C F0 C0 0F FC E0 CF FC 80 3F CC 0F F0 03 F3 33 F0 03 F3 CF C0 3F C180: 30 FF 3C F0 0F 3C FF 3C F0 0F 30 FC 3C C0 0F 3C FF 0C FC 00 F3 03 E0 0B E3 03 F0 03 FC 00 3F CC C1A0: 0F FC C0 0F 3C F0 C0 0F 0F BC 3C F0 F0 F0 C2 C3 C3 C3 C3 C3 C3 F3 F0 F0 30 3C 3C 3C 0F CF C3 30 C1C0: 3C CF C3 B0 0C CF F3 F0 30 3C 3C 2C 0F 0F 0F C3 CB C3 C3 C3 C3 C3 0B 0F 0F 0F 3C FC F0 C2 03 3F C1E0: F0 C0 2F FC 00 3F F0 03 FC C3 FC 00 FF 00 FC 00 FF 03 F3 CF C0 3F F0 FC 33 C0 3F C0 FC F3 C0 3F C200: C0 FC 33 C0 0F 30 FF 00 FC C0 FC 03 FC 00 FC 00 BF C0 0F F0 03 3F F0 03 0F FE F0 C0 0F 0F 3F 3C C220: 3C 3C BC F0 F0 F0 F0 30 3C 3C 3C 3C 2F 0F 0F C3 C3 F3 3C 0C C3 F3 3C 0C CB F2 3C 3C 0C 0F CB C3 C240: C3 C3 F0 F2 F0 F0 F0 F0 F0 F0 F0 C3 C3 03 0F 3F 3C F0 C3 0B 3C F0 03 3F C0 03 FC 03 3F C0 3F C0 C260: 3F C0 FF 00 FF 00 FC 03 F0 3F C0 FF 02 F3 0F 03 FF 03 C3 3F 03 FF 03 F3 0F C0 3F 00 FF 00 FC 00 C280: FC 00 FF 00 3F F0 3F F0 03 3F F0 03 3F BC F0 C3 03 2F 3C 7C F0 F0 F0 F0 C3 E2 C3 C3 C3 C2 F3 F0 C2A0: F0 F0 30 3C 3C 0F C3 B3 3C CF F3 30 0C C3 F0 F2 F0 30 BC 3C 3C 3C 3C 2C 3C 3C 3E 3C 3C 3C FC F0 C2C0: F0 C3 03 0F 3C F0 C2 0F 7C C0 03 FE 80 3F F0 0F F0 03 FC 03 FC 03 FC 0F E0 0F C0 FF 00 FC 03 F0 C2E0: 7F 00 FC 03 F0 FF 00 FC 0F F0 3F 00 FF 02 FC 0F F0 0F F0 3F C0 0F F0 0F F8 03 FF C0 0F FC C0 0F C300: BC F0 C0 0F 0F BC FC F0 F0 F0 C3 C3 C3 C3 C3 C3 C3 C3 C3 F2 F0 F0 B0 3C 3C 0F C3 B2 3C CF F3 30 C320: 0C C3 E3 F0 F0 F0 38 3C 3C 3C 3C 3C 3C 3C 3C 3C FC F0 F0 C0 C3 03 0F 3C F0 C0 0F 3E F0 07 3F E0 C340: 0F F8 03 FE 03 BF 00 FF 00 FF 00 FF 03 F0 0F F0 3F 00 FE 03 F8 3F 00 FE 03 F0 3F 00 FC 03 FC 3F C360: 80 FF 00 FF 03 FC 03 FC 03 FC 00 FF 00 3F F0 0F FC C0 0F 3C F0 C3 0F 3F 3C F0 C2 C3 CB 03 0F 0F C380: 2F 0F 3F 0C 2F 2C 0F 0F 0F 0F 0F CB CB F0 3C CB F3 2C CE C3 30 0C 0F 0F 0F 0F C3 C3 C3 C3 C3 C3 C3A0: C3 CF 03 0F 0F 0F 3C 3C F0 F0 C3 0B 3F F0 C0 0F FC C0 0F FC 00 FF C0 3F C0 0F C0 0F F0 3F C0 3F C3C0: 80 FF 00 FC 03 F0 BF 00 FC 03 F8 FF 00 FC 0F E0 FF 00 FC 03 F8 0F C0 3F E0 FF 00 3F C0 3F C0 0F C3E0: F8 0F FC C0 2F F8 C0 0F 3C F0 C3 03 3F 3C FC F0 F0 F2 E0 C3 C3 C3 C3 C3 C3 C3 C3 C3 C3 C3 F2 F0 C400: 38 CC C3 B2 2C 0F F3 0C CF F2 F2 F0 F0 F0 F0 F0 F0 C0 83 0F FC 00 FF 00 FE 03 C0 3F 80 FF 00 FF C420: C0 0F 3C FC F0 F0 F2 B0 CC C3 C3 C3 0F 0F 3C F0 0B FC 03 FC 0B C0 3F 00 FF 03 F0 03 FE C3 0B 3F C440: 3C BC 38 3C E3 F0 F0 C2 C3 0F 3E F0 03 F8 03 FC 0F 00 FF 00 FE 0F F0 0B FC C2 0F 3E FC F0 C0 3F C460: C3 C0 C3 0F 3F FC C0 0F F0 03 F0 0F C0 FF 00 FC 0F F0 0F C0 0F FC C0 C3 3F 3C F0 CC 33 FC C0 C3 C480: 2F FC C0 0F F0 0F F0 0F 00 FF 00 FC 0F C0 3F C0 3F F0 C3 0F FC F0 03 00 DE FF FF C0 03 3F C0 0F C4A0: F0 0F C0 3F 00 FF 03 C0 3F C0 FF 00 3F F0 0F 3C F0 03 FF 00 C0 FF C3 CF BF C0 0F F0 03 E0 0F C0 C4C0: FF 00 F0 0F F0 7F 00 FF C0 3F F0 03 BF F0 03 00 FF FF FC 00 3F C0 0F F0 0F C0 3F 00 FF 03 F0 3F C4E0: 80 FF 00 FC 00 FF C0 0F FC 03 FF FF 00 20 80 3F F4 0F F0 0B FC 0F 00 FF 00 FF 0F C0 FF 00 FE 03 C500: FC 03 FC 02 3F E0 FF 03 00 3F F0 0F F0 0F F8 0F C0 3F 80 FF 03 C0 3F C0 FF 03 F0 0F F0 0F F0 0F C520: F4 0B C0 FF 03 FC 03 FC 03 FE 03 F0 0F C0 FF 00 F0 0F F0 FF 00 FC 0F F0 2F 80 3F C0 BF 00 FC 0F C540: D0 3F 00 FF 80 FF 03 F0 0F F0 FF 00 F8 0F E0 FF 00 FC 0F E0 3F 00 FF 00 FE 0B 00 FF 00 FF 0F C0 C560: 3F F0 FF 00 F0 3F 00 FF 02 F0 3F 00 FF 03 C0 BF 40 FF 03 C0 FF 00 FF 07 C0 FF 00 FE 0F 00 FF 00 C580: FF 0F 00 FF 03 FC 0F 00 FF 03 F8 3F 00 FC 03 FC 3F 00 FC 0F F0 3F 00 FC 0F F4 BF 00 F0 0F E0 FF C5A0: 00 F0 0F D0 FF 02 F0 3F 40 FF 03 E0 3F 40 FF 03 C0 3F C0 FF 03 C0 FF 00 FF 0B 40 FF 00 FF 0F 00 C5C0: FF 00 FE 0F 00 FF 03 FC 0F 00 FF 03 FC 3F 00 FC 0F F4 2F 00 FC 0B F0 3F 00 FC 0F F0 3F 00 FC 0F C5E0: F0 FF 00 F0 2F 60 FF 00 F0 3F C0 FF 02 E0 3F C0 FF 03 C0 3F C0 FF 03 C0 FF 00 FD 03 C0 FF 00 FF C600: 0F 00 FF 00 FF 0F 00 FF 03 F7 07 00 FF 03 F8 0F 00 FF 03 FC 2F 00 FC 0F D8 3F 00 FC 0F D8 BF 00 C620: FC 0F D0 7F 00 F8 2F D0 FF 00 F0 3F 40 FF 02 F0 3F 40 FF 02 E0 BF 40 FF 03 C0 FF 00 FF 03 C0 FF C640: C0 FD 01 C0 FF 00 FD 03 82 FF 02 DD 0F 20 FF 03 DC 0F 08 FF 03 DC 2F 00 FD 0B EC 1F 20 FC 0F F0 C660: 3F 00 FC 0F 70 BF 00 FA 0F 70 7F 80 F0 3F C0 7F 80 F0 3F C0 FD 02 F0 3F C0 FD 02 C2 FF 80 FE 01 C680: C2 FF 00 FF 03 C0 FF 00 F7 07 88 FF 02 FC 07 08 FF 03 DC 2F 00 FF 03 DC 2F 80 FE 03 DC 1F 20 FC C6A0: 0F 70 3F 10 FC 0F 70 BF 00 FA 3F B0 3D 20 F2 0F B0 7D 90 D8 3F C0 7E 42 D2 3F C0 FD 20 D1 3F 60 C6C0: FD 02 C9 BF 80 DD 83 C4 FF 00 F5 23 22 FF 80 F5 0B 22 FF 02 76 0F 22 FF 03 74 0F 8A FC 03 D6 2F C6E0: 88 FC 0B D8 2F 88 FC 0F 50 3F 28 F2 0F 68 BF 20 F2 2F 60 BF 20 E9 3F 40 FD 20 F2 BF 50 D5 48 D2 C700: 0F 68 75 25 69 9F A0 75 A3 A4 3F 50 6D 8B 4A BF 40 6B 8B 4A BF 40 6B 2B 2A FD 20 6B 27 29 FD 02 C720: 6D 97 A4 FC 02 AD AD A4 F4 83 6A 9D A8 F4 0B B4 AD A2 F2 0B B4 76 A2 D2 0F B4 76 92 D2 2F D0 76 ;# DPCM 2 C740: A2 CA 2F D0 DA 8A 4A 3F D0 DA 49 4A FF 92 4A 2A FF 00 00 00 3C F3 0F E0 FF FF 3F 00 00 00 FC FF C760: FF 3C 3F 80 F0 FF FF 00 00 00 00 FF FF CF FF 0F 00 F0 FF 03 00 00 C0 C0 FF FF F0 FF 03 00 FE FF C780: 00 00 00 FC C0 FF FF C3 CF 0C 00 F0 FF 3F 00 00 00 0C FF FF 3F FC FF 00 00 FF FF 03 00 00 C0 C3 C7A0: FF FF F3 FF 03 00 F0 FF 0F 00 00 00 0C F0 FF FF CC FF 0F 00 F0 FF 3F 00 00 00 F0 03 FF FF 0F FF C7C0: 3F 00 00 FF FF 03 00 00 00 F0 F0 FF FF C3 FF FF 00 00 FC FF 3F 00 00 00 00 80 FF FF FF F0 33 03 C7E0: 20 FC FF FF 0F 00 03 00 00 00 FF FF FF FF 3F 00 00 00 00 00 00 00 6B 6D 5D D7 B6 6D 5D DB D6 D6 ;# DPCM 3 C800: 2B F0 FF BF 00 FC F8 01 1C C2 FF 03 C0 F5 FF 20 00 FC C7 81 E3 FF 7F 00 C2 7F 1D 00 70 FC 38 70 C820: E8 3F 0E 00 C7 7F E1 38 FE 1F 38 C0 1F 07 80 BF C7 0F 00 FF F1 E3 F8 79 1E C0 81 FF C0 21 E8 3F C840: 70 FC F8 31 00 78 8F 1F C7 A1 97 00 80 FF C7 7B E8 F8 01 E0 07 8E 03 C0 F1 FF 00 7E FC 07 F0 1F C860: 3F 80 E3 E0 8F 03 FF 7F 08 00 8E E3 07 F0 E3 3F 0E E0 C7 F1 03 FF B1 02 C0 FF A3 00 7E FC 3F 80 C880: 03 BF 20 02 FF 8F 03 F8 7F 00 38 8E 1F 38 80 E3 07 FE 43 FF 8F 1F C0 8F FF 38 7E 00 3F 80 9E BF C8A0: 0E E0 07 F0 03 FB 71 1C 80 7E E0 07 FE 0B F8 01 E0 00 FE 1E 3F F0 1F F8 0F EC 07 7A 00 3F 80 1F C8C0: F8 0F FC 38 7E E0 00 7E FC C0 0F E0 07 F0 03 FF F1 1F C0 0F FC 07 7E 00 07 70 FC 38 0F E0 3F 7E C8E0: 00 3F F0 0B F8 7F FC 00 FE 1F 07 0E 1C F8 2F E0 C7 71 1C FA 81 1F C0 FF E3 00 80 03 38 0F FC C7 C900: 0F E0 FF 71 00 F8 0F 1C 00 FE 03 C7 81 FF F8 01 FC 07 0E FC F8 5F FC 00 7E E0 38 8E 9F 00 F0 FF C920: C7 F1 03 FB 01 00 F8 7F 1C C7 FF 03 04 80 FF 38 80 FF 3F 00 00 F8 8F 1F C0 FF 1F 00 80 FF 07 80 C940: FF FF 00 00 F8 BF 1F C7 F7 83 07 80 1F FF 01 E1 3F 00 00 FF 8F 03 F8 F1 1F 07 0E FC 38 80 1F FF C960: 0F E0 F8 7F 00 3F F0 1F 28 0E 9C 07 F0 0B FF 81 FF C0 0E 00 3F F0 1F F8 7B 1C C7 F0 03 07 80 1F C980: F8 71 FC 07 7E 00 EF 81 17 F8 F1 03 F8 B1 1F C0 77 1C C7 8B 03 BF 00 1C C7 0F FC 00 FE FF C0 F1 C9A0: FE C0 8F A3 3F 0E 10 F8 0F 00 38 FA 03 3F 8E FF 38 80 E3 3F 78 00 E7 8B 1F 38 FE 02 3F 80 1F FA C9C0: 01 E0 FC 7F 00 F8 8F 1F 00 80 FF 2F 00 E0 FF 01 80 FF 7F 00 38 FE FF 00 FE FF 00 00 FC FF 81 1F C9E0: E0 0F 00 C0 FF BF C7 01 FC 00 0E E8 3F 70 00 FF 7F 00 C0 FE 03 07 FE FF 40 71 FC 02 40 FC FF 7B ;# DPCM 4 CA00: 1C C0 0F 1C 00 FE 1F FF 81 FF 00 0E E0 07 FE 02 FF 0F 1C 00 7E FC 07 F0 0B F8 71 FC C0 0F 1C F8 CA20: 81 1F F8 0F 1C EF 3F 00 58 8F 1F 00 80 FF 3F FE 03 3F 00 00 FF 0F 1C C0 7F 00 07 FE 1F 38 80 FF CA40: F8 71 FC 3F 00 1C FF 81 03 F8 FF 03 00 AA 1F 3F 80 FF 07 8E E3 3F 7E 00 FF 71 E0 38 7E E0 00 F0 CA60: F3 C0 71 FC C0 0F 1C 38 0E E0 F8 FF 03 38 70 00 C7 FF 1F FF F1 E3 07 8E 1F 3F 00 E0 FF 01 1C 78 CA80: 3F 00 C0 FF 03 38 FE 1F C0 FF E2 07 8E 03 FF 81 83 FC 0F 1C C0 7F 00 07 F0 E3 F8 21 FE 07 0E 9C CAA0: C7 0F E0 F8 01 00 C7 8F 03 FF 7F FC C0 81 03 C0 8F 1F C7 F1 1F 3F 0E 1C 3F 70 FC FF 81 1E F8 01 CAC0: 00 C7 89 83 38 F0 1F 07 80 1F F8 F0 FF C7 01 1C 04 8E E3 07 7E 1C FF 71 1C C0 FF 9F 00 F0 1F FF CAE0: F1 03 3F 70 E0 00 F0 E3 3F 8E 1F 38 8E 03 F8 71 FC F8 0F E0 07 78 1C F8 8F 1F 00 FE E3 C0 FF 03 CB00: 07 8E EF 3F 80 03 F8 71 1C C0 7F 1C C0 FF 03 38 0E FC 00 F0 FF C0 81 EF C7 0F E0 3B 70 A0 FF 81 CB20: 1F 38 0E 00 D0 FF E3 00 FE 1F 00 8E FF 00 F0 FF F8 81 E3 07 00 E2 3F 0E 9C FF 81 FF F8 FF 03 FF CB40: 81 03 C0 0F 00 F8 71 02 C0 FF 1F 00 0E 1E 00 F0 FF F8 81 FD C0 71 EC FF 7F 1C C7 8F A3 00 7E E0 CB60: 38 80 FF 3F 0E E0 00 8A 03 3F FE 0B F8 01 10 07 7E FC C7 7F 00 07 7E FC 00 FE 1F 28 FE FF 00 0E CB80: E0 38 0E FC 3F 0A 00 FF 0F 1C 3F FE E3 C0 7F 00 07 8E 1F 38 FE E3 C0 F1 FF C0 8F FF 00 70 FC 47 CBA0: 01 E0 FF 70 00 E8 71 00 FF 7F E0 00 0E 00 FF FF 03 C7 0F 00 C0 FF FF 00 F0 FF C0 21 A0 3F 00 E0 CBC0: FF 7F E0 07 80 1F F8 75 FC 27 7E 00 C0 8F 03 F8 F1 03 07 FE 03 07 F0 FF C0 81 FF 3B 70 FC 3F 00 CBE0: 10 F8 0F E0 FF 07 00 C0 7F E0 C7 0F 9C F8 7F E2 38 80 1F C0 FF FF 38 0E E0 07 80 FF C7 01 E2 38 CC00: 70 A0 3F FE 03 07 7E 1C 00 FE FF C7 01 FC 07 70 1C FF 81 63 FF 0F 1C FF 0F E0 C0 7E 00 07 FE 1F CC20: C0 F1 1F 00 F0 FE 07 70 FC C7 01 01 C2 8F E3 3F F0 1F 00 70 00 C7 8F FF 03 F8 E1 07 7E E0 FF 01 CC40: 1C 3F 00 E0 FF BF 03 D2 8F 03 C0 7F EC F8 F1 03 38 FE 1F F8 81 9F 00 0E FC 3F 0E FC 3F 00 00 FF CC60: 0F 00 FF 0F 00 28 FE 03 3F 00 1C C0 FF FF C7 09 00 07 F0 FF EF 71 02 38 00 FC FF 7F BC 38 00 00 CC80: FF FF 1F 07 00 00 F8 8F 1F F8 01 14 F8 FF 7F 2F 00 1C C0 FB FF 3F 00 FC 00 80 E3 FF 71 00 E0 81 CCA0: 03 FF FF 03 07 0E 60 FB FF E3 00 FE 03 C0 FF FF 38 80 1F 38 F0 EF C0 81 BF C0 A1 FF 38 70 FC 07 CCC0: 80 FE 3F 80 03 FF 01 E0 FF 0E E0 E0 0F E0 C0 8F 0B 00 FE 1F 38 F0 E3 82 80 FF FF 76 A0 38 80 FF CCE0: B8 FE 1F 38 0E 40 27 BE FF 07 00 E0 FF 0F F4 C5 01 1C C0 F1 FF 07 70 00 00 70 FC FF 7F 00 38 80 CD00: 83 FF 0F E0 C0 FF FF C0 7F E0 FB 0F 00 C0 FF 1F 00 0E 1C FF F1 E3 38 01 E8 C0 FF 1F 00 F0 1F 2F CD20: F0 FF 00 00 9C C2 7E FC 3F F0 E3 00 F0 1F FA F9 E3 38 00 FC 3F 00 FC 3F 00 E0 C0 FF E3 07 F0 03 CD40: F8 F1 FF 00 00 FC F8 01 E0 FF 7F 00 80 FE 1F C0 F1 1F C7 D1 0F 3F 00 E0 FF 0F E0 C0 0F E0 C0 7F CD60: E0 00 7E FC C0 F1 FF C7 F1 E3 38 3E 1C F8 01 00 FF 71 FC 00 7E EC 3F F0 1F 00 F0 1F C0 0F 1C FF CD80: 0F 1C FF 01 FC C7 81 1F 00 FA 8F C7 01 00 3F FE 1F 00 80 1E D0 7F FC 00 7E E0 3F 80 FF 07 00 14 CDA0: FF 0F 1C FF FF E3 BF 0E E0 3F A0 E3 00 80 03 FF 0F 00 FF F1 02 38 F0 FF C0 F1 0B 38 FE 1F E4 0F CDC0: 1C F8 0F 1C FF 01 FC 07 0E E0 07 0E FC C2 01 FC 3F FE E3 C0 7F E0 00 7E 00 38 70 FC 3F F0 03 04 CDE0: 00 FD FF 01 FC 3A 00 E0 FF 71 FC 3F 80 E3 07 7E 00 E8 0F E0 F8 FF 03 F8 71 80 F8 01 FC 07 FE 03 CE00: 03 FE 03 FF F1 E3 00 AE E3 FF 81 03 C0 0F FC 3F 80 FF C0 0F FC 87 00 FE 00 F0 03 00 FE 1F FB 0F CE20: FC F8 21 F0 07 0E FC C0 0F FC 07 F0 E3 F8 81 FF 38 0E E0 00 7A E8 C7 0F 00 3F 00 FC FF 01 FC 38 CE40: F0 03 07 FE BF 38 0E FC 07 08 FC 3F 70 BC F8 01 E0 FF 0F 1C C2 0F 00 F8 FF 03 C0 F1 E3 3F 8E 1F CE60: 00 FE 03 F8 0F E0 C0 7F 00 FF 71 E0 FF F1 03 38 F0 FF 00 80 1F F8 7F 00 07 80 E3 FF 7F 00 C0 07 CE80: F4 FF 0F E0 E7 8F 83 00 F0 0B FF 8F 03 FF 7F 00 3F 00 E1 07 70 FD 3F 70 E0 07 7E 00 C0 FF 03 C7 CEA0: 0F E0 3F 80 1F A8 7E 00 FF 7F 1C 00 2E FC 03 7E EC 3F 00 1C 3F FE 03 28 F0 FF 00 8E FF F8 01 E0 CEC0: 3F 00 FC 27 7E 1C F8 0F 00 F8 7F 00 38 FE E3 00 F0 F7 FF F1 03 07 F0 1F 00 04 E0 FF 0F 1D 3F 80 CEE0: E3 3F F0 1F 20 80 1F 07 FE 0F 00 FE FF 00 00 FC 27 B0 FF 07 F0 03 FF 0F E0 F8 7F E0 07 7E FC C0 CF00: 81 E3 2F F0 1F F8 7F E0 07 0E 00 FF 7F E0 05 A0 03 FF 0F FC C0 8F 03 C0 8F 7E 00 00 FC 27 80 FF CF20: 3F 00 00 FF FF 1F 00 8E FE C0 7F 00 00 0A FC FF FF 1F 00 00 7C 00 FE FF C0 7F EE 00 70 1C C0 FF CF40: 03 3F FF 1F C0 0F 00 00 F0 FF FF 01 1C C0 81 03 F8 FF FF F8 2F 00 C0 01 E0 FF 89 FF 10 D0 FF C0 CF60: 00 E0 FF 7F E0 FF 0F E0 07 00 1C FF FF 1F 00 B0 83 C0 F1 FF 07 80 FF FF 0B 00 00 F0 02 FF 8F FE CF80: 3F 00 E0 C7 A1 FD E0 FF 02 38 00 FD 03 FE 1F C0 01 FC C0 2F 00 FF BF E3 C0 7F 1C 3F 30 00 3F F0 CFA0: 03 C3 FF 1F 00 08 FD 00 81 FF 3F 80 FF 07 00 02 FF 7F 1E FF 2F 1C 00 FE 1F 00 F0 03 C4 7F 80 3F CFC0: 7E 00 F8 7F 1C F8 0F 1C E0 01 FE 07 0A FC 07 80 FF 07 B0 E3 3F F0 03 C0 FF 1F C0 7F FC FF 80 1F CFE0: 00 FE FD 07 00 10 00 80 FF FF 81 1F 38 C0 1F F8 FF 0B 00 A0 E3 FF 0F 00 3F 80 FF 3A F0 FF 00 80 D000: 1F 3F F0 FF 07 00 E0 BF 0E 00 F8 FF 01 F8 FF 1F 38 80 FF 07 F0 03 FF 00 E0 FF 01 A0 F8 0F E0 FF D020: 0F 00 C0 FF 1F C0 FF 02 F8 0F 00 FF 81 FF 05 80 FE 27 00 FC FF 0F 00 C0 DF 03 F8 FF 1F C0 40 01 D040: C0 FF 03 FF FF 03 00 F0 BF D0 01 E0 FF 0F 00 F8 7F 00 FF FF 01 00 F0 FF 03 F0 BF 00 F0 BF D0 01 D060: F4 FF 01 E0 FF 05 00 3F FE 1F 00 FE 13 58 A1 9F FF 01 E0 C2 0F FC 03 0E FC 07 80 EA FF 81 1F 00 D080: F0 9F C0 FF FD A4 00 E0 FF 01 E0 FF 01 1D C0 FF 17 00 FE 1F E0 F1 FF 00 00 E0 FF BF EF 00 A0 5F D0A0: 00 F8 1F C0 3F 00 FB 7F 00 FF 2F 00 7F 01 E0 7F 01 BD 3F 00 FE 05 80 FF 3F 08 90 FF 0F 00 FD FF D0C0: 13 00 F8 FF 00 30 FE D7 3F 00 40 FF 01 3C F0 FF 27 00 E0 FF 01 00 FA FF 03 E0 FF 02 00 FE EF 3F D0E0: 01 80 FF 01 7C FF 01 7C 9F 00 4C 00 FE FF 67 3F 00 F8 57 00 FC CF 0F 02 F0 FF 00 F0 FF 80 BE 1D D100: 80 A4 FD C0 3F F2 3F 00 1E 10 B1 FF 3F 00 AC 3F 74 AC 58 0B E2 DB 0F E0 3F 74 00 FF 01 A0 9F FE D120: 1F 00 FE 0B 00 F0 FF FF 01 00 BF 00 A0 FF FF 5D 00 06 51 C5 FE FF 05 80 69 BF 36 89 04 81 FF 3F D140: 00 FE 1F 00 F5 07 FE 03 A0 B6 7F 62 35 61 FB 0F 00 F8 D1 BF FD 01 00 45 05 EC FF FF 02 80 7E 02 D160: FA 4F 02 FB 0F 00 ED FF 6B 00 80 FF 07 B0 FF 02 A4 1D DC 0F E0 FD 0F 60 FF 08 AC 00 F8 FF 00 F7 D180: 5F 00 3E 40 FF 47 40 FF 0B 40 DA 7F 70 03 F6 96 C0 F6 5D 24 A9 8B 2C AB 4D D5 AA AD E0 05 EC 27 D1A0: 80 FF 1F F0 81 DA C9 01 E8 FF 1F 00 C0 FD 47 57 5E 84 2E 00 FB DF AA 9B 88 82 25 B0 7F DF 2B 00 D1C0: BB A4 0F 80 FE 97 02 FE 4F A4 54 6A A5 54 A2 FF 2E 40 FF 01 11 FC 4B 49 E8 FF 82 E8 26 B0 6B 59 D1E0: B5 22 BA FF 22 80 FF 00 00 FE FF 09 74 D3 5E 00 E8 FF 49 12 D9 6F 04 A1 FF 22 2B 89 D0 FE 17 6C D200: 2B 82 A4 DA FE 17 A8 6A 17 00 EC FF 0B EC 64 89 AA DC A4 52 6F 45 68 DF 55 15 20 B1 5F 55 B1 FF D220: 00 F4 83 C4 7E 11 EA B6 52 3F 01 ED 17 00 7D DA D5 AD D4 4A A0 FB 01 A2 FB 25 B2 5D B5 89 24 D8 D240: 7D 27 80 7F DB 08 60 FB 5F 80 E0 BE 56 A5 5E 91 04 A9 75 97 F6 4F 24 41 4A DB 2E 51 DF 46 50 9F D260: A8 B6 A5 A4 52 D5 B6 95 D0 B7 8A 20 FB 17 04 F4 FF 92 08 6A BF 08 52 DF 25 4D AA 5E 55 A4 BA 02 D280: DD B7 82 D8 5F 02 55 55 55 BB AA 5D 85 44 EA 93 28 E9 FB 2B 89 A4 36 49 93 B4 FD 25 C8 EE 2A A1 D2A0: 6A 02 F7 57 52 B5 55 25 25 69 7B 49 AA 55 D9 B6 44 AB 52 52 37 52 7B 4B 52 AB 44 6D 93 AA AA 6C D2C0: DB AA 90 DA 95 20 D5 FD 25 A4 6E 9B 00 69 EF AE 12 55 55 55 55 B5 15 AA 56 95 D4 B7 92 52 A5 6A D2E0: 25 B9 B7 12 A9 6D 92 54 6D 5B 05 ED 2D 21 55 AF A4 AA 6D 2B 11 D5 B6 95 A4 D6 56 84 D6 B6 55 4B ;# DPCM 5 D300: 07 F0 1F FF 01 E0 3F 80 FF C0 7F 94 00 7E EA 07 80 FF 07 F0 1F F8 0F 00 FF 81 FF 00 FE 43 03 F0 D320: 9F A8 0E A0 3F F0 FF 00 F0 BF 10 80 FF 07 F0 E2 FF 09 E0 00 FE 03 F8 7F E0 3F 80 FF C0 7E A0 3F D340: F0 03 C0 2F FC 03 80 FF 07 7E 00 FF 01 1C F8 FF 03 00 FE 1F C0 AF 1F F8 81 FF 07 78 00 F8 B1 03 D360: FF 80 FF 07 06 E0 07 FE 03 F8 2F 00 3F FE 63 00 B0 1F F8 A1 B7 00 FE 03 3F 80 FF 07 80 FF DD 7F D380: 00 F8 0F 02 80 FE 1F 38 80 FF 00 7E B4 FD 7F 00 FF 01 FC 00 2E E0 FF A1 03 C0 7F E0 00 7E FC 3F D3A0: 00 FC C7 7F 00 FF 75 02 C0 7F E8 00 7E E0 3F 80 FF C0 7E E0 07 7A EC 3F 00 9C F8 0F 00 3F F8 0F D3C0: C0 7F E8 07 80 9F 3F 80 1F C0 7F 00 3F F0 1F F8 0F E0 3F 86 0B 00 B0 FF 00 FE F3 BF 00 FC FF 0F D3E0: 00 3F 80 1F FA 00 FC 07 F0 03 F8 7F 80 BF 0E E0 FF 0F 00 27 FF 03 38 80 FF 07 F0 1F F8 09 A0 FA D400: 7F 00 03 F0 FF 00 0E E0 3F 80 FF 02 FE 03 FF 01 E0 FF 0F E0 3F F0 1F C0 01 FC 07 F0 02 F8 7F 00 D420: E8 7F E0 3F 80 FF 00 FE 03 1F F0 9F 00 FE 1F 3F 80 01 F8 7F E0 3F 80 FF 07 00 E0 FF 01 00 E8 FF D440: 03 80 FE BF C0 7F 00 FF 8F FF 00 F0 0F BF 00 FC 03 08 FE BF 00 FC 07 FE 02 C0 FF 1F 07 7E 10 28 D460: 80 FF 07 A4 FD 3F 00 FC 3F 00 FC 3F 00 EC 00 FE 1F C0 7F 00 FF F1 1F 00 7E E2 2F 00 FC FF 0A 80 D480: 3F 80 FF 00 FE 0F C0 2F E0 07 FE 0F C0 7E 00 F8 FF 0B C0 7F E0 FF 01 E0 E7 7F 00 E8 01 FC 87 0A D4A0: E0 FF 0B E0 3F 80 BF FC 05 E0 07 F0 FF 03 00 80 FF 0F FC 07 B0 FF 2F 00 FC 07 FE 03 00 F8 1F FF D4C0: 00 E0 3F F4 0B C0 5F 02 3F F0 1F 00 FE 03 F8 0F BE C0 FF 03 F8 01 E0 FF 01 00 F8 7F 00 3F F0 FF D4E0: C7 0A E0 07 F8 FF 00 F0 FF C7 81 1F C0 7F 00 FB 0F 00 FF 09 00 E0 0F FC EF 09 E0 FF 0F 00 F8 BF D500: 1F 3F 00 FC 07 80 1F C0 FF FF 00 00 E8 3F 3F 00 F8 FF 03 C0 FE E3 07 F0 1F C0 7F 00 F8 0F E0 07 D520: F0 EF 3F 00 FC 3F 08 00 FF 0F FC 00 FE 0B F8 0F FC 00 F8 1F 00 FE 9F C0 0F E0 FF 01 00 FA FF 03 D540: 38 80 FF 07 08 E0 FF 01 E0 BF 80 FF C0 FF 0B C0 7F E0 BA 80 11 FA 7F 00 F8 FF FF 00 00 E0 FF 01 D560: E0 FF F1 FF 38 F0 1F 00 0E E0 3F 80 03 F8 0F 00 FF 7F 00 C0 FF 03 3F 20 E0 FF 0F E8 07 F0 FF 00 D580: 7E BE 00 F0 03 E0 FF 1F 00 F0 FF 3F 00 AC FF 0F 00 FF 0F EC 07 F0 1F 00 FE 0F 80 FE 03 F8 0F 80 D5A0: EF 7F 00 00 FE 5F 23 00 FC 3F F0 1F C0 FF 1F 00 FA E3 07 00 FC C7 08 F0 07 F0 0B FF 01 FC 07 FE D5C0: 03 C0 FF E3 07 00 FC FF 80 16 F8 01 FC 07 F0 E3 FF 01 E0 FF FE E2 C0 FF 03 00 00 EC 3F 80 1F 3F D5E0: 70 EC 07 F0 1F C0 3F 00 C0 FF 1F 00 FE 1F FA 01 E0 3F 80 FF 00 80 FF 07 80 FF FF 09 00 7F FF 03 D600: F8 80 9F 3F 00 FC 07 F0 0F 28 80 FF C7 01 E0 FF 01 E0 FF 07 E0 02 8E FF 07 D6 02 F8 0F E0 3F A0 D620: 9F 00 FE FF 00 80 FF 3F 00 FE 3F 00 FC FF 8B 83 3F 80 1F C0 7F 00 C0 7F 02 FF 01 E0 FF 0B 00 05 D640: FE 0B 3F 00 FE C7 7F 00 FF 0F 00 FF 0F E0 C7 27 80 1F FE 03 C0 7F E0 07 FE 0F C0 0F E0 3F 80 FF D660: 00 FE 1F C0 0F 1C FF 01 00 FF 0F 00 F8 7F A0 07 FE 03 F8 7F 00 FF 80 1F C0 FF 1F 00 7E 00 FF 81 D680: 1F F8 0F E0 07 F8 FF C0 F1 1F F8 71 E0 FF 01 E0 07 80 0F E0 7F E0 E8 0F 00 FC 7F 02 3F 80 FF 00 D6A0: A0 FF EF 0F 00 FF 01 FC 07 80 FF 00 80 FF 3F 00 FC FC 0F 00 FF 81 E1 3F B0 1F 00 7E 00 FF 7F A2 D6C0: 00 F0 FF C0 80 FF 00 FE 03 FB 81 03 BB F0 FF 00 F0 FF 00 0E FC 3F 80 1F FF 01 FC 00 FA 02 FB 0F D6E0: E0 FF 00 00 3F FE 1F F8 0F E0 07 70 E0 FF 01 FC 3F 00 00 FF 0F 00 F8 F5 0B 2F F0 1F C0 4F FC 07 D700: F8 03 78 81 FF 07 80 FF C0 7F A8 E8 7F 02 03 F0 FF 00 88 FF 07 00 FC FF 0F 00 FF 81 1F C0 7F 00 D720: F8 7F 00 FF 01 1C C0 7F 00 FF 89 FF 07 00 E0 FF F8 0F F8 0F 00 F8 0F EC 00 FE 1F C0 FF 1F 00 FE D740: 03 F8 F1 1F C0 0F 01 F8 0F E0 07 F0 9F 04 FE 03 FF 81 03 F8 8F FF 00 FE 1F 00 FE EB 07 F0 FF 00 D760: F0 03 F8 0B FC 07 FE 02 00 FE FF C0 0E 00 FF 01 FC 2F FA 1F 00 3E E8 3F 0E FC 07 00 FC 07 00 EA D780: FF 0F E0 07 80 FF 07 F8 03 F8 01 FE C2 0F 1C F8 CF 81 3F 0E FC 07 70 E2 3F 80 9F 3F 00 FC 07 0A D7A0: A0 FA 8F 1F 3F 7E E0 00 F0 03 FF 01 E0 3F 80 FF C0 0F E0 3F A0 FF 00 BE FF 02 F0 FE 00 80 FF 3F D7C0: F0 03 F8 0F 00 FF 81 1F F8 01 FC 07 7E FC 07 80 FF 07 80 1F 00 FE EB 07 B0 FF 80 00 FC FF 01 E0 D7E0: 3F 00 FC FF 81 03 C4 BF FE 07 F0 1F C0 0F FC C0 2F E0 C7 0E 00 E0 7F 02 27 FE FF 00 FE E3 07 80 D800: FF 00 B4 FF 38 7A 00 3F F0 03 FA F5 02 3F 80 FF C0 2F 00 FF 81 FF 04 00 A0 FF 0F E0 BF 0E E0 07 D820: FE 03 FF 81 9F 00 FE 03 3A F0 1F 22 D0 FF C0 0F 08 F8 0F FC 00 FE 1F 00 FE FF 02 F0 FF 00 70 82 D840: 3F 7A FC 27 00 0C FB 0F 00 3F F0 1F F8 A9 03 FA 0F F5 C2 07 FC FF 01 E0 FF 01 00 F8 0F FC C0 7F D860: 80 C0 2F FC 07 7E 1C C0 0F E0 EF 89 FF C0 0F E0 C7 7E 02 E8 0F 00 FF 8F 0A F8 FF 03 F8 01 FC 00 D880: FE E3 27 80 7F 07 00 E0 3F FE 1F 80 FE 03 C0 7F 00 3F FA 0F C0 7F 00 00 FE FF 00 F0 F3 3F F0 03 D8A0: 3F F0 0F F8 01 FC 07 F0 03 07 FE BF 07 F0 0B 00 F0 1F 3F 80 FF 07 0E FC 07 F0 17 FD 0E 80 FF 01 D8C0: FC 3F 80 1F F8 00 EE 00 FE 83 07 FE 03 00 7E E1 07 FE FF C0 7F 00 F8 80 FF C0 0F FC 00 F0 FF 38 D8E0: F0 03 F8 7F 02 3F 80 03 3F F0 1F C0 0F A8 E0 FF 03 F8 7F E0 02 3E FE 00 FE 03 3F F0 1F E8 01 FC D900: 07 F0 1F 3B 7E 00 07 FE 03 E8 7F 00 FF F9 03 00 7E FC C0 7F 00 C0 8F FE 07 00 BE C0 FF 9F 03 F0 D920: 03 FA 01 FC FF 01 00 3F F4 1F 3A 80 FF 3F 80 0B F8 0F FC 00 7E E0 FF 01 FC E8 01 BC 00 FE 9F 80 D940: FE 03 07 F0 1F C0 7F EC 00 FE 03 C0 AF 1F 3F B0 0F E0 81 FF 83 7E A0 07 FE 1E C0 0F 00 FF 09 00 D960: FF FF 02 FF 01 02 F8 0F A0 FF 0F 00 F8 0F BC C0 FF 9F C0 0F E0 07 7E E0 3F 80 FE 07 7A E0 00 FE D980: FF 00 2E E0 3F F0 0F FA 81 FF 02 70 E8 07 B0 1F F8 31 00 FF 81 0B FF 0F FC F8 00 E0 3F A0 1F F8 D9A0: 81 03 3F 00 FE FF 81 1F F8 01 FE 07 F0 03 F8 89 1F C0 7F 00 F8 0F FC C0 0F E0 3F 7E 08 F8 0F 9C D9C0: F8 0F E0 EF 0F E0 07 F8 E2 3F 80 BF C0 0F 5C 00 FA 1F 38 F0 1F C0 FF 63 03 C0 FF 03 80 FF 00 FA D9E0: 1F F8 81 FF 00 7A FC 07 F0 1F 38 80 FF 00 F8 ED 07 F8 0B 38 00 FE 3F 30 FC 07 A0 FF 28 80 FF 83 DA00: 7E E0 3F 80 0F FC C1 1F 20 FE 63 C4 87 6E 23 F0 BF 00 F8 1F 2B A0 1F 2A F4 17 05 FF 02 FB 80 FD DA20: 2A 81 FE D0 0E FC 02 7E A1 62 7F A0 2F 81 1E F8 3F 60 C0 FF 55 00 F4 5F A2 3E 68 52 F7 91 04 FE DA40: 03 FA 01 BD BF 80 4E DC D0 BF 80 CA 17 E0 7F 00 FB 8B 1E A0 B8 1F F8 89 FE 00 FE 02 E0 7F A2 3F DA60: 80 BF 00 F8 FF 02 F0 1F F8 B1 02 D8 FE 0B C0 0F FC 07 7A F1 27 80 FE 07 A0 8F DA AB 11 C0 7F 01 DA80: FD 0F E0 DF 01 E0 C7 3E 90 ED 7E 00 FC FA 03 E0 0F E8 EC 0F E0 3F 40 55 7F 41 6E C0 7E 02 FC 3F DAA0: 02 2B F0 9F C0 7F 80 FA 0F E8 07 7E 80 3F A0 5F 40 7F E2 07 7A 61 27 C8 7D 13 C1 9F D0 3F 80 EC DAC0: 2F A0 3F A0 BF 24 05 FD 85 A6 4A FC 57 11 94 FA 8B 60 C5 FE 27 04 E0 FF 80 B7 1F 00 7C FF 00 1E DAE0: EC 7F 02 00 FF 4F C0 5E 6A C5 3F A0 9A B8 9F 00 FE 03 FF 01 FC 00 FB 6D 02 F4 9F 00 FE 9D 22 F0 DB00: 49 FF 01 E8 93 D0 FF 00 F0 9F C0 2F AC D0 7F A0 17 A9 5E A0 F6 1F 80 CE FD 00 B6 5D 80 FE 82 9F DB20: A0 FF 00 F8 17 7D 01 FC D2 88 FF 00 F0 FF 00 FE 1F 00 FE 03 C0 7F ED 04 F0 8F 2A 55 E0 FF 01 E0 DB40: FF 0E 00 DF 7E 02 E8 0B FC 03 FE 82 3F 00 FC 27 36 F2 05 F0 5F C0 7F 00 FC 3F 00 3F B1 F6 05 F0 DB60: 43 5F 21 A9 FF 01 10 FC 0F BE 00 FE 03 FA 0F F0 C5 7F 00 1F 7A 49 E0 7E E2 05 B6 53 2F C0 FF 00 DB80: 7E EA 02 FA 03 FC 0F E0 C7 56 A0 FF 00 FE 2A 80 FF 04 FE 02 FC 07 E0 DA 0F EC 2A B0 17 FD 09 FC DBA0: 80 7E 01 FB C1 0B F8 0F FC 00 FE 0F 60 57 E8 27 F8 83 1B A0 FF 04 7E 72 03 F0 8F DD 0A E8 07 7E DBC0: E2 07 F8 6B 02 F0 BF 24 50 EC 3F 80 FF 2A 09 E0 BF C0 8B EC 0F FC 04 7E E0 3F 00 FC 17 80 FF 03 DBE0: F4 1F C0 3F E0 27 B0 EB 2F D0 02 FF 0B E0 27 89 9E FA 05 F2 07 34 F5 03 7E B2 05 F0 9F 24 D5 55 DC00: 95 AA 96 7A D1 4A DA 55 00 FF 05 5D FC 09 FC C0 26 EA 3F C0 1F C0 FF 02 F8 09 7E 60 7F 60 2B A1 DC20: BF C0 4F 80 FB 0F E0 6A A7 76 00 F7 17 A0 3E E0 DF 2E A0 04 FE 8B 45 D7 9D 00 FE 03 3F A0 57 7B DC40: 01 AE 9D 54 76 03 F6 0B D4 7E A8 00 FE 6F A0 B4 17 5A 4B B0 3F F5 02 F8 0F B4 D8 A9 11 FC A7 02 DC60: FA A0 0F FA 0F 60 FB 0A E8 07 F6 EA C0 5E B0 E8 0F EC 45 45 FE 07 A8 56 5D D1 81 2B FF 03 D0 F6 DC80: 4A 92 0A FC 17 F6 01 F8 0F A2 BF C0 52 3F 01 FC 3F 01 52 DB 3F 00 FF 54 12 FA 0B FC 05 B0 9F E0 DCA0: 0B FC 17 C8 8A FB 01 EC 3F C0 0B 7A B7 02 EC 07 FD 04 3F A0 9F 24 ED 03 BE 55 A0 BE 8B A8 AA B6 DCC0: 22 AB 1D FD 00 FC 07 F0 43 BF 04 EC 1F D0 FE 00 7E 01 FC 0F BE 80 7E E8 2F 80 9F D8 25 E0 2F 7A DCE0: AA D0 0B FC A5 44 6D 7B 01 FC 93 C0 FD 02 F4 17 B8 36 E9 2B D0 17 3D C0 6F 15 81 EF 07 4B E0 BF DD00: C0 6E 04 BF EE 00 F4 B5 AC A0 5F E8 A4 6D 2D 01 FE 5B 01 EC D3 4A AA 52 5F 70 1F C0 BF 60 4B B6 DD20: A0 F6 1F E0 56 A0 6B 85 BF A0 B4 03 FF 01 B6 2A 37 B5 BA 80 4F 5D A1 BD 00 F6 9F 00 7F EA 04 F6 DD40: 93 E0 4E F4 07 F0 0F 1B D1 6A 2F 09 F4 9F 00 5D 7B 57 00 D7 7E 02 F8 3F 00 DD 5E 91 95 DA 0A FD DD60: 20 BD 68 BB 02 D8 7F 01 AC FE 82 13 FA 0F 10 FA 1F E0 2B 72 2B 59 6D A0 BA 9F A0 56 72 17 D4 56 DD80: 2A 5F 50 97 F6 01 FB 01 4D 7D A1 8D D8 0F F0 57 55 90 ED 06 FE C0 2E AE 64 A5 AE A0 F6 4F 80 BA DDA0: 97 6C 2B 00 FF 27 42 3B F1 13 05 FA 1F B8 A8 6A 9F D0 02 FD 0F 70 17 D4 4D EA 25 EA E4 0B E8 1F DDC0: 88 FE 23 58 E8 27 3E 02 EF 2E 6A 42 37 AD A4 36 EA 05 F5 E2 17 A0 6F E8 0B 74 ED 0A E8 65 DB 01 DDE0: F8 4F E0 9F 80 FE 15 50 72 3F 81 BD A4 5E 82 FD 09 AC ED 44 8E DC 45 AA DA A9 92 DA 56 50 7B 09 DE00: ED 23 F0 17 9D C0 9F C0 5F A0 3F B0 8F D0 85 7D D4 46 B4 EC A5 89 68 DB 8D 98 5A B1 1B B1 1F E0 DE20: 4E 7E 00 7E 71 2B A1 6F 95 2A 41 FF 01 BE C4 27 B0 3F 80 FF 80 7E 55 22 D5 17 15 B5 AD D8 45 E8 DE40: 07 F4 1F D8 09 7D 05 A9 EF E0 06 F4 D7 04 FC 23 5A B2 9B C8 BD 80 BE 52 D4 0F E0 9F 5A 82 7B 09 DE60: 55 FB 01 F6 85 AA 55 D4 BE 01 DD D4 8E C0 2F AD D8 89 7E A0 0E EC 27 B6 02 FB 0B 52 27 F5 03 17 DE80: AB 55 17 F4 92 3B 01 EE 3F A0 0D FA 55 40 BF A8 6D 22 BB 42 DD 27 40 FB 07 92 D5 37 A8 ED 0A E0 DEA0: AB FE 01 D0 7F 02 15 FB 03 FA A4 6E 02 7F 91 DA 05 7D 05 5F E0 1F C1 9D E0 B6 03 7D 89 AE 92 36 DEC0: B1 9B D0 49 DB 5A 90 BB 5A 42 DB 0E 74 27 AA 49 5F A1 BD 80 3E 55 EA 26 B2 2D D9 8A 9A BA 91 1A DEE0: 7B 41 6F 09 EC 27 57 90 DD 4B F0 85 AA AE 92 26 EA 1F 58 51 7B 0B 72 27 B8 4B 6A 37 02 FB 49 49 DF00: 1F A9 93 2D B8 0F 52 F5 49 65 5B 12 3B D1 97 A4 56 95 6D 49 AA DA 05 EC 1F A0 9F F8 08 FE 12 D0 DF20: FD A2 0A 6D DA 57 40 65 BF 89 C0 7E 4A D5 4A E8 47 2B 51 9F C4 EE 40 5F 60 BF 40 ED 55 21 AD AD DF40: 84 FD 24 A1 5F AA 24 71 3F A8 97 C4 2E 69 2B 55 AA DA 5A 52 15 7B 89 2D D1 4D 6D 09 6D 6A 37 A2 DF60: 17 D9 AA 82 F6 4D 68 89 FE 12 C1 FD 84 AA EA 23 A9 6E A2 AA 6D 13 D1 BD 80 7E B2 94 D0 FF 00 B6 DF80: 9D EC 0A 7C 25 59 49 5F 09 75 1F 81 9F D0 B5 83 1B A0 FF 20 DB 91 AD A4 B6 44 3B A9 DA 56 42 D4 DFA0: 7F A2 A0 FE A2 23 34 EA 27 0B EA 17 AA B6 92 D4 BD 80 F6 AA 15 B4 4B 2A A9 FF 00 3E 6D 13 A8 6F DFC0: C4 5E 48 6D D5 96 E0 2E 55 6D 09 B5 DD 08 A9 BF 84 AA 3B D0 17 DC AA 92 A4 FE 11 A2 BE 15 95 56 DFE0: 5D E0 5F 80 57 A9 1D EC 4E 60 3F C8 4D 6A B5 11 7B 09 B5 2F D0 17 DC 05 B6 DA CA 12 FA 29 A9 55 ;# DPCM 6 E000: FF 07 80 5F 27 0B A0 E7 8E EB 03 F0 13 07 F4 FF 87 70 0C 38 50 02 F8 FF FF 00 A0 FF 3F 00 E0 F8 E020: F1 EB F8 38 00 C0 FF 43 05 C0 FF FF 09 A2 03 27 A0 C0 FF FF 1F 80 AD 2A 80 FF FF 01 00 04 F0 FF E040: FF 7F 00 00 FF 13 C0 FF 02 F8 01 A8 FF A9 1F FD 01 00 C0 AB FF FF 0F 00 00 FE BF 00 A0 17 F8 FF E060: A3 3A 01 00 E0 FF FF FF 07 00 00 00 FC FF 0F FD 27 80 FF 07 00 F0 1F 7E 00 C4 FF FF FF 21 00 00 E080: 00 E0 FF FF FF FB DA 01 00 00 00 FF FF 1F F8 01 00 C0 FF FF 5F 45 00 58 09 00 F8 4F FE FF 4F FC E0A0: 07 00 00 00 F6 FF FF FF 03 C0 01 A0 FD AF E2 2B 80 BF 00 B0 1F BF F0 03 00 FE FF 3F 00 00 F8 FF E0C0: 1D 00 F0 FF FF 0B 00 C0 7F 00 F8 00 FD FF 0F E0 FF 01 00 C0 FF FF 42 05 EC 00 FE 1F 00 FE FD 1F E0E0: FE 8B 04 00 E0 3F 00 FC FF 0F 00 C7 FF F7 3F 00 00 D4 FF 1F 3D 00 FC 07 00 80 FF 77 00 F8 CF 02 E100: C7 A6 FF FF 0B 1C C0 C1 1F 00 F0 BF 38 A0 FF 1F 00 E0 3F 00 00 FF D1 FF FF 09 00 F8 7F E1 07 08 E120: 00 F8 7F E0 3F 7E 02 F8 0F 00 E8 FF FF 3F 00 00 FF 01 40 FF FF 03 00 80 FF FF 2F 00 F8 7F 02 00 E140: F0 F3 C7 FF 77 00 00 E0 FF 5F A0 FF 07 A0 3F 00 00 FF 7F E1 00 F0 FF 1F 00 00 E8 7F 68 FB FF 03 E160: 50 09 80 D4 BF 4E FD 3E E8 9F 08 EC 27 00 00 FB FF FF 07 00 00 3F 81 1F C0 FF FF 2F 0A 00 00 F0 E180: E3 FF FF 17 00 00 FC A5 84 5D C0 FF FF 07 00 5C C0 FF 1F FF 01 00 F8 FF FF 00 00 00 FF FF AB FF E1A0: 0F 00 02 20 00 FF F7 7F 00 80 7E FF 0F E8 3F 00 00 E0 07 EC FF FF FF 03 78 00 00 80 FF C0 FF F2 E1C0: DF 0E 00 00 FE EB EF FF 17 00 00 40 FF 7F 00 C0 8F 11 FF 81 FF 3F 06 00 00 F0 FF 3F F7 03 A8 0E E1E0: 00 FF 0F 00 AF FE FF 1F 01 80 3F 00 A0 FB FF 51 5B 01 E0 17 F4 17 6A 25 EE 2F 00 52 FF 7F 82 C0 E200: 5F 00 57 77 71 07 00 FC FF FF 0B 00 00 48 FF F1 9F F8 4F 00 04 B0 EB FF FF 01 D8 01 E0 1F 80 FE E220: 3F 80 9E C0 7E E9 7F 55 00 F8 80 FD 05 FE 81 23 B0 7F C0 FF 17 C0 AF 11 00 F4 97 FF 59 02 EC 0A E240: 40 FF 7F 00 BF A0 4E C0 FF 03 1F 00 F5 FF 5F 00 02 00 EA FF 7F 62 3F 00 90 DD 5B 6D 3F 00 FE 13 E260: 4A 90 FA BE 02 EC DB 5D 40 BF 12 00 F0 FF 9F 00 EE 93 4A 4D C0 3F EC E0 8F BF 00 5E 00 FF 81 7F E280: 6D 05 80 95 FA 1F C0 7F 61 3F 81 15 D8 40 FC FF A9 12 C0 FE 03 50 FB AD 92 44 4A ED AA EE FF 01 E2A0: 40 80 4E FD BF 80 5D 00 A0 FF 7F 25 E0 1F A0 76 5F 41 60 1F 74 FE E7 0B 00 40 F9 FF 47 4F 40 03 E2C0: F0 7F DC BA 03 28 F4 91 BF D4 8A 6C 25 12 D4 5F B5 DA 5B 82 2D A1 96 00 FB 5F D4 55 60 FF 81 5D E2E0: 00 D1 BD D2 BE A2 6A 09 7C ED 45 AA 05 FA 1F C0 80 FE EC 4F 9D 00 F6 4A BB 00 4D ED 06 FE DF 56 E300: 00 9A 08 B4 D5 FE 6F 5B 01 60 2F 01 75 A7 FA 9F D0 36 8D 00 4B 52 DB FE 57 13 71 81 80 DE AE EC E320: 4B 6D 44 47 94 F8 5F 01 FB 24 E0 AF 5E E0 A2 0A EA BF 54 49 65 57 A8 DA 44 EA 57 A9 AD 82 4A E8 E340: 9B B4 17 DD 0B A8 D2 2A B5 5B A9 97 90 24 B5 55 D5 ED 6D 29 82 6C 09 EE D0 AF 6E 52 25 A0 DB B4 E360: 5F 6A 41 92 A4 FE 76 07 47 12 5C F1 13 DD 57 A8 15 21 69 97 FA BD AA 0A 42 2B 49 76 93 FA 97 6C E380: 25 91 7A 09 6A 13 A9 FF AA 56 92 25 48 55 FB 5B 49 22 59 75 2F 4A 6E 12 75 95 EA 4A A9 6C AB 55 E3A0: 25 A9 B2 85 FE 56 92 48 B5 92 76 55 AB 54 6D 22 B5 4A DB AA 6A 2B D1 8A D8 4B B2 25 F5 4D 85 B4 E3C0: 6D AA 4A B4 25 AB B6 5B 09 56 45 D9 4A 97 DA AA 5A AB 49 02 55 75 D7 4F 48 AA B6 41 2F 76 55 94 E3E0: A4 56 D5 5E B5 25 A4 55 92 DA 6E EA 26 A9 A4 2A A9 DD B4 AD 54 25 51 DB 54 AA 5A B5 56 85 B4 AD E400: 30 65 46 65 5C 65 72 65 88 65 9E 65 B4 65 CA 65 E0 65 F6 65 0C 66 22 66 38 66 4E 66 64 66 7A 66 E420: 90 66 A6 66 BC 66 D2 66 E8 66 FE 66 14 67 2A 67 40 67 56 67 6C 67 82 67 98 67 AE 67 C4 67 DA 67
Startup
; Startup continues here Startup: E440: A9 00 LDA #$00 ; E442: 85 F4 STA <??!BatRamInit?? ; E444: A9 05 LDA #$05 ; Switch to ... E446: 20 AC FF JSR MMC_Bank ; ... bank 5 E449: 20 AC B4 JSR $B4AC ; 5 Format battery-backed RAM E44C: 20 E8 B4 JSR $B4E8 ; 5 E44F: 20 5E E4 JSR $E45E ; E452: A5 FF LDA <CUR_2000 ; Enable NMI ... E454: 09 A0 ORA #$A0 ; ... and sprites ... E456: 8D 00 20 STA P_CNTRL_1 ; ... are 8x16 E459: 85 FF STA <CUR_2000 ; New value of 2000 (write only ... we have to cache it) EndlessLoop: E45B: 4C 5B E4 JMP EndlessLoop ; ENDLESS LOOP ... interrupt driven E45E: A9 00 LDA #$00 ; E460: 8D 11 40 STA S_DMC_B ; [NES] Audio -> DPCM D/A data E463: A9 0F LDA #$0F ; E465: 8D 15 40 STA S_Status ; [NES] IRQ status / Sound enable E468: A9 06 LDA #$06 ; Sprites and background off, color, no ... E46A: 8D 01 20 STA P_CNTRL_2 ; ... clipping E46D: 20 F7 E5 JSR HideAllSprites ; E470: 20 80 E5 JSR ClearScroll ; E473: 20 25 E6 JSR DisableVideo ; E476: A9 20 LDA #$20 ; E478: 20 7D E4 JSR $E47D ; E47B: A9 28 LDA #$28 ; E47D: A2 24 LDX #$24 ; E47F: A0 00 LDY #$00 ; E481: 4C 94 E5 JMP ClearTilesOrMap ;
NMI
NMI: ; ; if(>$5C != 0) Flip name table (alternates between 0 and 2 ... 2000 and 2800) ; DMA transfer 0200..02FF to sprite memory ; E484: A5 FF LDA <CUR_2000 ; Current value of 2000 E486: A6 5C LDX <!FlipFlag ; Flip name tables? E488: F0 02 BEQ $E48C ; No ... skip the flipping E48A: 49 02 EOR #$02 ; Flip name-table addresses (2000 or 2800) E48C: 29 7F AND #$7F ; Clear bit 7 (disable NMIs) E48E: 85 FF STA <CUR_2000 ; Hold new value of 2000 E490: 29 7E AND #$7E ; Name table address is now either 0 or 2. (Ignore lower bit) E492: 8D 00 20 STA P_CNTRL_1 ; Select new name table (if changed) and disable NMI ; E495: A5 FE LDA <CUR_2001 ; Current value of 2001 E497: A4 E3 LDY <00E3 ; E499: D0 08 BNE $E4A3 ; E49B: A4 14 LDY <0014 ; E49D: D0 06 BNE $E4A5 ; E49F: A4 17 LDY <0017 ; E4A1: D0 02 BNE $E4A5 ; E4A3: 09 1E ORA #$1E ; Sprites on, Background on, don't clip sprites or background E4A5: 8D 01 20 STA P_CNTRL_2 ; Change hardware and ... E4A8: 85 FE STA <CUR_2001 ; ... store new value of 2001 ; E4AA: A9 00 LDA #$00 ; Next write goes to address 0000 ... E4AC: 8D 03 20 STA P_SPR_ADDR ; ... in sprite memory E4AF: A9 02 LDA #$02 ; DMA source address = 0200 (from RAM) E4B1: 8D 14 40 STA P_SPR_DMA ; Sprite DMA trigger (copy 256 bytes from RAM 0200 to Sprite RAM 0000) ; E4B4: A9 00 LDA #$00 ; Clear ... E4B6: 8D 05 20 STA P_BKG_SCROLL ; ... scroll ... E4B9: 8D 05 20 STA P_BKG_SCROLL ; ... register E4BC: A9 06 LDA #$06 ; Switch to ... E4BE: 20 AC FF JSR MMC_Bank ; ... bank 6 E4C1: 20 80 A0 JSR $A080 ; 6 ; E4C4: A9 3F LDA #$3F ; Set VRAM ... E4C6: 8D 06 20 STA P_VRAM_ADDR ; ... address pointer ... E4C9: A9 00 LDA #$00 ; ... to 3F00 ... E4CB: 8D 06 20 STA P_VRAM_ADDR ; ... (Background Palette) E4CE: 8D 06 20 STA P_VRAM_ADDR ; ?? Doesn't this ... E4D1: 8D 06 20 STA P_VRAM_ADDR ; ?? ... toggle back and clear VRAM address? ; ; ?? NOPping out E4D9 causes top status part of screen to flicker on a scroll to a new map ; ?? Seems to be waiting for the VBLANK to *END* and drawing to begin E4D4: AD 02 20 LDA P_STATUS ; Is sprite 0 ... E4D7: 29 40 AND #$40 ; ... overlapping background? E4D9: D0 F9 BNE $E4D4 ; Yes ... wait for VBLANK to clear it ; E4DB: AD 02 20 LDA P_STATUS ; [NES] PPU status E4DE: A5 E3 LDA <00E3 ; E4E0: F0 08 BEQ $E4EA ; E4E2: A9 05 LDA #$05 ; Switch to ... E4E4: 20 AC FF JSR MMC_Bank ; ... bank 5 E4E7: 20 21 85 JSR $8521 ; 5 E4EA: A5 11 LDA <0011 ; E4EC: F0 2A BEQ $E518 ; E4EE: A5 12 LDA <0012 ; E4F0: F0 14 BEQ $E506 ; E4F2: C9 05 CMP #$05 ; E4F4: F0 10 BEQ $E506 ; E4F6: C9 09 CMP #$09 ; E4F8: F0 0C BEQ $E506 ; E4FA: C9 0B CMP #$0B ; E4FC: F0 08 BEQ $E506 ; E4FE: C9 0C CMP #$0C ; E500: F0 04 BEQ $E506 ; E502: C9 13 CMP #$13 ; E504: D0 12 BNE $E518 ; ; E506: AD 02 20 LDA P_STATUS ; Clear bit 7 of 2002 and clear 2005 and 2006 [NES] PPU status E509: A5 FD LDA <CUR_HScroll ; Set ... E50B: 8D 05 20 STA P_BKG_SCROLL ; [NES] PPU scroll E50E: A5 FC LDA <CUR_VScroll ; E510: 8D 05 20 STA P_BKG_SCROLL ; [NES] PPU scroll E513: A5 FF LDA <CUR_2000 ; Set ... E515: 8D 00 20 STA P_CNTRL_1 ; ... PPU1 value [NES] PPU setup #1 E518: A5 E1 LDA <00E1 ; E51A: 05 E0 ORA <??SND_E0?? ; E51C: D0 1D BNE $E53B ; E51E: A2 26 LDX #$26 ; E520: A9 3C LDA #$3C ; E522: A0 4E LDY #$4E ; E524: 86 00 STX <GP_00 ; E526: D6 00 DEC GP_00,X ; E528: 10 05 BPL $E52F ; E52A: A9 09 LDA #$09 ; E52C: 95 00 STA GP_00,X ; E52E: 98 TYA ; E52F: AA TAX ; E530: B5 00 LDA GP_00,X ; E532: F0 02 BEQ $E536 ; E534: D6 00 DEC GP_00,X ; E536: CA DEX ; E537: E4 00 CPX <GP_00 ; E539: D0 F5 BNE $E530 ; E53B: A5 E3 LDA <00E3 ; E53D: D0 03 BNE $E542 ; E53F: 20 2D E6 JSR ReadInputs ; E542: A2 18 LDX #$18 ; E544: A0 0D LDY #$0D ; E546: B5 00 LDA GP_00,X ; E548: 29 02 AND #$02 ; E54A: 85 00 STA <GP_00 ; E54C: B5 01 LDA GP_01,X ; E54E: 29 02 AND #$02 ; E550: 45 00 EOR <GP_00 ; E552: 18 CLC ; E553: F0 01 BEQ $E556 ; E555: 38 SEC ; E556: 76 00 ROR <GP_00,X ; E558: E8 INX ; E559: 88 DEY ; E55A: D0 FA BNE $E556 ; E55C: A9 00 LDA #$00 ; Switch to ... E55E: 20 AC FF JSR MMC_Bank ; ... bank 0 E561: 20 25 98 JSR $9825 ; 0 Execute any sound processing E564: E6 15 INC <0015 ; E566: A5 11 LDA <0011 ; E568: D0 06 BNE $E570 ; E56A: 20 F8 E8 JSR $E8F8 ; ?? Execute game tasks ?? E56D: 4C 73 E5 JMP $E573 ; E570: 20 30 EB JSR $EB30 ; E573: AD 02 20 LDA P_STATUS ; Clear VBLANK status bit E576: A5 FF LDA <CUR_2000 ; Current value of 2000 E578: 09 80 ORA #$80 ; Re-enable ... E57A: 8D 00 20 STA P_CNTRL_1 ; ... VBLANK NMIs E57D: 85 FF STA <CUR_2000 ; New value of 2000 E57F: 40 RTI ; Back to endless loop (wait for next VBLANK)
Clear Scroll
ClearScroll: ; Clear the horizontal and vertical scroll origins and ; set tile (pattern) address to v1000. ; E580: A9 00 LDA #$00 ; Clear ... E582: 8D 05 20 STA P_BKG_SCROLL ; ... horizontal scroll ... E585: 85 FD STA <CUR_HScroll ; ... and cached value E587: 8D 05 20 STA P_BKG_SCROLL ; Clear vertical scroll ... E58A: 85 FC STA <CUR_VScroll ; ... and cached value E58C: A9 30 LDA #$30 ; Sprites 8x16 and ... E58E: 8D 00 20 STA P_CNTRL_1 ; ... pattern table at VRAM 1000 E591: 85 FF STA <CUR_2000 ; Cached value of 2000 E593: 60 RTS ; Done
Clear Tiles or Map
ClearTilesOrMap: ; This routine clears an area of VRRAM. There are two modes: clear-tiles and clear-map. ; The value in A is the MSB of the VRAM area, and it selects the fill mode. If the ; MSB is less than 2000 then tile memory is cleared as a single large area with the ; length being passed in. If the MSB is 2000 or greater then the corresponding name ; table and attributes are filled (with different values). ; ; A is the VRAM MSB (<2000 for tile-clear, >=2000 for map/attributes) ; X is the number of 256 chunks to clear (for tile clear) or name table fill value (for map/attributes) ; Y is the attribute table fill value (used if map/attributes) ; E594: 85 00 STA <GP_00 ; Hold name table offset E596: 86 01 STX <GP_01 ; Hold name table fill value E598: 84 02 STY <GP_02 ; Hold attribute fill value E59A: AD 02 20 LDA P_STATUS ; Reset 1st/2nd flipflop (used for 2005 and 2006) E59D: A5 FF LDA <CUR_2000 ; Get value of 2000 E59F: 29 FB AND #$FB ; Turn off ... E5A1: 8D 00 20 STA P_CNTRL_1 ; ... bit 2 (increment VRAM writes by 1) ... E5A4: 85 FF STA <CUR_2000 ; ... and cache new value E5A6: A5 00 LDA <GP_00 ; Name table offest ... E5A8: 8D 06 20 STA P_VRAM_ADDR ; ... to VRAM pointer MSB E5AB: A0 00 LDY #$00 ; 00 to ... E5AD: 8C 06 20 STY P_VRAM_ADDR ; ... VRAM pointer MSB E5B0: A2 04 LDX #$04 ; Name tables are 400 bytes (4 sets of 256) E5B2: C9 20 CMP #$20 ; Are we clearing map/atts? E5B4: B0 02 BCS $E5B8 ; Yes ... use 400 E5B6: A6 02 LDX <GP_02 ; No ... clearning tiles. Use this as the size (*256) E5B8: A0 00 LDY #$00 ; 256 counts E5BA: A5 01 LDA <GP_01 ; Fill value E5BC: 8D 07 20 STA P_VRAM_DATA ; Store value to VRAM (and increment) E5BF: 88 DEY ; All 256 done? E5C0: D0 FA BNE $E5BC ; No ... fill all 256 bytes E5C2: CA DEX ; All sets of 256 done? E5C3: D0 F7 BNE $E5BC ; No ... fill all sets of 256 bytes ; E5C5: A4 02 LDY <GP_02 ; Get the constant fill value E5C7: A5 00 LDA <GP_00 ; Get the MSB of the VRAM name table pointer E5C9: C9 20 CMP #$20 ; Are we clearing map/atts? E5CB: 90 12 BCC $E5DF ; No ... done E5CD: 69 02 ADC #$02 ; C=1 so +3 to Offset to attributes (2000->23C0 for instance) E5CF: 8D 06 20 STA P_VRAM_ADDR ; VRAM address select (MSB 6 bits) E5D2: A9 C0 LDA #$C0 ; VRAM address LSB ... E5D4: 8D 06 20 STA P_VRAM_ADDR ; ... is xxC0 (Attribute table) E5D7: A2 40 LDX #$40 ; 64 E5D9: 8C 07 20 STY P_VRAM_DATA ; VRAM data E5DC: CA DEX ; Write all ... E5DD: D0 FA BNE $E5D9 ; ... attribute values E5DF: A6 01 LDX <GP_01 ; Restore X register E5E1: 60 RTS ; Done
SwitchAJumpRet
SwitchAJumpRet: ; This is an efficient way to jump to a routine based on the value in A (as in ; a switch/jump construct). A list of addresses follows the JSR instruction in ; program memory. The value in A is the index of the address to take. The return ; is removed from the stack, and the list of addresses can be any length. Thus ; there is no return to the calling code. These jump-points usually just RET ; from back to the calling frame. ; E5E2: 0A ASL A ; Two byte destinations E5E3: A8 TAY ; Offset to Y E5E4: 68 PLA ; Return ... E5E5: 85 00 STA <GP_00 ; ... address ... E5E7: 68 PLA ; ... off of ... E5E8: 85 01 STA <GP_01 ; ... stack E5EA: C8 INY ; Return address is pushed as one back E5EB: B1 00 LDA (GP_00),Y ; Get ... E5ED: 85 02 STA <GP_02 ; ... the ... E5EF: C8 INY ; ... switched ... E5F0: B1 00 LDA (GP_00),Y ; ... jump ... E5F2: 85 03 STA <GP_03 ; ... value E5F4: 6C 02 00 JMP (GP_02) ; Jump to the desired function
Hide All Sprites
HideAllSprites: ; This function hides all 64 sprites by setting their Y coordinates to F8 ; which is off the bottom of the screen. The memory 200..2FF is DMA transfered ; to the sprite memory on each NMI. ; E5F7: A0 00 LDY #$00 ; Start with memory for sprite 0 E5F9: A2 40 LDX #$40 ; All 64 sprites E5FB: A9 F8 LDA #$F8 ; Y coordinate of F8 is off screen (hidden) E5FD: 99 00 02 STA 0200,Y ; Set Y coordinate off screen E600: C8 INY ; Move ... E601: C8 INY ; ... to ... E602: C8 INY ; ... next ... E603: C8 INY ; ... sprite E604: CA DEX ; All done? E605: D0 F4 BNE $E5FB ; No ... hide all sprites E607: 60 RTS ; Done E608: 85 01 STA <GP_01 ; E60A: A9 00 LDA #$00 ; E60C: 85 00 STA <GP_00 ; E60E: A9 00 LDA #$00 ; E610: 91 00 STA (GP_00),Y ; E612: 88 DEY ; E613: C0 FF CPY #$FF ; E615: D0 F7 BNE $E60E ; E617: C6 01 DEC <GP_01 ; E619: A5 01 LDA <GP_01 ; E61B: C9 03 CMP #$03 ; E61D: B0 EF BCS $E60E ; E61F: A9 FF LDA #$FF ; E621: 8D 02 03 STA 0302 ; E624: 60 RTS ;
Disable Video
DisableVideo: E625: A9 00 LDA #$00 ; Hide all display ... E627: 8D 01 20 STA P_CNTRL_2 ; ... components E62A: 85 FE STA <CUR_2001 ; Cached value E62C: 60 RTS ; Done
Read Inputs
ReadInputs: ; ; F8 Current inputs for player 1 ; F9 Current inputs for player 2 ; FA ?? XOR pattern for F8 ; FB ?? XOR pattern for F9 ; E62D: A9 01 LDA #$01 ; Reset the shift registers ... E62F: 8D 16 40 STA 4016 ; ... in both input ports E632: A9 00 LDA #$00 ; Release the shift register ... E634: 8D 16 40 STA 4016 ; ... resets in both input ports ; E637: 85 03 STA <GP_03 ; E639: 85 04 STA <0004 ; E63B: AA TAX ; Read 4016 (player 1) ... E63C: 20 40 E6 JSR $E640 ; ... inputs E63F: E8 INX ; Fall in to read 4017 (player 2) inputs ; E640: 85 02 STA <GP_02 ; E642: A9 01 LDA #$01 ; Toggle the ... E644: 8D 16 40 STA 4016 ; ... next ... E647: A9 00 LDA #$00 ; ... input ... E649: 8D 16 40 STA 4016 ; ... bits (both ports) E64C: A0 08 LDY #$08 ; 8 bits to shift in (one per read) E64E: BD 16 40 LDA 4016,X ; Read port value (4016 or 4017 depending on X) E651: 4A LSR A ; Bit to carry ... E652: 36 F8 ROL 00F8,X ; ... and into F8 or F9 E654: 4A LSR A ; E655: 26 00 ROL <GP_00 ; E657: 88 DEY ; All 8 bits read? E658: D0 F4 BNE $E64E ; No ... do all E65A: B5 F8 LDA 00F8,X ; E65C: C5 02 CMP <GP_02 ; E65E: D0 E0 BNE $E640 ; E660: F6 03 INC GP_03,X ; E662: B4 03 LDY GP_03,X ; E664: C0 02 CPY #$02 ; E666: 90 D8 BCC $E640 ; E668: A5 00 LDA <GP_00 ; E66A: 15 F8 ORA 00F8,X ; E66C: 95 F8 STA 00F8,X ; E66E: 48 PHA ; E66F: 55 FA EOR 00FA,X ; E671: 35 F8 AND 00F8,X ; E673: 95 F8 STA 00F8,X ; E675: 68 PLA ; E676: 95 FA STA 00FA,X ; E678: 60 RTS ; E679: A5 10 LDA <0010 ; Current level is the overworld? E67B: F0 50 BEQ $E6CD ; Yes ... out E67D: A9 05 LDA #$05 ; E67F: 20 AC FF JSR MMC_Bank ; E682: 20 EB B5 JSR $B5EB ; 5 E685: F0 46 BEQ $E6CD ; E687: AD AE 6B LDA 6BAE ; E68A: A2 04 LDX #$04 ; E68C: 4C ED 71 JMP 71ED ; E68F: A4 10 LDY <0010 ; E691: F0 25 BEQ $E6B8 ; E693: A5 98 LDA <0098 ; E695: 85 02 STA <GP_02 ; E697: A9 05 LDA #$05 ; E699: 20 AC FF JSR MMC_Bank ; E69C: 20 F6 A3 JSR $A3F6 ; 5 E69F: A4 01 LDY <GP_01 ; E6A1: 84 E7 STY <00E7 ; E6A3: 20 E2 E5 JSR SwitchAJumpRet ; E6A6: 22 B5 ; 00 B522 E6A8: 17 B5 ; 01 B517 E6AA: 22 B5 ; 02 B522 E6AC: 22 B5 ; 03 B522 E6AE: 22 B5 ; 04 B522 E6B0: 22 B5 ; 05 B522 E6B2: 22 B5 ; 06 B522 E6B4: 22 B5 ; 07 B522 E6B6: 17 B5 ; 08 B517 E6B8: A4 98 LDY <0098 ; E6BA: A9 00 LDA #$00 E6BC: F0 E3 E6BE: 01 02 ; 0C 0201 E6C0: 04 08 ; 0D 0804 E6C2: 10 20 ; 0E 2010 E6C4: 40 80 ; 0F 8040 E6C6: 20 CE E6 JSR $E6CE ; E6C9: 09 20 ORA #$20 ; E6CB: 91 00 STA (GP_00),Y ; E6CD: 60 RTS ; E6CE: AD AF 6B LDA 6BAF ; E6D1: 85 00 STA <GP_00 ; E6D3: AD B0 6B LDA 6BB0 ; E6D6: 85 01 STA <GP_01 ; E6D8: A4 EB LDY <00EB ; E6DA: B1 00 LDA (GP_00),Y ; E6DC: 60 RTS ; E6DD: A5 71 LDA <0071 ; E6DF: 85 83 STA <0083 ; E6E1: A5 85 LDA <0085 ; E6E3: 85 97 STA <0097 ; E6E5: 4C 0C E7 JMP $E70C ; E6E8: 68 PLA ; E6E9: 60 RTS ; E6EA: 20 14 73 JSR 7314 ; E6ED: D0 FA BNE $E6E9 ; E6EF: A5 BF LDA <00BF ; E6F1: 30 F6 BMI $E6E9 ; E6F3: A5 AB LDA <00AB ; E6F5: C9 3F CMP #$3F ; E6F7: F0 F0 BEQ $E6E9 ; E6F9: A2 01 LDX #$01 ; E6FB: AD 50 03 LDA 0350 ; E6FE: C9 17 CMP #$17 ; E700: F0 DB BEQ $E6DD ; E702: C9 2A CMP #$2A ; E704: F0 D7 BEQ $E6DD ; E706: C9 30 CMP #$30 ; E708: F0 D3 BEQ $E6DD ; E70A: A2 13 LDX #$13 ; E70C: A5 AB LDA <00AB ; E70E: 48 PHA ; E70F: BD A8 03 LDA 03A8,X ; E712: C9 F0 CMP #$F0 ; E714: 90 03 BCC $E719 ; E716: 4A LSR A ; E717: 90 CF BCC $E6E8 ; E719: 20 93 FA JSR $FA93 ; E71C: 68 PLA ; E71D: AA TAX ; E71E: BD C8 72 LDA $72C8,X ; E721: C9 30 CMP #$30 ; E723: F0 0C BEQ $E731 ; E725: 29 0F AND #$0F ; E727: 85 04 STA <0004 ; E729: BD A4 72 LDA $72A4,X ; E72C: AA TAX ; E72D: A8 TAY ; E72E: 4C 3A E7 JMP $E73A ; E731: A9 FF LDA #$FF ; E733: D0 F2 BNE $E727 ; E735: BD 57 06 LDA 0657,X ; E738: 85 04 STA <0004 ; E73A: BD EC 72 LDA $72EC,X ; E73D: E0 16 CPX #$16 ; E73F: F0 0C BEQ $E74D ; E741: E0 1A CPX #$1A ; E743: F0 08 BEQ $E74D ; E745: E0 1B CPX #$1B ; E747: F0 04 BEQ $E74D ; E749: E0 19 CPX #$19 ; E74B: D0 09 BNE $E756 ; E74D: A5 15 LDA <0015 ; E74F: 29 08 AND #$08 ; E751: 4A LSR A ; E752: 4A LSR A ; E753: 4A LSR A ; E754: 69 01 ADC #$01 ; E756: E0 00 CPX #$00 ; E758: F0 19 BEQ $E773 ; E75A: E0 04 CPX #$04 ; E75C: F0 15 BEQ $E773 ; E75E: E0 02 CPX #$02 ; E760: F0 11 BEQ $E773 ; E762: E0 07 CPX #$07 ; E764: F0 0D BEQ $E773 ; E766: E0 0B CPX #$0B ; E768: F0 09 BEQ $E773 ; E76A: A2 00 LDX #$00 ; E76C: 86 0C STX <000C ; E76E: A2 0F LDX #$0F ; E770: 4C 0C 79 JMP 790C ; E773: 18 CLC ; E774: 65 04 ADC <0004 ; E776: E0 00 CPX #$00 ; E778: D0 F0 BNE $E76A ; E77A: C9 02 CMP #$02 ; E77C: D0 EC BNE $E76A ; E77E: A0 20 LDY #$20 ; E780: 4C 6A E7 JMP $E76A ; E783: A2 07 LDX #$07 ; E785: 8E 56 06 STX 0656 ; E788: D0 16 BNE $E7A0 ; E78A: AE 56 06 LDX 0656 ; E78D: F0 26 BEQ $E7B5 ; E78F: BD 57 06 LDA 0657,X ; E792: F0 5A BEQ $E7EE ; E794: E0 0F CPX #$0F ; E796: D0 08 BNE $E7A0 ; E798: AC 5E 06 LDY 065E ; E79B: D0 E6 BNE $E783 ; E79D: 4A LSR A ; E79E: 09 01 ORA #$01 ; E7A0: 85 04 STA <0004 ; E7A2: A9 1F LDA #$1F ; E7A4: 85 01 STA <GP_01 ; E7A6: A9 7C LDA #$7C ; E7A8: 85 00 STA <GP_00 ; E7AA: A9 05 LDA #$05 ; E7AC: 20 AC FF JSR MMC_Bank ; E7AF: 20 1C B8 JSR $B81C ; 5 E7B2: 4C D7 E7 JMP $E7D7 ; E7B5: A2 1E LDX #$1E ; E7B7: BD 57 06 LDA 0657,X ; E7BA: D0 E4 BNE $E7A0 ; E7BC: CA DEX ; E7BD: E0 1C CPX #$1C ; E7BF: D0 F6 BNE $E7B7 ; E7C1: A2 00 LDX #$00 ; E7C3: 4C CB E7 JMP $E7CB ; E7C6: BD 57 06 LDA 0657,X ; E7C9: D0 0C BNE $E7D7 ; E7CB: 8A TXA ; E7CC: A8 TAY ; E7CD: A9 05 LDA #$05 ; E7CF: 20 AC FF JSR MMC_Bank ; E7D2: A9 02 LDA #$02 ; E7D4: 20 C8 B7 JSR $B7C8 ; 5 E7D7: A2 00 LDX #$00 ; E7D9: BD 57 06 LDA 0657,X ; E7DC: F0 69 BEQ $E847 ; E7DE: A9 1F LDA #$1F ; E7E0: 85 01 STA <GP_01 ; E7E2: A9 94 LDA #$94 ; E7E4: 85 00 STA <GP_00 ; E7E6: A9 05 LDA #$05 ; E7E8: 20 AC FF JSR MMC_Bank ; E7EB: 4C 1C B8 JMP $B81C ; 5 E7EE: E0 07 CPX #$07 ; E7F0: D0 D4 BNE $E7C6 ; E7F2: AD 66 06 LDA 0666 ; E7F5: F0 D4 BEQ $E7CB ; E7F7: A2 0F LDX #$0F ; E7F9: 8E 56 06 STX 0656 ; E7FC: D0 C8 BNE $E7C6 ; E7FE: AD 05 05 LDA 0505 ; E801: F0 56 BEQ $E859 ; E803: CE 06 05 DEC 0506 ; E806: F0 40 BEQ $E848 ; E808: A9 40 LDA #$40 ; E80A: 85 AC STA <00AC ; E80C: A5 70 LDA <0070 ; E80E: 85 83 STA <0083 ; E810: A5 84 LDA <0084 ; E812: 38 SEC ; E813: E9 10 SBC #$10 ; E815: 85 97 STA <0097 ; E817: A2 00 LDX #$00 ; E819: 20 93 FA JSR $FA93 ; E81C: 20 88 79 JSR 7988 ; E81F: 85 0C STA <000C ; E821: A9 48 LDA #$48 ; E823: 8D 43 03 STA 0343 ; E826: A9 4C LDA #$4C ; E828: 8D 44 03 STA 0344 ; E82B: A0 21 LDY #$21 ; E82D: 20 2C 79 JSR 792C ; E830: EE 04 05 INC 0504 ; E833: AD 05 05 LDA 0505 ; E836: A2 13 LDX #$13 ; E838: 20 0E E7 JSR $E70E ; E83B: CE 04 05 DEC 0504 ; E83E: A5 52 LDA <0052 ; E840: F0 05 BEQ $E847 ; E842: A9 08 LDA #$08 ; E844: 8D 4D 02 STA 024D ; E847: 60 RTS ; E848: A9 00 LDA #$00 ; E84A: 85 AC STA <00AC ; E84C: 8D 05 05 STA 0505 ; E84F: A4 10 LDY <0010 ; E851: F0 06 BEQ $E859 ; E853: B9 E0 EB LDA $EBE0,Y ; E856: 8D 00 06 STA SND_ReqMusic ; E859: 60 RTS ; E85A: A4 EB LDY <00EB ; E85C: B9 FE 69 LDA $69FE,Y ; E85F: 29 3F AND #$3F ; E861: 60 RTS ; E862: 85 05 STA <0005 ; E864: 8A TXA ; E865: 48 PHA ; E866: B5 70 LDA 0070,X ; E868: 85 03 STA <GP_03 ; E86A: B5 84 LDA 0084,X ; E86C: 85 02 STA <GP_02 ; E86E: 20 70 75 JSR 7570 ; E871: AE 01 03 LDX 0301 ; E874: A5 00 LDA <GP_00 ; E876: 9D 02 03 STA 0302,X ; E879: 9D 07 03 STA 0307,X ; E87C: A5 01 LDA <GP_01 ; E87E: 9D 03 03 STA 0303,X ; E881: 9D 08 03 STA 0308,X ; E884: FE 08 03 INC 0308,X ; E887: A5 05 LDA <0005 ; E889: 9D 05 03 STA !BckGndBuf,X ; E88C: 9D 06 03 STA 0306,X ; E88F: 9D 0A 03 STA $030A,X ; E892: 9D 0B 03 STA $030B,X ; E895: C9 46 CMP #$46 ; E897: 90 13 BCC $E8AC ; E899: C9 F3 CMP #$F3 ; E89B: B0 0F BCS $E8AC ; E89D: 18 CLC ; E89E: 69 02 ADC #$02 ; E8A0: 9D 0A 03 STA $030A,X ; E8A3: 9D 0B 03 STA $030B,X ; E8A6: FE 06 03 INC 0306,X ; E8A9: FE 0B 03 INC $030B,X ; E8AC: A9 82 LDA #$82 ; E8AE: 9D 04 03 STA 0304,X ; E8B1: 9D 09 03 STA $0309,X ; E8B4: A9 FF LDA #$FF ; E8B6: 9D 0C 03 STA $030C,X ; E8B9: 8A TXA ; E8BA: 18 CLC ; E8BB: 69 0A ADC #$0A ; E8BD: 8D 01 03 STA 0301 ; E8C0: 68 PLA ; E8C1: AA TAX ; E8C2: A9 05 LDA #$05 ; E8C4: 20 AC FF JSR MMC_Bank ; E8C7: 20 C4 AB JSR $ABC4 ; 5 E8CA: A5 F7 LDA <00F7 ; E8CC: F0 05 BEQ $E8D3 ; E8CE: A9 04 LDA #$04 ; E8D0: 20 AC FF JSR MMC_Bank ; E8D3: A9 00 LDA #$00 ; E8D5: 85 F7 STA <00F7 ; E8D7: 60 RTS ; E8D8: A9 05 LDA #$05 ; E8DA: 20 AC FF JSR MMC_Bank ; E8DD: 20 07 AC JSR $AC07 ; 5 E8E0: A0 00 LDY #$00 ; E8E2: A5 0A LDA <000A ; E8E4: 91 00 STA (GP_00),Y ; E8E6: 20 74 72 JSR 7274 ; E8E9: A5 00 LDA <GP_00 ; E8EB: C9 F0 CMP #$F0 ; E8ED: D0 F3 BNE $E8E2 ; E8EF: A5 01 LDA <GP_01 ; E8F1: C9 67 CMP #$67 ; E8F3: D0 ED BNE $E8E2 ; E8F5: 60 RTS ; E8F6: FF FF E8F8: A5 F4 LDA <??!BatRamInit?? ; E8FA: D0 1D BNE $E919 ; E8FC: A9 01 LDA #$01 ; Switch to ... E8FE: 20 AC FF JSR MMC_Bank ; ... bank 1 E901: 20 00 8D JSR $8D00 ; 1 E904: A9 06 LDA #$06 ; Switch to ... E906: 20 AC FF JSR MMC_Bank ; ... bank 6 E909: 20 8C 80 JSR $808C ; 6 E90C: A9 5A LDA #$5A ; E90E: 8D 01 60 STA MARK_A ; E911: A9 A5 LDA #$A5 ; E913: 8D FF 7F STA MARK_B ; E916: E6 F4 INC <??!BatRamInit?? ; E918: 60 RTS ; ; E919: A9 05 LDA #$05 ; Switch to ... E91B: 20 AC FF JSR MMC_Bank ; ... bank 5 E91E: A5 12 LDA <0012 ; Task number E920: 20 E2 E5 JSR SwitchAJumpRet ; 5 Execute the game task E923: 4B E9 ; 00 E94B Initialize tile sets and do splash/info sequences E925: 6F E9 ; 01 E96F E927: 77 E9 ; 02 E977 E929: D8 E9 ; 03 E9D8 E92B: 7B 87 ; 04 877B E92D: 6B EA ; 05 EA6B E92F: 7A B0 ; 06 B07A E931: A1 E9 ; 07 E9A1 E933: 00 86 ; 08 8600 E935: 0A 91 ; 09 910A E937: FC B0 ; 0A B0FC E939: 80 90 ; 0B 9080 E93B: 97 90 ; 0C 9097 E93D: 1A 86 ; 0D 861A E93F: C3 E9 ; 0E E9C3 E941: C3 E9 ; 0F E9C3 E943: 28 86 ; 10 8628 E945: 2F 8A ; 11 8A2F E947: 33 A8 ; 12 A833 E949: CB E9 ; 13 E9CB ; Initialize tiles and handle splash/info sequences. ; First pass: init scrolling info tiles ; Second pass: init splash tiles ; Third (and all others) pass: process sequence ; E94B: A5 F5 LDA <TileFlagA ; Have the scrolling text tiles ... E94D: C9 5A CMP #$5A ; ... been copied to VRAM? E94F: F0 08 BEQ $E959 ; Yes ... skip it E951: A9 02 LDA #$02 ; Switch to ... E953: 20 AC FF JSR MMC_Bank ; ... bank 2 E956: 4C 12 80 JMP $8012 ; Initialize tiles for scrolling info ; E959: A5 F6 LDA <TileFlagB ; Have the splash tiles ... E95B: C9 A5 CMP #$A5 ; ... been copied to VRAM? E95D: F0 08 BEQ $E967 ; Yes ... skip it E95F: A9 01 LDA #$01 ; Switch to ... E961: 20 AC FF JSR MMC_Bank ; ... bank 1 E964: 4C 47 8D JMP $8D47 ; Initialize tiles for splash ; E967: A9 02 LDA #$02 ; Switch to ... E969: 20 AC FF JSR MMC_Bank ; ... bank 2 E96C: 4C 00 90 JMP $9000 ; Run the attract-mode (Zelda splash and scrolling info) E96F: A9 02 LDA #$02 ; E971: 20 AC FF JSR MMC_Bank ; E974: 4C 8A A2 JMP $A28A ; E977: 20 25 E6 JSR DisableVideo ; E97A: A5 13 LDA <0013 ; E97C: D0 1B BNE $E999 ; E97E: 20 00 EA JSR $EA00 ; E981: A0 7F LDY #$7F ; E983: 99 60 05 STA $0560,Y ; E986: 88 DEY ; E987: 10 FA BPL $E983 ; E989: A9 03 LDA #$03 ; Switch to ... E98B: 20 AC FF JSR MMC_Bank ; ... bank 3 E98E: 20 44 80 JSR $8044 ; Configure tile sets E991: A9 01 LDA #$01 ; Switch to ... E993: 20 AC FF JSR MMC_Bank ; ... bank 1 E996: 20 00 8D JSR $8D00 ; E999: A9 06 LDA #$06 ; E99B: 20 AC FF JSR MMC_Bank ; E99E: 4C 3E 80 JMP $803E ; E9A1: A9 05 LDA #$05 ; E9A3: 20 AC FF JSR MMC_Bank ; E9A6: 20 A8 82 JSR $82A8 ; E9A9: A5 E3 LDA <00E3 ; E9AB: F0 15 BEQ $E9C2 ; E9AD: A5 F3 LDA <00F3 ; E9AF: D0 11 BNE $E9C2 ; E9B1: E6 F3 INC <00F3 ; E9B3: A5 98 LDA <0098 ; E9B5: C9 04 CMP #$04 ; E9B7: 90 04 BCC $E9BD ; E9B9: A9 0F LDA #$0F ; Do two-screen veritcal mirroring E9BB: D0 02 BNE $E9BF ; E9BD: A9 0E LDA #$0E ; Do two-screen horizontal mirroring E9BF: 20 98 FF JSR MMC_Control ; E9C2: 60 RTS ; E9C3: A9 02 LDA #$02 ; E9C5: 20 AC FF JSR MMC_Bank ; E9C8: 4C 11 9E JMP $9E11 ; E9CB: A9 0F LDA #$0F ; E9CD: 20 98 FF JSR MMC_Control ; E9D0: A9 02 LDA #$02 ; E9D2: 20 AC FF JSR MMC_Bank ; E9D5: 4C 00 A9 JMP $A900 ; E9D8: A9 05 LDA #$05 ; E9DA: 20 AC FF JSR MMC_Bank ; E9DD: 20 25 E6 JSR DisableVideo ; E9E0: A5 13 LDA <0013 ; E9E2: 20 E2 E5 JSR SwitchAJumpRet ; E9E5: F7 E9 ; 00 E9F7 E9E7: 11 EA ; 01 EA11 E9E9: 00 B0 ; 02 B000 E9EB: 09 B0 ; 03 B009 E9ED: 10 B0 ; 04 B010 E9EF: 16 B0 ; 05 B016 E9F1: 1D B0 ; 06 B01D E9F3: 2A B0 ; 07 B02A E9F5: 36 B0 ; 08 B036 E9F7: A9 01 LDA #$01 ; E9F9: 85 17 STA <0017 ; E9FB: E6 13 INC <0013 ; E9FD: 20 6D E4 JSR $E46D ; EA00: A0 05 LDY #$05 ; EA02: A9 00 LDA #$00 ; EA04: 8D 29 05 STA 0529 ; EA07: 99 21 06 STA $0621,Y ; EA0A: 88 DEY ; EA0B: 10 FA BPL $EA07 ; EA0D: 60 RTS ; EA0E: 00 04 08 EA11: A5 10 LDA <0010 ; EA13: D0 07 BNE $EA1C ; EA15: AD 26 05 LDA 0526 ; EA18: C9 FF CMP #$FF ; EA1A: D0 03 BNE $EA1F ; EA1C: AD AD 6B LDA 6BAD ; EA1F: 85 EB STA <00EB ; EA21: CD 26 05 CMP 0526 ; EA24: D0 05 BNE $EA2B ; EA26: A9 FF LDA #$FF ; EA28: 8D 26 05 STA 0526 ; EA2B: A6 16 LDX <0016 ; EA2D: BC 0E EA LDY $EA0E,X ; EA30: B9 04 68 LDA $6804,Y ; EA33: 8D 92 6B STA 6B92 ; EA36: A9 18 LDA #$18 ; EA38: 85 14 STA <0014 ; EA3A: E6 13 INC <0013 ; EA3C: 60 RTS ; EA3D: 20 F7 E5 JSR HideAllSprites ; EA40: 20 DE 71 JSR 71DE ; EA43: 20 79 E6 JSR $E679 ; EA46: A9 05 LDA #$05 ; EA48: 20 AC FF JSR MMC_Bank ; EA4B: 20 29 89 JSR $8929 ; EA4E: 4C 8A E7 JMP $E78A ; EA51: A9 00 LDA #$00 ; EA53: 85 AC STA <00AC ; EA55: 8D 6C 06 STA 066C ; EA58: 60 RTS ; EA59: 08 36 0A 0A 0A 0A 7C 7C 7C 3D 3E 38 EA65: 39 32 31 43 44 45 20 3D EA 20 3C F2 EA71: A5 10 LDA <0010 ; EA73: F0 14 BEQ $EA89 ; EA75: A0 08 LDY #$08 ; EA77: AD 50 03 LDA 0350 ; EA7A: D9 62 EA CMP $EA62,Y ; EA7D: D0 05 BNE $EA84 ; EA7F: BE 59 EA LDX $EA59,Y ; EA82: D0 45 BNE $EAC9 ; EA84: 88 DEY ; EA85: 10 F3 BPL $EA7A ; EA87: 30 33 BMI $EABC ; EA89: A5 EB LDA <00EB ; EA8B: C9 0F CMP #$0F ; EA8D: D0 09 BNE $EA98 ; EA8F: A5 5A LDA <005A ; EA91: D0 05 BNE $EA98 ; EA93: A9 04 LDA #$04 ; EA95: 8D 02 06 STA SND_ReqMusEff ; EA98: A2 20 LDX #$20 ; EA9A: AD 5A 03 LDA 035A ; EA9D: C9 65 CMP #$65 ; EA9F: F0 28 BEQ $EAC9 ; EAA1: C9 66 CMP #$66 ; EAA3: F0 06 BEQ $EAAB ; EAA5: C9 62 CMP #$62 ; EAA7: D0 0F BNE $EAB8 ; EAA9: A2 24 LDX #$24 ; EAAB: A4 EB LDY <00EB ; EAAD: B9 FE 68 LDA $68FE,Y ; EAB0: 29 01 AND #$01 ; EAB2: D0 15 BNE $EAC9 ; EAB4: A2 22 LDX #$22 ; EAB6: D0 11 BNE $EAC9 ; EAB8: A2 7A LDX #$7A ; EABA: D0 0D BNE $EAC9 ; EABC: A0 03 LDY #$03 ; EABE: B9 9D 6B LDA $6B9D,Y ; EAC1: 99 17 68 STA $6817,Y ; EAC4: 88 DEY ; EAC5: 10 F7 BPL $EABE ; EAC7: A2 06 LDX #$06 ; EAC9: 86 14 STX <0014 ; EACB: A9 05 LDA #$05 ; EACD: 20 AC FF JSR MMC_Bank ; EAD0: 20 5E B0 JSR $B05E ; EAD3: A5 10 LDA <0010 ; EAD5: F0 06 BEQ $EADD ; EAD7: 20 C6 E6 JSR $E6C6 ; EADA: 20 12 75 JSR 7512 ; EADD: A9 05 LDA #$05 ; EADF: 20 AC FF JSR MMC_Bank ; EAE2: 20 3A B8 JSR $B83A ; EAE5: A0 00 LDY #$00 ; EAE7: A2 05 LDX #$05 ; EAE9: A5 EB LDA <00EB ; EAEB: DD 21 06 CMP $0621,X ; EAEE: D0 01 BNE $EAF1 ; EAF0: C8 INY ; EAF1: CA DEX ; EAF2: 10 F7 BPL $EAEB ; EAF4: C0 00 CPY #$00 ; EAF6: D0 15 BNE $EB0D ; EAF8: AE 20 06 LDX 0620 ; EAFB: 9D 21 06 STA $0621,X ; EAFE: EE 20 06 INC 0620 ; EB01: AD 20 06 LDA 0620 ; EB04: C9 06 CMP #$06 ; EB06: 90 05 BCC $EB0D ; EB08: A9 00 LDA #$00 ; EB0A: 8D 20 06 STA 0620 ; EB0D: A5 12 LDA <0012 ; EB0F: C9 05 CMP #$05 ; EB11: D0 0C BNE $EB1F ; EB13: A5 10 LDA <0010 ; EB15: F0 0B BEQ $EB22 ; EB17: A9 05 LDA #$05 ; EB19: 20 AC FF JSR MMC_Bank ; EB1C: 20 28 93 JSR $9328 ; EB1F: 4C 90 6C JMP 6C90 ; EB22: A9 01 LDA #$01 ; EB24: 20 AC FF JSR MMC_Bank ; EB27: 4C 21 A1 JMP $A121 ; EB2A: FF FF FF FF FF FF EB30: A9 02 LDA #$02 ; EB32: 20 AC FF JSR MMC_Bank ; EB35: A5 12 LDA <0012 ; EB37: 20 E2 E5 JSR SwitchAJumpRet ; EB3A: 20 90 ; 00 9020 EB3C: 91 A5 ; 01 A591 EB3E: 96 EB ; 02 EB96 EB40: AA EB ; 03 EBAA EB42: C0 EB ; 04 EBC0 EB44: 1B EC ; 05 EC1B EB46: C0 EB ; 06 EBC0 EB48: 62 EB ; 07 EB62 EB4A: 76 EB ; 08 EB76 EB4C: 1B EC ; 09 EC1B EB4E: 1B EC ; 0A EC1B EB50: 1B EC ; 0B EC1B EB52: 1B EC ; 0C EC1B EB54: AD A6 ; 0D A6AD EB56: F0 9E ; 0E 9EF0 EB58: C5 9F ; 0F 9FC5 EB5A: 7E EB ; 10 EB7E EB5C: 86 EB ; 11 EB86 EB5E: 8E EB ; 12 EB8E EB60: 10 AA ; 13 AA10 EB62: A9 05 LDA #$05 ; EB64: 20 AC FF JSR MMC_Bank ; EB67: 20 1E 84 JSR $841E ; EB6A: A5 E3 LDA <00E3 ; EB6C: D0 07 BNE $EB75 ; EB6E: 85 F3 STA <00F3 ; EB70: A9 0F LDA #$0F ; EB72: 20 98 FF JSR MMC_Control ; EB75: 60 RTS ; EB76: A9 05 LDA #$05 ; EB78: 20 AC FF JSR MMC_Bank ; EB7B: 4C F4 8A JMP $8AF4 ; EB7E: A9 05 LDA #$05 ; EB80: 20 AC FF JSR MMC_Bank ; EB83: 4C 8B 8B JMP $8B8B ; EB86: A9 05 LDA #$05 ; EB88: 20 AC FF JSR MMC_Bank ; EB8B: 4C 7D 8C JMP $8C7D ; EB8E: A9 05 LDA #$05 ; EB90: 20 AC FF JSR MMC_Bank ; EB93: 4C 58 A8 JMP $A858 ; EB96: 20 25 E6 JSR DisableVideo ; EB99: A9 06 LDA #$06 ; EB9B: 20 AC FF JSR MMC_Bank ; EB9E: 20 09 81 JSR $8109 ; EBA1: E6 12 INC <0012 ; EBA3: A9 00 LDA #$00 ; EBA5: 85 11 STA <0011 ; EBA7: 85 13 STA <0013 ; EBA9: 60 RTS ; EBAA: 20 48 72 JSR 7248 ; EBAD: A5 7C LDA <007C ; EBAF: D0 47 BNE $EBF8 ; EBB1: A9 0F LDA #$0F ; EBB3: 20 98 FF JSR MMC_Control ; EBB6: A5 5A LDA <005A ; EBB8: F0 03 BEQ $EBBD ; EBBA: 4C F2 EB JMP $EBF2 ; EBBD: 4C EA EB JMP $EBEA ; EBC0: A5 5A LDA <005A ; EBC2: D0 35 BNE $EBF9 ; EBC4: AD 94 03 LDA 0394 ; EBC7: F0 29 BEQ $EBF2 ; EBC9: C9 08 CMP #$08 ; EBCB: F0 25 BEQ $EBF2 ; EBCD: C9 F8 CMP #$F8 ; EBCF: F0 21 BEQ $EBF2 ; EBD1: A5 98 LDA <0098 ; EBD3: 8D F8 03 STA 03F8 ; EBD6: 85 0F STA <000F ; EBD8: A2 00 LDX #$00 ; EBDA: 20 8D F0 JSR $F08D ; EBDD: 4C C5 ED JMP $EDC5 ; EBE0: 01 40 40 40 40 40 40 40 40 20 EBEA: A4 10 LDY <0010 ; EBEC: B9 E0 EB LDA $EBE0,Y ; EBEF: 8D 00 06 STA SND_ReqMusic ; EBF2: 20 A1 EB JSR $EBA1 ; EBF5: 8D 94 03 STA 0394 ; EBF8: 60 RTS ; EBF9: A5 10 LDA <0010 ; EBFB: D0 ED BNE $EBEA ; EBFD: A5 65 LDA <0065 ; EBFF: C9 24 CMP #$24 ; EC01: D0 E7 BNE $EBEA ; EC03: A9 05 LDA #$05 ; EC05: 20 AC FF JSR MMC_Bank ; EC08: 20 A8 8B JSR $8BA8 ; 5 EC0B: A5 15 LDA <0015 ; EC0D: 29 03 AND #$03 ; EC0F: D0 09 BNE $EC1A ; EC11: C6 84 DEC <0084 ; EC13: A5 84 LDA <0084 ; EC15: CD 12 04 CMP 0412 ; EC18: F0 D0 BEQ $EBEA ; EC1A: 60 RTS ; EC1B: A5 3C LDA <003C ; EC1D: D0 D9 BNE $EBF8 ; EC1F: AD 1E 05 LDA 051E ; EC22: F0 08 BEQ $EC2C ; EC24: A9 04 LDA #$04 ; EC26: 20 AC FF JSR MMC_Bank ; EC29: 4C BE B1 JMP $B1BE ; 4 EC2C: A5 E1 LDA <00E1 ; EC2E: D0 28 BNE $EC58 ; EC30: A5 E0 LDA <??SND_E0?? ; EC32: C9 02 CMP #$02 ; EC34: F0 13 BEQ $EC49 ; EC36: A5 F8 LDA <00F8 ; EC38: 29 20 AND #$20 ; EC3A: F0 0D BEQ $EC49 ; EC3C: A5 E0 LDA <??SND_E0?? ; EC3E: 49 01 EOR #$01 ; EC40: 85 E0 STA <??SND_E0?? ; EC42: D0 05 BNE $EC49 ; EC44: A9 0F LDA #$0F ; EC46: 8D 15 40 STA S_Status ; [NES] IRQ status / Sound enable EC49: A5 E0 LDA <??SND_E0?? ; EC4B: F0 0B BEQ $EC58 ; EC4D: A9 05 LDA #$05 ; EC4F: 20 AC FF JSR MMC_Bank ; EC52: 20 59 B5 JSR $B559 ; 5 EC55: 4C 89 ED JMP $ED89 ; EC58: 20 1D 6E JSR 6E1D ; EC5B: A5 FA LDA <00FA ; EC5D: 29 0F AND #$0F ; EC5F: 8D F8 03 STA 03F8 ; EC62: A5 E1 LDA <00E1 ; EC64: F0 0B BEQ $EC71 ; EC66: A9 05 LDA #$05 ; EC68: 20 AC FF JSR MMC_Bank ; EC6B: 20 59 B5 JSR $B559 ; 5 EC6E: 4C 00 80 JMP $8000 ; 5 EC71: A5 F8 LDA <00F8 ; EC73: 29 10 AND #$10 ; EC75: F0 03 BEQ $EC7A ; EC77: E6 E1 INC <00E1 ; EC79: 60 RTS ; EC7A: AD 6C 06 LDA 066C ; EC7D: F0 09 BEQ $EC88 ; EC7F: AD F0 04 LDA 04F0 ; EC82: 18 CLC ; EC83: 69 10 ADC #$10 ; EC85: 8D F0 04 STA 04F0 ; EC88: 20 A0 ED JSR $EDA0 ; EC8B: A5 11 LDA <0011 ; EC8D: D0 03 BNE $EC92 ; EC8F: 4C 7D ED JMP $ED7D ; EC92: A5 60 LDA <0060 ; EC94: D0 08 BNE $EC9E ; EC96: A5 70 LDA <0070 ; EC98: 85 61 STA <0061 ; EC9A: A5 84 LDA <0084 ; EC9C: 85 62 STA <0062 ; EC9E: A2 0D LDX #$0D ; ECA0: 20 69 F7 JSR $F769 ; ECA3: A2 0E LDX #$0E ; ECA5: 20 6F F3 JSR $F36F ; ECA8: A2 0F LDX #$0F ; ECAA: 20 A0 F4 JSR $F4A0 ; ECAD: A2 10 LDX #$10 ; ECAF: 20 2A F9 JSR $F92A ; ECB2: A2 11 LDX #$11 ; ECB4: 20 2A F9 JSR $F92A ; ECB7: A2 12 LDX #$12 ; ECB9: 20 3E F7 JSR $F73E ; ECBC: A5 4A LDA <004A ; ECBE: D0 1E BNE $ECDE ; ECC0: A5 19 LDA <0019 ; ECC2: 29 07 AND #$07 ; ECC4: 85 4A STA <004A ; ECC6: A5 60 LDA <0060 ; ECC8: 49 01 EOR #$01 ; ECCA: 85 60 STA <0060 ; ECCC: F0 10 BEQ $ECDE ; ECCE: A5 61 LDA <0061 ; ECD0: C5 70 CMP <0070 ; ECD2: D0 0A BNE $ECDE ; ECD4: 49 FF EOR #$FF ; ECD6: 85 61 STA <0061 ; ECD8: A5 62 LDA <0062 ; ECDA: 49 FF EOR #$FF ; ECDC: 85 62 STA <0062 ; ECDE: AE 40 03 LDX 0340 ; ECE1: 20 98 FE JSR $FE98 ; ECE4: BD 4F 03 LDA 034F,X ; ECE7: F0 25 BEQ $ED0E ; ECE9: BD 4F 03 LDA 034F,X ; ECEC: 20 74 FB JSR $FB74 ; ECEF: AE 40 03 LDX 0340 ; ECF2: BD 05 04 LDA 0405,X ; ECF5: D0 17 BNE $ED0E ; ECF7: BD BF 04 LDA $04BF,X ; ECFA: 29 01 AND #$01 ; ECFC: D0 10 BNE $ED0E ; ECFE: BD BF 04 LDA $04BF,X ; ED01: 29 04 AND #$04 ; ED03: D0 03 BNE $ED08 ; ED05: 20 D4 77 JSR 77D4 ; ED08: AE 40 03 LDX 0340 ; ED0B: 20 D0 79 JSR 79D0 ; ED0E: CE 40 03 DEC 0340 ; ED11: D0 CB BNE $ECDE ; ED13: A9 0B LDA #$0B ; ED15: 8D 40 03 STA 0340 ; ED18: AD 6F 06 LDA 066F ; ED1B: 29 0F AND #$0F ; ED1D: D0 08 BNE $ED27 ; ED1F: AD 04 06 LDA SND_Request ; ED22: 09 40 ORA #$40 ; ED24: 8D 04 06 STA SND_Request ; ED27: A5 10 LDA <0010 ; ED29: F0 24 BEQ $ED4F ; ED2B: A9 04 LDA #$04 ; ED2D: 20 AC FF JSR MMC_Bank ; ED30: 20 50 86 JSR $8650 ; 4 ED33: 20 79 E6 JSR $E679 ; ED36: A9 05 LDA #$05 ; ED38: 20 AC FF JSR MMC_Bank ; ED3B: 20 BC 8B JSR $8BBC ; 5 ED3E: 20 AD 8A JSR $8AAD ; 5 ED41: 20 F3 A5 JSR $A5F3 ; 5 ED44: A9 01 LDA #$01 ; ED46: 20 AC FF JSR MMC_Bank ; ED49: 20 7C A1 JSR $A17C ; 1 ED4C: 4C 6A ED JMP $ED6A ; ED4F: A5 12 LDA <0012 ; ED51: C9 05 CMP #$05 ; ED53: D0 0D BNE $ED62 ; ED55: A4 EB LDY <00EB ; ED57: B9 7E 68 LDA $687E,Y ; ED5A: 29 04 AND #$04 ; ED5C: 0A ASL A ; ED5D: 0A ASL A ; ED5E: 0A ASL A ; ED5F: 20 80 6D JSR 6D80 ; ED62: A9 04 LDA #$04 ; ED64: 20 AC FF JSR MMC_Bank ; ED67: 20 E0 86 JSR $86E0 ; 4 ED6A: AD 01 03 LDA 0301 ; ED6D: D0 0E BNE $ED7D ; ED6F: AD E5 04 LDA 04E5 ; ED72: F0 09 BEQ $ED7D ; ED74: A9 00 LDA #$00 ; ED76: 8D E5 04 STA 04E5 ; ED79: A9 44 LDA #$44 ; ED7B: 85 14 STA <0014 ; ED7D: 20 FE E7 JSR $E7FE ; ED80: 20 EA E6 JSR $E6EA ; ED83: 20 28 73 JSR 7328 ; ED86: 20 8A E7 JSR $E78A ; ED89: A9 05 LDA #$05 ; ED8B: 20 AC FF JSR MMC_Bank ; ED8E: 20 E6 B1 JSR $B1E6 ; 5 ED91: 4C C0 6C JMP 6CC0 ; ED94: FF FF FF FF FF FF FF FF FF FF FF FF EDA0: A2 00 LDX #$00 ; EDA2: 20 98 FE JSR $FE98 ; EDA5: A5 AC LDA <00AC ; EDA7: 29 C0 AND #$C0 ; EDA9: C9 40 CMP #$40 ; EDAB: F0 3D BEQ $EDEA ; EDAD: AD 12 05 LDA 0512 ; EDB0: F0 08 BEQ $EDBA ; EDB2: AD F8 03 LDA 03F8 ; EDB5: 29 F0 AND #$F0 ; EDB7: 8D F8 03 STA 03F8 ; EDBA: A9 05 LDA #$05 ; EDBC: 20 AC FF JSR MMC_Bank ; EDBF: 20 9A B2 JSR $B29A ; 5 EDC2: 20 D0 EF JSR $EFD0 ; EDC5: A5 12 LDA <0012 ; EDC7: C9 0A CMP #$0A ; EDC9: F0 1F BEQ $EDEA ; EDCB: 20 3C F2 JSR $F23C ; EDCE: A5 10 LDA <0010 ; EDD0: F0 03 BEQ $EDD5 ; EDD2: 20 FB 6E JSR 6EFB ; EDD5: A2 00 LDX #$00 ; EDD7: BD 94 03 LDA 0394,X ; EDDA: D0 0E BNE $EDEA ; EDDC: B5 70 LDA 0070,X ; EDDE: 29 F8 AND #$F8 ; EDE0: 95 70 STA 0070,X ; EDE2: B5 84 LDA 0084,X ; EDE4: 29 F8 AND #$F8 ; EDE6: 09 05 ORA #$05 ; EDE8: 95 84 STA 0084,X ; EDEA: 60 RTS ; EDEB: 8D 91 9C AC AD CC D2 D5 DF EDF4: A0 00 LDY #$00 ; EDF6: 84 0F STY <000F ; EDF8: F0 16 BEQ $EE10 ; EDFA: A0 F8 LDY #$F8 ; EDFC: E0 00 CPX #$00 ; EDFE: F0 02 BEQ $EE02 ; EE00: A0 F0 LDY #$F0 ; EE02: A5 0F LDA <000F ; EE04: 29 05 AND #$05 ; EE06: F0 08 BEQ $EE10 ; EE08: A0 08 LDY #$08 ; EE0A: 29 04 AND #$04 ; EE0C: D0 02 BNE $EE10 ; EE0E: A0 10 LDY #$10 ; EE10: 84 04 STY <0004 ; EE12: B5 84 LDA 0084,X ; EE14: 18 CLC ; EE15: 69 0B ADC #$0B ; EE17: A8 TAY ; EE18: 48 PHA ; EE19: A5 0F LDA <000F ; EE1B: 29 0C AND #$0C ; EE1D: F0 12 BEQ $EE31 ; EE1F: 29 04 AND #$04 ; EE21: F0 04 BEQ $EE27 ; EE23: C0 DD CPY #$DD ; EE25: B0 05 BCS $EE2C ; EE27: 68 PLA ; EE28: 18 CLC ; EE29: 65 04 ADC <0004 ; EE2B: 48 PHA ; EE2C: B4 70 LDY 0070,X ; EE2E: 4C 48 EE JMP $EE48 ; EE31: B4 70 LDY 0070,X ; EE33: A5 0F LDA <000F ; EE35: 29 01 AND #$01 ; EE37: F0 06 BEQ $EE3F ; EE39: C0 F0 CPY #$F0 ; EE3B: B0 0B BCS $EE48 ; EE3D: 90 04 BCC $EE43 ; EE3F: C0 10 CPY #$10 ; EE41: 90 05 BCC $EE48 ; EE43: 98 TYA ; EE44: 18 CLC ; EE45: 65 04 ADC <0004 ; EE47: A8 TAY ; EE48: 98 TYA ; EE49: 29 F8 AND #$F8 ; EE4B: 4A LSR A ; EE4C: 4A LSR A ; EE4D: A8 TAY ; EE4E: B9 00 E4 LDA $E400,Y ; EE51: 85 00 STA <GP_00 ; EE53: B9 01 E4 LDA $E401,Y ; EE56: 85 01 STA <GP_01 ; EE58: 68 PLA ; EE59: 38 SEC ; EE5A: E9 40 SBC #$40 ; EE5C: 4A LSR A ; EE5D: 4A LSR A ; EE5E: 4A LSR A ; EE5F: A8 TAY ; EE60: B1 00 LDA (GP_00),Y ; EE62: 9D 9E 04 STA 049E,X ; EE65: A5 0F LDA <000F ; EE67: 29 0C AND #$0C ; EE69: F0 0F BEQ $EE7A ; EE6B: 98 TYA ; EE6C: 18 CLC ; EE6D: 69 16 ADC #$16 ; EE6F: A8 TAY ; EE70: B1 00 LDA (GP_00),Y ; EE72: DD 9E 04 CMP 049E,X ; EE75: 90 03 BCC $EE7A ; EE77: 9D 9E 04 STA 049E,X ; EE7A: BD 9E 04 LDA 049E,X ; EE7D: A4 10 LDY <0010 ; EE7F: D0 36 BNE $EEB7 ; EE81: BD 9E 04 LDA 049E,X ; EE84: A0 09 LDY #$09 ; EE86: 88 DEY ; EE87: 30 07 BMI $EE90 ; EE89: D9 EB ED CMP $EDEB,Y ; EE8C: D0 F8 BNE $EE86 ; EE8E: A9 26 LDA #$26 ; EE90: 9D 9E 04 STA 049E,X ; EE93: E0 00 CPX #$00 ; EE95: D0 1D BNE $EEB4 ; EE97: A5 EB LDA <00EB ; EE99: C9 1F CMP #$1F ; EE9B: D0 17 BNE $EEB4 ; EE9D: A9 0C LDA #$0C ; EE9F: 25 0F AND <000F ; EEA1: F0 11 BEQ $EEB4 ; EEA3: A5 70 LDA <0070 ; EEA5: C9 80 CMP #$80 ; EEA7: D0 0B BNE $EEB4 ; EEA9: A5 84 LDA <0084 ; EEAB: C9 56 CMP #$56 ; EEAD: B0 05 BCS $EEB4 ; EEAF: A9 26 LDA #$26 ; EEB1: 8D 9E 04 STA 049E ; EEB4: BD 9E 04 LDA 049E,X ; EEB7: 60 RTS ; EEB8: B5 C0 LDA 00C0,X ; EEBA: 0A ASL A ; EEBB: 90 23 BCC $EEE0 ; EEBD: 4A LSR A ; EEBE: 95 C0 STA 00C0,X ; EEC0: B4 98 LDY 0098,X ; EEC2: C0 03 CPY #$03 ; EEC4: 90 15 BCC $EEDB ; EEC6: 29 03 AND #$03 ; EEC8: F0 10 BEQ $EEDA ; EECA: BD 94 03 LDA 0394,X ; EECD: F0 0B BEQ $EEDA ; EECF: E0 00 CPX #$00 ; EED1: D0 11 BNE $EEE4 ; EED3: A5 98 LDA <0098 ; EED5: 20 13 70 JSR 7013 ; EED8: 85 C0 STA <00C0 ; EEDA: 60 RTS ; EEDB: 29 0C AND #$0C ; EEDD: D0 EB BNE $EECA ; EEDF: 60 RTS ; EEE0: B5 D3 LDA 00D3,X ; EEE2: D0 07 BNE $EEEB ; EEE4: A9 00 LDA #$00 ; EEE6: 95 C0 STA 00C0,X ; EEE8: 95 D3 STA 00D3,X ; EEEA: 60 RTS ; EEEB: A9 04 LDA #$04 ; EEED: 85 03 STA <GP_03 ; EEEF: BD 94 03 LDA 0394,X ; EEF2: D0 11 BNE $EF05 ; EEF4: 20 D7 ED JSR $EDD7 ; EEF7: B5 C0 LDA 00C0,X ; EEF9: 29 0F AND #$0F ; EEFB: 85 0F STA <000F ; EEFD: 20 FA ED JSR $EDFA ; EF00: CD 4A 03 CMP 034A ; EF03: B0 DF BCS $EEE4 ; EF05: B5 C0 LDA 00C0,X ; EF07: 29 0F AND #$0F ; EF09: 20 B6 6F JSR 6FB6 ; EF0C: F0 D6 BEQ $EEE4 ; EF0E: AD 50 03 LDA 0350 ; EF11: C9 36 CMP #$36 ; EF13: F0 08 BEQ $EF1D ; EF15: C9 4B CMP #$4B ; EF17: 90 0B BCC $EF24 ; EF19: C9 53 CMP #$53 ; EF1B: B0 07 BCS $EF24 ; EF1D: 20 46 6E JSR 6E46 ; EF20: A5 0F LDA <000F ; EF22: F0 C0 BEQ $EEE4 ; EF24: A0 01 LDY #$01 ; EF26: B5 C0 LDA 00C0,X ; EF28: 29 05 AND #$05 ; EF2A: D0 02 BNE $EF2E ; EF2C: A0 FF LDY #$FF ; EF2E: 84 02 STY <GP_02 ; EF30: D6 D3 DEC 00D3,X ; EF32: BD 94 03 LDA 0394,X ; EF35: 18 CLC ; EF36: 65 02 ADC <GP_02 ; EF38: 9D 94 03 STA 0394,X ; EF3B: 29 0F AND #$0F ; EF3D: F0 08 BEQ $EF47 ; EF3F: E0 00 CPX #$00 ; EF41: D0 07 BNE $EF4A ; EF43: 29 07 AND #$07 ; EF45: D0 03 BNE $EF4A ; EF47: 9D 94 03 STA 0394,X ; EF4A: B5 C0 LDA 00C0,X ; EF4C: 29 03 AND #$03 ; EF4E: F0 0A BEQ $EF5A ; EF50: B5 70 LDA 0070,X ; EF52: 18 CLC ; EF53: 65 02 ADC <GP_02 ; EF55: 95 70 STA 0070,X ; EF57: 4C 61 EF JMP $EF61 ; EF5A: B5 84 LDA 0084,X ; EF5C: 18 CLC ; EF5D: 65 02 ADC <GP_02 ; EF5F: 95 84 STA 0084,X ; EF61: C6 03 DEC <GP_03 ; EF63: D0 8A BNE $EEEF ; EF65: 60 RTS ; EF66: 42 06 29 2B 30 3A 3C 58 60 6E 72 A9 EF72: 10 8D 02 06 A9 98 85 3C EF7A: A5 10 LDA <0010 ; EF7C: D0 49 BNE $EFC7 ; EF7E: A5 12 LDA <0012 ; EF80: C9 05 CMP #$05 ; EF82: D0 34 BNE $EFB8 ; EF84: A4 16 LDY <0016 ; EF86: B9 2D 06 LDA $062D,Y ; EF89: 48 PHA ; EF8A: A5 EB LDA <00EB ; EF8C: A0 0A LDY #$0A ; EF8E: D9 66 EF CMP $EF66,Y ; EF91: F0 05 BEQ $EF98 ; EF93: 88 DEY ; EF94: 10 F8 BPL $EF8E ; EF96: 30 21 BMI $EFB9 ; EF98: C0 00 CPY #$00 ; EF9A: D0 05 BNE $EFA1 ; EF9C: 68 PLA ; EF9D: D0 1B BNE $EFBA ; EF9F: F0 03 BEQ $EFA4 ; EFA1: 68 PLA ; EFA2: F0 16 BEQ $EFBA ; EFA4: AD 1A 05 LDA 051A ; EFA7: D0 0F BNE $EFB8 ; EFA9: A0 09 LDY #$09 ; EFAB: 88 DEY ; EFAC: 30 0A BMI $EFB8 ; EFAE: B9 50 03 LDA 0350,Y ; EFB1: D0 F8 BNE $EFAB ; EFB3: A9 5E LDA #$5E ; EFB5: 99 50 03 STA 0350,Y ; EFB8: 60 RTS ; EFB9: 68 PLA ; EFBA: A9 01 LDA #$01 ; EFBC: 20 AC FF JSR MMC_Bank ; EFBF: 20 A8 A0 JSR $A0A8 ; 1 EFC2: A9 05 LDA #$05 ; EFC4: 4C AC FF JMP MMC_Bank ; EFC7: AD 1B 05 LDA 051B ; EFCA: D0 03 BNE $EFCF ; EFCC: EE 1B 05 INC 051B ; EFCF: 60 RTS ; EFD0: B5 C0 LDA 00C0,X ; EFD2: F0 03 BEQ $EFD7 ; EFD4: 4C B8 EE JMP $EEB8 ; EFD7: E0 00 CPX #$00 ; EFD9: D0 0E BNE $EFE9 ; EFDB: AD 94 03 LDA 0394 ; EFDE: F0 09 BEQ $EFE9 ; EFE0: AD F8 03 LDA 03F8 ; EFE3: F0 1C BEQ $F001 ; EFE5: A5 98 LDA <0098 ; EFE7: D0 1A BNE $F003 ; EFE9: E0 00 CPX #$00 ; EFEB: F0 07 BEQ $EFF4 ; EFED: AD 6C 06 LDA 066C ; EFF0: 15 3D ORA 003D,X ; EFF2: D0 DB BNE $EFCF ; EFF4: BD F8 03 LDA 03F8,X ; EFF7: F0 08 BEQ $F001 ; EFF9: 20 13 70 JSR 7013 ; EFFC: B9 C3 6D LDA $6DC3,Y ; EFFF: D0 02 BNE $F003 ; F001: A9 00 LDA #$00 ; F003: 29 0F AND #$0F ; F005: 85 0F STA <000F ; F007: A9 00 LDA #$00 ; F009: 85 0E STA <000E ; F00B: E0 00 CPX #$00 ; F00D: D0 0E BNE $F01D ; F00F: B5 AC LDA 00AC,X ; F011: 29 F0 AND #$F0 ; F013: C9 10 CMP #$10 ; F015: F0 04 BEQ $F01B ; F017: C9 20 CMP #$20 ; F019: D0 02 BNE $F01D ; F01B: 86 0F STX <000F ; F01D: E0 00 CPX #$00 ; F01F: D0 42 BNE $F063 ; F021: A9 01 LDA #$01 ; F023: 20 AC FF JSR MMC_Bank ; F026: 20 3E A1 JSR $A13E ; 1 F029: AD 50 03 LDA 0350 ; F02C: C9 36 CMP #$36 ; F02E: F0 08 BEQ $F038 ; F030: C9 4B CMP #$4B ; F032: 90 07 BCC $F03B ; F034: C9 53 CMP #$53 ; F036: B0 03 BCS $F03B ; F038: 20 46 6E JSR 6E46 ; F03B: A5 53 LDA <0053 ; F03D: D0 27 BNE $F066 ; F03F: A5 12 LDA <0012 ; F041: C9 09 CMP #$09 ; F043: F0 08 BEQ $F04D ; F045: C9 0B CMP #$0B ; F047: F0 04 BEQ $F04D ; F049: C9 0C CMP #$0C ; F04B: D0 0E BNE $F05B ; F04D: A9 05 LDA #$05 ; F04F: 20 AC FF JSR MMC_Bank ; F052: 20 D7 8E JSR $8ED7 ; 5 F055: A5 12 LDA <0012 ; F057: C9 09 CMP #$09 ; F059: F0 0B BEQ $F066 ; F05B: A5 10 LDA <0010 ; F05D: F0 07 BEQ $F066 ; F05F: A5 53 LDA <0053 ; F061: D0 03 BNE $F066 ; F063: 20 B8 6F JSR 6FB8 ; F066: E0 00 CPX #$00 ; F068: D0 14 BNE $F07E ; F06A: A5 10 LDA <0010 ; F06C: F0 10 BEQ $F07E ; F06E: A5 12 LDA <0012 ; F070: C9 09 CMP #$09 ; F072: F0 0A BEQ $F07E ; F074: A9 05 LDA #$05 ; F076: 20 AC FF JSR MMC_Bank ; F079: 20 7C 91 JSR $917C ; 5 F07C: A2 00 LDX #$00 ; F07E: 20 E3 F0 JSR $F0E3 ; F081: E0 00 CPX #$00 ; F083: D0 08 BNE $F08D ; F085: A9 05 LDA #$05 ; F087: 20 AC FF JSR MMC_Bank ; F08A: 20 7B 8F JSR $8F7B ; 5 F08D: A9 08 LDA #$08 ; F08F: A0 F8 LDY #$F8 ; F091: E0 00 CPX #$00 ; F093: F0 04 BEQ $F099 ; F095: A9 10 LDA #$10 ; F097: A0 F0 LDY #$F0 ; F099: 8D 0E 01 STA 010E ; F09C: 8C 0F 01 STY 010F ; F09F: A5 0F LDA <000F ; F0A1: F0 1D BEQ $F0C0 ; F0A3: 20 AC F0 JSR $F0AC ; F0A6: 20 AC F0 JSR $F0AC ; F0A9: 20 AC F0 JSR $F0AC ; F0AC: A5 0F LDA <000F ; F0AE: 4A LSR A ; F0AF: B0 1A BCS $F0CB ; F0B1: 4A LSR A ; F0B2: B0 21 BCS $F0D5 ; F0B4: 4A LSR A ; F0B5: B0 0A BCS $F0C1 ; F0B7: 20 E8 6F JSR 6FE8 ; F0BA: B5 84 LDA 0084,X ; F0BC: E9 00 SBC #$00 ; F0BE: 95 84 STA 0084,X ; F0C0: 60 RTS ; F0C1: 20 C1 6F JSR 6FC1 ; F0C4: B5 84 LDA 0084,X ; F0C6: 69 00 ADC #$00 ; F0C8: 95 84 STA 0084,X ; F0CA: 60 RTS ; F0CB: 20 C1 6F JSR 6FC1 ; F0CE: B5 70 LDA 0070,X ; F0D0: 69 00 ADC #$00 ; F0D2: 95 70 STA 0070,X ; F0D4: 60 RTS ; F0D5: 20 E8 6F JSR 6FE8 ; F0D8: B5 70 LDA 0070,X ; F0DA: E9 00 SBC #$00 ; F0DC: 95 70 STA 0070,X ; F0DE: 60 RTS ; F0DF: 3D DD 00 AND $00DD,X ; F0E2: F0 E0 BEQ $F0C4 ; F0E4: 00 BRK ; F0E5: D0 0B BNE $F0F2 ; F0E7: A5 53 LDA <0053 ; F0E9: F0 03 BEQ $F0EE ; F0EB: 4C 4E F1 JMP $F14E ; F0EE: A5 0E LDA <000E ; F0F0: 30 56 BMI $F148 ; F0F2: BD 94 03 LDA 0394,X ; F0F5: D0 51 BNE $F148 ; F0F7: 85 0E STA <000E ; F0F9: A5 0F LDA <000F ; F0FB: D0 19 BNE $F116 ; F0FD: E0 00 CPX #$00 ; F0FF: F0 47 BEQ $F148 ; F101: BD BF 04 LDA $04BF,X ; F104: 29 10 AND #$10 ; F106: D0 08 BNE $F110 ; F108: BD F8 03 LDA 03F8,X ; F10B: 85 0F STA <000F ; F10D: 4C 29 F1 JMP $F129 ; F110: 20 D0 F1 JSR $F1D0 ; F113: 4C 98 F1 JMP $F198 ; F116: 20 FA ED JSR $EDFA ; F119: CD 4A 03 CMP 034A ; F11C: 90 30 BCC $F14E ; F11E: E0 00 CPX #$00 ; F120: F0 11 BEQ $F133 ; F122: BD BF 04 LDA $04BF,X ; F125: 29 10 AND #$10 ; F127: D0 E7 BNE $F110 ; F129: 20 A0 F1 JSR $F1A0 ; F12C: 85 0F STA <000F ; F12E: A5 0E LDA <000E ; F130: D0 E4 BNE $F116 ; F132: 60 RTS ; F133: A5 10 LDA <0010 ; F135: D0 08 BNE $F13F ; F137: A9 01 LDA #$01 ; F139: 20 AC FF JSR MMC_Bank ; F13C: 20 23 A2 JSR $A223 ; 1 F13F: 20 49 F1 JSR $F149 ; F142: 85 F8 STA <00F8 ; F144: A5 10 LDA <0010 ; F146: F0 06 BEQ $F14E ; F148: 60 RTS ; F149: A9 00 LDA #$00 ; F14B: 85 0F STA <000F ; F14D: 60 RTS ; F14E: E0 00 CPX #$00 ; F150: D0 46 BNE $F198 ; F152: A5 12 LDA <0012 ; F154: C9 05 CMP #$05 ; F156: D0 3D BNE $F195 ; F158: A5 64 LDA <0064 ; F15A: D0 EC BNE $F148 ; F15C: AD 94 03 LDA 0394 ; F15F: D0 34 BNE $F195 ; F161: A6 84 LDX <0084 ; F163: AD F8 03 LDA 03F8 ; F166: F0 2D BEQ $F195 ; F168: 20 13 70 JSR 7013 ; F16B: B9 C3 6D LDA $6DC3,Y ; F16E: 29 0C AND #$0C ; F170: D0 02 BNE $F174 ; F172: A6 70 LDX <0070 ; F174: 86 00 STX <GP_00 ; F176: A5 00 LDA <GP_00 ; F178: D9 DF F0 CMP $F0DF,Y ; F17B: D0 18 BNE $F195 ; F17D: B9 C3 6D LDA $6DC3,Y ; F180: 85 98 STA <0098 ; F182: E6 12 INC <0012 ; F184: A9 00 LDA #$00 ; F186: 85 13 STA <0013 ; F188: 85 11 STA <0011 ; F18A: 85 0F STA <000F ; F18C: 85 AC STA <00AC ; F18E: 85 C0 STA <00C0 ; F190: 85 D3 STA <00D3 ; F192: 8D F0 04 STA 04F0 ; F195: A2 00 LDX #$00 ; F197: 60 RTS ; F198: 20 B8 6F JSR 6FB8 ; F19B: F0 85 BEQ $F122 ; F19D: 95 98 STA 0098,X ; F19F: 60 RTS ; F1A0: A5 0E LDA <000E ; F1A2: E6 0E INC <000E ; F1A4: 20 E2 E5 JSR SwitchAJumpRet ; F1A7: AF ; F1A8: F1 C3 SBC (00C3),Y ; F1AA: F1 D0 SBC (00D0),Y ; F1AC: F1 DA SBC (00DA),Y ; F1AE: F1 A0 SBC (00A0),Y ; F1B0: 00 BRK ; F1B1: B5 18 LDA 0018,X ; F1B3: 0A ASL A ; F1B4: B0 01 BCS $F1B7 ; F1B6: C8 INY ; F1B7: B5 98 LDA 0098,X ; F1B9: 29 0C AND #$0C ; F1BB: F0 02 BEQ $F1BF ; F1BD: C8 INY ; F1BE: C8 INY ; F1BF: B9 C3 6D LDA $6DC3,Y ; F1C2: 60 RTS ; F1C3: A5 0F LDA <000F ; F1C5: 48 PHA ; F1C6: 29 0A AND #$0A ; F1C8: F0 03 BEQ $F1CD ; F1CA: 68 PLA ; F1CB: 4A LSR A ; F1CC: 60 RTS ; F1CD: 68 PLA ; F1CE: 0A ASL A ; F1CF: 60 RTS ; F1D0: B5 98 LDA 0098,X ; F1D2: 20 13 70 JSR 7013 ; F1D5: 95 98 STA 0098,X ; F1D7: 85 0F STA <000F ; F1D9: 60 RTS ; F1DA: A9 00 LDA #$00 ; F1DC: 85 0E STA <000E ; F1DE: 60 RTS ; F1DF: BD 94 03 LDA 0394,X ; F1E2: D0 18 BNE $F1FC ; F1E4: 85 0E STA <000E ; F1E6: 20 A0 F1 JSR $F1A0 ; F1E9: 85 0F STA <000F ; F1EB: F0 0F BEQ $F1FC ; F1ED: 20 FA ED JSR $EDFA ; F1F0: CD 4A 03 CMP 034A ; F1F3: B0 F1 BCS $F1E6 ; F1F5: 20 B8 6F JSR 6FB8 ; F1F8: F0 EC BEQ $F1E6 ; F1FA: 95 98 STA 0098,X ; F1FC: 60 RTS ; F1FD: 00 00 F0 10 FB 13 03 03 02 06 08 0A 80 54 60 60 17 18 19 27 4F 5F F213: 20 3C F2 JSR $F23C ; F216: A9 04 LDA #$04 ; F218: 4C AC FF JMP MMC_Bank ; F21B: 20 31 F2 JSR $F231 ; 4 F21E: A9 01 LDA #$01 ; F220: 4C AC FF JMP MMC_Bank ; F223: 20 3C F2 JSR $F23C ; F226: 4C 1E F2 JMP $F21E ; F229: 20 31 F2 JSR $F231 ; F22C: A9 04 LDA #$04 ; F22E: 4C AC FF JMP MMC_Bank ; F231: A9 06 LDA #$06 ; F233: 8D D0 03 STA 03D0 ; F236: D0 04 BNE $F23C ; F238: A5 10 LDA <0010 ; F23A: D0 C0 BNE $F1FC ; F23C: AD 22 05 LDA 0522 ; F23F: D0 BB BNE $F1FC ; F241: AA TAX ; F242: A5 12 LDA <0012 ; F244: C9 06 CMP #$06 ; F246: F0 0D BEQ $F255 ; F248: C9 05 CMP #$05 ; F24A: 90 09 BCC $F255 ; F24C: AD 94 03 LDA 0394 ; F24F: F0 14 BEQ $F265 ; F251: 29 07 AND #$07 ; F253: F0 03 BEQ $F258 ; F255: 4C E3 F2 JMP $F2E3 ; F258: A9 00 LDA #$00 ; F25A: 8D 94 03 STA 0394 ; F25D: A4 12 LDY <0012 ; F25F: C0 05 CPY #$05 ; F261: D0 F2 BNE $F255 ; F263: 85 5A STA <005A ; F265: A5 12 LDA <0012 ; F267: C9 05 CMP #$05 ; F269: D0 EA BNE $F255 ; F26B: A5 10 LDA <0010 ; F26D: D0 0E BNE $F27D ; F26F: A5 EB LDA <00EB ; F271: A0 05 LDY #$05 ; F273: D9 0D F2 CMP $F20D,Y ; F276: F0 05 BEQ $F27D ; F278: 88 DEY ; F279: 10 F8 BPL $F273 ; F27B: 30 66 BMI $F2E3 ; F27D: A5 53 LDA <0053 ; F27F: D0 62 BNE $F2E3 ; F281: AD 63 06 LDA 0663 ; F284: F0 5D BEQ $F2E3 ; F286: A5 AC LDA <00AC ; F288: 29 C0 AND #$C0 ; F28A: C9 40 CMP #$40 ; F28C: F0 55 BEQ $F2E3 ; F28E: A5 64 LDA <0064 ; F290: D0 51 BNE $F2E3 ; F292: A2 00 LDX #$00 ; F294: A5 98 LDA <0098 ; F296: 85 0F STA <000F ; F298: 20 FA ED JSR $EDFA ; F29B: A4 10 LDY <0010 ; F29D: F0 06 BEQ $F2A5 ; F29F: C9 F4 CMP #$F4 ; F2A1: F0 0A BEQ $F2AD ; F2A3: D0 3E BNE $F2E3 ; F2A5: C9 8D CMP #$8D ; F2A7: 90 3A BCC $F2E3 ; F2A9: C9 99 CMP #$99 ; F2AB: B0 36 BCS $F2E3 ; F2AD: 20 BB FE JSR $FEBB ; F2B0: F0 31 BEQ $F2E3 ; F2B2: AD F8 03 LDA 03F8 ; F2B5: F0 2C BEQ $F2E3 ; F2B7: A6 59 LDX <0059 ; F2B9: C5 98 CMP <0098 ; F2BB: D0 26 BNE $F2E3 ; F2BD: 86 64 STX <0064 ; F2BF: 95 98 STA 0098,X ; F2C1: 20 13 70 JSR 7013 ; F2C4: A5 70 LDA <0070 ; F2C6: 18 CLC ; F2C7: 79 FD F1 ADC $F1FD,Y ; F2CA: 95 70 STA 0070,X ; F2CC: A5 84 LDA <0084 ; F2CE: 18 CLC ; F2CF: 79 01 F2 ADC $F201,Y ; F2D2: 95 84 STA 0084,X ; F2D4: A9 5F LDA #$5F ; F2D6: 9D 4F 03 STA 034F,X ; F2D9: 20 E4 EE JSR $EEE4 ; F2DC: 9D F0 04 STA 04F0,X ; F2DF: A9 01 LDA #$01 ; F2E1: 95 AC STA 00AC,X ; F2E3: A2 00 LDX #$00 ; F2E5: A5 12 LDA <0012 ; F2E7: C9 05 CMP #$05 ; F2E9: D0 12 BNE $F2FD ; F2EB: AD 9E 04 LDA 049E ; F2EE: 48 PHA ; F2EF: A9 05 LDA #$05 ; F2F1: 20 AC FF JSR MMC_Bank ; F2F4: 20 F4 B3 JSR $B3F4 ; 5 F2F7: A2 00 LDX #$00 ; F2F9: 68 PLA ; F2FA: 8D 9E 04 STA 049E ; F2FD: 20 3C FA JSR $FA3C ; F300: A5 12 LDA <0012 ; F302: C9 09 CMP #$09 ; F304: F0 04 BEQ $F30A ; F306: A5 10 LDA <0010 ; F308: D0 04 BNE $F30E ; F30A: E6 01 INC <GP_01 ; F30C: E6 01 INC <GP_01 ; F30E: A5 AC LDA <00AC ; F310: 29 30 AND #$30 ; F312: C9 10 CMP #$10 ; F314: F0 04 BEQ $F31A ; F316: C9 20 CMP #$20 ; F318: D0 05 BNE $F31F ; F31A: 98 TYA ; F31B: 18 CLC ; F31C: 69 04 ADC #$04 ; F31E: A8 TAY ; F31F: 98 TYA ; F320: A0 00 LDY #$00 ; F322: 20 E7 77 JSR 77E7 ; F325: AD 76 06 LDA 0676 ; F328: D0 16 BNE $F340 ; F32A: A5 98 LDA <0098 ; F32C: C9 04 CMP #$04 ; F32E: D0 3A BNE $F36A ; F330: A2 01 LDX #$01 ; F332: BD 48 02 LDA 0248,X ; F335: C9 0B CMP #$0B ; F337: B0 31 BCS $F36A ; F339: 48 PHA ; F33A: 18 CLC ; F33B: 69 50 ADC #$50 ; F33D: 4C 5A F3 JMP $F35A ; F340: A2 01 LDX #$01 ; F342: A5 98 LDA <0098 ; F344: 4A LSR A ; F345: 90 02 BCC $F349 ; F347: A2 05 LDX #$05 ; F349: A0 04 LDY #$04 ; F34B: BD 48 02 LDA 0248,X ; F34E: 48 PHA ; F34F: 88 DEY ; F350: 30 0B BMI $F35D ; F352: D9 05 F2 CMP $F205,Y ; F355: D0 F8 BNE $F34F ; F357: B9 09 F2 LDA $F209,Y ; F35A: 9D 48 02 STA 0248,X ; F35D: 68 PLA ; F35E: C9 0A CMP #$0A ; F360: D0 08 BNE $F36A ; F362: BD 49 02 LDA 0249,X ; F365: 29 0F AND #$0F ; F367: 9D 49 02 STA 0249,X ; F36A: 60 RTS ; F36B: 40 RTI ; F36C: C0 80 CPY #$80 ; F36E: 00 BRK ; F36F: B5 AC LDA 00AC,X ; F371: F0 F7 BEQ $F36A ; F373: 4A LSR A ; F374: 90 03 BCC $F379 ; F376: 4C 1D F4 JMP $F41D ; F379: BD 94 03 LDA 0394,X ; F37C: D0 00 BNE $F37E ; F37E: B5 98 LDA 0098,X ; F380: 20 27 70 JSR 7027 ; F383: A5 0F LDA <000F ; F385: F0 4D BEQ $F3D4 ; F387: BD 94 03 LDA 0394,X ; F38A: 29 07 AND #$07 ; F38C: D0 03 BNE $F391 ; F38E: 9D 94 03 STA 0394,X ; F391: 20 93 FA JSR $FA93 ; F394: B5 98 LDA 0098,X ; F396: 48 PHA ; F397: 29 03 AND #$03 ; F399: F0 07 BEQ $F3A2 ; F39B: A5 01 LDA <GP_01 ; F39D: 18 CLC ; F39E: 69 03 ADC #$03 ; F3A0: 85 01 STA <GP_01 ; F3A2: 68 PLA ; F3A3: 20 13 70 JSR 7013 ; F3A6: A5 15 LDA <0015 ; F3A8: 29 03 AND #$03 ; F3AA: 19 0D F5 ORA $F50D,Y ; F3AD: 20 88 79 JSR 7988 ; F3B0: B9 09 F5 LDA $F509,Y ; F3B3: 85 0C STA <000C ; F3B5: C0 02 CPY #$02 ; F3B7: D0 02 BNE $F3BB ; F3B9: E6 0F INC <000F ; F3BB: A0 22 LDY #$22 ; F3BD: E0 0D CPX #$0D ; F3BF: B0 09 BCS $F3CA ; F3C1: BD 4F 03 LDA 034F,X ; F3C4: C9 57 CMP #$57 ; F3C6: F0 09 BEQ $F3D1 ; F3C8: D0 05 BNE $F3CF ; F3CA: B5 AC LDA 00AC,X ; F3CC: 0A ASL A ; F3CD: 90 02 BCC $F3D1 ; F3CF: A0 23 LDY #$23 ; F3D1: 4C 15 79 JMP 7915 ; F3D4: B5 AC LDA 00AC,X ; F3D6: 0A ASL A ; F3D7: 90 3D BCC $F416 ; F3D9: AD 61 06 LDA 0661 ; F3DC: F0 35 BEQ $F413 ; F3DE: A5 AC LDA <00AC ; F3E0: 48 PHA ; F3E1: AD 13 05 LDA 0513 ; F3E4: 48 PHA ; F3E5: A9 00 LDA #$00 ; F3E7: 8D 13 05 STA 0513 ; F3EA: 20 4F 71 JSR 714F ; F3ED: 68 PLA ; F3EE: 8D 13 05 STA 0513 ; F3F1: 68 PLA ; F3F2: 85 AC STA <00AC ; F3F4: B5 AC LDA 00AC,X ; F3F6: C9 21 CMP #$21 ; F3F8: D0 17 BNE $F411 ; F3FA: F6 AC INC 00AC,X ; F3FC: A0 0E LDY #$0E ; F3FE: B9 70 00 LDA 0070,Y ; F401: 95 70 STA 0070,X ; F403: B9 84 00 LDA 0084,Y ; F406: 95 84 STA 0084,X ; F408: B9 98 00 LDA 0098,Y ; F40B: 95 98 STA 0098,X ; F40D: A9 4F LDA #$4F ; F40F: 95 28 STA 0028,X ; F411: A2 0E LDX #$0E ; F413: 4C 55 F8 JMP $F855 ; F416: F6 AC INC 00AC,X ; F418: A9 FE LDA #$FE ; F41A: 95 98 STA 0098,X ; F41C: 60 RTS ; F41D: B5 98 LDA 0098,X ; F41F: 85 02 STA <GP_02 ; F421: 85 03 STA <GP_03 ; F423: A9 00 LDA #$00 ; F425: 85 0F STA <000F ; F427: A0 03 LDY #$03 ; F429: 98 TYA ; F42A: 48 PHA ; F42B: A5 02 LDA <GP_02 ; F42D: 48 PHA ; F42E: A5 03 LDA <GP_03 ; F430: 48 PHA ; F431: A5 15 LDA <0015 ; F433: 29 03 AND #$03 ; F435: 19 6B F3 ORA $F36B,Y ; F438: 20 88 79 JSR 7988 ; F43B: B5 70 LDA 0070,X ; F43D: 18 CLC ; F43E: 65 02 ADC <GP_02 ; F440: 85 00 STA <GP_00 ; F442: D5 70 CMP 0070,X ; F444: 90 0A BCC $F450 ; F446: C9 FC CMP #$FC ; F448: B0 2B BCS $F475 ; F44A: 38 SEC ; F44B: F5 70 SBC 0070,X ; F44D: 4C 55 F4 JMP $F455 ; F450: B5 70 LDA 0070,X ; F452: 38 SEC ; F453: E5 00 SBC <GP_00 ; F455: C9 20 CMP #$20 ; F457: B0 1C BCS $F475 ; F459: B5 84 LDA 0084,X ; F45B: 18 CLC ; F45C: 65 03 ADC <GP_03 ; F45E: 85 01 STA <GP_01 ; F460: A4 10 LDY <0010 ; F462: F0 08 BEQ $F46C ; F464: C9 3E CMP #$3E ; F466: 90 0D BCC $F475 ; F468: C9 E8 CMP #$E8 ; F46A: B0 09 BCS $F475 ; F46C: A9 02 LDA #$02 ; F46E: 85 0C STA <000C ; F470: A0 23 LDY #$23 ; F472: 20 15 79 JSR 7915 ; F475: 68 PLA ; F476: 85 03 STA <GP_03 ; F478: 68 PLA ; F479: 85 02 STA <GP_02 ; F47B: 68 PLA ; F47C: 48 PHA ; F47D: A8 TAY ; F47E: C0 01 CPY #$01 ; F480: D0 02 BNE $F484 ; F482: A0 03 LDY #$03 ; F484: B9 00 00 LDA GP_00,Y ; F487: 49 FF EOR #$FF ; F489: 18 CLC ; F48A: 69 01 ADC #$01 ; F48C: 99 00 00 STA GP_00,Y ; F48F: 68 PLA ; F490: A8 TAY ; F491: 88 DEY ; F492: 10 95 BPL $F429 ; F494: D6 98 DEC 0098,X ; F496: B5 98 LDA 0098,X ; F498: C9 E8 CMP #$E8 ; F49A: D0 03 BNE $F49F ; F49C: 4C 11 F4 JMP $F411 ; F49F: 60 RTS ; F4A0: B5 AC LDA 00AC,X ; F4A2: F0 FB BEQ $F49F ; F4A4: 0A ASL A ; F4A5: 90 72 BCC $F519 ; F4A7: B5 28 LDA 0028,X ; F4A9: D0 0E BNE $F4B9 ; F4AB: F6 AC INC 00AC,X ; F4AD: B5 AC LDA 00AC,X ; F4AF: 29 0F AND #$0F ; F4B1: C9 03 CMP #$03 ; F4B3: F0 2D BEQ $F4E2 ; F4B5: A9 FF LDA #$FF ; F4B7: 95 28 STA 0028,X ; F4B9: AD 5F 03 LDA 035F ; F4BC: C9 03 CMP #$03 ; F4BE: 90 18 BCC $F4D8 ; F4C0: C9 0B CMP #$0B ; F4C2: 90 0C BCC $F4D0 ; F4C4: C9 12 CMP #$12 ; F4C6: F0 08 BEQ $F4D0 ; F4C8: C9 1B CMP #$1B ; F4CA: F0 04 BEQ $F4D0 ; F4CC: C9 1C CMP #$1C ; F4CE: D0 08 BNE $F4D8 ; F4D0: B5 70 LDA 0070,X ; F4D2: 85 61 STA <0061 ; F4D4: B5 84 LDA 0084,X ; F4D6: 85 62 STA <0062 ; F4D8: 20 93 FA JSR $FA93 ; F4DB: A9 02 LDA #$02 ; F4DD: A0 06 LDY #$06 ; F4DF: 4C 0C 79 JMP 790C ; F4E2: 4C 55 F8 JMP $F855 ; F4E5: 00 01 02 01 00 01 02 01 03 00 00 00 F4F1: 40 40 C0 80 80 01 00 20 36 4C 60 68 F4FD: 70 78 80 80 78 70 68 60 4C 36 20 00 F509: 00 00 01 01 00 80 00 00 FC FC 00 00 F515: 00 00 03 03 F519: B5 AC LDA 00AC,X ; F51B: F0 82 BEQ $F49F ; F51D: A9 00 LDA #$00 ; F51F: 85 00 STA <GP_00 ; F521: B5 AC LDA 00AC,X ; F523: 29 F0 AND #$F0 ; F525: C9 10 CMP #$10 ; F527: F0 03 BEQ $F52C ; F529: 4C B6 F5 JMP $F5B6 ; F52C: A9 00 LDA #$00 ; F52E: 85 0E STA <000E ; F530: B5 98 LDA 0098,X ; F532: 29 03 AND #$03 ; F534: F0 05 BEQ $F53B ; F536: 20 27 70 JSR 7027 ; F539: E6 0E INC <000E ; F53B: A5 0E LDA <000E ; F53D: 0A ASL A ; F53E: B0 35 BCS $F575 ; F540: B5 98 LDA 0098,X ; F542: 29 0C AND #$0C ; F544: F0 03 BEQ $F549 ; F546: 20 27 70 JSR 7027 ; F549: A5 0E LDA <000E ; F54B: 0A ASL A ; F54C: B0 27 BCS $F575 ; F54E: E0 0D CPX #$0D ; F550: B0 07 BCS $F559 ; F552: BD 4F 03 LDA 034F,X ; F555: C9 5B CMP #$5B ; F557: F0 22 BEQ $F57B ; F559: E0 12 CPX #$12 ; F55B: F0 1E BEQ $F57B ; F55D: BD 94 03 LDA 0394,X ; F560: 10 05 BPL $F567 ; F562: 49 FF EOR #$FF ; F564: 18 CLC ; F565: 69 01 ADC #$01 ; F567: DD 80 03 CMP $0380,X ; F56A: 90 0C BCC $F578 ; F56C: A9 10 LDA #$10 ; F56E: 9D 80 03 STA $0380,X ; F571: A9 20 LDA #$20 ; F573: 95 AC STA 00AC,X ; F575: 4C E1 F5 JMP $F5E1 ; F578: 4C B8 F6 JMP $F6B8 ; F57B: A9 00 LDA #$00 ; F57D: 85 0F STA <000F ; F57F: B5 98 LDA 0098,X ; F581: C9 02 CMP #$02 ; F583: D0 02 BNE $F587 ; F585: E6 0F INC <000F ; F587: 20 13 70 JSR 7013 ; F58A: B9 09 F5 LDA $F509,Y ; F58D: 85 0C STA <000C ; F58F: B9 0D F5 LDA $F50D,Y ; F592: 85 04 STA <0004 ; F594: E0 0D CPX #$0D ; F596: B0 0E BCS $F5A6 ; F598: BD 4F 03 LDA 034F,X ; F59B: C9 5B CMP #$5B ; F59D: D0 07 BNE $F5A6 ; F59F: A5 04 LDA <0004 ; F5A1: 18 CLC ; F5A2: 69 02 ADC #$02 ; F5A4: D0 07 BNE $F5AD ; F5A6: 18 CLC ; F5A7: 6D 59 06 ADC 0659 ; F5AA: 38 SEC ; F5AB: E9 01 SBC #$01 ; F5AD: 85 04 STA <0004 ; F5AF: A5 04 LDA <0004 ; F5B1: 85 05 STA <0005 ; F5B3: 4C 14 F7 JMP $F714 ; F5B6: C9 20 CMP #$20 ; F5B8: D0 57 BNE $F611 ; F5BA: A9 28 LDA #$28 ; F5BC: 95 AC STA 00AC,X ; F5BE: DE D0 03 DEC 03D0,X ; F5C1: D0 2A BNE $F5ED ; F5C3: A9 40 LDA #$40 ; F5C5: 95 AC STA 00AC,X ; F5C7: E0 0D CPX #$0D ; F5C9: B0 07 BCS $F5D2 ; F5CB: BD 4F 03 LDA 034F,X ; F5CE: C9 5B CMP #$5B ; F5D0: F0 04 BEQ $F5D6 ; F5D2: E0 12 CPX #$12 ; F5D4: D0 0B BNE $F5E1 ; F5D6: 20 55 F8 JSR $F855 ; F5D9: E0 0D CPX #$0D ; F5DB: B0 03 BCS $F5E0 ; F5DD: 20 46 83 JSR $8346 ; F5E0: 60 RTS ; F5E1: A9 03 LDA #$03 ; F5E3: 9D D0 03 STA 03D0,X ; F5E6: B5 AC LDA 00AC,X ; F5E8: 18 CLC ; F5E9: 69 10 ADC #$10 ; F5EB: 95 AC STA 00AC,X ; F5ED: E0 0D CPX #$0D ; F5EF: B0 07 BCS $F5F8 ; F5F1: BD 4F 03 LDA 034F,X ; F5F4: C9 5B CMP #$5B ; F5F6: F0 07 BEQ $F5FF ; F5F8: E0 12 CPX #$12 ; F5FA: F0 03 BEQ $F5FF ; F5FC: 4C D3 F6 JMP $F6D3 ; F5FF: A9 02 LDA #$02 ; F601: 85 0C STA <000C ; F603: A9 00 LDA #$00 ; F605: 85 0F STA <000F ; F607: B5 98 LDA 0098,X ; F609: 20 13 70 JSR 7013 ; F60C: A9 00 LDA #$00 ; F60E: 4C 92 F5 JMP $F592 ; F611: C9 30 CMP #$30 ; F613: D0 2C BNE $F641 ; F615: A9 00 LDA #$00 ; F617: 9D 94 03 STA 0394,X ; F61A: A9 40 LDA #$40 ; F61C: 9D BC 03 STA 03BC,X ; F61F: B5 98 LDA 0098,X ; F621: 85 0F STA <000F ; F623: 29 02 AND #$02 ; F625: F0 06 BEQ $F62D ; F627: B5 70 LDA 0070,X ; F629: C9 02 CMP #$02 ; F62B: 90 08 BCC $F635 ; F62D: 20 8D F0 JSR $F08D ; F630: DE 80 03 DEC $0380,X ; F633: D0 09 BNE $F63E ; F635: A9 20 LDA #$20 ; F637: 9D 80 03 STA $0380,X ; F63A: A9 40 LDA #$40 ; F63C: 95 AC STA 00AC,X ; F63E: 4C B8 F6 JMP $F6B8 ; F641: A9 00 LDA #$00 ; F643: 9D 94 03 STA 0394,X ; F646: E0 0D CPX #$0D ; F648: B0 03 BCS $F64D ; F64A: BD 2C 04 LDA !SplashMode,X ; F64D: 20 4A 70 JSR 704A ; F650: A5 00 LDA <GP_00 ; F652: C9 02 CMP #$02 ; F654: D0 3B BNE $F691 ; F656: A9 00 LDA #$00 ; F658: 9D 80 03 STA $0380,X ; F65B: E0 0D CPX #$0D ; F65D: 90 13 BCC $F672 ; F65F: A5 AC LDA <00AC ; F661: 09 20 ORA #$20 ; F663: 85 AC STA <00AC ; F665: A9 01 LDA #$01 ; F667: 8D D0 03 STA 03D0 ; F66A: A0 0F LDY #$0F ; F66C: A9 00 LDA #$00 ; F66E: 99 AC 00 STA 00AC,Y ; F671: 60 RTS ; F672: A0 30 LDY #$30 ; F674: B5 18 LDA 0018,X ; F676: C9 30 CMP #$30 ; F678: 90 08 BCC $F682 ; F67A: A0 50 LDY #$50 ; F67C: C9 70 CMP #$70 ; F67E: 90 02 BCC $F682 ; F680: A0 70 LDY #$70 ; F682: 98 TYA ; F683: BC 2C 04 LDY !SplashMode,X ; F686: 99 28 00 STA 0028,Y ; F689: A9 00 LDA #$00 ; F68B: 99 AC 00 STA 00AC,Y ; F68E: 4C 46 83 JMP $8346 ; F691: A0 04 LDY #$04 ; F693: 20 6F 70 JSR 706F ; F696: B9 F7 F4 LDA $F4F7,Y ; F699: 20 AB 70 JSR 70AB ; F69C: A5 0A LDA <000A ; F69E: 85 0F STA <000F ; F6A0: 95 98 STA 0098,X ; F6A2: 98 TYA ; F6A3: 48 PHA ; F6A4: 20 8D F0 JSR $F08D ; F6A7: 68 PLA ; F6A8: A8 TAY ; F6A9: B9 00 F5 LDA $F500,Y ; F6AC: 20 AB 70 JSR 70AB ; F6AF: A5 0B LDA <000B ; F6B1: 85 0F STA <000F ; F6B3: 95 98 STA 0098,X ; F6B5: 20 8D F0 JSR $F08D ; F6B8: DE D0 03 DEC 03D0,X ; F6BB: D0 16 BNE $F6D3 ; F6BD: A9 02 LDA #$02 ; F6BF: 9D D0 03 STA 03D0,X ; F6C2: F6 AC INC 00AC,X ; F6C4: B5 AC LDA 00AC,X ; F6C6: 29 77 AND #$77 ; F6C8: 95 AC STA 00AC,X ; F6CA: E0 0D CPX #$0D ; F6CC: 90 1A BCC $F6E8 ; F6CE: A0 02 LDY #$02 ; F6D0: 20 10 6E JSR 6E10 ; F6D3: E0 0D CPX #$0D ; F6D5: B0 11 BCS $F6E8 ; F6D7: 20 A7 7A JSR 7AA7 ; F6DA: AD 4B 03 LDA 034B ; F6DD: F0 09 BEQ $F6E8 ; F6DF: A9 03 LDA #$03 ; F6E1: 9D D0 03 STA 03D0,X ; F6E4: A9 20 LDA #$20 ; F6E6: 95 AC STA 00AC,X ; F6E8: A9 00 LDA #$00 ; F6EA: 85 00 STA <GP_00 ; F6EC: B5 AC LDA 00AC,X ; F6EE: 29 0F AND #$0F ; F6F0: A8 TAY ; F6F1: A9 00 LDA #$00 ; F6F3: 85 01 STA <GP_01 ; F6F5: B9 E5 F4 LDA $F4E5,Y ; F6F8: 85 0C STA <000C ; F6FA: 98 TYA ; F6FB: B9 EE F4 LDA $F4EE,Y ; F6FE: 85 04 STA <0004 ; F700: A0 00 LDY #$00 ; F702: C9 08 CMP #$08 ; F704: F0 03 BEQ $F709 ; F706: AC 75 06 LDY 0675 ; F709: 98 TYA ; F70A: 18 CLC ; F70B: 65 04 ADC <0004 ; F70D: 85 04 STA <0004 ; F70F: A0 1D LDY #$1D ; F711: 4C 20 F7 JMP $F720 ; F714: B9 11 F5 LDA $F511,Y ; F717: 85 00 STA <GP_00 ; F719: B9 15 F5 LDA $F515,Y ; F71C: 85 01 STA <GP_01 ; F71E: A0 02 LDY #$02 ; F720: B5 70 LDA 0070,X ; F722: 18 CLC ; F723: 65 00 ADC <GP_00 ; F725: 85 00 STA <GP_00 ; F727: B5 84 LDA 0084,X ; F729: 18 CLC ; F72A: 65 01 ADC <GP_01 ; F72C: 85 01 STA <GP_01 ; F72E: B5 AC LDA 00AC,X ; F730: 29 F0 AND #$F0 ; F732: C9 20 CMP #$20 ; F734: D0 05 BNE $F73B ; F736: A9 01 LDA #$01 ; F738: 20 88 79 JSR 7988 ; F73B: 4C 15 79 JMP 7915 ; F73E: B5 AC LDA 00AC,X ; F740: 29 F0 AND #$F0 ; F742: C9 30 CMP #$30 ; F744: B0 23 BCS $F769 ; F746: 4C 19 F5 JMP $F519 ; F749: FF 01 00 F8 FF 01 F5 0B FF 01 F9 07 F755: FF 01 FD 03 F7 F2 F5 F5 F6 0D 03 03 F761: F7 09 03 03 FF 05 03 03 ; F769: B5 AC LDA 00AC,X ; F76B: 29 0F AND #$0F ; F76D: F0 24 BEQ $F793 ; F76F: DE D0 03 DEC 03D0,X ; F772: D0 20 BNE $F794 ; F774: B5 AC LDA 00AC,X ; F776: 29 0F AND #$0F ; F778: A8 TAY ; F779: A9 08 LDA #$08 ; F77B: 88 DEY ; F77C: F0 02 BEQ $F780 ; F77E: A9 01 LDA #$01 ; F780: 8D D0 03 STA 03D0 ; F783: 9D D0 03 STA 03D0,X ; F786: F6 AC INC 00AC,X ; F788: B5 AC LDA 00AC,X ; F78A: 29 0F AND #$0F ; F78C: C9 06 CMP #$06 ; F78E: 90 04 BCC $F794 ; F790: 20 55 F8 JSR $F855 ; F793: 60 RTS ; F794: A9 00 LDA #$00 ; F796: 85 0F STA <000F ; F798: B5 AC LDA 00AC,X ; F79A: 29 0F AND #$0F ; F79C: A8 TAY ; F79D: A9 FC LDA #$FC ; F79F: C0 05 CPY #$05 ; F7A1: F0 F0 BEQ $F793 ; F7A3: 18 CLC ; F7A4: 69 04 ADC #$04 ; F7A6: 88 DEY ; F7A7: D0 FA BNE $F7A3 ; F7A9: 85 00 STA <GP_00 ; F7AB: A5 98 LDA <0098 ; F7AD: 95 98 STA 0098,X ; F7AF: 20 13 70 JSR 7013 ; F7B2: 98 TYA ; F7B3: 18 CLC ; F7B4: 65 00 ADC <GP_00 ; F7B6: A8 TAY ; F7B7: A5 70 LDA <0070 ; F7B9: 18 CLC ; F7BA: 79 49 F7 ADC $F749,Y ; F7BD: 95 70 STA 0070,X ; F7BF: 85 00 STA <GP_00 ; F7C1: A5 84 LDA <0084 ; F7C3: 18 CLC ; F7C4: 79 59 F7 ADC $F759,Y ; F7C7: 95 84 STA 0084,X ; F7C9: 85 01 STA <GP_01 ; F7CB: B5 AC LDA 00AC,X ; F7CD: 29 0F AND #$0F ; F7CF: A8 TAY ; F7D0: A9 08 LDA #$08 ; F7D2: 88 DEY ; F7D3: F0 02 BEQ $F7D7 ; F7D5: B5 98 LDA 0098,X ; F7D7: 20 13 70 JSR 7013 ; F7DA: B9 09 F5 LDA $F509,Y ; F7DD: 85 0C STA <000C ; F7DF: B9 0D F5 LDA $F50D,Y ; F7E2: E0 0D CPX #$0D ; F7E4: F0 05 BEQ $F7EB ; F7E6: 09 01 ORA #$01 ; F7E8: 4C F2 F7 JMP $F7F2 ; F7EB: 18 CLC ; F7EC: 6D 57 06 ADC 0657 ; F7EF: 38 SEC ; F7F0: E9 01 SBC #$01 ; F7F2: 20 88 79 JSR 7988 ; F7F5: C0 02 CPY #$02 ; F7F7: D0 02 BNE $F7FB ; F7F9: E6 0F INC <000F ; F7FB: B5 AC LDA 00AC,X ; F7FD: 29 0F AND #$0F ; F7FF: C9 01 CMP #$01 ; F801: F0 51 BEQ $F854 ; F803: A0 00 LDY #$00 ; F805: E0 0D CPX #$0D ; F807: F0 02 BEQ $F80B ; F809: A0 08 LDY #$08 ; F80B: 20 15 79 JSR 7915 ; F80E: B5 AC LDA 00AC,X ; F810: 29 0F AND #$0F ; F812: C9 03 CMP #$03 ; F814: D0 3E BNE $F854 ; F816: E0 12 CPX #$12 ; F818: D0 40 BNE $F85A ; F81A: A2 0E LDX #$0E ; F81C: B5 AC LDA 00AC,X ; F81E: F0 03 BEQ $F823 ; F820: 0A ASL A ; F821: B0 31 BCS $F854 ; F823: A9 04 LDA #$04 ; F825: 8D 04 06 STA SND_Request ; F828: A9 80 LDA #$80 ; F82A: 95 AC STA 00AC,X ; F82C: A9 10 LDA #$10 ; F82E: 20 1F 71 JSR 711F ; F831: B5 98 LDA 0098,X ; F833: 29 03 AND #$03 ; F835: F0 0A BEQ $F841 ; F837: B5 70 LDA 0070,X ; F839: C9 14 CMP #$14 ; F83B: 90 18 BCC $F855 ; F83D: C9 EC CMP #$EC ; F83F: B0 14 BCS $F855 ; F841: A0 C0 LDY #$C0 ; F843: B5 AC LDA 00AC,X ; F845: 0A ASL A ; F846: 90 02 BCC $F84A ; F848: A0 A0 LDY #$A0 ; F84A: 98 TYA ; F84B: 9D BC 03 STA 03BC,X ; F84E: AD 94 03 LDA 0394 ; F851: 9D 94 03 STA 0394,X ; F854: 60 RTS ; F855: A9 00 LDA #$00 ; F857: 95 AC STA 00AC,X ; F859: 60 RTS ; F85A: A2 0E LDX #$0E ; F85C: B5 AC LDA 00AC,X ; F85E: D0 F4 BNE $F854 ; F860: AD 29 05 LDA 0529 ; F863: D0 18 BNE $F87D ; F865: AD 6F 06 LDA 066F ; F868: 48 PHA ; F869: 29 0F AND #$0F ; F86B: 85 00 STA <GP_00 ; F86D: 68 PLA ; F86E: 4A LSR A ; F86F: 4A LSR A ; F870: 4A LSR A ; F871: 4A LSR A ; F872: C5 00 CMP <GP_00 ; F874: D0 DE BNE $F854 ; F876: AD 70 06 LDA 0670 ; F879: C9 80 CMP #$80 ; F87B: 90 D7 BCC $F854 ; F87D: A9 01 LDA #$01 ; F87F: 20 7C 6D JSR 6D7C ; F882: A9 10 LDA #$10 ; F884: D0 A4 BNE $F82A ; F886: B5 AC LDA 00AC,X ; F888: C9 21 CMP #$21 ; F88A: D0 25 BNE $F8B1 ; F88C: BD 94 03 LDA 0394,X ; F88F: 48 PHA ; F890: A9 00 LDA #$00 ; F892: 9D 94 03 STA 0394,X ; F895: B5 98 LDA 0098,X ; F897: 85 0F STA <000F ; F899: 20 8D F0 JSR $F08D ; F89C: 68 PLA ; F89D: 18 CLC ; F89E: 7D 94 03 ADC 0394,X ; F8A1: 9D 94 03 STA 0394,X ; F8A4: 20 1F 70 JSR 701F ; F8A7: C9 10 CMP #$10 ; F8A9: D0 1A BNE $F8C5 ; F8AB: A9 3F LDA #$3F ; F8AD: 95 28 STA 0028,X ; F8AF: F6 AC INC 00AC,X ; F8B1: B5 28 LDA 0028,X ; F8B3: F0 A0 BEQ $F855 ; F8B5: A5 10 LDA <0010 ; F8B7: F0 0C BEQ $F8C5 ; F8B9: 8A TXA ; F8BA: 48 PHA ; F8BB: A9 04 LDA #$04 ; F8BD: 20 AC FF JSR MMC_Bank ; F8C0: 20 BE B1 JSR $B1BE ; 4 F8C3: 68 PLA ; F8C4: AA TAX ; F8C5: A9 04 LDA #$04 ; F8C7: 20 89 FA JSR $FA89 ; F8CA: 20 72 FA JSR $FA72 ; F8CD: 20 86 79 JSR 7986 ; F8D0: A9 00 LDA #$00 ; F8D2: 85 0C STA <000C ; F8D4: A0 40 LDY #$40 ; F8D6: 20 E6 77 JSR 77E6 ; F8D9: AD F0 04 LDA 04F0 ; F8DC: D0 3F BNE $F91D ; F8DE: 86 00 STX <GP_00 ; F8E0: A2 00 LDX #$00 ; F8E2: A0 02 LDY #$02 ; F8E4: 20 0D F9 JSR $F90D ; F8E7: A6 00 LDX <GP_00 ; F8E9: A0 00 LDY #$00 ; F8EB: 20 0D F9 JSR $F90D ; F8EE: A4 00 LDY <GP_00 ; F8F0: A2 00 LDX #$00 ; F8F2: A9 0E LDA #$0E ; F8F4: 20 FB 7D JSR 7DFB ; F8F7: F0 24 BEQ $F91D ; F8F9: A6 00 LDX <GP_00 ; F8FB: A0 00 LDY #$00 ; F8FD: 84 00 STY <GP_00 ; F8FF: 20 26 7E JSR 7E26 ; F902: A9 00 LDA #$00 ; F904: 85 0D STA <000D ; F906: A9 80 LDA #$80 ; F908: 85 0E STA <000E ; F90A: 4C 4F 7B JMP 7B4F ; F90D: B5 70 LDA 0070,X ; F90F: 18 CLC ; F910: 69 08 ADC #$08 ; F912: 99 02 00 STA GP_02,Y ; F915: B5 84 LDA 0084,X ; F917: 18 CLC ; F918: 69 08 ADC #$08 ; F91A: 99 03 00 STA GP_03,Y ; F91D: 60 RTS ; F91E: 30 18 0C 06 78 78 20 D0 5D BD 8D 8D F92A: B5 AC LDA 00AC,X ; F92C: F0 31 BEQ $F95F ; F92E: 29 F0 AND #$F0 ; F930: C9 10 CMP #$10 ; F932: F0 03 BEQ $F937 ; F934: 4C 86 F8 JMP $F886 ; F937: B5 28 LDA 0028,X ; F939: D0 73 BNE $F9AE ; F93B: B5 AC LDA 00AC,X ; F93D: 29 0F AND #$0F ; F93F: A8 TAY ; F940: B9 1D F9 LDA $F91D,Y ; F943: 95 28 STA 0028,X ; F945: F6 AC INC 00AC,X ; F947: B5 AC LDA 00AC,X ; F949: 29 0F AND #$0F ; F94B: 48 PHA ; F94C: C9 03 CMP #$03 ; F94E: D0 05 BNE $F955 ; F950: A9 10 LDA #$10 ; F952: 20 80 6D JSR 6D80 ; F955: 68 PLA ; F956: C9 05 CMP #$05 ; F958: D0 06 BNE $F960 ; F95A: 20 55 F8 JSR $F855 ; F95D: 95 28 STA 0028,X ; F95F: 60 RTS ; F960: C9 04 CMP #$04 ; F962: D0 4A BNE $F9AE ; F964: A5 10 LDA <0010 ; F966: F0 46 BEQ $F9AE ; F968: A5 12 LDA <0012 ; F96A: C9 09 CMP #$09 ; F96C: F0 40 BEQ $F9AE ; F96E: A0 04 LDY #$04 ; F970: 88 DEY ; F971: 30 3B BMI $F9AE ; F973: B9 22 F9 LDA $F922,Y ; F976: 38 SEC ; F977: F5 70 SBC 0070,X ; F979: 20 1F 70 JSR 701F ; F97C: C9 18 CMP #$18 ; F97E: B0 F0 BCS $F970 ; F980: B9 26 F9 LDA $F926,Y ; F983: 38 SEC ; F984: F5 84 SBC 0084,X ; F986: 20 1F 70 JSR 701F ; F989: C9 18 CMP #$18 ; F98B: B0 E3 BCS $F970 ; F98D: B9 C3 6D LDA $6DC3,Y ; F990: 85 02 STA <GP_02 ; F992: 25 EE AND <00EE ; F994: D0 18 BNE $F9AE ; F996: A5 54 LDA <0054 ; F998: D0 14 BNE $F9AE ; F99A: A9 05 LDA #$05 ; F99C: 20 AC FF JSR MMC_Bank ; F99F: 20 F6 A3 JSR $A3F6 ; 5 F9A2: C9 04 CMP #$04 ; F9A4: D0 08 BNE $F9AE ; F9A6: A9 06 LDA #$06 ; F9A8: 85 54 STA <0054 ; F9AA: A5 02 LDA <GP_02 ; F9AC: 85 55 STA <0055 ; F9AE: 20 93 FA JSR $FA93 ; F9B1: 20 BF F9 JSR $F9BF ; F9B4: B5 AC LDA 00AC,X ; F9B6: 29 0F AND #$0F ; F9B8: C9 02 CMP #$02 ; F9BA: F0 A3 BEQ $F95F ; F9BC: 4C E5 F9 JMP $F9E5 ; F9BF: 20 BB 71 JSR 71BB ; F9C2: B5 AC LDA 00AC,X ; F9C4: 29 0F AND #$0F ; F9C6: 38 SEC ; F9C7: E9 02 SBC #$02 ; F9C9: 85 0C STA <000C ; F9CB: A0 00 LDY #$00 ; F9CD: 84 0F STY <000F ; F9CF: C8 INY ; F9D0: 84 04 STY <0004 ; F9D2: 84 05 STY <0005 ; F9D4: A0 01 LDY #$01 ; F9D6: 4C 15 79 JMP 7915 ; F9D9: F3 00 0E F9 0E 07 F3 00 0E 07 F3 F9E4: F9 A0 02 SBC $02A0,Y ; F9E7: 98 TYA ; F9E8: 48 PHA ; F9E9: A5 15 LDA <0015 ; F9EB: 4A LSR A ; F9EC: 90 05 BCC $F9F3 ; F9EE: 98 TYA ; F9EF: 18 CLC ; F9F0: 69 06 ADC #$06 ; F9F2: A8 TAY ; F9F3: B5 84 LDA 0084,X ; F9F5: 18 CLC ; F9F6: 79 D9 F9 ADC $F9D9,Y ; F9F9: 85 01 STA <GP_01 ; F9FB: B5 70 LDA 0070,X ; F9FD: 18 CLC ; F9FE: 79 DC F9 ADC $F9DC,Y ; FA01: 85 00 STA <GP_00 ; FA03: 20 C2 F9 JSR $F9C2 ; FA06: 68 PLA ; FA07: A8 TAY ; FA08: 88 DEY ; FA09: 10 DC BPL $F9E7 ; FA0B: 60 RTS ; FA0C: 20 93 FA JSR $FA93 ; FA0F: BD 05 04 LDA 0405,X ; FA12: C9 10 CMP #$10 ; FA14: B0 11 BCS $FA27 ; FA16: 29 0F AND #$0F ; FA18: 20 C9 F9 JSR $F9C9 ; FA1B: B5 28 LDA 0028,X ; FA1D: D0 07 BNE $FA26 ; FA1F: A9 06 LDA #$06 ; FA21: 95 28 STA 0028,X ; FA23: FE 05 04 INC 0405,X ; FA26: 60 RTS ; FA27: 29 0F AND #$0F ; FA29: F0 F4 BEQ $FA1F ; FA2B: 29 01 AND #$01 ; FA2D: 85 0C STA <000C ; FA2F: A9 01 LDA #$01 ; FA31: 20 88 79 JSR 7988 ; FA34: A0 24 LDY #$24 ; FA36: 20 15 79 JSR 7915 ; FA39: 4C 1B FA JMP $FA1B ; FA3C: A5 AC LDA <00AC ; FA3E: D0 0F BNE $FA4F ; FA40: A5 12 LDA <0012 ; FA42: C9 04 CMP #$04 ; FA44: F0 09 BEQ $FA4F ; FA46: C9 10 CMP #$10 ; FA48: F0 05 BEQ $FA4F ; FA4A: AD F8 03 LDA 03F8 ; FA4D: F0 13 BEQ $FA62 ; FA4F: DE D0 03 DEC 03D0,X ; FA52: D0 0E BNE $FA62 ; FA54: E0 00 CPX #$00 ; FA56: D0 03 BNE $FA5B ; FA58: 20 AE FA JSR $FAAE ; FA5B: A9 06 LDA #$06 ; FA5D: 85 00 STA <GP_00 ; FA5F: 20 A0 FA JSR $FAA0 ; FA62: 20 93 FA JSR $FA93 ; FA65: B5 98 LDA 0098,X ; FA67: 29 0C AND #$0C ; FA69: F0 0D BEQ $FA78 ; FA6B: A0 03 LDY #$03 ; FA6D: 29 08 AND #$08 ; FA6F: D0 01 BNE $FA72 ; FA71: 88 DEY ; FA72: BD E4 03 LDA 03E4,X ; FA75: 85 0F STA <000F ; FA77: 60 RTS ; FA78: A0 00 LDY #$00 ; FA7A: BD E4 03 LDA 03E4,X ; FA7D: F0 01 BEQ $FA80 ; FA7F: C8 INY ; FA80: B5 98 LDA 0098,X ; FA82: 29 01 AND #$01 ; FA84: D0 02 BNE $FA88 ; FA86: E6 0F INC <000F ; FA88: 60 RTS ; FA89: 85 00 STA <GP_00 ; FA8B: DE D0 03 DEC 03D0,X ; FA8E: D0 03 BNE $FA93 ; FA90: 20 A0 FA JSR $FAA0 ; FA93: B5 70 LDA 0070,X ; FA95: 85 00 STA <GP_00 ; FA97: B5 84 LDA 0084,X ; FA99: 85 01 STA <GP_01 ; FA9B: A9 00 LDA #$00 ; FA9D: 85 0F STA <000F ; FA9F: 60 RTS ; FAA0: A5 00 LDA <GP_00 ; FAA2: 9D D0 03 STA 03D0,X ; FAA5: BD E4 03 LDA 03E4,X ; FAA8: 49 01 EOR #$01 ; FAAA: 9D E4 03 STA 03E4,X ; FAAD: 60 RTS ; FAAE: A5 AC LDA <00AC ; FAB0: 29 30 AND #$30 ; FAB2: C9 10 CMP #$10 ; FAB4: D0 08 BNE $FABE ; FAB6: A5 AC LDA <00AC ; FAB8: 29 0F AND #$0F ; FABA: D0 11 BNE $FACD ; FABC: F0 0A BEQ $FAC8 ; FABE: C9 20 CMP #$20 ; FAC0: D0 17 BNE $FAD9 ; FAC2: A5 AC LDA <00AC ; FAC4: 29 0F AND #$0F ; FAC6: D0 05 BNE $FACD ; FAC8: E6 AC INC <00AC ; FACA: 4C D3 FA JMP $FAD3 ; FACD: A5 AC LDA <00AC ; FACF: 09 30 ORA #$30 ; FAD1: 85 AC STA <00AC ; FAD3: A9 01 LDA #$01 ; FAD5: 8D E4 03 STA 03E4 ; FAD8: 60 RTS ; FAD9: C9 30 CMP #$30 ; FADB: D0 06 BNE $FAE3 ; FADD: A5 AC LDA <00AC ; FADF: 29 C0 AND #$C0 ; FAE1: 85 AC STA <00AC ; FAE3: 60 RTS ; FAE4: FF FF FF FF FF FF FF FF FF FF FF FF FAF0: 00 00 00 00 00 00 05 05 05 05 81 81 FAFC: 81 81 01 01 81 01 01 43 43 81 81 81 FB08: 81 01 81 81 81 01 81 81 81 81 81 81 FB14: C3 C3 89 89 81 81 89 89 89 89 83 81 FB20: 89 89 C9 C9 81 81 81 A9 A9 41 41 89 FB2C: 89 81 81 81 C1 C1 C1 C1 C1 81 81 81 FB38: A1 A1 81 81 81 81 81 81 81 81 E3 E3 FB44: E3 E3 E3 E1 E1 E1 E1 E1 81 81 06 43 FB50: 25 31 12 24 81 14 22 42 00 A9 8F 20 FB5C: 00 3F F9 FA 46 62 11 2F FF FF 7F F6 FB68: 2F FF FF 22 46 F1 F2 AA AA FB BF F0 FB74: 48 FB75: A9 04 LDA #$04 ; FB77: 20 AC FF JSR MMC_Bank ; FB7A: 68 PLA ; FB7B: BC 92 04 LDY $0492,X ; FB7E: 84 0F STY <000F ; FB80: F0 1B BEQ $FB9D ; FB82: BD 4F 03 LDA 034F,X ; FB85: C9 1E CMP #$1E ; FB87: F0 0C BEQ $FB95 ; FB89: C9 22 CMP #$22 ; FB8B: F0 08 BEQ $FB95 ; FB8D: C9 53 CMP #$53 ; FB8F: B0 04 BCS $FB95 ; FB91: A9 07 LDA #$07 ; FB93: 95 28 STA 0028,X ; FB95: A9 00 LDA #$00 ; FB97: 9D 92 04 STA $0492,X ; FB9A: 4C DA FC JMP $FCDA ; FB9D: BC 05 04 LDY 0405,X ; FBA0: F0 03 BEQ $FBA5 ; FBA2: 4C 88 FC JMP $FC88 ; FBA5: C9 6A CMP #$6A ; FBA7: 90 08 BCC $FBB1 ; FBA9: A9 01 LDA #$01 ; FBAB: 20 AC FF JSR MMC_Bank ; FBAE: 4C DB 86 JMP $86DB ; 1 FBB1: 20 E2 E5 JSR SwitchAJumpRet ; FBB4: 94 FC ; 00 FC94 FBB6: CC 87 ; 01 87CC FBB8: CC 87 ; 02 87CC FBBA: BF 87 ; 03 87BF FBBC: BF 87 ; 04 87BF FBBE: 19 81 ; 05 8119 FBC0: 19 81 ; 06 8119 FBC2: FF 8B ; 07 8BFF FBC4: FF 8B ; 08 8BFF FBC6: FF 8B ; 09 8BFF FBC8: FF 8B ; 0A 8BFF FBCA: 4B 9B ; 0B 9B4B FBCC: 4B 9B ; 0C 9B4B FBCE: F8 88 ; 0D 88F8 FBD0: F8 88 ; 0E 88F8 FBD2: 65 8A ; 0F 8A65 FBD4: 09 8B ; 10 8B09 FBD6: 98 87 ; 11 8798 FBD8: 57 9D ; 12 9D57 FBDA: CB 84 ; 13 84CB FBDC: 68 85 ; 14 8568 FBDE: 68 85 ; 15 8568 FBE0: A2 9B ; 16 9BA2 FBE2: C9 9C ; 17 9CC9 FBE4: F0 95 ; 18 95F0 FBE6: 94 FC ; 19 FC94 FBE8: 28 90 ; 1A 9028 FBEA: 81 84 ; 1B 8481 FBEC: 81 84 ; 1C 8481 FBEE: 81 84 ; 1D 8481 FBF0: 50 8D ; 1E 8D50 FBF2: 86 88 ; 1F 8886 FBF4: F8 88 ; 20 88F8 FBF6: 6B 8C ; 21 8C6B FBF8: EF 8F ; 22 8FEF FBFA: E3 9D ; 23 9DE3 FBFC: A9 9F ; 24 9FA9 FBFE: DA AB ; 25 ABDA FC00: DA AB ; 26 ABDA FC02: E4 90 ; 27 90E4 FC04: D6 92 ; 28 92D6 FC06: 94 FC ; 29 FC94 FC08: 77 93 ; 2A 9377 FC0A: 3E 84 ; 2B 843E FC0C: 3E 84 ; 2C 843E FC0E: 3E 84 ; 2D 843E FC10: 40 FE ; 2E FE40 FC12: 90 8D ; 2F 8D90 FC14: 36 9B ; 30 9B36 FC16: A9 98 ; 31 98A9 FC18: A9 98 ; 32 98A9 FC1A: 16 A3 ; 33 A316 FC1C: 16 A3 ; 34 A316 FC1E: 50 FE ; 35 FE50 FC20: 90 FE ; 36 FE90 FC22: 87 A9 ; 37 A987 FC24: F0 95 ; 38 95F0 FC26: F0 95 ; 39 95F0 FC28: EB A9 ; 3A A9EB FC2A: EB A9 ; 3B A9EB FC2C: 87 A1 ; 3C A187 FC2E: 86 97 ; 3D 9786 FC30: 7D AC ; 3E AC7D FC32: D8 A9 ; 3F A9D8 FC34: 4F 80 ; 40 804F FC36: 98 94 ; 41 9498 FC38: DE A4 ; 42 A4DE FC3A: DE A4 ; 43 A4DE FC3C: DE A4 ; 44 A4DE FC3E: DE A4 ; 45 A4DE FC40: 77 A4 ; 46 A477 FC42: 66 AB ; 47 AB66 FC44: 66 AB ; 48 AB66 FC46: 60 FE ; 49 FE60 FC48: 60 FE ; 4A FE60 FC4A: 80 FE ; 4B FE80 FC4C: 80 FE ; 4C FE80 FC4E: 80 FE ; 4D FE80 FC50: 80 FE ; 4E FE80 FC52: 80 FE ; 4F FE80 FC54: 80 FE ; 50 FE80 FC56: 88 FE ; 51 FE88 FC58: 80 FE ; 52 FE80 FC5A: D7 82 ; 53 82D7 FC5C: D7 82 ; 54 82D7 FC5E: 99 83 ; 55 8399 FC60: 99 83 ; 56 8399 FC62: D7 82 ; 57 82D7 FC64: D7 82 ; 58 82D7 FC66: D7 82 ; 59 82D7 FC68: D7 82 ; 5A 82D7 FC6A: 3F 88 ; 5B 883F FC6C: 19 F5 ; 5C F519 FC6E: A6 FE ; 5D FEA6 FC70: F4 FE ; 5E FEF4 FC72: 94 FC ; 5F FC94 FC74: FC B0 ; 60 B0FC FC76: 76 8F ; 61 8F76 FC78: 44 8E ; 62 8E44 FC7A: EB 8E ; 63 8EEB FC7C: 0E 8F ; 64 8F0E FC7E: 44 8E ; 65 8E44 FC80: 44 8E ; 66 8E44 FC82: EB 8E ; 67 8EEB FC84: F7 81 ; 68 81F7 FC86: 94 FC ; 69 FC94 FC88: 20 0C FA JSR $FA0C ; FC8B: BD 05 04 LDA 0405,X ; FC8E: 29 0F AND #$0F ; FC90: C9 04 CMP #$04 ; FC92: B0 01 BCS $FC95 ; FC94: 60 RTS ; FC95: BD 05 04 LDA 0405,X ; FC98: 29 10 AND #$10 ; FC9A: F0 3B BEQ $FCD7 ; FC9C: BD 4F 03 LDA 034F,X ; FC9F: 9D 12 04 STA 0412,X ; FCA2: C9 5D CMP #$5D ; FCA4: F0 21 BEQ $FCC7 ; FCA6: C9 14 CMP #$14 ; FCA8: F0 1D BEQ $FCC7 ; FCAA: C9 1C CMP #$1C ; FCAC: F0 19 BEQ $FCC7 ; FCAE: AD 2A 05 LDA 052A ; FCB1: 18 CLC ; FCB2: 69 01 ADC #$01 ; FCB4: C9 0A CMP #$0A ; FCB6: D0 02 BNE $FCBA ; FCB8: A9 00 LDA #$00 ; FCBA: 8D 2A 05 STA 052A ; FCBD: BD 4F 03 LDA 034F,X ; FCC0: C9 11 CMP #$11 ; FCC2: F0 03 BEQ $FCC7 ; FCC4: EE 4F 03 INC 034F ; FCC7: A9 60 LDA #$60 ; FCC9: 9D 4F 03 STA 034F,X ; FCCC: 9D 92 04 STA $0492,X ; FCCF: A9 81 LDA #$81 ; FCD1: 9D BF 04 STA $04BF,X ; FCD4: 20 6A B0 JSR $B06A ; FCD7: 4C DA FE JMP $FEDA ; FCDA: AE 40 03 LDX 0340 ; FCDD: A5 10 LDA <0010 ; FCDF: D0 5B BNE $FD3C ; FCE1: AD CD 04 LDA 04CD ; FCE4: 29 08 AND #$08 ; FCE6: F0 54 BEQ $FD3C ; FCE8: BD 4F 03 LDA 034F,X ; FCEB: C9 11 CMP #$11 ; FCED: F0 4D BEQ $FD3C ; FCEF: C9 40 CMP #$40 ; FCF1: F0 49 BEQ $FD3C ; FCF3: C9 1E CMP #$1E ; FCF5: F0 45 BEQ $FD3C ; FCF7: C9 2E CMP #$2E ; FCF9: F0 41 BEQ $FD3C ; FCFB: C9 53 CMP #$53 ; FCFD: B0 3D BCS $FD3C ; FCFF: A5 4B LDA <004B ; FD01: F0 04 BEQ $FD07 ; FD03: 9D 92 04 STA $0492,X ; FD06: 60 RTS ; FD07: AE 40 03 LDX 0340 ; FD0A: A9 05 LDA #$05 ; FD0C: 20 AC FF JSR MMC_Bank ; FD0F: 20 24 90 JSR $9024 ; 5 FD12: AD 25 05 LDA 0525 ; FD15: 48 PHA ; FD16: 0A ASL A ; FD17: 0A ASL A ; FD18: 0A ASL A ; FD19: 0A ASL A ; FD1A: 95 70 STA 0070,X ; FD1C: 68 PLA ; FD1D: 29 F0 AND #$F0 ; FD1F: 38 SEC ; FD20: E9 03 SBC #$03 ; FD22: 95 84 STA 0084,X ; FD24: B5 19 LDA 0019,X ; FD26: 29 03 AND #$03 ; FD28: 18 CLC ; FD29: 69 02 ADC #$02 ; FD2B: 85 4B STA <004B ; FD2D: A9 05 LDA #$05 ; FD2F: 20 AC FF JSR MMC_Bank ; FD32: 20 13 8A JSR $8A13 ; 5 FD35: B0 C8 BCS $FCFF ; FD37: A9 00 LDA #$00 ; FD39: 9D 05 04 STA 0405,X ; FD3C: A9 04 LDA #$04 ; FD3E: 20 AC FF JSR MMC_Bank ; FD41: AE 40 03 LDX 0340 ; FD44: BC 4F 03 LDY 034F,X ; FD47: C0 1E CPY #$1E ; FD49: F0 0B BEQ $FD56 ; FD4B: C0 22 CPY #$22 ; FD4D: F0 07 BEQ $FD56 ; FD4F: C0 53 CPY #$53 ; FD51: B0 03 BCS $FD56 ; FD53: 8A TXA ; FD54: 95 28 STA 0028,X ; FD56: B9 EF FA LDA $FAEF,Y ; FD59: 9D BF 04 STA $04BF,X ; FD5C: 98 TYA ; FD5D: 85 00 STA <GP_00 ; FD5F: 4A LSR A ; FD60: A8 TAY ; FD61: B9 4E FB LDA $FB4E,Y ; FD64: 20 00 B0 JSR $B000 ; FD67: 9D 85 04 STA $0485,X ; FD6A: A5 00 LDA <GP_00 ; FD6C: C9 6A CMP #$6A ; FD6E: 90 08 BCC $FD78 ; FD70: A9 01 LDA #$01 ; FD72: 20 AC FF JSR MMC_Bank ; FD75: 4C D0 85 JMP $85D0 ; 1 FD78: C9 5F CMP #$5F ; FD7A: 90 03 BCC $FD7F ; FD7C: 4C CA FE JMP $FECA ; FD7F: 20 E2 E5 JSR SwitchAJumpRet ; FD82: 94 FC ; 00 FC94 FD84: 25 80 ; 01 8025 FD86: 25 80 ; 02 8025 FD88: 25 80 ; 03 8025 FD8A: 25 80 ; 04 8025 FD8C: 25 80 ; 05 8025 FD8E: 25 80 ; 06 8025 FD90: 55 87 ; 07 8755 FD92: 59 87 ; 08 8759 FD94: 55 87 ; 09 8755 FD96: 59 87 ; 0A 8759 FD98: 20 9B ; 0B 9B20 FD9A: 20 9B ; 0C 9B20 FD9C: 3F 87 ; 0D 873F FD9E: 3F 87 ; 0E 873F FDA0: 4E 87 ; 0F 874E FDA2: 4E 87 ; 10 874E FDA4: D6 FE ; 11 FED6 FDA6: 25 80 ; 12 8025 FDA8: 25 80 ; 13 8025 FDAA: 25 80 ; 14 8025 FDAC: 61 85 ; 15 8561 FDAE: 25 80 ; 16 8025 FDB0: 25 80 ; 17 8025 FDB2: 94 FC ; 18 FC94 FDB4: 94 FC ; 19 FC94 FDB6: 75 87 ; 1A 8775 FDB8: 1D 84 ; 1B 841D FDBA: 35 84 ; 1C 8435 FDBC: 35 84 ; 1D 8435 FDBE: C0 8C ; 1E 8CC0 FDC0: 37 87 ; 1F 8737 FDC2: 3C 87 ; 20 873C FDC4: 55 87 ; 21 8755 FDC6: C0 8C ; 22 8CC0 FDC8: D6 FE ; 23 FED6 FDCA: D6 FE ; 24 FED6 FDCC: D6 FE ; 25 FED6 FDCE: D6 FE ; 26 FED6 FDD0: D6 FE ; 27 FED6 FDD2: C2 92 ; 28 92C2 FDD4: 94 FC ; 29 FC94 FDD6: 25 80 ; 2A 8025 FDD8: 15 84 ; 2B 8415 FDDA: 15 84 ; 2C 8415 FDDC: 15 84 ; 2D 8415 FDDE: 94 FC ; 2E FC94 FDE0: 8A 87 ; 2F 878A FDE2: 25 80 ; 30 8025 FDE4: 87 94 ; 31 9487 FDE6: 87 94 ; 32 9487 FDE8: 61 A1 ; 33 A161 FDEA: 61 A1 ; 34 A161 FDEC: 48 FE ; 35 FE48 FDEE: 78 FE ; 36 FE78 FDF0: CA A8 ; 37 A8CA FDF2: 5A 94 ; 38 945A FDF4: 79 94 ; 39 9479 FDF6: E4 A8 ; 3A A8E4 FDF8: E4 A8 ; 3B A8E4 FDFA: 0C A1 ; 3C A10C FDFC: 47 94 ; 3D 9447 FDFE: 6F A9 ; 3E A96F FE00: 94 FC ; 3F FC94 FE02: 94 FC ; 40 FC94 FE04: E2 93 ; 41 93E2 FE06: 8D A0 ; 42 A08D FE08: 8D A0 ; 43 A08D FE0A: 8D A0 ; 44 A08D FE0C: 8D A0 ; 45 A08D FE0E: 79 A1 ; 46 A179 FE10: 2E A9 ; 47 A92E FE12: 2E A9 ; 48 A92E FE14: 58 FE ; 49 FE58 FE16: 58 FE ; 4A FE58 FE18: 68 FE ; 4B FE68 FE1A: 68 FE ; 4C FE68 FE1C: 68 FE ; 4D FE68 FE1E: 68 FE ; 4E FE68 FE20: 68 FE ; 4F FE68 FE22: 68 FE ; 50 FE68 FE24: 70 FE ; 51 FE70 FE26: 68 FE ; 52 FE68 FE28: 15 80 ; 53 8015 FE2A: 19 80 ; 54 8019 FE2C: 15 80 ; 55 8015 FE2E: 15 80 ; 56 8015 FE30: 15 80 ; 57 8015 FE32: 15 80 ; 58 8015 FE34: 15 80 ; 59 8015 FE36: 15 80 ; 5A 8015 FE38: DA FE ; 5B FEDA FE3A: DA FE ; 5C FEDA FE3C: A6 FE ; 5D FEA6 FE3E: D1 FE ; 5E FED1 FE40: A9 01 LDA #$01 ; FE42: 20 AC FF JSR MMC_Bank ; FE45: 4C 18 A0 JMP $A018 ; 1 FE48: A9 01 LDA #$01 ; FE4A: 20 AC FF JSR MMC_Bank ; FE4D: 4C E2 A2 JMP $A2E2 ; 1 FE50: A9 01 LDA #$01 ; FE52: 20 AC FF JSR MMC_Bank ; FE55: 4C EE A3 JMP $A3EE ; 1 FE58: A9 01 LDA #$01 ; FE5A: 20 AC FF JSR MMC_Bank ; FE5D: 4C 1A A3 JMP $A31A ; 1 FE60: A9 01 LDA #$01 ; FE62: 20 AC FF JSR MMC_Bank ; FE65: 4C 4A A3 JMP $A34A ; 1 FE68: A9 01 LDA #$01 ; FE6A: 20 AC FF JSR MMC_Bank ; FE6D: 4C FC 89 JMP $89FC ; 1 FE70: A9 01 LDA #$01 ; FE72: 20 AC FF JSR MMC_Bank ; FE75: 4C 40 8A JMP $8A40 ; 1 FE78: A9 01 LDA #$01 ; FE7A: 20 AC FF JSR MMC_Bank ; FE7D: 4C B4 8A JMP $8AB4 ; 1 FE80: A9 01 LDA #$01 ; FE82: 20 AC FF JSR MMC_Bank ; FE85: 4C D9 8A JMP $8AD9 ; 1 FE88: A9 01 LDA #$01 ; FE8A: 20 AC FF JSR MMC_Bank ; FE8D: 4C A6 8B JMP $8BA6 ; 1 FE90: A9 01 LDA #$01 ; FE92: 20 AC FF JSR MMC_Bank ; FE95: 4C 5A 8C JMP $8C5A ; 1 FE98: BD F0 04 LDA 04F0,X ; FE9B: F0 08 BEQ $FEA5 ; FE9D: A5 15 LDA <0015 ; FE9F: 4A LSR A ; FEA0: B0 03 BCS $FEA5 ; FEA2: DE F0 04 DEC 04F0,X ; FEA5: 60 RTS ; FEA6: A9 20 LDA #$20 ; FEA8: 8D 02 06 STA SND_ReqMusEff ; FEAB: A9 10 LDA #$10 ; FEAD: 9D 05 04 STA 0405,X ; FEB0: 60 RTS ; FEB1: A9 00 LDA #$00 ; FEB3: 9D 4F 03 STA 034F,X ; FEB6: A9 00 LDA #$00 ; FEB8: 4C A5 71 JMP 71A5 ; FEBB: A0 0C LDY #$0C ; FEBD: 88 DEY ; FEBE: F0 07 BEQ $FEC7 ; FEC0: B9 4F 03 LDA 034F,Y ; FEC3: D0 F8 BNE $FEBD ; FEC5: 84 59 STY <0059 ; FEC7: C0 00 CPY #$00 ; FEC9: 60 RTS ; FECA: A9 81 LDA #$81 ; FECC: 9D BF 04 STA $04BF,X ; FECF: D0 05 BNE $FED6 ; FED1: A9 01 LDA #$01 ; FED3: 8D 1A 05 STA 051A ; FED6: A9 00 LDA #$00 ; FED8: 95 28 STA 0028,X ; FEDA: A9 00 LDA #$00 ; FEDC: 9D 05 04 STA 0405,X ; FEDF: 60 RTS ; FEE0: 3F 0C 04 0F 17 37 12 FF 12 11 22 21 FEEC: 31 32 33 35 34 36 37 37 FEF4: AC 1A 05 LDY 051A ; FEF7: C0 0C CPY #$0C ; FEF9: B0 2D BCS $FF28 ; FEFB: A5 15 LDA <0015 ; FEFD: 29 07 AND #$07 ; FEFF: C9 04 CMP #$04 ; FF01: D0 25 BNE $FF28 ; FF03: EE 1A 05 INC 051A ; FF06: C0 0B CPY #$0B ; FF08: F0 1F BEQ $FF29 ; FF0A: 98 TYA ; FF0B: 48 PHA ; FF0C: A0 07 LDY #$07 ; FF0E: B9 E0 FE LDA $FEE0,Y ; FF11: 99 02 03 STA 0302,Y ; FF14: 88 DEY ; FF15: 10 F7 BPL $FF0E ; FF17: 68 PLA ; FF18: A8 TAY ; FF19: B9 E8 FE LDA $FEE8,Y ; FF1C: 8D 08 03 STA 0308 ; FF1F: C0 0A CPY #$0A ; FF21: D0 05 BNE $FF28 ; FF23: A9 99 LDA #$99 ; FF25: 8D 4A 03 STA 034A ; FF28: 60 RTS ; FF29: A9 60 LDA #$60 ; FF2B: 95 70 STA 0070,X ; FF2D: A9 90 LDA #$90 ; FF2F: 95 84 STA 0084,X ; FF31: 4C 32 8F JMP $8F32 ; FF34: A5 15 LDA <0015 ; FF36: 29 04 AND #$04 ; FF38: F0 EE BEQ $FF28 ; FF3A: CE 1A 05 DEC 051A ; FF3D: AC 1A 05 LDY 051A ; FF40: 4C 0A FF JMP $FF0A ; FF43: FF FF FF FF FF FF FF FF FF FF FF FF FF4F: FF ; From here down is the same in all banks (except for the origin ; difference in bank 7).
RESET
RESET: ; ; Configure the MMC1 and jump to E440 (Bank 7) for startup. ; FF50: 78 SEI ; Disable interrupts FF51: D8 CLD ; Clear decimal flag FF52: A9 00 LDA #$00 ; Clear the PPU control register ... FF54: 8D 00 20 STA P_CNTRL_1 ; ... truns off NMIs FF57: A2 FF LDX #$FF ; Stack to ... FF59: 9A TXS ; ... 01FF FF5A: AD 02 20 LDA P_STATUS ; Wait ... FF5D: 29 80 AND #$80 ; ... for ... FF5F: F0 F9 BEQ $FF5A ; ... VBLANK FF61: AD 02 20 LDA P_STATUS ; Wait ... FF64: 29 80 AND #$80 ; ... for another ... FF66: F0 F9 BEQ $FF61 ; ... VBLANK (1st might have been a leftover flag) FF68: 09 FF ORA #$FF ; Reset ... FF6A: 8D 00 80 STA $8000 ; ... ... FF6D: 8D 00 A0 STA $A000 ; ... all ... FF70: 8D 00 C0 STA $C000 ; ... four ... FF73: 8D 00 E0 STA $E000 ; ... MMC1 registers FF76: A9 0F LDA #$0F ; Set MMC control to 8K CHR ROM, fixed/bank 16K PRG pages, ... FF78: 20 98 FF JSR MMC_Control ; ... and horizontal mirroring (vertical scrolling) FF7B: A9 00 LDA #$00 ; Set MMC reg1 VROM bank FF7D: 8D 00 A0 STA $A000 ; The cartridge doesn't ... FF80: 4A LSR A ; ... swap VROM pages. ... FF81: 8D 00 A0 STA $A000 ; ... Just ... FF84: 4A LSR A ; ... set ... FF85: 8D 00 A0 STA $A000 ; ... to ... FF88: 4A LSR A ; ... FF89: 8D 00 A0 STA $A000 ; ... FF8C: 4A LSR A ; ... FF8D: 8D 00 A0 STA $A000 ; ... --00000 FF90: A9 07 LDA #$07 ; Interesting! Put bank 7 ... FF92: 20 AC FF JSR MMC_Bank ; ... in the low ROM bank FF95: 4C 40 E4 JMP Startup ; Start of game ; MMC1B Info ; R0 - Control ***CPPMM ; C CHR ROM bank mode. Zelda uses 0: 8K at a time (one single 8K RAM bank) ; PP Program ROM switch mode. Zelda uses mode 3: 16K fixed in upper, 16K banks in lower ; MM Name table mirroring. Zelda switches between 2 and 3: vertical or horizontal ; R1 - CHR lower bank select ***CCCCC ; Zelda sends 0 -- one 8K bank RAM ; R2 - CHR upper bank select ***CCCCC ; Ignored in Zelda since R0.C is 0 (one 8K bank of RAM) ; R3 - PRG bank select ***RPPPP ; R PRG RAM enabled. Zelda sends 0 which means it DOES have battery backed RAM ; PPPP bank select. Zelda switches banks 0-6
MMC Control
MMC_Control:
; Set the MMC Control register (0) to value in A
FF98: 8D 00 80 STA $8000 ; MMC Register 0 (control): --edcba ...
FF9B: 4A LSR A ; ... mirroring
FF9C: 8D 00 80 STA $8000 ; ... mirroring
FF9F: 4A LSR A ; ... switch: c=0 high ROM, C=1 low ROM
FFA0: 8D 00 80 STA $8000 ; ... size: d=0 32K (full), D=1 16K (half)
FFA3: 4A LSR A ; ... chr rom mode: e=0 8K banks, B=1 4K banks
FFA4: 8D 00 80 STA $8000 ; The MMC is write-trigger (write to ROM ...
FFA7: 4A LSR A ; .. has no affect anyway).
FFA8: 8D 00 80 STA $8000 ; Bits are written from LSB to MSB ...
FFAB: 60 RTS ; ... only 5 bits
MMC Bank
MMC_Bank: ; Set the MMC Bank register (3) to value in A FFAC: 8D 00 E0 STA $E000 ; MMC Register 3 (ROM page switching): --edcba ... FFAF: 4A LSR A ; ... FFB0: 8D 00 E0 STA $E000 ; ... Write the ... FFB3: 4A LSR A ; ... switching ... FFB4: 8D 00 E0 STA $E000 ; ... page ... FFB7: 4A LSR A ; ... number FFB8: 8D 00 E0 STA $E000 ; The MMC is write-trigger (write to ROM ... FFBB: 4A LSR A ; .. has no affect anyway). FFBC: 8D 00 E0 STA $E000 ; Bits are written from LSB to MSB ... FFBF: 60 RTS ; ... only 5 bits FFC0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FFD0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FFE0: FF FF FF FF FF FF FF FF FF FF FF FFEB: 5A 45 4C 44 41 FFF0: D7 C8 00 00 38 04 01 04 01 BE
Vectors
When the MMC1B powers on, any ROM bank can be in either slot. We have to be prepared for a random bank (even the same bank) in each slot.
The RESET code at FF50 is duplicated in the other banks at BF50. No matter what bank is where and no matter if the reset leads to BF50 or FF50, the code is the same. The reset code performs a reset on the MMC putting bank 7 in the upper half of ROM and bank 0 in the lower half.
I don't understand why the other banks have the RESET pointing to BF50 instead of FF50. Since the code is duplicated, either works. But seems like FF50 would be more consistent for everyone.
The NMI code, however, is only in bank 7, which must be mapped to the upper half of ROM. If some other bank is mapped to the upper half of ROM at reset, and if an NMI occurs in the reset routine before the NMIs are turned off at the PPU, then the NMI vector takes the CPU to garbage code.
FFFA: 84 E4 ; NMI to E484 FFFC: 50 FF ; RESET to FF50 FFFE: F0 FF ; IRQ to FFF0