r/adventofcode • • Dec 05 '19

Visualization Day 5 - Browser-based interactive Intcode processor

111 Upvotes

22 comments sorted by

View all comments

Show parent comment

3

u/MidnightLightning Dec 06 '19

Glad you figured it out! For others who come behind you who have the same confusion, the way that opcode is working is:

For index 2 the opcode is 1 so add the value saved in address 225 (which is 1) and the value saved in address 6 (which is 1100) and save at index 6 (overwriting 1100 with 1101).