Unfortunately, those rotate instructions are not implemented on my z9BC.
Looks like I need to do exactly what I want is RISBHG: RISBHG
R0,R13,0,31,32 . If I am reading the book correctly (and it is complicated
to me!), this rotates the contents of R13 32 bits (swaps high & low word
values), then inserts the high word of the result into the high word of R0.

On Thu, Jun 27, 2013 at 8:44 AM, Steve Smith <[email protected]> wrote:

> Your problem is documented in the example on page A-30:
>
> ROTATE THEN OR SELECTED BITS
> The following example illustrates the use of ROTATE THEN OR SELECTED BITS
> to rotate and combine selected bits of general registers 6 and 8.
> LG 6,=X'004C487040CF4600'
> LG 8,=X'C07FAF37FC968280'
> ROSBG 6,8,8,54,32
>
> On completion, condition code 1 is set, and general register 6 is as
> follows:
> GR6: 00DECAF0C0FFEE00
> Note that only bits 8-54 of the registers are ORed; bits 0-7 and 55-63 of
> general register 6 are not modified.
>
> Correcting this to add caffeine is left as an exercise for anyone who cares
> to.
>
> I'm continually amazed at the instructions the architecture has gotten vs.
> ones it hasn't.
>
> On Thu, Jun 27, 2013 at 8:53 AM, John McKown
> <[email protected]>wrote:
>
> > Missed that. Too early (local time) to be reading tech documents.
> "Waiter!
> > More caffeine!!" Hum, I wonder if that makes me a drug addict?
> >
> > --
> sas
>



--
This is a test of the Emergency Broadcast System. If this had been an
actual emergency, do you really think we'd stick around to tell you?

Maranatha! <><
John McKown

Reply via email to