1
0
mirror of https://github.com/cc65/cc65.git synced 2026-01-23 08:16:38 +00:00

codestyle/comment

This commit is contained in:
mrdudz
2025-06-21 22:23:19 +02:00
parent 4820b716c7
commit 6b554362a5
2 changed files with 4 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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 */