P. 1
OS390 Assemble Programming

OS390 Assemble Programming

|Views: 5,014|Likes:
Published by Sreenivas Rao

More info:

Published by: Sreenivas Rao on Apr 30, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/18/2013

pdf

text

original

The Shift Left Single (Algebraic) (SLA) instruction
is shown in the example.

SLA, an RS format instruction, shifts numeric bits
of the signed first operand to the left. The rightmost
6 bits of the effective address of the second
operand, specify the magnitude of the shift. Zero
bits replace the displaced bits on the right.

Example:

SLA R7,5

Unit:Logical and Shift Instructions

Continued…

5

SLA R7

Shift Left Single (SLA):
RS Format –Register and Storage

1st Operand

2nd Operand
Bit Shift

FULLWORD

SLA

Contents of R7
Is Changed

R7

CC Settings –Arithmetic

Shift Left all
but Sign Bit
Vacated 5 bits right of R7
are Filled with zeros

Concepts

Topic:Shifting Instructions

OS/390 Assembler Programming Introduction

©Copyright IBM Corp., 2000, 2004. All rights reserved.

Page 306of 58

Arithmetic Shifting Instructions (cont’d)

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->