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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/07/03 01:49
Read: times


 
#44949 - RE: multivariables comparison
Responding to: ???'s previous message
The one idea in assembly will be this:

mov R0, #Var_01
mov R1, #Var_02

mov R3, #6 ; for 6 variables
Loop: clr C
mov A, @R0
subb A, @R1
jz ZeroCase ; jump to Zero Case handler
inc R0
inc R1
djnz R3, Loop
jmp NextCode ; Done checking. Proceed further

Note that you need to have a jmp back to the Loop in the ZeroCase routine. Else your loop will terminate at the first case of Var_01 == Var_02.


Raghu





List of 24 messages in thread
TopicAuthorDate
multivariables comparison            01/01/70 00:00      
   RE: little problem            01/01/70 00:00      
      RE: little problem            01/01/70 00:00      
   RE: multivariables comparison            01/01/70 00:00      
      RE: multivariables comparison            01/01/70 00:00      
         RE: multivariables comparison            01/01/70 00:00      
            RE: multivariables comparison            01/01/70 00:00      
               RE: multivariables comparison            01/01/70 00:00      
            RE: multivariables comparison            01/01/70 00:00      
   RE: multivariables comparison            01/01/70 00:00      
      RE: multivariables comparison - Sampah            01/01/70 00:00      
         RE: multivariables comparison - Lee            01/01/70 00:00      
            RE: multivariables comparison - Lee            01/01/70 00:00      
               RE: multivariables comparison - Sampah            01/01/70 00:00      
         RE: multivariables comparison - Sampah            01/01/70 00:00      
      what does SAME mean?            01/01/70 00:00      
         RE: what does SAME mean?            01/01/70 00:00      
            RE: what does SAME mean?            01/01/70 00:00      
               RE: what does SAME mean?            01/01/70 00:00      
               RE: what does SAME mean?            01/01/70 00:00      
      RE: multivariables comparison            01/01/70 00:00      
   RE: multivariables comparison            01/01/70 00:00      
      RE: multivariables comparison            01/01/70 00:00      
   RE: Clear CF before SUBB            01/01/70 00:00      

Back to Subject List