From 7496da8f93b61b89bda946781d08dadd8fa0df1e Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 30 Oct 2003 20:35:07 +0000 Subject: [PATCH] Fixed a bug in the opcode tables git-svn-id: svn://svn.cc65.org/cc65/trunk@2588 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/da65/opc6502.c | 2 +- src/da65/opc65816.c | 2 +- src/da65/opc65c02.c | 2 +- src/da65/opc65sc02.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/da65/opc6502.c b/src/da65/opc6502.c index 76b8139c7..19a7ab17a 100644 --- a/src/da65/opc6502.c +++ b/src/da65/opc6502.c @@ -256,7 +256,7 @@ const OpcDesc OpcTable_6502[256] = { { "dec", 3, flUseLabel, OH_Absolute }, /* $ce */ { "", 1, flIllegal, OH_Illegal, }, /* $cf */ { "bne", 2, flLabel, OH_Relative }, /* $d0 */ - { "cmp", 2, flUseLabel, OH_DirectXIndirect }, /* $d1 */ + { "cmp", 2, flUseLabel, OH_DirectIndirectY }, /* $d1 */ { "", 1, flIllegal, OH_Illegal, }, /* $d2 */ { "", 1, flIllegal, OH_Illegal, }, /* $d3 */ { "pei", 2, flUseLabel, OH_Direct }, /* $d4 */ diff --git a/src/da65/opc65816.c b/src/da65/opc65816.c index c578cc9ab..f32535f25 100644 --- a/src/da65/opc65816.c +++ b/src/da65/opc65816.c @@ -256,7 +256,7 @@ const OpcDesc OpcTable_65816[256] = { { "dec", 3, flUseLabel, OH_Absolute }, /* $ce */ { "cmp", 4, flUseLabel, OH_AbsoluteLong }, /* $cf */ { "bne", 2, flLabel, OH_Relative }, /* $d0 */ - { "cmp", 2, flUseLabel, OH_DirectXIndirect }, /* $d1 */ + { "cmp", 2, flUseLabel, OH_DirectIndirectY }, /* $d1 */ { "cmp", 2, flUseLabel, OH_DirectIndirect }, /* $d2 */ { "cmp", 2, flNone, OH_StackRelativeIndirectY}, /* $d3 */ { "pei", 2, flUseLabel, OH_Direct }, /* $d4 */ diff --git a/src/da65/opc65c02.c b/src/da65/opc65c02.c index 69d9eb4ed..08f636623 100644 --- a/src/da65/opc65c02.c +++ b/src/da65/opc65c02.c @@ -256,7 +256,7 @@ const OpcDesc OpcTable_65C02[256] = { { "dec", 3, flUseLabel, OH_Absolute }, /* $ce */ { "bbs4", 3, flUseLabel, OH_BitBranch }, /* $cf */ { "bne", 2, flLabel, OH_Relative }, /* $d0 */ - { "cmp", 2, flUseLabel, OH_DirectXIndirect }, /* $d1 */ + { "cmp", 2, flUseLabel, OH_DirectIndirectY }, /* $d1 */ { "cmp", 2, flUseLabel, OH_DirectIndirect }, /* $d2 */ { "", 1, flIllegal, OH_Illegal, }, /* $d3 */ { "pei", 2, flUseLabel, OH_Direct }, /* $d4 */ diff --git a/src/da65/opc65sc02.c b/src/da65/opc65sc02.c index 14698037c..d1d0d461a 100644 --- a/src/da65/opc65sc02.c +++ b/src/da65/opc65sc02.c @@ -256,7 +256,7 @@ const OpcDesc OpcTable_65SC02[256] = { { "dec", 3, flUseLabel, OH_Absolute }, /* $ce */ { "", 1, flIllegal, OH_Illegal, }, /* $cf */ { "bne", 2, flLabel, OH_Relative }, /* $d0 */ - { "cmp", 2, flUseLabel, OH_DirectXIndirect }, /* $d1 */ + { "cmp", 2, flUseLabel, OH_DirectIndirectY }, /* $d1 */ { "cmp", 2, flUseLabel, OH_DirectIndirect }, /* $d2 */ { "", 1, flIllegal, OH_Illegal, }, /* $d3 */ { "pei", 2, flUseLabel, OH_Direct }, /* $d4 */