I will say that mine specifically does not support register notation so
TBIT may have some extra overhead for that.



*Mark*


On Thu, May 20, 2021 at 10:47 AM Mark Hammack <[email protected]>
wrote:

> Just a guess but your TBIT macro looks like it does the same thing as one
> of mine...if so, it probably uses SETB to build the mask for a single TM
> instruction.  Not sure you're going to get much better performance than
> that.
>
>
> *Mark*
>
>
> On Thu, May 20, 2021 at 10:34 AM Charles Mills <[email protected]> wrote:
>
>> 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