89c51 port epansion with 8255 keil c

hi friends,

i wanted to increase the port pins with the help of 8255 for 89c51 mcu(atmel)

does any one have the c codes that can work with keil uvision (or c51 compiler).
i simply require a sample program with which if i push a switch on any port pin of 89c51 and i can lit an LED DIODE connected on a single 8255 port pins.

your help can make a great fevour for me.

More questions in this forum