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