Arithmetic Shift Right: Asr(061) - Omron CVM1D Operation Manual

Hide thumbs Also See for CVM1D:
Table of Contents

Advertisement

Shift Instructions

5-14-12 ARITHMETIC SHIFT RIGHT: ASR(061)

Ladder Symbol
Variations
j ASR(061)
Description
Flags
Example
0000
00
162
Operand Data Area
(061)
Wd: Word
ASR
Wd
When the execution condition is OFF, ASR(061) is not executed. When the ex-
ecution condition is ON, ASR(061) shifts a 0 into bit 15 of Wd, shifts the bits of Wd
one bit to the right, and shifts the status of bit 00 into CY.
Bit
15
0
1
1 0 0 1 0 1 1 0 0 1 1 0 0 1 0
Content of *DM word is not BCD when set for BCD.
ER (A50003):
CY (A50004):
Receives the status of bit 00.
EQ (A50006):
Content of Wd is 0 after a shift.
N (A50008):
OFF.
When CIO 000000 is ON in the following example, 0 is shifted into bit 15 of
D00010, the status of all bits within D00010 are shifted right one position, and
the status of bit 00 is shifted to CY.
(061)
ASR D00010
MSB
0
1 1 0 0 1 0 1 1 0 0 1 1 0 0 1 0
MSB
0 1 1 0 0 1 0 1 1 0 0 1 1 0 0 1
CIO, G, A, DM, DR, IR
Bit
00
Address Instruction
00000
LD
00001
ASR(061)
Wd: D00010
LSB
LSB
Section 5-14
CY
Operands
000000
D00010
CY
CY
0

Advertisement

Table of Contents
loading

Table of Contents