Newbies! ;-)
At 6/23/2016 10:47 PM, Phil Smith III wrote:
Chuck wrote: >I would consider something like this: > 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. Thanks! I didn't know SRLG-that's some fancy instruction-and I'm embarrassed to admit that the simple LR hadn't occurred to me. Hey, I've only been writing assembler since 1980.I was thinking there would be some new "copy the bottom half of a register" instruction-but of course that's what old-school LR does. Doh. .phsiii (not too embarrassed to admit when he's been dumb)
---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
