<<< Sequential declarations of strings and integers | Index | Reading from data memory >>> |
Using .space directive
useful for arrays of data whos values are unknown in advance
the argument is the number of bytes to reserve:
myarray: .space 40
here, myarray is the address of the 0th element of the array. The addresses of integer elements are
myarray # element 0 myarray + 4 # element 1 myarray + 8 myarray + 12 ... myarray + 36 # element 9: 36 = ( 4 times 9 )
<<< Sequential declarations of strings and integers | Index | Reading from data memory >>> |