# ASTRO-FIGHTER - M. Spieth - DREAMER 10 p.18 (PDF p.20) # load 0080-03FF (printed range 0080-0400); CHIP-8 starts at 0200, run C000 FN 3 # Needs Bauer's analog joystick (read by the game's own routine at 036F, not the IRQ service routine; # use 'stick' in the testbench). VC = hits; at the end the score is shown as VC followed by a 0. The screen stays blank until F (fire) is pressed. # Fly with the joystick to bring the enemy fighter into the centre of the screen, F fires 4 photon # torpedoes. Space junk flies past. Game ends after two minutes. # Correction: 0254 printed 1265 (jump into the middle of an instruction); the article's hint says # 0254 holds 1266 and 0266 is the start of the main-loop body (A3F0 F865): set to 1266. # Reading: 02FA = CB 08 (ADDB #8, second byte of the sprite row at x+8), not C8 (EORB), zoomed. # 6800 code: 02BF-036E = own sprite routine with clipping (enemy fighter, VA/VB, collision -> VF), # 036F-03EB = joystick read (Bauer-style, no IRQ: WAI + PIA 8012/8013) -> moves VA/VB (inverted, # 'as in a plane') plus a random drift (0040/0041 set by 009E). # Hint (article): 0254 1266 -> 0000 allows continuous fire (easier game). 0080 A24B D121 D141 D561 D581 00EE A24B D131 0090 D421 D431 D121 00EE DAB5 7A05 00EE C002 00A0 C102 A040 F155 13EC 208C 6E00 10B4 208C 00B0 A3F9 F455 A2BC 02C1 036F 02C1 4900 10C8 00C0 6603 F618 6900 7C01 3DC0 124C A3FE F065 00D0 70FF 3000 1234 A3F0 FC33 F265 00E0 6A08 00E0 6B0E F029 2098 F129 2098 F229 2098 6000 00F0 F029 2098 F00A 6A00 00E0 1202 1200 2626 0200 10F4 6B00 A24B DAB1 7A01 3A3F 1206 DAB1 0210 7B01 3B1F 120E DAB1 7AFF 3A00 1216 DAB1 0220 7BFF 3B00 121E 6E00 A2BC 6A1F 6B0D 02C1 0230 6C00 6040 A3FE F055 209E 611F 620F 6411 0240 6521 660F 6811 A3F0 F855 2080 4E01 1266 0250 620F E29E 1266 6E01 6102 6201 631E 643D 0260 208C A3F9 F455 A3F0 F865 2080 71FF 7501 0270 4D00 1284 C001 8205 C001 8404 C001 8605 0280 C001 8804 3100 128C 7D40 128E 2080 7D80 0290 A3F0 F855 3E01 10B4 A3F9 F465 208C 7102 02A0 7201 73FF 74FE 3120 10AE D121 89F0 D131 02B0 89F4 D421 89F4 D431 89F4 10A8 1010 38D6 02C0 3896 3A97 2E96 3B97 2FC6 05DE 2686 0197 02D0 1CC4 0F26 02D6 1037 DF14 A600 971E 7F00 02E0 1FD6 2EC4 0727 0974 001E 7600 1F5A 26F5 02F0 D62E 8D2E 961E 8D15 D62E CB08 8D24 961F 0300 8D0B 7C00 2FDE 1408 335A 26CB 395F D116 0310 2701 3916 E800 AA00 E700 1127 0486 0197 0320 3F39 4F97 1696 2F81 1E23 037C 0016 8100 0330 2603 7C00 1684 1F48 4848 C13F 2303 7C00 0340 16C4 3F54 5454 1B97 1DDE 1C96 2E81 F823 0350 0796 1F84 7F97 1F39 8100 2607 961E 847F 0360 971E 3981 3822 0139 961E 84FE 971E 3996 0370 404A 9742 9641 4A97 433E C63B F780 13C6 0380 61F7 8012 C63F F780 1386 FF97 FE97 FF7F 0390 8012 8621 B780 12C6 4AB6 8012 4646 2403 03A0 7C00 FE46 2403 7C00 FF5A 26ED 96FE 800A 03B0 2C01 4F43 843F 97FE 96FF 800A 2C01 4F43 03C0 843F 0101 D63B DB43 8D0D D73B D63A 96FE 03D0 DB42 8D03 D73A 3981 2023 015C 8134 2301 03E0 5C81 1422 015A 810C 2201 5A39 6D00 00EE 03F0 0104 0716 173C 0B10 1701 1E0F 1021 3B00