From da57034f4e9c1bae0c3b3472418c669bed9e614d Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 25 Apr 2003 20:21:38 +0000 Subject: [PATCH] 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 --- src/ca65/pseudo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }, -- 2.39.5