Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

VI.

Viva Questions

1. What instructions to use if you want to add two numbers and the result will produce a
carry?
 use the ADD instruction to perform addition. If the result of adding two
numbers exceeds the maximum value representable by the data type, a carry
flag (CF) will be set.

2. What instruction to use if you will subtract two numbers and the result produced
borrow?
 using the SUB instruction. If the subtraction operation results in a borrow (i.e.,
if the second operand is greater than the first operand), the carry flag (CF) will
be set.
3. Write a program that will store the value 1234 to BX and 3456 to AX and perform
multiplication. In what register/s can you find the answer to this operation?

4. Write a program that will store the value 05 to BL and 08 to AL and perform division.
In what register/s can you find the answer (quotient and remainder) to this operation?

You might also like