diff options
Diffstat (limited to '2019/rust/day09/programs/test-jmptrue_position_immediate.iac')
-rw-r--r-- | 2019/rust/day09/programs/test-jmptrue_position_immediate.iac | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/2019/rust/day09/programs/test-jmptrue_position_immediate.iac b/2019/rust/day09/programs/test-jmptrue_position_immediate.iac new file mode 100644 index 0000000..a4f4245 --- /dev/null +++ b/2019/rust/day09/programs/test-jmptrue_position_immediate.iac @@ -0,0 +1,28 @@ +# 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 + +# JmpTrue +1005,0,5 + +# Out +104,-1 +104,1 + +# Halt +99 |