From efaad99f2558411829ae20a7b6ddf8448cc121cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ni=C3=B1o=20D=C3=ADaz?= Date: Tue, 13 Jun 2017 20:16:42 +0100 Subject: [PATCH] Update manpage documentation about labels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Local labels can now be exported. - Local labels can be declared as Scope.Label in addition of .Label. Signed-off-by: Antonio Niño Díaz --- src/asm/rgbasm.5 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/asm/rgbasm.5 b/src/asm/rgbasm.5 index 6fed01eb..3dba81fb 100644 --- a/src/asm/rgbasm.5 +++ b/src/asm/rgbasm.5 @@ -223,13 +223,17 @@ GlobalLabel AnotherGlobal: \&.locallabel \&.yet_a_local: +AnotherGlobal.with_another_local: ThisWillBeExported:: ;note the two colons +ThisWillBeExported.too:: .Ed .Pp In the line where a label is defined there musn't be any whitespace before it. Local labels are only accessible within the scope they are defined. A scope starts after a global label and ends at the next global label. -Declaring a normal label with :: does an EXPORT at the same time. +Declaring a label (global or local) with :: does an EXPORT at the same time. +Local labels can be declared as scope.local or simply as as .local. +If the former notation is used, the scope must be the actual current scope. .Pp Labels will normally change their value during the link process and are thus not constant.