Question

Two Integer Data Operations

Write an ARM Assembly Language (I will not accept Intel Assembly code - if you are not clear on this requirement,

ask!) program to prompt the user to enter two signed integers.

Have your program output to the screen a report to the user the two integers that were entered at the keyboard,

along with the following:

sum of the two integers,

product of the two integers,

logical AND of the two integers,

and the logical OR of the two integers.

You must utilize the scanf function for reading in the user input (have scanf read all three integers in one scanf

function call) and the printf function for outputting the user input and operations on the two user entered values.

Hint: to use scanf with 2 or more variables, check out:

https://github.com/PaulConrad RCC/CSC_11_BASE/blob/master/scanf_demo/scanf_2_values.s

.

as it demonstrates working with two variables.

Sample output of your program (note: user input is in bold - you do not need your user input to be bold, this is just

showing what is user input and what is program output):

Please enter two signed integers: 123 345

You entered 123 and 345 from the keyboard, now some operations on those values!

Sum of 123 and 345 is 468

Product of 123 and 345 is 42435

Logical AND of 123 and 345 is 89

Logical OR of 123 and 345 is 369

Question image 1