how to compare 2 digits in pic16 assembly

Status
Not open for further replies.
Subtract one from the other (subwf or sublw instruction) and check the Z (Zero)and C (Carry) bits in the STATUS register.

Brian.
 

    V

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…