summaryrefslogtreecommitdiff
path: root/disasm.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-06-13 13:37:03 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-06-13 13:37:03 -0400
commit3097e34b570734cb9542c00c4a4395b54eaa0d58 (patch)
tree2b7a3b418095f7375881101236530f6400e36bfd /disasm.c
parent9ed46f16faad3300876c3ab40aab1660ef8c4a08 (diff)
Make the registers single 64 bit uints, and convert
all the value getting, and setting into macros. This is to make the codebase cleaner.
Diffstat (limited to 'disasm.c')
-rw-r--r--disasm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/disasm.c b/disasm.c
index befb93b..db43acf 100644
--- a/disasm.c
+++ b/disasm.c
@@ -31,8 +31,8 @@ void disasm(struct sux *cpu, uint64_t *operands, uint8_t lines, uint8_t opcode,
case ZMX:
case ZMY:
switch (optype[opcode]) {
- case ZMX: tmpaddr = address - cpu->x[thread]; break;
- case ZMY: tmpaddr = address - cpu->y[thread]; break;
+ case ZMX: tmpaddr = address - cpu->x; break;
+ case ZMY: tmpaddr = address - cpu->y; break;
}
switch ((prefix & 0x0C) >> 2) {
case 3: wprintw(scr, "%s%s $%08X%s\r" , op, postfix, tmpaddr, (optype[opcode] == ZM) ? "" : ((optype[opcode] == ZMX) ? ", x" : ", y")); break;