# MOTOR BIKE GAME - C. Fethers - DREAMER 10 p.23 (PDF p.25) # load 0080-03FF (printed range 0080-0400); CHIP-8 starts at 0200, run C000 FN 3 # 0080-00E9 = 6800 machine code (key/speed handler), 00EA-00F9 CHIP-8; 00FA-00FF not printed # (variables, 00 here); screen buffer 0100-01FF not printed (00). # how to play: motor bike with rider at the bottom; velocity, distance and time at the top. # D = accelerate, E = brake; change gear by releasing the accelerator briefly; accelerating # too hard makes the bike ride up on its back wheel (wheelie). Jump the obstacles or crash. # F ('foot') edges the bike backwards when stopped (only when an obstacle is visible). # The program stops after 120 miles. # IRQ vector (0000) is set to 0080 by the CHIP-8 code at 0222-022E; the handler ends with JMP C3E9. # Note: 0300 = 03DC calls the 6800 code at 03DC (ASRA ASRA ANDA #3F STAA V0); 03DA would also # load V5 first. Printed as 03DC; both give the same velocity display in the simulation. # 03B2 F0F0 = deliberate stop (invalid FX op returns to the monitor) after 120 miles. 0080 8601 B780 12BD C297 CE00 30D6 3C96 1826 0090 2C96 1781 0D26 156F CA5C D1FE 2304 D6FE 00A0 202E 6C0D 2A30 867F 973D 202A 810E 2607 00B0 6F0D C002 2407 5F81 0F26 0297 376C CA96 00C0 FA81 1923 0B17 8B50 C1A4 2302 86F4 97FE 00D0 6A0D 2A02 6F0D 179B FF97 FF24 0886 40B7 00E0 8012 5A97 37D7 3C7E C3E9 A3B2 601B DB04 00F0 7B01 DB04 F018 6700 1236 00 00 00 00 00 00 0100 0000 0000 0000 0000 0000 0000 0000 0000 0110 0000 0000 0000 0000 0000 0000 0000 0000 0120 0000 0000 0000 0000 0000 0000 0000 0000 0130 0000 0000 0000 0000 0000 0000 0000 0000 0140 0000 0000 0000 0000 0000 0000 0000 0000 0150 0000 0000 0000 0000 0000 0000 0000 0000 0160 0000 0000 0000 0000 0000 0000 0000 0000 0170 0000 0000 0000 0000 0000 0000 0000 0000 0180 0000 0000 0000 0000 0000 0000 0000 0000 0190 0000 0000 0000 0000 0000 0000 0000 0000 01A0 0000 0000 0000 0000 0000 0000 0000 0000 01B0 0000 0000 0000 0000 0000 0000 0000 0000 01C0 0000 0000 0000 0000 0000 0000 0000 0000 01D0 0000 0000 0000 0000 0000 0000 0000 0000 01E0 0000 0000 0000 0000 0000 0000 0000 0000 01F0 0000 0000 0000 0000 0000 0000 0000 0000 0200 6300 6D00 6C00 6BFF 6500 6901 6800 6700 0210 6400 232E 611E A3E5 60C0 D012 7008 3000 0220 121A A0FA F555 A000 6180 F918 F155 231C 0230 2300 239A 6E00 F007 6128 8015 3F00 1248 0240 231C 7301 231C 0000 3C00 1254 2354 6901 0250 470F 10EA 95C0 125E 2300 85C0 2300 80C0 0260 3800 1276 7008 80D5 4F00 3A14 1288 2332 0270 6801 2344 1288 3801 1288 70F8 80D5 3F01 0280 1288 2344 6800 2332 370F 4700 1236 23A0 0290 6700 2354 7902 6006 8902 2354 6000 611F 02A0 A3E5 D011 7008 3040 12A2 A3B2 611B 3BFF 02B0 12BC C01F 3000 1236 6B3C 12C4 DB14 7BFF 02C0 4BFF 1236 DB14 3B0E 12D2 3801 1388 6803 02D0 1236 3B0B 4B0A 12F8 4B09 12F0 4B04 12EA 02E0 3B00 1236 23B6 232E 1236 2332 23B6 1236 02F0 2344 7AFF 2330 1236 2344 7AFF 2344 1236 0300 03DC 6600 2314 6000 F129 D605 7604 F229 0310 D605 00EE A0FB F033 F265 00EE 8030 6658 0320 F615 2314 F029 6F00 D6F5 7604 1306 6A14 0330 6800 6005 A3F1 D0AA 81A0 7105 A3FB 600D 0340 D015 1354 A3E7 6007 D0A6 81A0 6006 A3ED 0350 7106 D014 81A0 A3D4 F91E 6005 3800 136A 0360 7107 D012 600B D012 00EE 4802 137C 7107 0370 6007 D012 71FC 600B D012 00EE 7103 D012 0380 6009 7104 D012 00EE 2330 6901 23B6 F007 0390 CCFF 3059 138E 00E0 1200 8040 6633 1322 03A0 6020 8E04 3F01 00EE 239A 7401 3478 139A 03B0 239A F0F0 F000 6005 6A14 A3C8 D0AA 6802 03C0 600D A3D2 D0A2 1354 0131 7B9F 9D7F 1609 03D0 0906 8080 2000 0020 0040 4000 9635 4747 03E0 843F 9730 39FF AAC0 C0BE D9F9 F6FC C848 03F0 300C 0C18 1E39 FF6D 9E9A 6180 8040 4080