On the attached picture you will find an example on how to connect 1x 8255 to 8051 microcontroller ..
If you plan to connect 10 (or up to 16) of them to one 8051 you will need to sort out the control of the CS pins and this can be accomplished by introducing 4-to-16 (74HC154) decoder, connecting its inputs (A, B, C and D) to A15, A14, A13 and A12 and its output to CS pin of 8255 ..
So, digest what I have suggested so far and if you have more questions, simply come back and ask ..