fixed logic for branching, added exit(0) call if new process immediately has opcode 99