From 4c6c41b055d857f7dc2599262720a83da8d215be Mon Sep 17 00:00:00 2001 From: cos Date: Mon, 9 Dec 2019 21:16:35 +0100 Subject: Add day09, 2019 --- 2019/rust/day09/programs/template | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 2019/rust/day09/programs/template (limited to '2019/rust/day09/programs/template') diff --git a/2019/rust/day09/programs/template b/2019/rust/day09/programs/template new file mode 100644 index 0000000..b417129 --- /dev/null +++ b/2019/rust/day09/programs/template @@ -0,0 +1,21 @@ +# ABCDE +# 210xx +# +# DE - two-digit opcode, xx == opcode x +# C - mode of 1st parameter, 0 == position mode +# B - mode of 2nd parameter, 1 == immediate mode +# A - mode of 3rd parameter, 0 == relative mode, +# +# 1 (3) Add +# 2 (3) Mul +# 7 (3) LessThan +# 8 (3) Equals +# 3 (1) In +# 4 (1) Out +# 5 (2) JmpTrue +# 6 (2) JmpFalse +# 9 (1) BaseMod +# 99 (0) Halt + +# Halt +99 -- cgit v1.2.3