Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/30/02 17:18
Read: times


 
#23662 - compare values
hi there, I've got a programming problem:

I have a value in R2, is this value => (same or bigger than)R0 the bit P0.3 should be set but if the value =< (same or smaller) then R1 the bit P0.4 should be set. I haven't got an idea how to do this. (R1 is always smaller than R0)

example: R0 = 20
R1 = 10
R2 = 25 P0.3 should be set

R0 = 20
R1 = 10
R2 = 6 P0.4 should be set


Any idea?
greetingz
Jeroen

List of 5 messages in thread
TopicAuthorDate
compare values            01/01/70 00:00      
RE: compare values            01/01/70 00:00      
RE: compare values            01/01/70 00:00      
   RE: compare values            01/01/70 00:00      
RE: compare values            01/01/70 00:00      

Back to Subject List