Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

MASM v6 scoping for labels (DOSX)

posted by Rugxulo Homepage, Usono, 11.06.2020, 18:40

> 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:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 80 users online (1 registered, 79 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum