diff options
Diffstat (limited to 'src/2017/day23/README.md')
-rw-r--r-- | src/2017/day23/README.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/2017/day23/README.md b/src/2017/day23/README.md index 34f9caf..0afb1af 100644 --- a/src/2017/day23/README.md +++ b/src/2017/day23/README.md @@ -13,3 +13,14 @@ The coprocessor is currently set to some kind of debug mode, which allows for te If you run the program (your puzzle input), how many times is the mul instruction invoked? +--- Part Two --- +Now, it's time to fix the problem. + +The debug mode switch is wired directly to register a. You flip the switch, which makes register a now start at 1 when the program is executed. + +Immediately, the coprocessor begins to overheat. Whoever wrote this program obviously didn't choose a very efficient implementation. You'll need to optimize the program if it has any hope of completing before Santa needs that printer working. + +The coprocessor's ultimate goal is to determine the final value left in register h once the program completes. Technically, if it had that... it wouldn't even need to run the program. + +After setting register a to 1, if the program were to run to completion, what value would be left in register h? + |