ref: 2fa9a3c7683ff45119307554fa71d268039cca3c
dir: /doc/asm/labels.htm/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>xAsm Labels</title> <link rel="stylesheet" type="text/css" href="../style.css"> </head> <body> <h1>Labels</h1> <p>One of the assembler’s main tasks is to keep track of addresses for you so you dor’t have to remember obscure numbers but can make do with a meaningful name, a label.</p> <p>This can be done in a number of ways:</p> <pre>GlobalLabel AnotherGlobal: .locallabel .yet_a_local: ThisWillBeExported:: ;note the two colons</pre> <p>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 <b>::</b> feature before. It declares a normal global label but does an <a href="export.htm">EXPORT</a> at the same time.</p> <p>Labels will normally change their value during the <a href="../link.htm">link process</a> and are thus <em>not</em> constant.</p> <hr> <p>Last updated 21 June 1997 by <a href="mailto:[email protected]">Carsten Sorensen</a></p> </body> </html>