You can use something like MOV array[TYPE array * index], value;
, for example:
#include <stdio.h>
int main(int argc, char **argv) {
int foo[] = {1, 2, 3};
printf("%d\n", foo[0]);
printf("%d\n", foo[1]);
printf("%d\n", foo[2]);
__asm {
MOV foo[TYPE foo * 0], 11;
MOV foo[TYPE foo * 1], 22;
MOV foo[TYPE foo * 2], 33;
};
printf("%d\n", foo[0]);
printf("%d\n", foo[1]);
printf("%d\n", foo[2]);
return 0;
}
TYPE
will return the size of one element of the array. The output:
1
2
3
11
22
33