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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/13/07 18:29
Modified:
  05/13/07 18:30

Read: times


 
#139188 - don\'t work !
Responding to: ???'s previous message
Robert Revens said:

mov a, temp1lo
xrl a, temp2lo
xrl a, temp1hi
xrl a, temp2hi
jnz proceed


Sorry, but it don't work.

E.g. try this: temp1 = 0x1234, temp2 = 0x3412

There are many other combinations, which are false declared as equal.

To let it work, you must write:

mov a, temp1lo
xrl a, temp2lo
jnz proceed
xrl a, temp1hi
xrl a, temp2hi
jnz proceed


Peter




List of 9 messages in thread
TopicAuthorDate
compare two 16 bit values            01/01/70 00:00      
   redundant move            01/01/70 00:00      
      makes sense            01/01/70 00:00      
      How about...            01/01/70 00:00      
         don\'t work !            01/01/70 00:00      
            Oops.            01/01/70 00:00      
            mov?            01/01/70 00:00      
               I don't think so...            01/01/70 00:00      
                  yes, I've fallen in that trap:)            01/01/70 00:00      

Back to Subject List