From: cuz Date: Fri, 25 Apr 2003 20:21:38 +0000 (+0000) Subject: Fixed a small "problem": When .END is used, the line following this insn X-Git-Tag: V2.12.0~1621 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=da57034f4e9c1bae0c3b3472418c669bed9e614d;p=cc65 Fixed a small "problem": When .END is used, the line following this insn is also put into the listing (but no more). git-svn-id: svn://svn.cc65.org/cc65/trunk@2074 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ca65/pseudo.c b/src/ca65/pseudo.c index 498b0824a..14d692a98 100644 --- a/src/ca65/pseudo.c +++ b/src/ca65/pseudo.c @@ -599,6 +599,7 @@ static void DoEnd (void) /* End of assembly */ { ForcedEnd = 1; + NextTok (); } @@ -1436,7 +1437,7 @@ static CtrlDesc CtrlCmdTab [] = { { ccNone, DoDWord }, { ccKeepToken, DoConditionals }, /* .ELSE */ { ccKeepToken, DoConditionals }, /* .ELSEIF */ - { ccNone, DoEnd }, + { ccKeepToken, DoEnd }, { ccKeepToken, DoConditionals }, /* .ENDIF */ { ccNone, DoUnexpected }, /* .ENDMACRO */ { ccNone, DoEndProc },