strange behavior on my prog !

oops sorry.

it's atmega8 only 20 pins no 40 pins...
i suppose this is complex but can we add more ram :-? to the avr or do we need to change the microcontroler ?
i'm a bit confuse between the ram, the eeprom and the flash
the flash is to store the prog, the ram to store the vars and the eeprom ?

have you a link to help ? :-[

regards

eric