diff --git a/src/da65/main.c b/src/da65/main.c index e315a3a90..cf31c0baa 100644 --- a/src/da65/main.c +++ b/src/da65/main.c @@ -371,6 +371,7 @@ static unsigned HandleChangedLength(const OpcDesc* D, unsigned PC) if (CPU == CPU_45GS02) { if ((D->Handler == OH_Implicit_42_45GS02)) { if (GetCodeByte (PC+1) == 0x42) { + /* NEG:NEG prefix (0x42 0x42) */ unsigned opc = GetCodeByte (PC+2); if (opc == 0xea) { /* 42 42 ea */ @@ -385,7 +386,8 @@ static unsigned HandleChangedLength(const OpcDesc* D, unsigned PC) } } } - }else if ((D->Handler == OH_Implicit_ea_45GS02)) { + } else if ((D->Handler == OH_Implicit_ea_45GS02)) { + /* NOP prefix (0xea) */ if ((GetCodeByte (PC+1) & 0x1f) == 0x12) { PC += 2; } diff --git a/src/da65/opc45GS02.c b/src/da65/opc45GS02.c index a831d539c..90b6a56ab 100644 --- a/src/da65/opc45GS02.c +++ b/src/da65/opc45GS02.c @@ -45,7 +45,7 @@ -/* Descriptions for all compound instructions with NEG:NEG prefix */ +/* Descriptions for all compound instructions with NEG:NEG prefix (0x42 0x42) */ const OpcDesc OpcTable_45GS02_extended[256] = { { "", 1+2, flIllegal, OH_Illegal, }, /* $00 */ { "", 1+2, flIllegal, OH_Illegal, }, /* $01 */