1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-10 13:29:50 +00:00

Fixed an error

git-svn-id: svn://svn.cc65.org/cc65/trunk@3856 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2008-07-26 22:19:01 +00:00
parent 855bfce20c
commit b5511acf6f
3 changed files with 4 additions and 15 deletions

View File

@ -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. */
{

View File

@ -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 */

View File

@ -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;