Alex Rivera | Logout

What is the meaning of x86 instruction "call dword ptr ds:[00923030h]"?

Asked 2009-02-05T22:27:32.883
10

What does the following x86 assembler instruction do?

call dword ptr ds:[00923030h]

It's an indirect call I suspect, but exactly how does it compute the address to the call?

Edit
Report

1 Answer

1

IIRC, it takes the value of the DS register (and shifts it left 4 bits), adds to that the immediate value given, fetches a dword value from the resulting memory location, which becomes the address to call. (EDIT: this holds true for 16-bit real mode, for protected mode see the other answers.)

answered 2009-02-05T22:41:34.807

Your Answer