Question: Create an HLA Assembly language program that prompts for a two decimal values from the user and then prints all the values one or two

Create an HLA Assembly language program that prompts for a two decimal values from the user and then prints all the values one or two more than the data entered without any repeated values.
Here are some example program dialogues to guide your efforts:
Feed Me: 6
Feed Me: 10
7
8
11
12
Feed Me: 36
Feed Me: 35
37
38
36
In an effort to help you focus on building an Assembly program, Id like to offer you the following C statements matches the program specifications stated above. If you like, use them as the basis for building your Assembly program.
int x, y;
printf( "Feed Me:");
scanf("%d", &x );
printf( "Feed Me:");
scanf("%d", &y );
// print x+1 and x+2 and y+1 and y+2 as long as there are all unique values...
int answer1= x +1;
int answer2= x +2;
int answer3= y +1;
int answer4= y +2;
// always print answer1 and answer2
printf("%d
", answer1);
printf("%d
", answer2);
// only print answer3 and answer4 if they haven't been printed yet
if (answer3!= answer1 && answer3!= answer2)
{
printf("%d
", answer3);
}
if (answer4!= answer1 && answer4!= answer2)
{
printf("%d
", answer4);
}

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 Databases Questions!