- #1
whitehorsey
- 192
- 0
1. I'm stuck on understand two lines of code because I don't really understand how the command (dword ptr and 'and') works.
array = {40, 86, 10, 14, 68, 25, 50, 7, 9}
int method(int array[])
{
__asm{
mov ebx, 0
mov esi, array
(there is a loop that goes around ten times before exiting in the body there is this line of code ( written below))
mov eax, dword ptr [esi+4*ebx] What is happening in this line of code?
and eax, 1 Also, what does the and command do?
...
}
}
3. I know that dword ptr stands for size directive but I don't understand how it works in this context.
array = {40, 86, 10, 14, 68, 25, 50, 7, 9}
int method(int array[])
{
__asm{
mov ebx, 0
mov esi, array
(there is a loop that goes around ten times before exiting in the body there is this line of code ( written below))
mov eax, dword ptr [esi+4*ebx] What is happening in this line of code?
and eax, 1 Also, what does the and command do?
...
}
}
3. I know that dword ptr stands for size directive but I don't understand how it works in this context.
Last edited by a moderator: