try to use sll instead of sla.

Thanks,
Shai


On 12/28/07, Lindy Mayfield <[EMAIL PROTECTED]> wrote:
>
> I want to pull the bits off of a register a nibble at a time.  Is SLDL
> on an even/odd register the best way to go?
>
> If so, I'm having a bit of trouble moving the bits to the top end.  For
> example, I want this:
>
> 0000009A -> 9A000000
>
> I thought I could do it this way:
>
> LA     R3,X'9A'
> SLA    R3,24
>
> But for some reason that produces 1A000000 in R3 and I'm not sure why.
> Would someone explain what is happening here?
>
> Thanks,
> Lindy
>
> (ps Gotta love Don's assembler coding contest (-: )
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to