flat assembler
Message board for the users of flat assembler.
Index
> Windows > Macro Help! |
Author |
|
Tomasz Grysztar 14 Aug 2004, 19:11
Code: macro RGB target,r,g,b { mov target,r+g shl 8+b shl 16 } RGB eax,0,0,0 |
|||
14 Aug 2004, 19:11 |
|
windwakr 14 Aug 2004, 19:13
havent tested yet but thanks!
|
|||
14 Aug 2004, 19:13 |
|
HarryTuttle 16 Aug 2004, 08:54
there is nothing to testing, it is raw and right thx Privalov! every time when I see your solutions I start to believe in simplicity in fasm programming.
_________________ Microsoft: brings power of yesterday to computers of today. |
|||
16 Aug 2004, 08:54 |
|
IceStudent 17 Aug 2004, 17:24
Why not implemented return operator?
I mean operator like EXITM at the MASM. I think, it's very useful macro... |
|||
17 Aug 2004, 17:24 |
|
mike.dld 17 Aug 2004, 19:08
Agree with you, IceStudent.
Maybe it won't require to rewrite many parts of compiler to allow use of macroses in instructions e.g. mov eax,RGB(0,0,0)? |
|||
17 Aug 2004, 19:08 |
|
Tomasz Grysztar 17 Aug 2004, 19:23
It wouldn't require rewriting any parts of compiler, it would require to write a new one.
(I might suggest some HLL->FASM compiler aswell...) |
|||
17 Aug 2004, 19:23 |
|
Madis731 18 Aug 2004, 09:58
Was that small or what I did 150% scale on my font so I could finally see the writing, but also Ctrl+C -> Ctrl+V to the addressbar or Notepad helped
|
|||
18 Aug 2004, 09:58 |
|
Joshua 18 Aug 2004, 21:41
that's what they call the fine print
|
|||
18 Aug 2004, 21:41 |
|
vid 20 Aug 2004, 19:59
Quote: It wouldn't require rewriting any parts of compiler, it would require to write a new one Would it be such hard to make equates take arguments. It would solve such problems and make preprocesor more powerful. I don't see a big problem here... |
|||
20 Aug 2004, 19:59 |
|
Tomasz Grysztar 20 Aug 2004, 20:17
The problem I see is the time needed to implement it. And it's anyway a bit out of the fasm's syntax image. For such purposes I would really recommend some alternative preprocessor, like HLA.
|
|||
20 Aug 2004, 20:17 |
|
S.T.A.S. 22 Aug 2004, 10:39
Hmm.. actually return can be implemented with the help of macros. I posted some set of macro which is based on such things: http://board.flatassembler.net/topic.php?t=1889
|
|||
22 Aug 2004, 10:39 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.