1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

what does this code do?

Discussion in '8051/8951' started by ulot, Aug 11, 2010.

  1. ulot

    ulot New Member

    Joined:
    Jul 21, 2004
    Messages:
    103
    Likes:
    0
    HI, i'm a little confused, what exactly does this code do?
    I know it tests bit zero of the status flag right? what is the implication of that on a system?


    MOV A, STATUS
    JNB ACC.0, NO_PWR
     
  2. Wond3rboy

    Wond3rboy Member

    Joined:
    Jun 25, 2008
    Messages:
    762
    Likes:
    7
    Location:
    Sindh,Pakistan
    Hi, moves the value of the status register in to the accumulator and checks for the Parity bit, if it is low, it transfers execution to the subroutine NO_PWR.
     

Share This Page