doc tweak, adding qualified name example for goto (#116)

This commit is contained in:
OODLER 2023-12-20 16:51:46 -06:00 committed by GitHub
parent e7698686fa
commit 09f3fbeb38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -861,10 +861,12 @@ Unconditional jump: goto
^^^^^^^^^^^^^^^^^^^^^^^^
To jump to another part of the program, you use a ``goto`` statement with an address or the name
of a label or subroutine::
of a label or subroutine. Referencing labels or subroutines outside of their defined scope requires
using qualified "dotted names"::
goto $c000 ; address
goto name ; label or subroutine
goto main.mysub.name ; qualified dotted name; see, "Blocks, Scopes, and accessing Symbols"
uword address = $4000
goto address ; jump via address variable