| ??? 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 |



