From: cuz Date: Sat, 26 Jul 2008 22:19:01 +0000 (+0000) Subject: Fixed an error X-Git-Tag: V2.12.0~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b5511acf6f25224d1ef5bda1be2fcab4c682fcd2;p=cc65 Fixed an error git-svn-id: svn://svn.cc65.org/cc65/trunk@3856 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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;