I\'ve written a basic cpu debug terminal for my emulator that prints the instruction being executed and the cpu state. It works find for the first 30 or so instructions but