letters), where
each element is initialized to a lower case letter of
the alphabet.
letters[0] is 'a', letters[1] is 'b',
and so on to letters[25] is 'z'.
letters: .byte '\0':26
to do the same thing as the first part of this question.
int_array: .word 0:28 # 4 x 7 array of integersThis array is stored in row major order. Write a MAL code fragment that initializes each element of the array to be the sum of its row index and column index. A partial diagram of the array (after this code executes) might appear as:
0 1 2 3 4 5 6 (column indices)
0 1 2 3 4 5 6 (row with index 0)
1 2 3 4 5 6 7 (row with index 1)
2 3 4 5 6 7 (partial row with index 2)
(missing row with index 3)
| Copyright © Karen Miller, 2007 |