flat assembler
Message board for the users of flat assembler.
Index
> Main > namespaces |
Author |
|
Tomasz Grysztar 29 Mar 2024, 13:58
fasm 2 and its fasmg engine have NAMESPACE / END NAMESPACE directives for this purpose. It is in fact one of the cornerstones of fasmg's design and what pushed me to start developing it.
|
|||
29 Mar 2024, 13:58 |
|
pepe 29 Mar 2024, 14:26
yes, i kind of saw it from the corner of my eyes, but i am using fasmarmw, which is built on v1 afaik... :s
|
|||
29 Mar 2024, 14:26 |
|
revolution 29 Mar 2024, 20:30
Moving to non-x86 forum. The post doesn't appear to be anything Windows specific
|
|||
29 Mar 2024, 20:30 |
|
revolution 29 Mar 2024, 20:44
Perhaps an option is to use struc instad of macro and add a leading dot to the label names.
Code: struc foo_a { .function1: ;... mov pc,lr } struc foo_b { .function1: ;... mov pc,lr } format ... section ... bar foo_a baz foo_b ;... bl bar.function1 bl baz.function1 |
|||
29 Mar 2024, 20:44 |
|
pepe 01 Apr 2024, 11:28
well, the problem is not architecture specific, it looks like it is because it can be worked around in fasm2 easily, but this is not what fasmarm is built on. The problem is specific to fasm 1 regardless of the architecture. That's why it was posted in the main thread.
(And FASM is not windows specific, either) 2: i was experimenting with struc as well, but came up with nothing useful (might be my lack of understanding as well). Gonna give your example a try. I dropped the whole idea for now as it seems to be taking more efforts than it deserves in my current project, so just put my functions with different name prefixes in the segments requiring them. Not very nice but that's it. thank you , pepe |
|||
01 Apr 2024, 11:28 |
|
revolution 01 Apr 2024, 11:40
You posted to Windows originally. But no matter it can also live in Main.
Last edited by revolution on 01 Apr 2024, 12:10; edited 1 time in total |
|||
01 Apr 2024, 11:40 |
|
pepe 01 Apr 2024, 11:49
did i? oops, yeah, that was a mistake then... sorry.
|
|||
01 Apr 2024, 11:49 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.