• Uncategorized

About assembly : Assembly—x86-call-instruction-and-memory-address

Question Detail

I’ve been reading some assembly code and I’ve started seeing that call instructions are actually program counter relative.

However, whenever I’m using visual studio or windbg to debug, it always says call 0xFFFFFF … which to me means it’s saying I’m going to jump to that address.

Who is right? Is Visual Studio hiding the complexity of the instruction encoding and just saying oh that’s what the program means, that is the debugger know it’s a pc-relative instruction, and since it knows the pc, it just goes and does the math for you?

Highly confused.

Question Answer

You may also like...

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.