OUT = IN1 + IN2 - IN3
Location Instruction Description
00 500 input (IN1)
01 299 store 99
02 500 input (IN2)
03 399 add 99
04 299 store 99
05 500 input (IN3)
06 298 store 98
07 199 load 99
08 498 subtract 98
09 600 output
10 700 halt
Location Instruction Description
00 500 input (the value 0)
01 600 output (the value 0)
02 500 input (the value 2)
03 299 store 99
04 600 output (the value 2)
05 399 add 99
06 600 output (the value 4)
07 399 add 99
08 600 output (the value 6)
09 399 add 99
10 600 output (the value 8)
11 399 add 99
12 600 output (the value 10)
13 700 halt