Mam programik assemblera i nie wiem czemu kompilator pokazuje mi błąd tablicy, ktoś coś dopomoże?
#include "stdafx.h"
#include <tchar.h>
using namespace std;
short int x[4];
x[0] = 17;
x[1] = 12;
x[2] = 9;
x[3] = 4;
int suma=0;
int _tmain(int argc, _TCHAR* argv[])
{
__asm
{
mov AX, x[0]
movzx EDI,AL
mov suma,EDI;
mov AX, x[1*2]
movzx EDI,AX
add suma,EDI;
mov AX, x[2*2]
movzx EDI,AX
add suma,EDI;
}
cout<<endl;
cout<<"Suma tablicy(SLOWO) = "<<suma<<endl;
return 0;
}