d@nny
Full Member level 5
![Full Member level 5](/styles/images/ranks/flevel2.gif)
hello!
i am in a big trouble. i want to compare two registers in pic1684
for example
i creat register J and put decimal 15 in it
now i put 15 in working register
now i want to compare it with J
both reigster have the same value so go to location 0
now i put in w register 14 or 16
now the w and j are not same so go to location 2
how i can do this? is this possible
the 16 is bigger than J but the 14 is smaller than J
thanking you in anticipation
---------- Post added at 09:27 ---------- Previous post was at 09:26 ----------
i want it in assembly
i am in a big trouble. i want to compare two registers in pic1684
for example
i creat register J and put decimal 15 in it
now i put 15 in working register
now i want to compare it with J
both reigster have the same value so go to location 0
now i put in w register 14 or 16
now the w and j are not same so go to location 2
how i can do this? is this possible
the 16 is bigger than J but the 14 is smaller than J
thanking you in anticipation
---------- Post added at 09:27 ---------- Previous post was at 09:26 ----------
i want it in assembly