5.1 Arrays and Strings

An assembly-language array is a sequence of fixed-size variables. A string is an array of characters. You can access the elements in an array or string relative to the first element.

This section explains and illustrates the essential ways to handle arrays and strings in your programs. It covers arrays first, beginning with the two ways to declare an array and continuing with how to reference it. The section then explains the special requirements for declaring and initializing a string. Finally, it describes the processing of arrays and strings.