janosandi
Full Member level 4
Hello guys
i have a small problem here
can i use
IF/ENDIF With mplab ?
i've tried this but it gave me an error
i've set EXTRA variable at the start of the program
EXTRA equ 42h
While 42h is a general purpose register
then on a condition i've set value 1 to EXTRA
movlw 01h
movwf EXTRA
Now i have the value 1 in my variable
i want to chaek this
i've used this
if EXTRA = 1
Go on here
endif
but it didnt work the compiler generated an error on (=)
ive tried to replace it with equ but it didnt work too
anybody know how to check this plz ?
ur help will be appriciated
i have a small problem here
can i use
IF/ENDIF With mplab ?
i've tried this but it gave me an error
i've set EXTRA variable at the start of the program
EXTRA equ 42h
While 42h is a general purpose register
then on a condition i've set value 1 to EXTRA
movlw 01h
movwf EXTRA
Now i have the value 1 in my variable
i want to chaek this
i've used this
if EXTRA = 1
Go on here
endif
but it didnt work the compiler generated an error on (=)
ive tried to replace it with equ but it didnt work too
anybody know how to check this plz ?
ur help will be appriciated