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
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