aboutsummaryrefslogtreecommitdiff
path: root/src/2017/day23/README.md
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2023-03-15 09:52:47 +0800
committerkaiwu <kaiwu2004@gmail.com>2023-03-15 09:52:47 +0800
commitc2f5d41ff9b21d7a4aac0bfb7c34bbb57a38c82b (patch)
treed06679bbbfeb4e0f7777d943c8c31cea39ef367c /src/2017/day23/README.md
parentd8c212c131b05c6304265cfcf1b843d811a3de94 (diff)
downloadadvent-of-code-c2f5d41ff9b21d7a4aac0bfb7c34bbb57a38c82b.tar.gz
advent-of-code-c2f5d41ff9b21d7a4aac0bfb7c34bbb57a38c82b.zip
2017 day22
Diffstat (limited to 'src/2017/day23/README.md')
-rw-r--r--src/2017/day23/README.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/2017/day23/README.md b/src/2017/day23/README.md
index e69de29..34f9caf 100644
--- a/src/2017/day23/README.md
+++ b/src/2017/day23/README.md
@@ -0,0 +1,15 @@
+--- Day 23: Coprocessor Conflagration ---
+You decide to head directly to the CPU and fix the printer from there. As you get close, you find an experimental coprocessor doing so much work that the local programs are afraid it will halt and catch fire. This would cause serious issues for the rest of the computer, so you head in and see what you can do.
+
+The code it's running seems to be a variant of the kind you saw recently on that tablet. The general functionality seems very similar, but some of the instructions are different:
+
+set X Y sets register X to the value of Y.
+sub X Y decreases register X by the value of Y.
+mul X Y sets register X to the result of multiplying the value contained in register X by the value of Y.
+jnz X Y jumps with an offset of the value of Y, but only if the value of X is not zero. (An offset of 2 skips the next instruction, an offset of -1 jumps to the previous instruction, and so on.)
+Only the instructions listed above are used. The eight registers here, named a through h, all start at 0.
+
+The coprocessor is currently set to some kind of debug mode, which allows for testing, but prevents it from doing any meaningful work.
+
+If you run the program (your puzzle input), how many times is the mul instruction invoked?
+