Application Instructions - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

2.3

Application Instructions

Rotation instructions
■Rotating 16-bit binary data to the right
Instruction symbol
Processing details
ROR
Rotates the 16-bit binary data to the right by (n) bit(s) (not including the carry flag).
RORP
b15
(1) Right rotation by (n) bits
RCR
Rotates the 16-bit binary data to the right by (n) bit(s) (including the carry flag).
RCRP
b15
(1) Right rotation by (n) bits
■Rotating 16-bit binary data to the left
Instruction symbol
Processing details
ROL
Rotates the 16-bit binary data to the left by (n) bit(s) (not including the carry flag).
ROLP
(SM700)
(1) Left rotation by (n) bits
RCL
Rotates the 16-bit binary data to the left by (n) bit(s) (including the carry flag).
RCLP
(SM700)
(1) Left rotation by (n) bits
■Rotating 32-bit binary data to the right
Instruction symbol
Processing details
DROR
Rotates the 32-bit binary data to the right by (n) bit(s) (not including the carry flag).
DRORP
b31
(1) Right rotation by (n) bits
DRCR
Rotates the 32-bit binary data to the right by (n) bit(s) (including the carry flag).
DRCRP
b31
(1) Right rotation by (n) bits
(SM700)
(d)
b0
(1)
(d)
b0
(SM700)
(1)
b15
(d)
b0
(1)
b15
(d)
b0
(1)
(d)+1
(d)
∙∙∙
b16 b15
∙∙∙
b0
(SM700)
(1)
(d)+1
(d)
(SM700)
∙∙∙
b16 b15
∙∙∙
b0
(1)
Reference
Page 527 ROR(P),
RCR(P)
Reference
Page 530 ROL(P),
RCL(P)
Reference
Page 533 DROR(P),
DRCR(P)
2 CPU MODULE INSTRUCTIONS
2.3 Application Instructions
2
91

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents