Log in

View Full Version : help newbies!!!


dotuanvn1977
March 28th, 2011, 23:18
Anybody explain me the following assembly instruction:
/*4011B3*/ MOVSX EAX,BYTE PTR DS:[EDI+4]
What does "BYTE PTR DS:[EDI+4]" mean?Any help appreciated.

aqrit
March 29th, 2011, 01:32
http://siyobik.info/main/documents/view/x86-tutorial/#Addresses

dotuanvn1977
March 29th, 2011, 03:11
Quote:
[Originally Posted by aqrit;89926]http://siyobik.info/main/documents/view/x86-tutorial/#Addresses


Thank sincerely for help.I can understand, for example, the following instruction:
call dword ptr [eax]
it means call to the address that s stored in eax.
But what, for example "byte ptr ds:[edi+4]" means for.What is"ds"?

aqrit
March 29th, 2011, 12:04
http://en.wikipedia.org/wiki/X86#Segmentation
http://en.wikipedia.org/wiki/X86_assembly_language#Segmented_addressing


call dword ptr [eax] - is short hand for - call dword ptr CS:[eax]

dotuanvn1977
March 29th, 2011, 17:09
Quote:
[Originally Posted by aqrit;89935]http://en.wikipedia.org/wiki/X86#Segmentation
http://en.wikipedia.org/wiki/X86_assembly_language#Segmented_addressing


call dword ptr [eax] - is short hand for - call dword ptr CS:[eax]

thanks. you are a great, great,great man!