Hi, I was wondering hot make a label like this:



thisisthelabel:



Accessible to all functions in a module (this label is within a function), can I put a GLOBAL modifier in front of it or something or define it somewhere else in the file? How would I be able to do it?
Posted on 2005-01-11 20:53:40 by x86asm
try this:

thisisthelabel::
Posted on 2005-01-11 23:26:26 by masm8
try this:

thisisthelabel::


IT worked thanks a lot!
Posted on 2005-01-12 18:16:58 by x86asm
??? didnt understand, pheraphs I have diferent concepts ;).
Posted on 2005-01-12 21:18:13 by rea
rea, in masm , when you have a label inside a PROC, then this label is invisible outside of the PROC. If you want some label to be visible outside the proc, too, you add another colon ":" to the label:


some proc arg1
mov eax,arg1
cmp arg1,0
jne @F

exit::
invoke ExitProcess,0


@@:
ret
some endp


some2 proc arg1
cmp arg1,0
je exit
ret
some2 endp

This visible anywhere label is called a global label :)
Posted on 2005-01-13 03:05:27 by Ultrano