how to rotate or left/right shift the data on port0 of 8051
Look at the 'Blinky.c' example. It shifts P1 both left and right.