0% found this document useful (0 votes)
7 views1 page

Assembly Language Arithmetic Instructions

The document discusses instructions for addition, subtraction, multiplication, and division in assembly language. It provides the ADD, SUB, MUL, and DIV instructions and describes how results and flags are stored in registers like AX, BX, CF.

Uploaded by

Antonette Capara
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Assembly Language Arithmetic Instructions

The document discusses instructions for addition, subtraction, multiplication, and division in assembly language. It provides the ADD, SUB, MUL, and DIV instructions and describes how results and flags are stored in registers like AX, BX, CF.

Uploaded by

Antonette Capara
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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