problem

Discussion in 'Assembly Language Programming (ALP) Forum' started by bothie, Nov 24, 2006.

  1. bothie

    bothie New Member

    Joined:
    Nov 14, 2006
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    Harare,Zimbabwe
    can you pliz explain to me the instructions RRC(rotate accumulator right )and the instructions RLC(rotate accumulator left) and their usage especially in multiplication in an 8085 progamming language
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    When you rotate the accumulator its actually a shifting and so shifting is actually results in devide multiiply by 2

    e.g.
    0110 = 6
    Right shift = 0011 = 3 = 6/2
    Left Shift = 1100 = 12 = 6x2

    Thanks
    Shabbir
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice