Re: [cc65] suppress output after .error/.end

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2011-01-09 11:42:04
On Sun, Jan 09, 2011 at 06:28:05AM +0200, thefox xofeht wrote:
> Are there any messages besides "Error: Conditional assembly branch was
> never closed" that can occur after .end? If it's a special case, maybe
> you could add a flag like "if user terminated the assembly (i.e. used
> .end), skip these checks".

Yes, of course I could add something like that, but there may be checks where
it is not really obvious if the user wants them to be skipped or not.

> I don't really like .fatal, because .error is also "fatal".

After having some time to think about it, this is actually the solution I do
prefer. There are two reasons:

First, there are no problems with any checks and or cleanups like with .end.

Second, .fatal would mirror the hierarchy that the assembler itself uses for
diagnostics. The internal error hierarchy of ca65 is:

  warning
        A diagnostic is prited, assembly continues and output is generated.

  error
        A diagnostic is printed, assembly continues but no output is
        generated.

  fatal
        A diagnostic is printed and assembly is terminated.

Examples for the last one are errors when opening an include file or an
overflow of the internal .IF stack.

The first two have counterparts in the pseudo ops, the last one has not. So
adding .fatal would fit nicely into the internal structure, would solve your
problems, and I don't have to disable any checks when using .end.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Jan 9 11:42:10 2011

This archive was generated by hypermail 2.1.8 : 2011-01-09 11:42:13 CET