Fix disassembled opcode display on trace log for zero page,X and zero page,Y addressing modes.

This commit is contained in:
Jay Sissom committed 2013-03-04 22:10:25 -05:00
1 parent 4ccb7bec97
commit 429fec97b2
1 file changed
+2 -2
+2 -2
View File
@@ -1464,10 +1464,10 @@ public class Cpu implements InstructionTable {
sb.append(" $" + HexUtil.byteToHex(args[0])); sb.append(" $" + HexUtil.byteToHex(args[0]));
break; break;
case ZPX: case ZPX:
sb.append(" $" + HexUtil.byteToHex(a) + ",X"); sb.append(" $" + HexUtil.byteToHex(args[0]) + ",X");
break; break;
case ZPY: case ZPY:
sb.append(" $" + HexUtil.byteToHex(a) + ",Y"); sb.append(" $" + HexUtil.byteToHex(args[0]) + ",Y");
break; break;
} }