Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1 of 4 - Let's create a straightforward example. MOV r1, #2; Put 2 in register rl MOV r2, #-3; Put -3 in register

image text in transcribed

Part 1 of 4 - Let's create a straightforward example. MOV r1, #2; Put 2 in register rl MOV r2, #-3; Put -3 in register r2 ADD r0,ri, r2;Add rl to r2 and put the result in ro Note how simple the instructions are. Basically, each instruction performs one primitive operation. Note also, the semicolon indicates the start of a comment field that is not part of the executable code. Use the Keil simulator to write, assemble, and run the above program fragment. Do you get the expected answer, especially the negative numbers? Note that you will need to use appropriate assembly directives to make this program fragment a program. Modify your program by initializing the values of r1 and r2 using literals, as shown below. Assemble and run the program. What is the value of ro 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 have to fill ALL boxes, even if its value is zero. Question 1 of 4 4.0 Points When the value of r1 is -4, and the value of r2 is -2, the value of ro in 8 hexadecimal digits will be 0x Mark for Review What's This? Part 1 of 4 - Let's create a straightforward example. MOV r1, #2; Put 2 in register rl MOV r2, #-3; Put -3 in register r2 ADD r0,ri, r2;Add rl to r2 and put the result in ro Note how simple the instructions are. Basically, each instruction performs one primitive operation. Note also, the semicolon indicates the start of a comment field that is not part of the executable code. Use the Keil simulator to write, assemble, and run the above program fragment. Do you get the expected answer, especially the negative numbers? Note that you will need to use appropriate assembly directives to make this program fragment a program. Modify your program by initializing the values of r1 and r2 using literals, as shown below. Assemble and run the program. What is the value of ro 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 have to fill ALL boxes, even if its value is zero. Question 1 of 4 4.0 Points When the value of r1 is -4, and the value of r2 is -2, the value of ro in 8 hexadecimal digits will be 0x Mark for Review What's This

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 25th European Conference Adbis 2021 Tartu Estonia August 24 26 2021 Proceedings Lncs 12843

Authors: Ladjel Bellatreche ,Marlon Dumas ,Panagiotis Karras ,Raimundas Matulevicius

1st Edition

3030824713, 978-3030824716

More Books

Students also viewed these Databases questions

Question

2. Outline the different types of interviews

Answered: 1 week ago

Question

5. If yes, then why?

Answered: 1 week ago

Question

3. What changes should I be making?

Answered: 1 week ago