Line tracking robot

Hello! I am a novice of robotics and electronics. Could someone help with writing the programming code of line tracking robot using a microcontroller 8051. Thanks.

Maybe try an 8051 forum?