yes it is exam to test my ability to write code. And Im using specialized hardware and it is MIKROELEKTRONIKA -DEVELOPMENT TOOLS WITH 8051 MICROCONTROLLER, You can log on website :[http://www.mikroe.com/en/tools/easy8051a/[U]] there you can see more details ..
BUT I NEED A SOURCE CODE WITH A SPECIFICATION LIKE THAT!