diff --git a/src/da65/labels.c b/src/da65/labels.c index 59c571b49..b9b217a24 100644 --- a/src/da65/labels.c +++ b/src/da65/labels.c @@ -360,17 +360,6 @@ void ForwardLabel (unsigned Offs) -void ForwardLabels (unsigned Size) -/* Define forward labels for the range PC to PC+Size-1 if necessary */ -{ - unsigned I; - for (I = 0; I < Size; ++I) { - ForwardLabel (I); - } -} - - - static void DefOutOfRangeLabel (unsigned long Addr) /* Define one label that is outside code range. */ { diff --git a/src/da65/labels.h b/src/da65/labels.h index 0420ac2af..53d46c6c8 100644 --- a/src/da65/labels.h +++ b/src/da65/labels.h @@ -94,9 +94,6 @@ void ForwardLabel (unsigned Offs); * bytes and is therefore output as "label = * + x". */ -void ForwardLabels (unsigned Size); -/* Define forward labels for the range PC to PC+Size-1 if necessary */ - void DefOutOfRangeLabels (void); /* Output any labels that are out of the loaded code range */ diff --git a/src/da65/main.c b/src/da65/main.c index 83b1784e8..6cc5e459f 100644 --- a/src/da65/main.c +++ b/src/da65/main.c @@ -408,7 +408,10 @@ static void OneOpcode (unsigned RemainingBytes) */ if (D->Size <= RemainingBytes) { /* Output labels within the next insn */ - ForwardLabels (D->Size); + unsigned I; + for (I = 1; I < D->Size; ++I) { + ForwardLabel (I); + } /* Output the insn */ D->Handler (D); PC += D->Size;