From b5511acf6f25224d1ef5bda1be2fcab4c682fcd2 Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 26 Jul 2008 22:19:01 +0000 Subject: [PATCH] Fixed an error git-svn-id: svn://svn.cc65.org/cc65/trunk@3856 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/da65/labels.c | 11 ----------- src/da65/labels.h | 3 --- src/da65/main.c | 5 ++++- 3 files changed, 4 insertions(+), 15 deletions(-) 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; -- 2.39.2