From: cuz Date: Thu, 21 Nov 2002 21:10:10 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~2072 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f205950f54931a6c00c4b21d038cf285a72e94dc;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@1561 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/coptsize.c b/src/cc65/coptsize.c index 6a04240d6..b458540c5 100644 --- a/src/cc65/coptsize.c +++ b/src/cc65/coptsize.c @@ -221,6 +221,7 @@ unsigned OptSize1 (CodeSeg* S) if ((D->A < 0 || D->A == E->RI->In.RegA) && (D->X < 0 || D->X == E->RI->In.RegX) && (D->Y < 0 || D->Y == E->RI->In.RegY)) { + /* Ok, match for all registers */ CodeEntry* X; X = NewCodeEntry (E->OPC, E->AM, D->ShortFunc, 0, E->LI); @@ -229,6 +230,9 @@ unsigned OptSize1 (CodeSeg* S) /* Remember that we had changes */ ++Changes; + + /* Done */ + break; } /* Next table entry, bail out if next entry not valid */