September 2017
Beginner to intermediate
290 pages
6h 58m
English
IP or RIP (depending on whether we are on a 32-bit or a 64-bit platform) means addressing relative to the instruction pointer register.
The best example of this addressing mode would be the call and jmp instructions. For example, consider the following code:
call my_proc ; or jmp some_label
This will not contain the addresses of my_proc or some_label. Instead, the call instruction would be encoded in such a way that its parameter would be the offset from the following instruction to my_proc. As we know, the instruction pointer register contains the address of the following instruction at the time the processor executes the current one; therefore, we may surely say that the target address is calculated relative to the ...
Read now
Unlock full access