Please help me((Assembly programming))

[FONT=Arial][SIZE=3][FONT=Arial]Can any one help me in Designing and write a C language code(assembly) fragment that:[/FONT][/SIZE][/FONT]
[FONT=Arial][FONT=Arial][SIZE=3] [/SIZE][/FONT][/FONT]
[FONT=Arial][FONT=Arial][SIZE=3]i.[/SIZE][/FONT] [/FONT][FONT=Arial][SIZE=3][FONT=Arial]Declares Port A at memory location 0, Port B at location 1, Data Direction Register A at location 2 and Data Direction Register B at location 3.[/FONT][/SIZE][/FONT]
[FONT=Arial][FONT=Arial][SIZE=3]ii.[/SIZE][/FONT] [/FONT][FONT=Arial][SIZE=3][FONT=Arial]Sets all bits of Port A to be for input and all bits of Port B to be for output.[/FONT][/SIZE][/FONT]
[FONT=Arial][FONT=Arial][SIZE=3]iii.[/SIZE][/FONT] [/FONT][FONT=Arial][SIZE=3][FONT=Arial]Reads integer data from Port A, increments the data by four and outputs it through Port B.[/FONT][/SIZE][/FONT]