From b489dd284cd6388779fef60c7283fcaf3a090cd6 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 28 Apr 2026 13:47:37 +0200 Subject: nasm: add documentation on the exit status code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I apparently never bothered to do so. It's a good idea to have this as it might not be all that expected. Signed-off-by: Miquel Sabaté Solà --- crates/nasm/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'crates/nasm/README.md') diff --git a/crates/nasm/README.md b/crates/nasm/README.md index 204b156..d61c84e 100644 --- a/crates/nasm/README.md +++ b/crates/nasm/README.md @@ -68,6 +68,15 @@ important. Hence, the following code is valid in `nasm`, but not in `ca65`: Variable = $00 ``` +### Exit code + +The exit status code from `nasm` is the amount of errors that were +detected. Hence, if the exit status code is 0, then everything is fine, +otherwise you will get a count of errors. + +Note that warnings that were turned into errors via the `-Werror` flag will also +be accounted. + ### Interfaces specific to `nasm` In contrast to `ca65`, there are some nasm-specific features. First of all, -- cgit v1.2.3