From 86fe8c9f1a629e9bb6646ef42ef13d5a713d72f8 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 15 Sep 2026 17:09:33 +0200 Subject: Add reference to the global labels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 496055d..493120b 100644 --- a/README.md +++ b/README.md @@ -445,8 +445,11 @@ kind of scoping could be useful if performance was paramount. That is, imagine a movement. This could be done in multiple ways, but the most performant way would be to just `jmp (pointer)`, and then let each handler perform a `jmp @known_return_address` instead of a mere `rts`. Hence, if you are on corner -cases like these, I think it's fair to go the optimal route. In other cases, -prefer readability. +cases like these, I think it's fair to go the optimal route. As a last touch, +`nasm` also allows developers to use [global +labels](https://git.mssola.com/nes/tools.nes/about/crates/nasm/README.md#defining-global-labels). You +can also use that for corner cases. In any case, and when in doubt, prefer +readability. Moreover, note that tooling might perform better if the programmer states explicitely that this is indeed a subroutine and not a mere label. This way, -- cgit v1.2.3