I resolved the problem but......
Yes i change the codes and now i can write to eeprom.The new problem is counting can't go more than 255 whats the problem?
DEFINE LCD_DREG PORTB
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTB
DEFINE LCD_RSBIT 0
DEFINE LCD_EREG PORTB
DEFINE LCD_EBIT 3
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2
DEFINE LCD_COMMANDUS 2000
DEFINE LCD_DATAUS 50
sayac var word
b1 var byte
sayac =0
lcd_goster:
read 5,sayac
lcdout $Fe,1
Lcdout "sayac"
LCDOut $Fe,$C0
lcdout "total=",#sayac
loop:
button porta.4 ,0,0,0,b1,1,ok
goto loop:
ok:
data @5,0
read 5,sayac
sayac=sayac+1
write 5,sayac
goto lcd_goster
end