Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to compare 2 digits in pic16 assembly

Status
Not open for further replies.

Noman Yousaf

Full Member level 4
Joined
Nov 19, 2003
Messages
210
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Location
Lahore Pakistan
Activity points
1,774
hi
i want to compare 2 digits and check lesser or greater numbers from 2 digits in pic16xx in assembly language. need help
 

betwixt

Super Moderator
Staff member
Joined
Jul 4, 2009
Messages
15,200
Helped
4,955
Reputation
9,932
Reaction score
4,779
Trophy points
1,393
Location
Aberdyfi, West Wales, UK
Activity points
129,097
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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top