Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Assembly Language Programming (ALP) Forum (http://www.go4expert.com/forums/assembly-language-programming-forum/)
-   -   x86 instruction pointer help please! (http://www.go4expert.com/forums/x86-instruction-pointer-help-t23596/)

sakatari 17Oct2010 22:08

x86 instruction pointer help please!
 
Hi, I'm currently working on understanding the x86 assembly language. I am currently stuck on understanding this instruction:

mov 0x28e89c (%rip), %eax

I know that rip is the instruction pointer that holds the address of the next instruction and that eax is the destination for whatever 0x28e89c (%rip) is. I assume that the 0x28e89c is an offset of some sort but I don't know how to interpret it. If anyone could help it would be much appreciated, thanks!

lionaneesh 21Feb2011 13:48

Re: x86 instruction pointer help please!
 
Quote:

Originally Posted by sakatari (Post 73829)
Hi, I'm currently working on understanding the x86 assembly language. I am currently stuck on understanding this instruction:

mov 0x28e89c (%rip), %eax

I know that rip is the instruction pointer that holds the address of the next instruction and that eax is the destination for whatever 0x28e89c (%rip) is. I assume that the 0x28e89c is an offset of some sort but I don't know how to interpret it. If anyone could help it would be much appreciated, thanks!

EIP is the instruction pointer not RIP...
Maybe this is a typo...

0x28e89c is the offset to the address pointed by eip

Eg :-

if EIP points to 0xDEADBEEF

The the instruction will point to :-

Code:

0xDEADBEEF + 0x28e89c = 0xDED6A78B
I hope it helps..


All times are GMT +5.5. The time now is 07:53.