1
0
mirror of https://github.com/sethm/symon.git synced 2024-12-29 02:31:59 +00:00

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

This commit is contained in:
Jay Sissom 2013-03-04 22:10:25 -05:00
parent 4ccb7bec97
commit 429fec97b2

View File

@ -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;
}