Borland Tasm32 v5 - creating labels from an equate and a string ?

Giganews Newsgroups
Subject: Borland Tasm32 v5 - creating labels from an equate and a string ?
Posted by:  R.Wieser (addre…@not.available)
Date: Thu, 29 Nov 2018

Hello all,

I've got a block of code which I want to be able to use in two seperate ways
("Debug_*" and "Log_*"), but need the labels to change to reflect that usage
(currently I have two identical code blocks with just the labels being
different).

I'm using Borlands Tasm32 v5.x , but do see a way to combine an
equated/assigned "constant" and a postfix portion together into a single
label.    It does have the "&" pseudo operand, but that seems only to work
for/in macros.

An example of what I'm after :
- - - - - - - - - - - - - - - -
ThePrefix = Foo

ThePrefix&Bar db 'Hello world',0

ThePrefix = ''

lea eax,FooBar
- - - - - - - - - - - - - - - -

Does anyone have an idea how to actually do the above ?

Regards,
Rudy Wieser

Replies