hello,
(unfortunately, i cannot find the newbie section, so i'll post here)

i need labels which are larger than 255 chars in size,
if i define some labels or some text literals which consist of more than 255 chars masm will complain.
i tried the /Sl option (/Sl 1024), but masm replaces that value
with its default one.

thx.
Posted on 2002-03-31 08:35:11 by exzito
I_wouldn_t_know_why_you_need_labels_of_more_than_256_chars :) but if strings in the data section can simply be split:



stringData db "blah blah blah "
db "and even more blah "
db "and so on",0


Thomas
Posted on 2002-03-31 08:40:17 by Thomas
i did say that i need _labels_ and _constants_ of more than 255 chars, not strings

>I_wouldn_t_know_why_you_need_labels_of_more_than_2
>56_chars

i just need that labels ;)
Posted on 2002-03-31 09:03:57 by exzito
exzito, this is a limitation of MASM - I don't like it either. :(
Posted on 2002-03-31 11:00:48 by bitRAKE
Sorry I misunderstood you, like bitRAKE said it's a limitation of masm, not much to do about it :(...

Thomas
Posted on 2002-03-31 11:16:47 by Thomas
what a pity

did anyone try to write some macros to handle literals or labels
of that type?
perhaps macros are a solution
Posted on 2002-03-31 16:13:05 by exzito
Dilute my ignorance some, why the hell do you need labels longer than 255 characters ? A label is nothing more than a placeholder for the next instruction and there is no change in the code that is generated if the label is 2 characters long or 200 characters long.

Regards,

hutch@movsd.com
Posted on 2002-03-31 16:30:17 by hutch--

Dilute my ignorance some, why the hell do you need labels longer than 255 characters ?


i agree... *i* wouldn't want to type some label longer than even maybe ten characters... i'm hesitant to call anything longer six or seven characters (except for some procedures of the same class with a prefix)... two hundred fifty five! i'd make a typo somewhere :)
Posted on 2002-03-31 16:41:05 by jademtech
I think MASM 4 allowed labels of any length, but only the first 31 or 32 were actually used. Anything longer was just ignored.

I don't think I've ever used more than about 16.

:)
Posted on 2002-03-31 18:11:37 by S/390
;...
__CONST equ <>

make macro
__CONST CatStr __CONST, <more text >
endm

;...
repeat 26
make
endm
%echo __CONST


do you think masm accepts it and it will print out the value of __CONST?
Posted on 2002-04-01 06:42:56 by exzito