All, I am new to this list so excuse me if this has been asked before.
When a macro receives an ordinary symbol as a parameter it may need to reference the symbol (get the address of the storage location represented by the symbol). If the symbol is within the current CSECT and the program is using baseless coding, a relative addressing op code must be used to get the address of the storage referenced by the symbol. Otherwise, a base/displacement op code must be used. My question is how is the macro to determine which op codes to use? The assembler knows where the symbol is but I can't find any way for the macro to make the determination. Does anybody know how to do this? John
