Lindy,

Try SLL instead of SLA...

Tom

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Lindy Mayfield
Sent: Friday, December 28, 2007 7:53 AM
To: [email protected]
Subject: Shifting nibbles to the end of a register

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

Reply via email to