flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar
Code: macro RGB target,r,g,b { mov target,r+g shl 8+b shl 16 } RGB eax,0,0,0 |
|||
![]() |
|
windwakr
havent tested yet but thanks!
|
|||
![]() |
|
HarryTuttle
there is nothing to testing, it is raw and right
![]() _________________ Microsoft: brings power of yesterday to computers of today. |
|||
![]() |
|
IceStudent
Why not implemented return operator?
I mean operator like EXITM at the MASM. I think, it's very useful macro... |
|||
![]() |
|
mike.dld
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)? |
|||
![]() |
|
Tomasz Grysztar
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...) |
|||
![]() |
|
Madis731
Was that small or what
![]() ![]() |
|||
![]() |
|
Joshua
that's what they call the fine print
![]() |
|||
![]() |
|
vid
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... |
|||
![]() |
|
Tomasz Grysztar
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.
|
|||
![]() |
|
S.T.A.S.
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
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.