04-29-2011, 12:40 AM
Please upload the soluation file of this assignment please
[FONT="]Question No. 1:[/FONT][FONT="] 10 Marks[/FONT][FONT="][/FONT]
[FONT="] [/FONT]
[FONT="]Write an Assembly language program as per following instructions and tell what will be the value of CX and BL registers at the End of your program? [/FONT]
[FONT="] [/FONT]
[FONT="]Let say your Roll number is MC7892072[/FONT][FONT="]90[/FONT][FONT="]. So you need to initialize CX with 0, and BX with the least two significant digits of your roll no. i.e. (90 in this case). After this you need to execute the following loop instructions.[/FONT]
[FONT="] [/FONT]
[FONT="]Label1: inc bl [/FONT]
[FONT="] inc cx [/FONT]
[FONT="] cmp bl, 0[/FONT]
[FONT="] jnz Label1 [/FONT]
[FONT="] [/FONT]
[FONT="]Report your values in the BL and CX registers after the execution of the above loop with brief explanation. [/FONT]
[FONT="] [/FONT]
[FONT="] [/FONT]
[FONT="] [/FONT]
[FONT="] [/FONT]
[FONT="]Question No. 2:[/FONT][FONT="] 10 Marks[/FONT][FONT="][/FONT]
[FONT="]Write an Assembly language program as per following instructions and tell what will be the value of BX and CX registers at the End of your program? [/FONT]
[FONT="] [/FONT]
[FONT="]Again, Let say your Roll number is MC78920[/FONT][FONT="]72[/FONT][FONT="]90[/FONT][FONT="]. So you need to initialize BX with [/FONT][FONT="]90 [/FONT][FONT="](least two significant digits of your roll no.), and CX with [/FONT][FONT="]72[/FONT][FONT="] (the next two least significant digits of your roll no.). After this you need to execute the following three XOR instructions.[/FONT]
[FONT="] [/FONT]
[FONT="] xor cx, bx[/FONT]
[FONT="] xor bx, cx[/FONT]
[FONT="] xor cx, bx[/FONT]
[FONT="] [/FONT]
[FONT="]Report your values in the BX and CX registers after the execution of the above three XOR instructions with brief explanation. [/FONT]
[FONT="] [/FONT]
[FONT="]Question No. 1:[/FONT][FONT="] 10 Marks[/FONT][FONT="][/FONT]
[FONT="] [/FONT]
[FONT="]Write an Assembly language program as per following instructions and tell what will be the value of CX and BL registers at the End of your program? [/FONT]
[FONT="] [/FONT]
[FONT="]Let say your Roll number is MC7892072[/FONT][FONT="]90[/FONT][FONT="]. So you need to initialize CX with 0, and BX with the least two significant digits of your roll no. i.e. (90 in this case). After this you need to execute the following loop instructions.[/FONT]
[FONT="] [/FONT]
[FONT="]Label1: inc bl [/FONT]
[FONT="] inc cx [/FONT]
[FONT="] cmp bl, 0[/FONT]
[FONT="] jnz Label1 [/FONT]
[FONT="] [/FONT]
[FONT="]Report your values in the BL and CX registers after the execution of the above loop with brief explanation. [/FONT]
[FONT="] [/FONT]
[FONT="] [/FONT]
[FONT="] [/FONT]
[FONT="] [/FONT]
[FONT="]Question No. 2:[/FONT][FONT="] 10 Marks[/FONT][FONT="][/FONT]
[FONT="]Write an Assembly language program as per following instructions and tell what will be the value of BX and CX registers at the End of your program? [/FONT]
[FONT="] [/FONT]
[FONT="]Again, Let say your Roll number is MC78920[/FONT][FONT="]72[/FONT][FONT="]90[/FONT][FONT="]. So you need to initialize BX with [/FONT][FONT="]90 [/FONT][FONT="](least two significant digits of your roll no.), and CX with [/FONT][FONT="]72[/FONT][FONT="] (the next two least significant digits of your roll no.). After this you need to execute the following three XOR instructions.[/FONT]
[FONT="] [/FONT]
[FONT="] xor cx, bx[/FONT]
[FONT="] xor bx, cx[/FONT]
[FONT="] xor cx, bx[/FONT]
[FONT="] [/FONT]
[FONT="]Report your values in the BX and CX registers after the execution of the above three XOR instructions with brief explanation. [/FONT]
[FONT="] [/FONT]

mileys77: