https://github.com/parrt/simple-virtual-machine/blob/2e8c0186d1cfc90043bd1e3e085bd317801a9378/src/vm/VM.java#L91 The ip should not be moved forward after updating it `ip = code[ip];`