"IBM Mainframe Assembler List" <[email protected]> wrote on
08/16/2023 11:23:52 AM:
> I don't object to using the length attribute this way, but with another
> macro, you can avoid that. We have a set of macros that define, test,
set,
> or clear flags very easily, but use a definition macro works like so:
> &name @FLAG &value
> &name._A EQU *-1
> &name._V EQU &value
I did get one thing out of that... I need to create a macro to
define the mask flags -- since they use an unexpected equate format. I
created my definition macro to generate either relative mask flags (that
have an unnamed base location assuming an immediately prior 1-byte flag
field definition) or absolute mask flags (that have a named base location
allowing for a multi-byte flag field definition using BASE+0, BASE+1,
BASE+2, etc.). Thanks.
MACRO
&FLAG DF &MASK,&BASE,&BAD DEFINE FLAG BIT(s)
...
Sincerely,
Dave Clark
--
int.ext: 91078
direct: (937) 531-6378
home: (937) 751-3300
Winsupply Group Services
3110 Kettering Boulevard
Dayton, Ohio 45439 USA
(937) 294-5331
*********************************************************************************************
This email message and any attachments is for use only by the named
addressee(s) and may contain confidential, privileged and/or proprietary
information. If you have received this message in error, please
immediately notify the sender and delete and destroy the message and all
copies. All unauthorized direct or indirect use or disclosure of this
message is strictly prohibited. No right to confidentiality or privilege
is waived or lost by any error in transmission.
*********************************************************************************************