# Please help me((Assembly programming))

**URL:** <https://forum.kirupa.com/t/please-help-me-assembly-programming/236292>\
**Category:** Uncategorized\
**Created:** [August 19, 2007, 4:03pm UTC](https://forum.kirupa.com/t/please-help-me-assembly-programming/236292 "2007-08-19T16:03:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mardahiw](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mardahiw](https://forum.kirupa.com/u/mardahiw)\
**Post date:** [August 19, 2007, 4:03pm UTC](https://forum.kirupa.com/t/please-help-me-assembly-programming/236292/1 "2007-08-19T16:03:26Z")

</div>

[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]
