RobertD
New Member
Hi folks, I need to subtract two registers. They both vary up and down, but I'm only interested when one is up above the other, how do I set up this...?
I'm thinking of something like this:
subwf ADDR,W ;sub ADDR from W put result in W
btf STATUS,DC ; to see if it's negative
btf STATUS,Z ;to see if it's zero
goto next
I'm thinking of something like this:
subwf ADDR,W ;sub ADDR from W put result in W
btf STATUS,DC ; to see if it's negative
btf STATUS,Z ;to see if it's zero
goto next