A83: Rotation instructions


[Prev][Next][Index][Thread]

A83: Rotation instructions




Here is diagrams of all the shifting/rotation instructions. 
Understanding them should be simple, the instructions simply moves the 
bits in the arrows direction. Bit 0 is the least significant, bit 7 the 
most.

RLC: (Rotate Left Carry)

       ->-->-->-->-->-->-->-
      /                     \
  C<-7<-6<-5<-4<-3<-2<-1<-0<-

RL: (Rotate Left)
  ->-->-->-->-->-->-->-->-
 /                         \
 C<-7<-6<-5<-4<-3<-2<-1<-0<-  

RRC: (Rotate Right Carry)
  -<--<--<--<--<--<--<--
 /                      \
 ->7->6->5->4->3->2->1->0->C

RR: (Rotate Right)
  -<--<--<--<--<--<--<--
 /                      \
 ->7->6->5->4->3->2->1->0->C

SLA: (Shift Left Arithmetic)
 C<-7<-6<-5<-4<-3<-2<-1<-0 (bit 0 gets value 0)

SRA: (Shift Right Arithmetic)
7->6->5->4->3->2->1->0->C (bit 7 stays UNCHANGED)

SRL: (Shift Right Logic)
7->6->5->4->3->2->1->0->C (bit 7 gets value 0)

Hope you can use it.

Anders


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


Follow-Ups: