flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Vortex 24 Jun 2003, 07:49
Hi friends,
Is it possible to code string macros such as CATSTR for Fasm? _________________ Code it... That's all... |
|||
![]() |
|
fasm9 24 Jun 2003, 10:05
smallest temp-c-compiler which tinycc's mother
![]() http://fabrice.bellard.free.fr/otcc/ Resurrection of two primeval C compilers from 1972-73, http://www.cs.bell-labs.com/who/dmr/ i think c compiler also macro assembler. |
|||
![]() |
|
fasm9 24 Jun 2003, 10:51
thanks for point it.
what is CATSTR macro? did you post this to the masm forum? |
|||
![]() |
|
Vortex 24 Jun 2003, 15:15
fasm9,
CATSTR is a predefined macro used by the Macro Assembler (Masm) It concatenates one or more strings to a single string. Code: num = 7 newstr CATSTR <3 + >, %num, < = > , %3 + num ; "3 + 7 = 10" assign the string "3 + 7 = 10" to newstr. Full information about using macros in masm32: http://webster.cs.ucr.edu/Page_TechDocs/MASMDoc/ProgrammersGuide/Chap_09.htm _________________ Code it... That's all... |
|||
![]() |
|
fasm9 24 Jun 2003, 21:35
ok. thanks
i wouldn't learn masm, imho, fasm is equal to masm. moreover, fasm is *open*. -- PS: slightly off-topic, i see something similar like this in lisp.. |
|||
![]() |
|
comrade 25 Jun 2003, 04:25
FASM has no ability to return values from macros. You cannot use a macro as a function.
|
|||
![]() |
|
Vortex 25 Jun 2003, 09:16
Maybe,in the future,we can think this feature (macros returning values
like functions) can be added to Fasm. _________________ Code it... That's all... |
|||
![]() |
|
jInuQ 30 Jun 2003, 08:59
you can check out my library that has some basic functions for string work. StrLen, StrCat are there. Still working on others. It uses a macro that privalov provide so it doesn't put unused functions in.
Beaware that the CVS is broken and it won't let me commit a fix copy. http://sourceforge.net/projects/pattod/ _________________ jInuQ "Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." - Antoine de Saint Exupery |
|||
![]() |
|
Vortex 30 Jun 2003, 10:39
Thanks jInuQ
_________________ Code it... That's all... |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.