Gil,

that was a bit too short an answer.

I intended it to mean yes, you should surely use IPM to preserve program
mask.

Having said that, the solution you suggested is far superior.
So better forget SPM and IPM altogether ;-)

BTW: the closest thing to shift-and-mask is probably RISBG with a zero
rotate amount.
Which has the advantage of leaving its input register (R2 in PoP
parlance) unchanged.
So you can easily repeat for the second set of two bits...

Abe
===


Op 31/01/2022 om 21:15 schreef Abe Kornelis:
> Gil,
>
> you surely should!
>
> Abe
> ===
>
>
> Op 31/01/2022 om 21:13 schreef Paul Gilmartin:
>> On Jan 31, 2022, at 13:03:32, Farley, Peter x23353 wrote:
>>> Gil, that is clever as all get out.  Thanks for the idea, though I don't 
>>> have any immediate use for it myself.  That's one to file in the ASM tools 
>>> bag,
>>>  
>> You're welcome.  Except I forgot there's no shift-and-mask instruction.
>>
>>
>>
>> On Jan 31, 2022, at 12:56:33, Abe Kornelis wrote:
>>> you might consider to use SPM to set the CC in the PSW from the two bits.
>>> Then you can use a series of BC instructions to select the desired
>>> subsequent action...
>>>  
>> I'd precede that with IPM to preserve the rest of the Program Mask.
>>
>> If I diid it that way at all.
>>

Reply via email to