|
M166 Datasheet, PDF (103/127 Pages) Siemens Semiconductor Group – C16x Family of Siemens 16-Bit CMOS Single-Chip Microcontrollers | |||
|
◁ |
30Mar98@15:00h
C166 Family Instruction Set
Instruction Description
ROR
Rotate Right
ROR
Syntax
Operation
Data Types
Description
ROR
op1, op2
(count) â (op2)
(C) â 0
(V) â 0
DO WHILE (count) â 0
(V) â (V) ⨠(C)
(C) â (op10)
(op1n) â (op1n+1) [n=0...14]
(op115) â (C)
(count) â (count) - 1
END WHILE
WORD
Rotates the destination word operand op1 right by as many times as spec-
ified by the source operand op2. Bit 0 is rotated into Bit 15 and into the
Carry. Only shift values between 0 and 15 are allowed. When using a
GPR as the count control, only the least significant 4 bits are used.
Condition Flags
E
Z
V
C
N
0
*
S
S
*
Addressing Modes
E Always cleared.
Z Set if result equals zero. Cleared otherwise.
V Set if in any cycle of the rotate operation a â1â is shifted out of the carry
flag. Cleared for a rotate count of zero.
C The carry flag is set according to the last LSB shifted out of op1.
Cleared for a rotate count of zero.
N Set if the most significant bit of the result is set. Cleared otherwise.
Mnemonic
ROR
ROR
Rwn, Rwm
Rwn, #data4
Format
2C nm
3C #n
Bytes
2
2
Semiconductor Group
103
Version 1.2, 12.97
|
▷ |