Program At89S51 with Arduino SPI library

Thanks PeterVH.

I don't know why my sketch doesn't work ?

The circuit is very easy; I have 4 pins connected to arduino for serial commands, 6Mhz crystal oscillator (The only one that I have for the time being) with 2 22pF caps and Vcc + Gnd.

What do you think, the chip is faulty ?

Thks.