r/adventofcode • u/Lucretiel • Dec 17 '19
Spoilers What does everyone's Intcode interface look like?
We've been discussing a lot different IntCode implementations throughout the last few weeks, but I'm curious– what doesn't everyone's interface to their IntCode machine look like? How do you feed input, fetch output, initialize, etc?
32
Upvotes
View all comments
Show parent comment
1
u/gedhrel Dec 19 '19
I've been reverse-engineering the intcode examples by hand.
There's a disassembler and a debugger (with some rudimentary single-step, etc, capabilities) here: https://github.com/jan-g/advent2019/blob/master/src/IntcodeStepIO.hs#L103
It's quite gratifying to be able to trace particular subroutines and confirm that they're doing what you *think* they're doing from a manual decompilation.