flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
baldr 13 Jun 2010, 19:43
flat_user wrote:
If you use that symbol to define label, its properties will be the same as for prefix only: .name: will be local, ..name: and name: will be global (but former won't define new prefix for local labels). flat_user wrote: 2. Can I somehow give a macro-parameter a default value like this: |
|||
![]() |
|
mindcooler 08 Jan 2012, 22:08
How do you actually do this? I tried a few things, but I can't get anything to work:
Code: if codename eq \codename=".text" end if if ~ defined bssname \bssname=".bss" end if match =bssname, bssname {\bssname=".bss"} _________________ This is a block of text that can be added to posts you make. |
|||
![]() |
|
revolution 15 Jan 2012, 08:00
mindcooler: What is the backslash supposed to achieve?
Also, the equals (=) is an assembly time assignment for numeric values. And "match" is preprocessor time processing. It is generally not possible to mix the two together unless you really know what you are doing with a great degree of confidence. |
|||
![]() |
|
mindcooler 15 Jan 2012, 08:02
I thougt that escaping the variable would mean the variable, and not its value.
I'm not mixing, those are all different attempts of doing the same thing. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.