Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@2604 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
fdf047b4d7
commit
b20cc4cc6e
1 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue