Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there a means to determine which assembler is being used to assemble source code?

0
Posted

Is there a means to determine which assembler is being used to assemble source code?

0

This message was posted on the main Hercules-390 discussion group, as was the answer, which was found on the Share website. The WHICHASM macro exploits differences in behavior of the Type attribute for symbolic variables to determine which version of the assembler is executing: MACRO WHICHASM LCLA &A BE SURE IT’S NOT INITIALIZED WITH A VALUE LCLC &C BE SURE IT’S NOT INITIALIZED WITH A VALUE LCLC &TA,&TC FOR TYPE ATTRIBUTE VALUES &TA SETC T’&A SET TYPE ATTRIBUTE TO A LOCAL SETC SYMBOL &TC SETC T’&C SET TYPE ATTRIBUTE TO A LOCAL SETC SYMBOL AIF (‘&TA’ EQ ’00’).ASMH TEST FOR ASSEMBLER H AIF (‘&TA’ EQ ‘N’).HLAXF TEST FOR HI LVL ASSEMBLER OR XF MNOTE 8,’WE DON”T KNOW WHICH ASSEMBLER THIS IS’ MEXIT .ASMH MNOTE 0,’THIS IS ASSEMBLER H’ MEXIT .HLAXF AIF (‘&TC’ NE ‘O’).XF TEST FOR HLASM MNOTE 0,’THIS IS HIGH LEVEL ASSEMBLER’ MEXIT .XF MNOTE 0,’THIS IS ASSEMBLER XF’ MEND I have tested the macro and it works as advertised for Assembler XF (IFOX00) and Assembler H (IEV90). It does not work for Ass

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123