]> git.sur5r.net Git - cc65/commitdiff
Fixed a small "problem": When .END is used, the line following this insn
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 25 Apr 2003 20:21:38 +0000 (20:21 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 25 Apr 2003 20:21:38 +0000 (20:21 +0000)
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

index 498b0824a599589607665d4da23b3823be10f95f..14d692a98a93836a705b24eb78135c5c0e112daf 100644 (file)
@@ -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       },