Labels


One of the assemblers main tasks is to keep track of addresses for you so you don't have to remember obscure numbers but can make do with a meaningful name, a label.

This can be done in a number of ways:

GlobalLabel

AnotherGlobal:

.locallabel

.yet_a_local:

ThisWillBeExported::        ;note the two colons

This is very similar to other assemblers. 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. You may or may not have seen the :: feature before. It declares a normal global label but does an EXPORT at the same time.

Labels will normally change their value during the link process and are thus not constant.



Last updated 21 June 1997 by Carsten Sorensen