With regard to someone calling the macros with a symbol that was not defined with them in mind, an additional hack is possible; use the type operand of the EQU to designate 8-bit, 16-bit HH, 16-bit HL, 16-bit LH or 16-bit LL, and test it in the macros.
________________________________________ From: IBM Mainframe Assembler List <[email protected]> on behalf of Peter Relson <[email protected]> Sent: Wednesday, August 16, 2023 8:24 AM To: [email protected] Subject: Re: Self-documenting Bit Settings I'd think that many would find it strange to have the equates precede the field definition. If you must use "*" for the equate, that is appropriate. Or, you might choose an approach such as one of the following: F1 DS B F1B0 EQU F1,X'80' F1B1 EQU *-1,X'40' F1B2 EQU *-L'F1,X'20' Peter Relson z/OS Core Technology Design
