> On current hardware there is an IILF (LFI) instruction, and I would like to
>> use it instead of the XR/ICM sequence. 

Before using any modern instructions, ask yourself if they are worth the risk. 
Does your disaster recovery site guarantee this as a minimum machine level. 
Maybe your employer has older machines available in case of capacity problems. 
How about company acquisition. You need to consider the impact.

>Back in he Assembler XF era I would code something like
>         LA    R0,L'DEST
>         LA    R1,DEST
>         XR    R15,R15
>         ICM   R15,8,=C' '
>         MVCL  R0,R14 

Why use LFI when better alternatives for ICM =C' ' have been around forever. 
    J bydata
data   dc     A(X'40000000',0,L'dest)
bydata LM R15,R1,data 

Since the J instruction only updates the PSW, I'm guessing it will replace the 
update PSW in the previous instruction thus making this a single instruction on 
current hardware but still compatible with older hardware.

Alternatively, there is the NILH instruction which has existed for a couple 
decades.

Reply via email to