Need help !! If commands in asm file

Status
Not open for further replies.

rukshankb

New Member
Hi to all
I'm a newbie to pic programming. So i need to learn "How i make if else command in assembly language?"
I know the btfss and btfsc commands...
But i need to do like this?

Eg:- I use a temperature reader....
If temp> 100 = bulb1 is on
else 100>temp>30 = bulb2 is on
otherwise = bulb3 is on
(Those values are in pic registry)
The problem is how can i compare the value? I can get the binary or hex value of the temperature. But i need to know is "How compare values (< or >) in pic programming.(I use MPLAB)"

Regards
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…