flat assembler
Message board for the users of flat assembler.

Index > Windows > From MASM to FASM : HELP MY !!!

Author
Thread Post new topic Reply to topic
franz79



Joined: 13 Jul 2004
Posts: 11
Location: POLAND
franz79
plaease translate from MASM to FASM i TASM this code
and explain difrents :


MASM:

Label1:
call Label2
Label2:
pop ebp
sub ebp,OFS Label
sub ebp,OFS Label2- OFS Label1

...

movz eax, WPTR [edi]

...

mov edi,[edi]

...

leax eax,[ebp+ OFS Name]

Name dd 0 Shocked Shocked Shocked
Post 28 Oct 2004, 08:44
View user's profile Send private message Reply with quote
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
Vasilev Vjacheslav
Quote:
label1:
call label2
label2:
pop ebp
sub ebp,[label]
sub ebp,[label2-label1]
...
movz eax,word [edi]
...
mov edi,[edi]
...
leax eax,[ebp-name]



maybe it?

_________________
[not enough memory]
Post 28 Oct 2004, 11:58
View user's profile Send private message Reply with quote
beppe85



Joined: 23 Oct 2004
Posts: 181
beppe85
Try this:

Label1:
call Label2
Label2:
pop ebp
sub ebp,Label
sub ebp,Label2 - Label1

...

movz eax, [edi]

...

mov edi,[edi]

...

lea eax,[ebp+ Name]

You can let out OFS(offset), as a name indicates already an offset.
Post 28 Oct 2004, 12:00
View user's profile Send private message Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
leax eax,[ebp-name]

Smile
what instruction is that?
Post 28 Oct 2004, 12:15
View user's profile Send private message Visit poster's website 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 YouTube, Twitter.

Website powered by rwasa.