# DOGFIGHT # G. Clare, DREAMER 17 (Jan 1982), PDF page 45 # CHIP-8 + machine code, load 0200-0400 (printed 0200-03EF), run C000 # You are in the cockpit of your fighter plane; bring the enemy into your sights. # Keys: 8 = bank left, A = bank right, D = dive, 5 = climb, F = fire. # Shots remaining top right, score top left (5 points per hit). Hits: a flash and dispersing debris. # Time limit: the white line moving left to right at the top. Game over when it reaches the right # side or no shots remain. Restart: key 0. You can fire while pressing any other key. # Correction: 03DC printed 6106; fixed to 610A. V1 holds the bank-right key (set to 0A by the key table # 22BE at 02C2 and by the article: "A to bank to the right"); the timer step at 03A4 uses V1 as a flag and # 03DC restores it before the key tests at 0252. As printed, key A works only on the first pass, then 6. # Machine code: 0326-033E (scan keypad for F via CHIPOS C287/C289, V3=1), 0398-03A3 (PIA CB2 pulse at # 8023 = mirror of 8013; not called anywhere), 03AE-03D6 (time line: every 18 steps a dot at x=(008A) on # row 0, V1=1 at x=3C), 03E6-03EE (timer init). 0200 2302 6564 671F 6810 22CA 22E8 22BE 6B00 0210 CA3F 8DA0 8EB0 C91F CC07 A2F4 DAB2 4C00 0220 7DFF 3C01 122A 7DFF 7EFF 4C02 7EFF 3C03 0230 1236 7D01 7EFF 4C04 7D01 3C05 1242 7D01 0240 7E01 4C06 7E01 3C07 124E 7DFF 7E01 13A4 0250 0000 E0A1 7DFD E1A1 7D03 E2A1 7EFD 1320 0260 0000 A2F4 DAB2 8AD0 8BE0 4900 1216 79FF 0270 121A 22E8 75FF 22E8 22BE A2F6 6F00 D781 0280 3F00 1298 D781 3500 1262 A2F4 DAB2 F00A 0290 3000 128E 00E0 1200 22CA 7605 22CA 22BE 02A0 D781 7BFE 6010 A2F7 DAB7 DAB7 4000 12FE 02B0 70FF 12A8 A2F4 7B02 DAB2 2346 131A 640D 02C0 6008 610A 6205 630F 00EE A080 F633 F265 02D0 6301 6402 F029 D345 7304 F129 D345 7304 02E0 F229 D345 A2F6 00EE A080 F533 F265 6334 02F0 12D2 0000 10FE 807C FEFE FEFE FE7C 6004 0300 12B4 23E0 671C 680D A30E D787 00EE 8244 0310 0000 0044 8200 F418 1272 3500 120E 128E 0320 6300 0326 1340 BDC2 87A6 0084 0826 0FC6 0330 0FBD C289 A600 8480 2604 C601 D733 3900 0340 3300 1316 1262 7B04 A37E 7AFE DAB9 7A08 0350 A387 DAB6 7AF8 A37E DAB9 7A08 A387 DAB6 0360 7B04 A37E 7AF8 DAB9 7A08 A387 DAB6 7AF8 0370 A37E DAB9 7A08 A387 DAB6 F718 138E 0024 0380 4080 0000 4000 0480 4000 0800 8000 22BE 0390 00EE 7BFE 0398 00EE CE80 2086 38A7 0386 03A0 30A7 0339 E4A1 7E03 6100 03AE 13D8 7A00 03B0 8827 0139 8618 9788 CE02 F6C6 0186 0097 03C0 2F96 8A97 2EBD C224 7C00 8A86 3C91 8A27 03D0 0139 8601 9731 3900 3100 128A 610A 1252 03E0 6600 03E6 00EE 8618 9788 86FE 978A 3900