I simply ran the program until it hits the instruction with register 0 and look into register 3. Part 2 runs the program until it hits a cycle at that instruction. Most code is from day 19
How long did you have to wait? I tried this and it never seemed to hit my conditional break point.
s
SiebelsTim
12/21/2018, 2:35 PM
257ms for part 1, 85 seconds for part 2
a
andyb
12/21/2018, 2:37 PM
Wow, used Day19 code to attempt to solve Part1 but it was gone for about 2 mins and never reached line 28. Ended up using paper & pencil and rewriting the assembly code as Kotlin loops.
s
SiebelsTim
12/21/2018, 2:42 PM
I've started using pen & paper (or rather looking at the output instruction for instruction). It still does a lot of counting to get to that line. I didn't think it would finish in appropriate time. Surprisingly it did.