Fix #17: Correct disassembly

This commit is contained in:
Seth Morabito committed 2025-03-15 15:46:50 -07:00
1 parent 963526621d
commit 2284535b7f
3 files changed
+116 -33

No files matched your search

+4
View File
@@ -1925,6 +1925,7 @@ public class Cpu implements InstructionTable {
break;
case AIX:
sb.append(" ($").append(Utils.wordToHex(Utils.address(args[0], args[1]))).append(",X)");
break;
case ABX:
sb.append(" $").append(Utils.wordToHex(Utils.address(args[0], args[1]))).append(",X");
break;
@@ -1937,6 +1938,9 @@ public class Cpu implements InstructionTable {
case IND:
sb.append(" ($").append(Utils.wordToHex(Utils.address(args[0], args[1]))).append(")");
break;
case ZPI:
sb.append(" ($").append(Utils.byteToHex(args[0])).append(")");
break;
case XIN:
sb.append(" ($").append(Utils.byteToHex(args[0])).append(",X)");
break;