You could save the EX and so forth by using IC, OR and STC. IC and STC take an 
index register, which helps. 

Assuming you can live with the non-atomic nature of a three-instruction 
sequence.

Charles


-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]] On 
Behalf Of Charles Mills
Sent: Thursday, May 20, 2021 10:12 AM
To: [email protected]
Subject: Re: Macro to set a bit string

If it is only one bit long, the solution is even simpler. <g>

Or, more seriously, 8 bytes with OG.

Yep, no reason Rx, Ry and Rz could not be R14, R15 and R1.

I think ORK might be my favorite mnemonic of the day.

Charles


-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]] On 
Behalf Of Bernd Oppolzer
Sent: Thursday, May 20, 2021 9:39 AM
To: [email protected]
Subject: Re: Macro to set a bit string

Hi Charles,

you are assuming that the ARRAY can be of arbitrary length;
the OP should tell us how long the ARRAY can be,
if it is only 4 bytes, there is a much simpler solution :-)

Back to your solution: you can always change the values of
registers 14, 15, 0 and 1 without taking care about it.
Maybe you can do it with these 4 regs.

Reply via email to