Thursday 17 November 2011

CS401 Assignment No. 02 Idea Solution Fall 2011


Question No. 1: 5 Marks

Write and execute the following Assembly language program on your system and tell what will be the value of BX register at the end of this program?

[org 0x0100]
Mov bx, 0x
8765
Ror bx,8
mov ax, 0x4c00
int 0x21
ANS: 
put ur roll number last four digits in place of (8765) when you will execute this program value two digits will reverse in BX register 
BX=6587 for example if u write 1234 BX will 3412

No comments:

Post a Comment