Did you miss my post?hi , i tried it with the inc file , still the same result :-(
even inside the inc file it is still an equ .
like
PORTA EQU H'0005'
PORTB EQU H'0006'
????
You didn't post the code, merely a screen shot - post the full ASM file.Did you miss my post?
Mike.
You can see in the screen shot that he has movlw instead of movfw.You didn't post the code, merely a screen shot - post the full ASM file.
align movlw PORTB [COLOR="Red"]<<--- change this[/COLOR]
movwf cpostn
btfsc cpostn ,pos
goto stay ; its the right position
btfsc cpostn,lft ; check the for left turn
goto mvlft ; sub-routine to move left
btfsc cpostn ,rht
goto mvrht
btfsc cpostn ,nsn
goto park
goto align
Read what the commands do - MOVLW is MOVe Literal to W - this moves the fixed number following it into the W register. In the case of PORTB, as that has the value 6, it will move 6 to W, and nothing but 6.but left me confiused , why have "movlw" woked else where .
and not here ????