# TOWERS OF HANOI (printed "TOWERS OF HAMOT" in the census OCR) - Russell Yankus - DREAMER 15 # pp.16-17 (PDF pages 18-19) - CHIP-8 + 6800, 0080-03FF + display 0100-01C7 # RUN FROM 0080 (0080, FN, 3 - not C000): the 6800 code at 0080 clears the screen below the # title (0140-01FF) and enters CHIPOS at C005 with the CHIP-8 program counter = 027E. # Key the number of discs 2-7 (hold the key until the discs appear); they are put on stack 1 # (left). Move them all to stack 3 (right), never a larger disc on a smaller one; stack 2 # (middle) is for temporary storage. Keys 1, 2, 3 = the stacks (from, then to). Illegal moves # are detected; the score counts the moves (minimum 2^n - 1); at the end the number of moves is # shown. New game: RST, 0080 FN 3. # 0100-01C7 is a picture in the display RAM (title, "BY: RUSS YANKUS" and an inverse banner), # visible while the tape loads; rows 8-31 are cleared by 0080 at run time. 0080 4FCE 0140 A700 088C 0200 26F8 CE02 7E7E 0090 C005 A158 6201 6380 2248 A168 6203 63C0 00A0 2248 6207 63E0 A178 2248 620F 63F0 A188 00B0 2248 621F 63F8 A198 2248 623F 63FC A1A8 00C0 2248 627F 63FE A1B8 2248 6001 6A06 6B1A 00D0 F029 DAB5 7001 2238 4004 10E0 7A18 10D0 00E0 A0E8 6000 F055 12DA 0F00 0105 F265 F029 00F0 DAB5 F129 7A04 DAB5 F229 7A04 DAB5 1238 0100 0000 0000 0000 0000 7755 DCC1 DC15 DDDC 0110 2555 1501 5015 5548 2555 DC81 581D D548 0120 2555 1841 5015 5548 2729 D581 D015 55DC 0130 0000 0000 0000 0000 0000 0000 0000 0000 0140 0000 0000 0000 0000 6501 D4CC 15DD 54C0 0150 5521 5510 1555 5500 6701 D488 1DD5 9480 0160 5221 9444 0955 5440 6201 5D98 0955 5D80 0170 0000 0000 0000 0000 0000 0000 0000 0000 0180 FFFF FFFF FFFF FFFF 8888 F88F 8F88 F88F 0190 AAAA FBAF EFDA FBAF AA8A F9AF 8FDA FAAF 01A0 AAAA FBAF EFDA FAAF 8888 FBAF 8FD8 F88F 01B0 FFFF FFFF FFFF FFFF 0000 0000 0000 0000 01C0 0000 0000 0000 0000 0200 6D0E 6C01 F165 3000 00EE 7C01 4C08 00EE 0210 FD1E 1204 8200 8310 6000 6100 6401 6D06 0220 F155 FD1E F155 8C45 FD1E 4C00 1230 1220 0230 8020 8130 6C01 00EE 6602 F618 6610 F615 0240 F607 3600 1240 00EE 6D10 8C45 4C00 1254 0250 FD1E 124A 2230 121E 7700 7706 7353 0000 0260 5500 5405 2454 0700 5500 5605 2262 0000 0270 5500 5405 2151 0700 5720 7406 7656 A258 0280 FD65 A180 FD55 A266 FD65 A18E FD55 A274 0290 F965 A19C F955 6A3C 6B10 6002 F029 DAB5 02A0 2238 DAB5 E0A1 12B0 7001 3008 129C 129A 02B0 8E00 A140 6101 F065 F055 7101 31C8 12B8 02C0 6C01 6401 4E07 1092 4E06 109A 4E05 10A2 02D0 4E04 10AA 4E03 10B2 10BA F80A 4801 12EE 02E0 4802 1300 4803 1312 6610 223A 12DA A158 02F0 2200 4C08 12E8 A158 2214 A140 2220 1348 0300 A15B 2200 4C08 12E8 A15B 2214 A143 2220 0310 1354 A15E 2200 4C08 12E8 A15E 2214 A146 0320 2220 1360 F90A 4901 1338 4902 1338 4903 0330 1338 6610 223A 1324 A0E8 F065 7001 A0E8 0340 F055 F033 00EE 1338 2324 8020 8130 A140 0350 2214 136C 2324 8020 8130 A143 2214 136C 0360 2324 8020 8130 A146 2214 136C 4901 1378 0370 4902 138A 4903 1396 A158 2200 0000 8C45 0380 A158 2248 13A2 13EC 12DA A15B 2200 0000 0390 8C45 A15B 1382 A15E 2200 0000 8C45 A15E 03A0 1382 A158 23BC 3F01 13D4 A15B 23BC 3F01 03B0 13DA A15E 23BC 3F01 13E0 1386 2200 4C08 03C0 13D0 4C07 13D0 8A00 2210 6F00 80A5 00EE 03D0 6F01 00EE 6801 23E6 12EE 6802 23E6 1300 03E0 6803 23E6 1312 6630 223A 00EE A15E 2200 03F0 8CE4 3C08 12DA 6A20 6B10 A0E9 20EC 13EC