Back to problems

Repair Bootloader Program

AI Coding · Anthropic · Hard

A bootloader keeps its program in an array of textual instructions. Determine the point at which execution first begins to repeat. You receive instructions, whose entries follow the format " ". The operation is one of "plus", "next", or "jump". For "plus x", add x to a global accumulator and advance to the following instruction. For next x, keep the accumulator as it is and advance to the following instruction. The value x remains part of the instruction format, but it is…

Checking your access…