1
0
mirror of https://github.com/cc65/cc65.git synced 2024-10-01 15:54:59 +00:00

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
This commit is contained in:
cuz 2007-06-12 07:29:25 +00:00
parent 0315173bb0
commit 519730612e

View File

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