I am very confused regarding the indirect addressing mode for this instruction:
and $0x0000FF00, 4(%esp)
If this is the current top of stack:
0xBF8DB0B8: 0xDEADBEEF <--- ESP + 4
0xBF8DB0B4: 0xDEADBEEF <--- ESP
and this is the content of memory at 0xDEADBEEF
:
0xDEADBEEF: 0x1234ABCD
Which of the following will be performed?
AND 0x0000FF00, 0xDEADBEEF
with result:0x0000BE00
stored in0xBF8DB0B8
.AND 0x0000FF00, 0x1234ABCD
, with result:0x0000AB00
stored in0x0000AB00
.AND 0x0000FF00, 0xDEADBEF3
. with result:0x0000BE00
stored in0xDEADBEF3
.