From: cuz Date: Mon, 3 Nov 2003 16:25:31 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~1195 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b20cc4cc6e1bab8f11dabc2cb114e378315a5b27;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@2604 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/da65/main.c b/src/da65/main.c index 95101f40b..8fa43ca9a 100644 --- a/src/da65/main.c +++ b/src/da65/main.c @@ -266,14 +266,17 @@ static void OneOpcode (unsigned RemainingBytes) */ if (Style == atDefault) { if (D->Size > RemainingBytes) { - MarkAddr (PC, atIllegal); + Style = atIllegal; + MarkAddr (PC, Style); } else if (D->Flags & flIllegal) { - MarkAddr (PC, atIllegal); + Style = atIllegal; + MarkAddr (PC, Style); } else { unsigned I; for (I = 1; I < D->Size; ++I) { if (HaveLabel (PC+I)) { - MarkAddr (PC, atIllegal); + Style = atIllegal; + MarkAddr (PC, Style); break; } }