sorry i didn't put out the code...

-------

portb=0
trisb=0

aa var byte
bb var byte

eeprom 2,[0]
aa=4
write 2,aa
read 2,bb

if bb=4 then
portb.0=1
endif

end

----------------------------------

that is my code!!!
using 16f877a did not light portb.0
using 16f84a light...
is there any prob with my code?

tnx...