Shifting nibbles to the end of a register

2007-12-28 Thread Lindy Mayfield
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: 009A - 9A00 I thought I could do it this way: LA R3,X'9A' SLAR3,24

Re: Shifting nibbles to the end of a register

2007-12-28 Thread Tom Harper
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: IBM-MAIN@BAMA.UA.EDU Subject: Shifting nibbles to the end of a register I want to pull the bits

Re: Shifting nibbles to the end of a register

2007-12-28 Thread Chase, John
-Original Message- From: IBM Mainframe Discussion List On Behalf Of Lindy Mayfield 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,

Re: Shifting nibbles to the end of a register

2007-12-28 Thread shai hess
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

Re: Shifting nibbles to the end of a register

2007-12-28 Thread Bill Wilkie
Lindy: You mention moving a nibble but your INTENDED code doesn't do that. You are just moving the 9A from the LO byte to the HO byte. A nibble as I recall is 4 bits of a byte, either the LO or HO 4. To move out a nibble: LA R4,X'9A' SRDL R4,4 SRLR5,28 That will yield: R4=

Re: Shifting nibbles to the end of a register

2007-12-28 Thread Michael Poil
Try SLL. -- Mike Poil Java z/OS Level 3 Service IBM United Kingdom Limited, Hursley Park, Winchester SO21 2JN Internal: 246824 External: +44 (0)1962 816824 Java debugging:

Re: Shifting nibbles to the end of a register

2007-12-28 Thread Jack Kelly
Seems like you're trying to move a byte to the high order. Instead of shifting why not just ICM? Jack Kelly 202-502-2390 (Office) -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL

Re: Shifting nibbles to the end of a register

2007-12-28 Thread McKown, John
-Original Message- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Jack Kelly Sent: Friday, December 28, 2007 10:10 AM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: Shifting nibbles to the end of a register Seems like you're trying to move a byte to the high

Re: Shifting nibbles to the end of a register

2007-12-28 Thread Lindy Mayfield
Thanks to all! Especially pointing out different ways to do it, like this. The first assembler language I learned to any proficiency was for a PIC microcontroller. (RISC and Harvard) It had I believe only 33 instructions which were easy to learn. On the other hand, you really had to think to