, :

int matr[][4]= {{1,2,3,4}, {5,6,7,8}, {9,10,11,12}};

matr dd 1,2,3,4

dd 5,6,7,8

dd 9,10,11,12

2 [3.4.3]. .

, :

int x[M][N] Hj sizeof (int) = 4, Hi Hj * N. ( -1, 2, 4, 8), , - .

X[i][j] [X+REG1 + REG2 * LEN], REG1- , i - , REG2-

, j. [X+REG1 + REG2], REG1- , i - , REG2- , j - .

. :

int matr[][4]= {{1,2,3,4}, {5,6,7,8}, {9,10,11,12}};

long double numbers [][4]= {{1,2,3,4}, {5,6,7,8}, {9,10,11,12}};

// i, j

matr[i][j]=0; numbers[i][j]=0;

matr dd 1,2,3,4

dd 5,6,7,8

dd 9,10,11,12

numbers

dt 1,2,3,4

dt 5,6,7,8

dt 9,10,11,12

HIMATR dd 16

HINumbers dd 40

...

mov eax, HIMATR

mul [i]

mov ebx, [j]

mov [matr+eax+ebx*4], 0

mov eax, HINumbers

mul [i]

mov ebx, eax;

mov eax, 10

mul [j]

mov [dword ptr numbers + eax + ebx], 0

mov [dword ptr numbers + eax + ebx + 4], 0

mov [word ptr numbers + eax + ebx + 8], 0