In the following assembly:
movq $22, -8(%rbp)
movq -8(%rbp), %rdx
# How to memory the *memory_address* of -8(%rbp) into %r11 ?
# For the sake of this example, let's assume: rbp - 8 = 0x00007fffffffe410
movq -8(%rbp), %r11
How would I run the third instruction properly? After running it the register value should be:
- rdx:
0x16 - r11:
0x00007fffffffe410
In other words, how to copy the memory address over into a register rather than the value contained at that memory address?