If what you're really trying to do is to copy the low order 32 bits of
GPR 13 into the high order 32 bits of GPR 0, while leaving the low order
32 bits of GPR 0 unchanged, then the following I-stream will do the job.


         RLLG  R0,R0,32(0)              Exchange the high order and
*                                       low order 32 bits of GPR 0.
*
         LR    R0,R13                   Copy the low order 32 bits
*                                       of GPR 13 into the low
*                                       order 32 bits of GPR 0.
*
         RLLG  R0,R0,32(0)              Exchange the high order and
*                                       low order 32 bits of GPR 0.
*
*                                       The high order 32 bits of
*                                       GPR 0 now contain a copy of
*                                       the low order 32 bits of
*                                       GPR 13.
*
*                                       The low order 32 bits of
*                                       GPR 0 are what they were
*                                       prior to the first RLLG.

Bob

Reply via email to