1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

INR & DCR affect the flag register

Discussion in 'Assembly Language Programming (ALP) Forum' started by swaeded, May 2, 2007.

  1. swaeded

    swaeded New Member

    Joined:
    Apr 26, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    Do the increment and decrement instructions affect the flag register in 8085 instruction set........
     
  2. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    If I recall correctly, they affect all the flags but the carry flag. If you're programming in 8085 asm, you surely must have an instruction set reference.
     
  3. swaeded

    swaeded New Member

    Joined:
    Apr 26, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    My sir told that DCR affects the flag but INR doesn't affect the flag... is it so...
     
  4. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    You are saying 'flag', but there is a whole set of flags. I recommend you read your materials, and have your sir do the same.
     

Share This Page