Sorry, I don't quite understand that.

If the value is known at the macro invocation time, that is,
at compile time, you can put it on the macro call, and then
it is a constant - from the runtime point of view.

If not, you can only put an address there, where at runtime
the variable value will be found.

Kind regards

Bernd




Am 22.07.2013 12:37, schrieb [email protected]:
hn  McKwn wrote
What, exactly is YTOKEN. You said "The Macro statemnents are genereated by
a program. The program generates a TOKEN ..." Sounds like program #1
creates program #2 and program #2 contains the SRVRCONN macros which are
assembled after program #1 finishes (reminds me of an NCP gen, sort of). If
so, instead of program #1 outputting

    SRVRCONN SRVRCONN CITI_TO_QSTB,YTOKEN,A0000203

it needs to output:

   SRVRCONN CITI_TO_QSTB,X'2E47B000',A0000203


YTOKEN is a 4Byte Hex Variable whoes value changes whith each invocation of the 
macro.

PROGRAM 1 Generates the SRVRCONN Macros. These are then used as input to the 
Assembler.

the value X'2E47B000' was only an example of what YTOKEN could contain.
It os not a Constant value, its value changes for each invocation  of the macro.

I cant move any values into the macro expansion, because the Macro hasnt been 
expanded by the Assembler.

Paul D'Angelo


Reply via email to