private Register getRegister(String regName) throws IllegalArgumentException {
		Register reg = program.getRegister(regName);
		if (reg == null) {
			throw new IllegalArgumentException("Undefined register: " + regName);
		}
		return reg;
	}
@return the low-level emulator execution state
Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/EmulatorHelper.java