flat assembler
Message board for the users of flat assembler.
Index
> Main > flat assembler 1.57 Goto page Previous 1, 2 |
Author |
|
vid 23 Jan 2005, 19:11
rather dont use @@ in macros, i prefer macro-local labels, because then use can still use @f/@b jump over macro, with your version it will be hard-to-find bug.
Also prepend all labels by ".." Code: macro fldq dfloat { local ..mynumber,..here jmp ..here align 8 ..mynumber dq dfloat ..here: fld [mynumber] ;more of your code here } see http://decard.net/?body=tajga&chapter=preproc#local |
|||
23 Jan 2005, 19:11 |
|
madmatt 24 Jan 2005, 09:09
All right, thanks for the correction
MadMatt |
|||
24 Jan 2005, 09:09 |
|
vid 28 Jan 2005, 13:26
i dont like it, or any overbloating of syntax at all.
This way we will end up in M$ like mov ax,a = mov ax, word a = mov ax, word ptr a = mov ax, word ptr [a] = mov ax,[a] etc. |
|||
28 Jan 2005, 13:26 |
|
scientica 28 Jan 2005, 14:19
Quote:
hmm.. IMO that notation causes more consufion than good :/ maybew some "macromatic lea" (name sugesstion: 'mlea' or 'mea') would be better? eg: Code: variable = [labelName] varname = mea variable+4 ; preprocessed to: varname = labelName+4 varname = mea [variable+4] ; becomming (thoug "illegal" syntax): "varname = variable+4" => "varname = [labelName]+4" mea could work at fix/equ "level" to prevent [a+b] from 'expanding' (eg if a=1; b=2 mea [a+b] == '1+2'/'3' instead of (the desired) 'a+b' ) |
|||
28 Jan 2005, 14:19 |
|
pelaillo 28 Jan 2005, 19:19
I never liked that syntax at all. This is one of the kind of things I dislike from the Masm syntax.
|
|||
28 Jan 2005, 19:19 |
|
JohnFound 28 Jan 2005, 20:40
pelaillo wrote: This is one of the kind of things I dislike from the Masm syntax. Me too. |
|||
28 Jan 2005, 20:40 |
|
madmatt 28 Jan 2005, 22:19
I wouldn't want a solution that would case more problems than it solves. The macro I made seems to work good, but I don't know what kind of perfomance hits, if any, this method will cause.
MadMatt |
|||
28 Jan 2005, 22:19 |
|
iklin 29 Jan 2005, 06:26
JohnFound wrote:
And me too |
|||
29 Jan 2005, 06:26 |
|
Tomasz Grysztar 29 Jan 2005, 09:05
I'm so glad to finally hear it from many people (after all those emails of "why can't I do this, with MASM I can!" style).
|
|||
29 Jan 2005, 09:05 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.