shithub: rgbds

Download patch

ref: efaad99f2558411829ae20a7b6ddf8448cc121cc
parent: 62d820c2612ecf8f51d71b0ec4a1d9862d9908f6
author: Antonio Niño Díaz <[email protected]>
date: Tue Jun 13 16:16:42 EDT 2017

Update manpage documentation about labels

- 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 <[email protected]>

--- a/src/asm/rgbasm.5
+++ b/src/asm/rgbasm.5
@@ -223,13 +223,17 @@
 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.