Professional Documents
Culture Documents
Q1. Find out the final value of AL and BL registers after executing the following assembly
programs?
MOV BL, 1
Rep:
MUL BL, 2
INC AL
CMP AL, 5
JNZ Rep
END
Q2. Find out the final value of AL and BL registers after executing the following assembly
programs?
MOV BL, 9
Rep:
DIV BL, 1
INC AL
CMP AL, 5
JNZ Rep
END
Q3. Write a sequence of instructions to do the following using the LOOP instruction.
Put the sum 1 + 3 + 5 + 7 + ...... + 15 in AL and print the final value of AL.