diff --git a/src/main/java/com/loomcom/symon/Cpu.java b/src/main/java/com/loomcom/symon/Cpu.java index 683b161..db7f944 100644 --- a/src/main/java/com/loomcom/symon/Cpu.java +++ b/src/main/java/com/loomcom/symon/Cpu.java @@ -1464,10 +1464,10 @@ public class Cpu implements InstructionTable { sb.append(" $" + HexUtil.byteToHex(args[0])); break; case ZPX: - sb.append(" $" + HexUtil.byteToHex(a) + ",X"); + sb.append(" $" + HexUtil.byteToHex(args[0]) + ",X"); break; case ZPY: - sb.append(" $" + HexUtil.byteToHex(a) + ",Y"); + sb.append(" $" + HexUtil.byteToHex(args[0]) + ",Y"); break; }