Fix a couple of bugs in instruction execution. CPU works OK with official opcodes.