Question: Using the machine language described in Appendix C, write a program that does the following tasks with the given memory configuration. Note that you may

Using the machine language described in Appendix C, write a program that does the following tasks with the given memory configuration. Note that you may need multiple instructions for each task. Be sure to indicate any changes that occur in main memory while your program is running. Assume the Program Counter will start at A0.

Please see the picture below for the table

Address Data Address Data Register Data

A0 B0 R0 - Program Counter A0

A1 B1 R1 - OpCode

A2 B2 R3

A3 B3 R4

A4 B4 R5

A5 B5 R6

A6 B6 R7

A7 B7 R8

A8 B8 R9

A9 B9 RA

AA BA

AB BB

AC BC 05

AD BD 07

AE BE

AF BF

a) Add the data in memory locations BC and BD and store the result in memory cell BE.

b) Load the bit mask 11111111 into a register.

c) XOR the data in memory cell BE with the bit mask from step B.

d) Rotate the result of step C three times.

e) Store the result of step D in memory cell BF.

Using the machine language described in Appendix C, write a program thatF) Halt the program.

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!