homemade24
New Member
still trying to learn assembly
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
BTFSC PORTA,1
GOTO AUNT NANCY'S
GOTO $-2
GOTO UNCLE Bob'S
something like this is how I would do it in Pic Basic Pro
A VAR WORD
For A= 0 TO 20000 '20 SEC.
Pause 1
IF PORTA,1 =1 Then
goto aunt Nancy's
EndIF
Next A
goto uncle Bob's
thanks to all
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
BTFSC PORTA,1
GOTO AUNT NANCY'S
GOTO $-2
GOTO UNCLE Bob'S
something like this is how I would do it in Pic Basic Pro
A VAR WORD
For A= 0 TO 20000 '20 SEC.
Pause 1
IF PORTA,1 =1 Then
goto aunt Nancy's
EndIF
Next A
goto uncle Bob's
thanks to all