Menu

#4 assembe: make local labels _really_ locals

open
nobody
Assemble (3)
5
2006-01-12
2006-01-12
No

Local labels (starting with a dot like ".label") are
not reachable from outside the bounding global labels
(with no dot) that are just before and just after.

The idea is to provide a way to invoke local labels
from elsewhere in the code, using the preceding global
label as context identifyer.

Example:

global_label_1
...
instructions
...
.local_label
...
instructions
...
global_label_2
...
jmp global_label_1.local_label
...

In this example, the ".local_label" is called from
outside its context using the preceding
"global_label_1" as context identifyer.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.