You can declare an array of dword type with this way:
.data
arr dword 4 dup(0)
You can store there numbers or addresses of strings. For example:
.code
;***
;assign constants
mov arr, 0
mov arr[1*4], 1
mov arr[2*4], 2
mov arr[3*4], 3
;or assign addreses
mov arr, offset szName
mov arr[1*4], offset szName1
mov arr[2*4], offset szName2
mov arr[3*4], offset szName3
;get values
xor ecx, ecx ;prepare an index
.while ecx <= 3
mov eax, arr[ecx*4]
;*****
inc ecx
.endw
.data
arr dword 4 dup(0)
You can store there numbers or addresses of strings. For example:
.code
;***
;assign constants
mov arr, 0
mov arr[1*4], 1
mov arr[2*4], 2
mov arr[3*4], 3
;or assign addreses
mov arr, offset szName
mov arr[1*4], offset szName1
mov arr[2*4], offset szName2
mov arr[3*4], offset szName3
;get values
xor ecx, ecx ;prepare an index
.while ecx <= 3
mov eax, arr[ecx*4]
;*****
inc ecx
.endw