Hello,
I am coding in MPASM (microchip) for PIC18F65K22.
I have numbers contained in two registers,
One is called ana8, the other is called max_led_temp.
I wish to find out if the value in ana8 is greater than the value in max_led_temp.
Can I do this by subtracting ana8 from max_led_temp and checking if the Carry flag of the status register is set?…eg
yes, that is the way to do it.
There is another possible outcome you might also want to check, that the two values are equal. The Z flag will tell you that.