Question: Question 1 ( 2 0 % ) - Write an 8 0 8 6 assembly program that defines two signed numbers ( bytesize 8 bits

Question 1(20%)- Write an 8086 assembly program that defines two signed numbers (bytesize 8 bits) called a and b. The program should compute the sum of the two numbers, thesubtraction of the two numbers (a-b), the multiplication of the two numbers, and the divisionof the first number by the second number (a/b). You need to store the results of the addition,subtraction, multiplication, and division as variables in the data segment. Also, you need toensure that the results are correct.Test your program using the following values of a and b to make sure that it works correctly:
a [1,-128,127,127,-128,7,0]
b [1,-128,127,-128,5,127,127]
notes: avoid overflow problems
Question 1(20%)- Write an 8086 assembly program that defines two signed numbers (byte size -8 bits) called a and b. The program should compute the sum of the two numbers, the subtraction of the two numbers (a-b, the multiplication of the two numbers, and the division of the first number by the second number (ab). You need to store the results of the addition, subtraction, multiplication, and division as variables in the data segment. Also, you need to ensure that the results are correct.
Test your program using the following values of a and b to make sure that it works correctly:
\table[[a,1,-128,127,127,-128,7,0],[b,1,-128,127,-128,5,127,127]]
Question 1 ( 2 0 % ) - Write an 8 0 8 6 assembly

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!