flat assembler
Message board for the users of flat assembler.
Index
> Main > nasm => fasm. need some hints |
Author |
|
decard 18 Feb 2004, 21:03
Hi!
I may be wrong, as I don't have any experience using NASM; anyway you should read FASM manual (at least chapter about macroinstructions), and everything will become clearer first one (see section 2.2.1 of FASM Manual): Code: i=9 repeat 10 movq mm0, [esp + st_struc.s_ab + i * 16] movq mm1, [esp + st_struc.s_ab + i * 16 + 8] movq [esp + st_struc.s_ab + (i + 4) * 16], mm0 movq [esp + st_struc.s_ab + (i + 4) * 16 + 8], mm1 i=i-1 end repeat second one (see section 2.3.3 of FASM Manual): Code: local my_label third one: yes, proc is a macro (decalred in stdcall.inc file); To see how it works, you can refer to FASM win32 package examples. reagards |
|||
18 Feb 2004, 21:03 |
|
peter müller 19 Feb 2004, 09:14
Hi,
thanx for your help. yepp i found it in the manual. maybe it was to late yesterday. but. i can't found 'stdcall.inc'. i'm running on linux. i've downloaded the windows package of fasm. but no 'stdcall.inc' inside. where is the file and are the macros useable on linux ? with best regards peter |
|||
19 Feb 2004, 09:14 |
|
Tommy 19 Feb 2004, 09:52
Done in a simpler way (untested, but should work):
Code: repeat 10 movq mm0,[esp+st_struc.s_ab+(10-%)*16] movq mm1,[esp+st_struc.s_ab+(10-%)*16+8] movq [esp+st_struc.s_ab+((10-%)+4)*16],mm0 movq [esp+st_struc.s_ab+((10-%)+4)*16+8],mm1 end repeat |
|||
19 Feb 2004, 09:52 |
|
JohnFound 19 Feb 2004, 10:05
peter müller wrote: windows package of fasm. but no 'stdcall.inc' inside. where is the file and are the macros useable on linux ? Actually you need GUI version for windows - FASMW. File: "include/macro/stdcall.inc". Regards |
|||
19 Feb 2004, 10:05 |
|
gorshing 19 Feb 2004, 17:20
I'm not on my linux box, but I believe that it is the examples directory
_________________ gorshing |
|||
19 Feb 2004, 17:20 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.