Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@2604 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -266,14 +266,17 @@ static void OneOpcode (unsigned RemainingBytes)
|
|||||||
*/
|
*/
|
||||||
if (Style == atDefault) {
|
if (Style == atDefault) {
|
||||||
if (D->Size > RemainingBytes) {
|
if (D->Size > RemainingBytes) {
|
||||||
MarkAddr (PC, atIllegal);
|
Style = atIllegal;
|
||||||
|
MarkAddr (PC, Style);
|
||||||
} else if (D->Flags & flIllegal) {
|
} else if (D->Flags & flIllegal) {
|
||||||
MarkAddr (PC, atIllegal);
|
Style = atIllegal;
|
||||||
|
MarkAddr (PC, Style);
|
||||||
} else {
|
} else {
|
||||||
unsigned I;
|
unsigned I;
|
||||||
for (I = 1; I < D->Size; ++I) {
|
for (I = 1; I < D->Size; ++I) {
|
||||||
if (HaveLabel (PC+I)) {
|
if (HaveLabel (PC+I)) {
|
||||||
MarkAddr (PC, atIllegal);
|
Style = atIllegal;
|
||||||
|
MarkAddr (PC, Style);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user