Ed, Martin, John, Tony, et al,

What I am doing is creating macros that are used by any other application.  I 
was hoping to avoid having the user of these macros have to specify the 
technique needed to address symbols.  That sounds clutzy and it nowhere else in 
the assembler do I have to tell the assembler that kind of detail.

At the time the macro is being used, the macro does not know whether baseless 
coding is being used or not and whether or not a symbol is within the current 
CSECT or not.  If the symbol is within the current CSECT and code invoking the 
macro is using baseless coding, the macro MUST use baseless instructions.  As I 
understand it, the symbol is within the current CSECT, baseless instructions 
can be used whether or not the invoking code is using baseless or not.  
Otherwise, based instructions MUST be used.

I am surprised this not considered a hole in the assembler and is not more 
pervasive than just for me and my simple case.  Do not other macros have the 
same problem?

John

-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]] On 
Behalf Of Martin Trübner
Sent: Saturday, December 18, 2010 3:55 AM
To: [email protected]
Subject: Re: Baseless vs Based

Ed,

While I understand your point (missed you anyway in this thread ;-) ) I
do not see the word DSECT mentioned in the OP-s stmt.

John, was your question as simple as I assume or was it as
sophisticated as Tony and Ed answered (with solutions from John E. and
Paul)?

--
Martin

Pi_cap_CPU - all you ever need around MWLC/SCRT/CMT in z/VSE
more at http://www.picapcpu.de

Reply via email to