flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2 |
Author |
|
FoXx 27 Apr 2025, 12:28
revolution, if I declare a label with two dots (..global), it will be visible from everywhere. And it will not change the following main label. Am I right?
macomics, I'm not very good at the intricacies of macros. Simple solutions work better for me. |
|||
![]() |
|
revolution 27 Apr 2025, 12:45
All labels are visible everywhere. fasm doesn't have the concept of global labels as a separate type, all labels are global.
The double-dot just means that the base label is not changed. The single-dot just means to append the name to the current base label. Code: a: ; base label is now a b: ; base label is now b ..c: ; base label is still b .d: ; label name is "b.d", base label is still b |
|||
![]() |
|
FoXx 28 Apr 2025, 07:44
I used the label syntax:
Code: label@MyFunction: ; always global label Code: proc Func_A ... label@Func_A: ... jmp Func_end endp ;------------------- proc Func_B ... label@Func_B: ... jmp Func_end endp ;------------------- proc Func_C ... label@Func_C: ... jmp Func_end endp ;------------------- proc Func_D ... label@Func_D: ... jmp Func_end endp ;------------------- proc Func_end ... ret endp revolution and macomics thanks for helping me understand. |
|||
![]() |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.