From 6acdf2cdebd9816d67e6ccb761a8ffcbfff25575 Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Thu, 3 Mar 2016 23:19:44 -0800 Subject: [PATCH] 65816: fixed instruction, address mode typos --- 65816.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/65816.py b/65816.py index 8b3b164..7647eef 100644 --- a/65816.py +++ b/65816.py @@ -34,10 +34,10 @@ addressModeTable = { "absoluteindexedindirect" : "(${1:02X}{0:02X},x)", "stackrelative" : "${0:02X},s", "stackrelativeindirecty" : "(${0:02X},s),y", -"absolutelong" : "${2:02X}${1:02X}{0:02X}", -"absolutelongx" : "${2:02X}${1:02X}{0:02X},x", -"absoluteindirectx" : "(${1:02X}${0:02X},x)", -"absoluteindirectlong" : "[${1:02X}${0:02X}]", +"absolutelong" : "${2:02X}{1:02X}{0:02X}", +"absolutelongx" : "${2:02X}{1:02X}{0:02X},x", +"absoluteindirectx" : "(${1:02X}{0:02X},x)", +"absoluteindirectlong" : "[${1:02X}{0:02X}]", "directpageindirect" : "(${0:02X})", "directpageindirectlong" : "[${0:02X}]", "directpageindirectlongy" : "[${0:02X}],y", @@ -58,7 +58,7 @@ addressModeTable = { opcodeTable = { 0x00 : [ 1, "brk", "implicit" ], 0x01 : [ 2, "ora", "indirectx" ], -0x02 : [ 2, "cop", "implicit" ], +0x02 : [ 2, "cop", "zeropage" ], 0x03 : [ 2, "ora", "stackrelative" ], 0x04 : [ 2, "tsb", "zeropage" ], 0x05 : [ 2, "ora", "zeropage" ], @@ -135,7 +135,7 @@ opcodeTable = { 0x48 : [ 1, "pha", "implicit" ], 0x49 : [ 2, "eor", "immediate" ], 0x4a : [ 1, "lsr", "accumulator" ], -0x4b : [ 1, "phk", "stack (push)" ], +0x4b : [ 1, "phk", "implicit" ], 0x4c : [ 3, "jmp", "absolute" ], 0x4d : [ 3, "eor", "absolute" ], 0x4e : [ 3, "lsr", "absolute" ], @@ -173,7 +173,7 @@ opcodeTable = { 0x6c : [ 3, "jmp", "indirect" ], 0x6d : [ 3, "adc", "absolute" ], 0x6e : [ 3, "ror", "absolute" ], -0x6f : [ 4, "adc", "absolutelong" ], +0x6f : [ 4, "adc", "absolutelong" ], 0x70 : [ 2, "bvs", "relative", pcr ], 0x71 : [ 2, "adc", "indirecty" ],