Professional Documents
Culture Documents
Daffodil International University Department of Electrical & Electronic Engineering Faculty of Engineering Quiz Examination, Semester: Fall 2014
Daffodil International University Department of Electrical & Electronic Engineering Faculty of Engineering Quiz Examination, Semester: Fall 2014
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.
6.
Set the sign bit & the least significant bit (LSB) of BX. Write the assembly code.
7.
8.
Invert the LSB of AL while other bits unchanged. Write the assembly code.