From 4f1a9c660108e5fb94d5b19ee649427b8aafd96b Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 2 Feb 2026 22:38:16 +0100 Subject: Add the .fallthrough control statement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is exclusive to 'nasm' and it allows the developer to explicitly tell the assembler than a "fall through" condition is actually desired: it's not a mistake. This comes in two flavors. The first, without arguments, just makes this explicit without much enforcement. The second allows you to pass an argument which is the name of the function or label you are expecting to fall through. The assembler will error out if the fall through address is not the expected one, hence telling the programmer whenever the fall through condition they thought in the past is no longer true (e.g. the function has moved somewhere else in the code). Signed-off-by: Miquel Sabaté Solà --- tests/expected/fallthrough.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/expected/fallthrough.txt (limited to 'tests/expected/fallthrough.txt') diff --git a/tests/expected/fallthrough.txt b/tests/expected/fallthrough.txt new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3