- #1
whitehorsey
- 192
- 0
1. I need help understanding how to read the parameters from the stack and not from anywhere else. In addition, what is difference between reading from the stack and somewhere else?
For example, if the parameters had this:
logicUnit(unsigned long int value, unsigned long int flags, unsigned char *result )
How would I read the parameters from the stack?
3. I'm thinking that I have to store it in the registers but that seems like I'm calling it from somewhere else.
i.e. mov eax, value
mov ebx, flags
mov ecx, result
For example, if the parameters had this:
logicUnit(unsigned long int value, unsigned long int flags, unsigned char *result )
How would I read the parameters from the stack?
3. I'm thinking that I have to store it in the registers but that seems like I'm calling it from somewhere else.
i.e. mov eax, value
mov ebx, flags
mov ecx, result