Map IO regions to a dummy buffer filled with STOP opcodes, so we don't just crash if the game jumps to an IO region.

Print CPU state and stack trace when executing a STOP opcode.

Misc cleanup.