flat assembler
Message board for the users of flat assembler.
Index
> Main > FASM equivalent of MASM |
Author |
|
edfed 09 Jun 2010, 22:02
Code: format coff public ?RDTSC ;don't know if public is a valid fasm directive... ?RDTSC: rdtsc ret i think it is that.. am i right? [edit] i shut my mouth and just write, ... I don't know. |
|||
09 Jun 2010, 22:02 |
|
vid 10 Jun 2010, 15:13
Strictly speaking, the "PROCD" in MASM by default also generates the stack frame (push ebp / mov ebp, esp), which isn't present in edfed's example. But it's not needed here.
|
|||
10 Jun 2010, 15:13 |
|
edfed 10 Jun 2010, 15:19
ok!
then, if i understand: Code: proc: push ebp mov ebp,esp ... pop ebp ret |
|||
10 Jun 2010, 15:19 |
|
prino 10 Jun 2010, 15:39
It worked, thanks!
|
|||
10 Jun 2010, 15:39 |
|
ass0 10 Jun 2010, 19:51
Code: proc: push ebp mov ebp,esp ... mov esp,ebp ; =D pop ebp ret _________________ Nombre: Aquiles Castro. Location2: about:robots |
|||
10 Jun 2010, 19:51 |
|
baldr 10 Jun 2010, 20:02
ass0,
How about leave? |
|||
10 Jun 2010, 20:02 |
|
ass0 10 Jun 2010, 20:54
enter 0,0 ==
push ebp mov ebp,esp leave == mov esp,ebp pop ebp _________________ Nombre: Aquiles Castro. Location2: about:robots |
|||
10 Jun 2010, 20:54 |
|
Japheth 11 Jun 2010, 04:34
Masm won't generate a stack frame if there are no parameters or locals - unless you force it by adding the FORCEFRAME attribute to PROC.
|
|||
11 Jun 2010, 04:34 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.