pellsson / aoc2021

Advent of Code 2021 - Solved on a NES

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advent of Code 2021 - On an NES

Quest to complete Advent of Code 2021 on a unmodified 8-bit NES.

AoC 2021

Should (and does) run on physical hardware. Uses MMC1 with 0x2000 (+0x800) bytes of RAM. Some of the challenges take way over an hour to compute the answer for. Does not work with PowerPAK (dont know why and at this point, I dont care).

If you hate yourself and want to watch it for the serveral hours it takes to complete, just:

  1. (cd nesasmsrc && gcc *.c -o ../nesasm-fix) to build the modified (required) nesasm version.
  2. ./build.sh
  3. Run it and wait a brief eternity for it to finish. The awesome christmas tune was ripped from here. Music does not loop so the vast majority of execution is spent in silent anguish.

EDIT: I just added the ROM image... Just load it in your favorite emulator or write to cart.

Days completed: 1,2,3,4,5,6,7,8,9,10,11,12,13,14. All of them! :D

Day 12

AoC 2021 - Day 12.a

AoC 2021 - Day 12.b

Day 13

AoC 2021 - Day 13.a

AoC 2021 - Day 13.b

About

Advent of Code 2021 - Solved on a NES


Languages

Language:C 48.7%Language:Assembly 47.2%Language:NWScript 3.2%Language:Python 0.8%Language:Batchfile 0.1%Language:Shell 0.0%