I have thought about writing such a thing -- actually a bit test, but the
logic is similar -- but I did not do it, and the immediate need for me has
now passed.

Not real tricky. Someone on this list who writes assembler more on a
day-to-day basis than I do should be able to whip out a prototype in no
time.

Charles


-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]]
On Behalf Of João Reginato
Sent: Thursday, May 20, 2021 8:15 AM
To: [email protected]
Subject: Macro to set a bit string
Importance: Low

Hi everyone

 

Does somebody have a macro to set a bit string on/off?

I made one but I think it could be better due to performance reasons.

Note: the bit index should be passed thru a register, not a value.

I mean something like below using the TBIT macro to set on the bit 12  of
ARRAY:

 

LA           R1,12

TBIT       ON,ARRAY,(R1)

Reply via email to