I have a structure declared as
strucr mystruct_ {
char cv[12];
int i;
short int sv[12];
};
and a x86 function declared as:
void myproc(int x, short int y, struct mystruct_s)
and need to access argument s.sv[4] using [ebp+m]. Will the value of m be equal to 40 (s starts at ebp+16 and sv[4] is the 24-th byte of the struct) or am I doing something wrong? I am not sure how passing a structure to x86 works.