Question: Using the model CPU demonstrated in class, write code using the simple machine language of Appendix C to solve the following problem: 4 0 +

Using the model CPU demonstrated in class, write code using the simple machine language of Appendix C to solve the following problem: 40+23-8. Store the result in memory location EE. Remember that the model CPU uses hexadecimal values, so you will need to represent the decimal values in the problem in hex. You will then need to convert the number 8 from a positive to a negative number, in your code, and then add the three numbers together.

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!