From: cuz Date: Tue, 12 Jun 2007 07:29:25 +0000 (+0000) Subject: Fixed hangs on certain info files. PC was not incremented when DataByteLine X-Git-Tag: V2.12.0~76 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=519730612ed35bb8ca1ed8f4fa1c02794bfeb173;p=cc65 Fixed hangs on certain info files. PC was not incremented when DataByteLine is called. git-svn-id: svn://svn.cc65.org/cc65/trunk@3780 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/da65/data.c b/src/da65/data.c index 9f4514b87..1569f7aee 100644 --- a/src/da65/data.c +++ b/src/da65/data.c @@ -88,6 +88,7 @@ static unsigned DoTable (attr_t Style, unsigned MemberSize, void (*TableFunc) (u */ if (Count < MemberSize) { DataByteLine (Count); + PC += Count; return Count; } @@ -172,6 +173,7 @@ unsigned AddrTable (void) /* If just one byte is left, define it and bail out */ if (BytesLeft == 1 || GetStyleAttr (PC+1) != atAddrTab) { DataByteLine (1); + ++PC; break; } @@ -237,6 +239,7 @@ unsigned RtsTable (void) /* If just one byte is left, define it and bail out */ if (BytesLeft == 1 || GetStyleAttr (PC+1) != atRtsTab) { DataByteLine (1); + ++PC; break; }