Pointer
Files used -> 9-pointer.c, 9-pointer.exe
Last updated
Files used -> 9-pointer.c, 9-pointer.exe
Last updated
Here in the disassembly, I have highlighted 2 part.
In the first part , we see a value of 2Bh (43) being moved in eax and then pushed to stack.
In the second part, we have ‘lea’ instruction which is used for moving address. lea ecx, [ebp+var_4] will move address of [ebp+var_4] i.e. var_4 address into ecx register. Or simply we can say, pointer to var_4 is moved to ecx register. And then pushed onto stack.
If we see the source code→