guys..
I want to make logic operation in Uc....but I stuck..
this the algorithm..:
I have 2 register...R0 and R1....and then..I want to compare them...
if R0 is bigger than R1 then decrement R0
if R0 is lower than R1 then increase R0...
I want to write in assembly language...
this is my program:
MAIN:
MOV A, R0
CJNE A,R1,CHECK
MOV P0,0FFH
MOV P2,0FFH
CHECK:
...................
...................
In the label check..I don't know how we can find that R1 is bigger or lower than R0..
can somebody help...
thanks..