Question: Part 2 of 4 Write a simple program to perform: Z = A + B - ( C D ) . The instructions you may

Part 2 of 4
Write a simple program to perform: Z=A+B-(CD). The instructions you may use are MOV, ADD, SUB, and MUL.
First, you need to move the values of A, B, C, and D into registers r1, r2, r3, and r4, respectively.
The result (i.e., Z) will be put into r0.
Use the Keil simulator to write, assemble, and run the above program.
What is the value of r0 in 8 hexadecimal digits after running the program?
Write each hexadecimal digit in a box, i.e., do not write more than one digit in each box. you must fill ALL boxes, even if its value is zero.
When the values of A,B,C, and D are 3,4,9, and 9, respectively, the value of r0 in 8 hexadecimal digits will be 0x
 Part 2 of 4 Write a simple program to perform: Z=A+B-(CD).

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!