How to program 89C52
Atmel AT89C52 can be programmed over SPI using Arduino. Here's an Arduino project to do that:

https://www.hackster.io/PatelDarshil/programming-atmel-at89-series-via-arduino-cf6201