Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Daffodil International University

Department of Electrical & Electronic Engineering


Faculty of Engineering
Quiz Examination, Semester: Fall 2014
Name:
ID:
1.

Find out the value stored in DX and ZF, SF, OF, CF, PF for following code:
MOV BX, 0BADAH
MOV CL,3
RCR BX,CL

2.

The following assembly codes are either correct or wrong. If correct, then write
T at the left side and if wrong, then write F at the left side and write the correct
form at the right side.
XCHG BX,CL
NEG AL
ADD AX,CH
SUB AH,CH
MOV AL, ABCDH
MOV CX, 1141B
OR CX, ABCD
XOR CL, AL
OR AH, BL
ADD AH, BX

Set-B

3.

Find out the value stored in AX and ZF, SF, OF, CF, PF for following code:
MOV AX, 0A234H
ADD AX, AX
JNC EXIT
ADD AX, 1111H
HLT
EXIT:
ADD AX, 0FA23H
HLT

4.

Use SRL to count the number of 1 bits in BL. Put the answer in DX. Write down
the assembly code.

5.

MOV AX,-700. Find the result stored value in AX.

6.

Set the sign bit & the least significant bit (LSB) of BX. Write the assembly code.

7.

If x is less than 500, the value of BX is 1 and otherwise the value of DX is 2.


Write down the assembly code.

8.

Invert the LSB of AL while other bits unchanged. Write the assembly code.

You might also like