Re:Simple CPU
by Vendan on Monday October 20, 2014 @12:29PM
(#8483002)
The CPU runs the opcode(instruction), then adds 3 to the IP. Therefore, your first program sets IP to 1, then it gets 3 added to it, setting IP to 4. Your second program is exactly the same, but setting IP to 4 means infinite loop.
[ Parent
| on HN ]
There are no comments on this comment yet.