March 2010
Beginner
760 pages
18h 51m
English
The last few examples in the previous section demonstrate the use of HLA array constants. An HLA array constant is nothing more than a list of values surrounded by a pair of brackets. The following are all legal array constants:
[ 1, 2, 3, 4 ] [ 2.0, 3.14159, 1.0, 0.5 ] [ 'a', 'b', 'c', 'd' ] [ "Hello", "world", "of", "assembly" ]
(Note that this last array constant contains four double-word pointers to the four HLA strings appearing elsewhere in memory.)
As you saw in the previous section, you can use array constants in the static and readonly sections to provide initial values for array variables. The number of comma-separated items in an array constant must exactly match the number of array elements in the variable declaration. ...