VARIABLE AND ARRAY DELCARATION

8 bit variables are declared using the .db, .ds or .byte keywords

16 bit variables are declared using the .dw or .word keywords

Variables and arrays are not differentiated in any way. A label defines a variable or an array. The code generated to access the value stored at the address identified by label is dependent on the the index operators [ and ].

e.g.
	FRED	.ds	25		; declare FRED as a block or RAM
					; to be accessed as 8 bit locations

		.let FRED = 1		; use FRED as a variable,
					; this is equivalent to FRED[0]

		.let FRED[j] = j+1	; use FRED as an array