A tiny boot program of plus, next and jump instructions runs forever. Detect where it loops, then find the single instruction whose next/jump was written the wrong way round and report what the repaired program accumulates.
A tiny boot program of plus, next and jump instructions runs forever. Detect where it loops, then find the single instruction whose next/jump was written the wrong way round and report what the repaired program accumulates.
A tiny boot program of plus, next and jump instructions runs forever. Detect where it loops, then find the single instruction whose next/jump was written the wrong way round and report what the repaired program accumulates.
The discussion opens with the full question.