From 429fec97b2cf9fda788cb1f2251b2244e4a4706c Mon Sep 17 00:00:00 2001 From: Jay Sissom Date: Mon, 4 Mar 2013 22:10:25 -0500 Subject: [PATCH] Fix disassembled opcode display on trace log for zero page,X and zero page,Y addressing modes. --- src/main/java/com/loomcom/symon/Cpu.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }