Thanx Darren, I've not changed the 16f877.bas file and i had only syntax error before the assembler errors occurred. The 16f877.bas looks the same as yours.i have changed the loop but still the same errors occur. the code is
j var byte 'define variable j as byte type
trisb=0 'set portb direction
mwanzo: 'start of the main program
j=128 'initialize counter
again: 'start of the loop
PORTB=j 'send the counter value to the port
pause 250 'delay for 250ms
if j=1 then mwanzo
j=j>>1 'shift right once
goto again 'repeat once again
end
i wonder why the same errors still persist...i need more help on this
Bookmarks