On Thu, 23 Jun 2016 22:27:37 +0000, Hardee, Chuck wrote:

>       LR      R15,R3          Copy low 32-bits to R15
>       SRLG    R0,R3,32                Copy upper 32-bits to R0
>
>You may want to add an SR or XR for register 0 and 15 prior to the above two 
>instructions if you want to make sure of the upper 32-bits of the target 
>registers.
>

The XR isn't necessary.
SRLG inserts zeroes in the high bits.
If you want the high 32 bits of R15 to be zeroes, use LLGFR.
Or, if you want the high 33 bits to be zeroes, use LLGTR.

--

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to