Hca.geocities.com/JLABELLE@rogers.com/nsasm/docs/r2410.htmlca.geocities.com/JLABELLE_rogers.com/nsasm/docs/r2410.htmldelayedx:nJOKtext/html@'b.HTue, 07 Dec 2004 00:51:44 GMTCMozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)en, *:nJ.set

.set

Name

.set --  assigns a values to symbols

Syntax

.set symbol ,expression [:type]

Description

The .set directive is used to assign values to symbols. In contrast to an assignment statement, a symbol assigned a value with the .set directive can be assigned a new value at any place within an assembly language program.

The optional type may be specified as byte (:BYTE or :B) or word (:WORD or :W) and assigns this type to the symbol. Use of type overrides the type of the expression.

Note: A .set symbol may be set to a forward-referenced operand only the first time the .set symbol is defined. Following definitions with forward-referenced operands generate errors.

Example

		.set A1,0		; set A1=0
		.set A1,100		; set A1=100
		.set B1,50		; set B1=50
		.set C1,A1-25*B1/4	; set C1=A1-25*B1/4
		.set D1,A1:BYTE		; set D1= to value 100 with byte type