summaryrefslogtreecommitdiff
path: root/inputs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2017-12-23 10:42:47 +0200
committerJustin Worthe <justin@worthe-it.co.za>2017-12-23 10:42:47 +0200
commit351b0eb897d7ede2273e3f48097231de3396f4d2 (patch)
treeb7193fcecc9981970a8e9299b737b908cde3b5a7 /inputs
parent60bf2180f94a4ae4f3a12fe9b469f559d345a403 (diff)
Day 23: Rewrite this assembly as a decent program...
Diffstat (limited to 'inputs')
-rw-r--r--inputs/day_23.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/inputs/day_23.txt b/inputs/day_23.txt
new file mode 100644
index 0000000..9d29443
--- /dev/null
+++ b/inputs/day_23.txt
@@ -0,0 +1,32 @@
+set b 99
+set c b
+jnz a 2
+jnz 1 5
+mul b 100
+sub b -100000
+set c b
+sub c -17000
+set f 1
+set d 2
+set e 2
+set g d
+mul g e
+sub g b
+jnz g 2
+set f 0
+sub e -1
+set g e
+sub g b
+jnz g -8
+sub d -1
+set g d
+sub g b
+jnz g -13
+jnz f 2
+sub h -1
+set g b
+sub g c
+jnz g 2
+jnz 1 3
+sub b -17
+jnz 1 -23