Right now %esi contains the base address of an array, let's say 0x601040. When I do x/1db in GDB, I get the value 8, which is the value I want. However, when I try to move the value of %esi from memory into a scratch register, I get another value instead.
What I did was: movl (%esi), %r11d
I printed the si and sil portions to try to get the value 8 as desired, but none of this works as I get different values.
How would I go about getting the byte portion as desired?
Thank you for your assistance.