flat assembler
Message board for the users of flat assembler.

Index > Windows > Question for comrade or anyone else that can answer

Author
Thread Post new topic Reply to topic
GuyonAsm



Joined: 27 Sep 2003
Posts: 45
GuyonAsm
Im converting one of Conrades programs to fasm format and There is this one line here that is causing me much trouble, as i don't know how to properly "convert" it.

Code:
mov     edx, dword ptr [img_nt_hdrs.OptionalHeader.DataDirectory][12*8][IMAGE_DATA_DIRECTORY.VirtualAddress]

    


Im assuming I have to use the mul, or imul function here to copy exactly whats on this line, but my problems are:

1) I haven't had much experience using the mul/imul instructions.
2) In what order would i multiply each part to get the desired number as in the original program.

Thanks to anyone who replys and attempts to help me.

_________________
I shall not evade what is predestined
because every battle, is another lesson
- GuyonAsm.

A Believer of The System.
Post 13 Dec 2003, 01:01
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
Code:
mov  edx,dword [nthdrs.OptionalHeader.DataDirectory+12*8+IMAGE_DATA_DIRECTORY.VirtualAddress]    


Regards,
conrade


Description:
Download
Filename: dll2inc.zip
Filesize: 2.82 KB
Downloaded: 248 Time(s)


_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 13 Dec 2003, 04:22
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
GuyonAsm



Joined: 27 Sep 2003
Posts: 45
GuyonAsm
Thank you so much Comrade. Now I think i can finish the project.

_________________
I shall not evade what is predestined
because every battle, is another lesson
- GuyonAsm.

A Believer of The System.
Post 13 Dec 2003, 16:58
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.