summaryrefslogtreecommitdiff
path: root/2019/rust/day09/programs/test-eq_immediate_position_position.iac
blob: caaeee9a29241eeeb10548e204877870493b2d8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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

# Add
108,99,6,7

# Out
4,7

# Halt
99

# Result
0