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
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
-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,
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
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=
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:
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
-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
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
9 matches
Mail list logo