If I'm thinking right this would loop until PORTA,1 is set
but if I needed it to carry on if PORTA,1 does not set in say 20 sec.
what would be the best way to do it in assembly
Labels need to be one word in assembler e.g. AUNT_NANCY'S, UNCLE_Bob'S.
As for the time maybe something like;
Code:
BTFSC Timer1_done_bit ;has timer 1 timed out (overflowed)?
GOTO UNCLE_Bob'S ;yes it has
BTFSC PORTA,1 ;no it has not
GOTO AUNT_NANCY'S
GOTO $-4
UNCLE_Bob'S:
bcf Timer1_done_bit
Thanks Guy just what the doctor ordered
different people have to learn things different ways
and hate to say it but I'm one of the one that has to do it on a "as need be bases"
because tomorrow when I wake up I will have forgot not only how I did something
BUT WHY I EVEN DID IT
as always thanks