flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
vid 10 Jan 2006, 19:43
tell whole problem, new directives really are not needed.
|
|||
![]() |
|
Borsuc 10 Jan 2006, 19:51
It's not really a program, but a macro... it accepts a parameter which are some 'flag' characters (at least for now, just playin' around a bit):
Code: flg cso will give some information to another macro (that one has no problemo ![]() I know, using another syntax: Code: flg c s o will work with irps but I might want to make 'advanced' use of this technique maybe sometime later. (and the second syntax is a bit unclear, if you ask me) The main reason is because you can also do: Code: flg sco which does the same thing. If this irpc or whatever works without new directive (via macro or whatever) it would be great. another example would be that I posted: Code: ah equ a h al equ a l ... sure, Tomasz posted a new way for that macro (thanks again ![]() ![]() Thanks.. any reply appreciated ![]() |
|||
![]() |
|
Tomasz Grysztar 10 Jan 2006, 20:06
But do you need it at preprocessing time? Maybe the assembler mechanism would be enough?
Code: macro flg x { virtual at 0 db `x repeat $ load c byte from %-1 if c = 'c' display 'CF',13,10 else if c = 's' display 'SF',13,10 else if c = 'o' display 'OF',13,10 end if end repeat end virtual } |
|||
![]() |
|
Borsuc 10 Jan 2006, 20:12
Maybe, I can't say for sure.. this macro is just a toy now, so i can't be sure.. I think I'll need a bit in preprocessor (if I can't find a way 'till then
![]() Interesting macro you posted.. Didn't know virtual can be so powerful. I understand it better now. ![]() Just wanted to know if this can be done in preprocessor with current directives. dunno, maybe some macros? It's mainly some syntax-adjustment Thanks |
|||
![]() |
|
vid 10 Jan 2006, 21:31
cannot be done with current preprocessor (only in theory), there is no way to alter preprocessor's symbols right now. Symbol is entity for preprocessor.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.