.local

Name

.local --  establishes a new program section for local labels

Syntax

.local

Description

The .local directive establishes a new program section for local labels (labels beginning with a dollar sign [$]). All local labels between two .local directive statements have their values assigned to them only within that particular section of the program. Note that a .local directive is assumed at the beginning and the end of a program; thus, one .local directive within a program divides the program into two local sections. Up to 255 .local directives may appear in one assembly.

Local symbols may not be used as publics or externals.

Example

	$X:	.word 1		; first label $X
		.local		; establish new local symbol section
	$X:	.word 1		; second label $X, no confusion since
				; they are in different "local" blocks