From 07b867baddd48e98229d9ceb9d7ca99adf0768de Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Wed, 24 Feb 2016 16:21:48 -0800 Subject: [PATCH] z80: fixed opcodes dd39 and fd39 --- z80.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/z80.py b/z80.py index 2aebaae..0f70504 100644 --- a/z80.py +++ b/z80.py @@ -246,6 +246,7 @@ addressModeTable = { "ix,de" : "ix,de", "ix,indaa" : "ix,(${1:02X}{0:02X})", "ix,ix" : "ix,ix", +"ix,sp" : "ix,sp", "iy" : "iy", "iy,aa" : "iy,${1:02X}{0:02X}", "iy,bc" : "iy,bc", @@ -254,6 +255,7 @@ addressModeTable = { "iy,indaa" : "iy,(${1:02X}{0:02X})", "iy,indaa" : "iy,(${1:02X}{0:02X})", "iy,iy" : "iy,iy", +"iy,sp" : "iy,sp", "l" : "l", "l,a" : "l,a", "l,b" : "l,b", @@ -292,7 +294,6 @@ addressModeTable = { "sp,hl" : "sp,hl", "sp,indaa" : "sp,(${1:02X}{0:02X})", "sp,nn" : "sp,${1:02X}{0:02X}", -"xy,sp" : "xy,sp", "z" : "z", "z,pcr" : "z,${0:04X}", "z,nn" : "z,${1:02X}{0:02X}", @@ -853,7 +854,7 @@ opcodeTable = { 0xdd34 : [ 3, "inc", "indix+d" ], 0xdd35 : [ 3, "dec", "indix+d" ], 0xdd36 : [ 4, "ld", "indix+d,n" ], -0xdd39 : [ 2, "add", "xy,sp" ], +0xdd39 : [ 2, "add", "ix,sp" ], 0xdd46 : [ 3, "ld", "b,indix+d" ], 0xdd4e : [ 3, "ld", "c,indix+d" ], 0xdd56 : [ 3, "ld", "d,indix+d" ], @@ -951,7 +952,7 @@ opcodeTable = { 0xfd34 : [ 3, "inc", "indiy+d" ], 0xfd35 : [ 3, "dec", "indiy+d" ], 0xfd36 : [ 4, "ld", "indiy+d,n" ], -0xfd39 : [ 2, "add", "xy,sp" ], +0xfd39 : [ 2, "add", "iy,sp" ], 0xfd46 : [ 3, "ld", "b,indiy+d" ], 0xfd4e : [ 3, "ld", "c,indiy+d" ], 0xfd56 : [ 3, "ld", "d,indiy+d" ],