# SUPER SUB - Campbell Fethers - DREAMER 7 p.13 (PDF p.15) 0200-02FF, continued p.14 (PDF p.16) 0300-04FF # load 0200-04FF (printed range 0200-0500), mixed CHIP-8 + 6800 machine code; run C000 FN 3 # keys (article + table 03CD-03DC): move 4 surface-left, 5 surface (up), 6 surface-right, 8 left, # A right, C dive-left, D dive (down), E dive-right; fire torpedo 0 left-up, 1 up, 2 right-up # (two torpedoes at a time). The ship drops depth charges; a near miss can sink you. Ship hit = # it sinks (score VA +1) and a new one appears. When the sub sinks the score is shown; restart # after ~5 s or with F (byte 02B7). Key table 03CD-03DC: high nibble = x (0 left, 1 none, 2 right), # low nibble = y (0 up, 1 none, 2 down), 9x = fire. # Correction: 02D9 printed 87 (illegal 6800 opcode) -> B7: noise routine 02D2 is LDAA $8012 / EORA #$40 / # STAA $8012 (B6 80 12 ... B7 80 12), the usual B/8 ambiguity of the Centronics font. # Not changed: 03E5 INC $0015 (7C 00 15) in the X+=B routine 03DD should carry into $0014, but no call # ever carries (tables at 0397 and 03CD), so it is harmless; the print is clear. # Scan owner's handwriting: the article's key list is overwritten with other keys and 02B6 620F is # underlined; 03CC-03CD (3990) has a pencil mark: printed values kept (owner's own key remap). # MC entry points called from CHIP-8: 02D2 noise, 0319 torpedo, 035F fire debounce, 037C move sub, # 039D/03EB skip tests, 03A8 key decode, 03F6 clear 0080-01FF, 0400 depth charges, 04A6 explosions. 0200 03F6 A3FF 6203 6000 D021 7008 3040 1208 0210 6E00 6D0F 6C1C 6A00 6903 22C2 620F A3F3 0220 DCD3 68FF 6700 03EB 1246 7801 5890 1260 0230 68FF 3E3F 123A 6EFF C903 22C2 0000 0000 0240 7E01 DE03 1260 A2CA 4998 1254 DE98 7901 0250 DE98 1260 DE98 C901 CE3F 22C2 0000 68FF 0260 03A8 039D 1270 A3F3 DCD3 037C DCD3 1274 0270 3000 035F A0C0 0319 22EC A0C3 0319 22EC 0280 C007 A080 0400 A080 04A6 37FC 1224 6640 0290 F618 6B0B F715 A008 FA33 F265 6A18 F029 02A0 00E0 3000 DAB5 7A04 F129 4000 3100 DAB5 02B0 7A04 F229 DAB5 620F F107 E29E 4100 1200 02C0 12B8 6000 A3FD DE03 00EE 080C 1C3C 1C3C 02D0 1C0C C602 B680 1288 40B7 8012 4F4C 375A 02E0 26FD 3311 26F7 5CC1 1826 E939 6F80 8F92 02F0 3700 3F00 00EE A3FD 7A01 DEF3 6980 A2CA 0300 DE98 02D2 14CA D63D E701 963C E602 2B05 0310 8B04 5A2A FBA7 0020 20DE 26A6 012B E727 0320 3D8D 16DE 26A6 0181 0327 25E6 0027 2BC1 0330 3F27 276A 01EB 02E7 00A6 0097 2EA6 0197 0340 2FE6 025C 58CE 0397 BD03 DDC6 027E C226 0350 E600 D03E C107 2202 9737 6F00 6F01 39D6 0360 3B26 0E53 D73B D631 96C1 2606 4397 C1D7 0370 C239 96C4 2605 4397 C4D7 C539 963C 9B30 0380 2B06 8138 2E02 973C D63D DB31 C103 2F06 0390 C11D 2E02 D73D 3980 4080 8040 8096 3081 03A0 F827 049A 3126 4939 BDC2 97D6 1826 1516 03B0 2B12 CE03 CD8D 26A6 0016 C403 4747 4747 03C0 4A5A 2004 4F5F 973B 9730 D731 3990 9192 03D0 1100 1020 1101 1121 1102 1222 11DF 14DB 03E0 15D7 1524 037C 0015 DE14 3996 392A 0139 03F0 7EC0 D008 1CFF CE00 804F 7EC0 7D28 7CFF 0400 DE26 A601 2B71 2614 D630 265F D639 2B5B 0410 963E A700 C604 D730 E701 200A 8D6B E601 0420 C11F 2755 6C01 7F00 3F8D 5E96 3F26 07BD 0430 C132 843F 2635 DE26 A600 903C 810A 2E14 0440 81FE 2D10 A601 903D 8104 2E08 81FE 2D04 0450 C6FC D737 CE00 C0DF 128D 737C 0013 7C00 0460 138D 6BDE 26C6 80EA 01E7 01DE 2608 08DF 0470 268C 00C0 268A 398D 1D6F 016F 0020 EC00 0480 A600 972E A601 972F 398D F5CE 0466 C601 0490 BDC2 26DE 2639 8DE8 CE04 9FC6 0720 F110 04A0 387C FE7C 3810 DE26 A601 2A13 8DDB E600 04B0 A601 C003 8003 E700 A701 8DDA BD02 D208 04C0 08DF 268C 00C0 26DE 3900 F218 00EE DE12 04D0 E601 272A A600 DE26 A000 E001 81FD 2D1E 04E0 8102 2E1A C1FD 2D16 C102 2E12 8602 9721 04F0 C640 BDC2 E5DE 12BD 0339 DE12 6F01 3900