MASM v6 scoping for labels (DOSX)
> however I noticed a nice thing in your assembler.
> I noticed that it allows to name the labels with non-unique names. I always
> thought that all labels for jumps must be unique for all ASM file.
> But you use label "is_ours:" in more places (althgough in various
> procedures). Mayve is it a common feature of all assemblers but it is a new
> information for me
Most x86 assemblers are incompatible since there is no official standard. So, anything goes, usually. However ....
See Art of Assembly, Chapter 12:
> 12.1.1 Scope
>
> By default, MASM 6.x treats statement labels (those with a colon after them)
> as local to a procedure [PROC ... ENDP].
The way around that, when needed, is "option noscoped" or double colon after label name.
Complete thread:
- HX-DOS extender and TryEnterCriticalSection - Laaca, 06.06.2020, 09:34
- HX-DOS extender and TryEnterCriticalSection - Japheth, 06.06.2020, 19:20
- HX-DOS extender and TryEnterCriticalSection - Japheth, 09.06.2020, 16:25
- HX-DOS extender and TryEnterCriticalSection - Laaca, 10.06.2020, 10:58
- HX-DOS extender and TryEnterCriticalSection - Laaca, 10.06.2020, 18:29
- MASM v6 scoping for labels - Rugxulo, 11.06.2020, 18:40
- HX-DOS extender and TryEnterCriticalSection - Laaca, 10.06.2020, 10:58
- HX-DOS extender and TryEnterCriticalSection - Japheth, 09.06.2020, 16:25
- HX-DOS extender and TryEnterCriticalSection - Japheth, 06.06.2020, 19:20