Code:
int main(void){
int marks[4];
char format[] = "%i";
_asm {
markone: lea eax, marks[0];
push eax;
lea eax, format;
push eax;
call scanf;
add esp,8;
marktwo: lea eax, marks[1];
push eax;
lea eax, format;
push eax;
call scanf;
add esp,8;
markthree: ...etc
When i execute that second chunk of code it changes the value for marks[0] and i have no idea why or how to fix it???
Any help would be appreciated and sorry this isn't pure assembly language code is it a c++ hybrid type thing? i don't know lol
