Question: Write a hexadecimal machine language program that will add and subtract the following numbers: 45(10) + 45(16) - 13(10) - 13(16) + b(16) + (-5)(10).

Write a hexadecimal machine language program that will add and subtract the following numbers: 45(10) + 45(16) - 13(10) - 13(16) + b(16) + (-5)(10). That is 45 in base 10 plus 45 in base 16 minus 13 in base 10 minus 13 in base 16 plus b in base 16 plus negative 5 in base 10. Save each of the instructions in memory and after the instructions save each of the values in memory, including the results. Display the results in hexadecimal and decimal. Run your program and display the memory cells to make sure everything works.

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!