Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume START is at the location Ox04000000, RI - Ox(1000 FFFF,R2 - 0x0000 0000, R7 - 0xFFFF1234, NZVC-DUO. START AREA Myprogram, CODE, READWRITE ITTE NE

image text in transcribed

Assume START is at the location Ox04000000, RI - Ox(1000 FFFF,R2 - 0x0000 0000, R7 - 0xFFFF1234, NZVC-DUO. START AREA Myprogram, CODE, READWRITE ITTE NE Instruction 1 MOVNE R7,0xFF Instruction 2 ASRNE R2,R1,03 Instruction 3 BEQ START Instruction 4 MOVS R2,#OxFF Instructions CENZ R2 FINISH Instruction 6 B STOP Instruction 7 END STOP FINISH a) What is the machine code for the instruction 1? [3 points) b) Because the initial Z flag value is 0, the instruction 2 will be executed. What is the machine code for the instruction 2? 12 points What is the value in R7 after the instruction 2 is executed? [1 point c) For the Instruction 4, it is inside the IT block. 14 points D) What is the value in R15 (program counter) while the machine executes the instruction 4?|1 paint ii) What is the destination address of the BEQ instruction? Il point ii) Using the following encosting format to calculate the machine code for the instruction 4. What is the immll in binary format? |1 point 15 14 13 12 11 10 9 8 6 2 0 What is the machine code in hexadecimal format? [1 point d) What is the machine code of the instruction 6? 6 points e) Fill in the following table based on the provided 7 instructions. 18 points Memory Even Odd Location Address Address 0x04000000 OXFE OxE7 0x0400000A 0x04000008 0x04000006 0x04000004 OxCA Ox10 Ox04000002 0x04000000 What will be the values of NZCV, RI and R2 after the instruction 3 is executed? (4 points g) What will be the final value of NZCV and R2 at the end of the program? 12 points Assume START is at the location Ox04000000, RI - Ox(1000 FFFF,R2 - 0x0000 0000, R7 - 0xFFFF1234, NZVC-DUO. START AREA Myprogram, CODE, READWRITE ITTE NE Instruction 1 MOVNE R7,0xFF Instruction 2 ASRNE R2,R1,03 Instruction 3 BEQ START Instruction 4 MOVS R2,#OxFF Instructions CENZ R2 FINISH Instruction 6 B STOP Instruction 7 END STOP FINISH a) What is the machine code for the instruction 1? [3 points) b) Because the initial Z flag value is 0, the instruction 2 will be executed. What is the machine code for the instruction 2? 12 points What is the value in R7 after the instruction 2 is executed? [1 point c) For the Instruction 4, it is inside the IT block. 14 points D) What is the value in R15 (program counter) while the machine executes the instruction 4?|1 paint ii) What is the destination address of the BEQ instruction? Il point ii) Using the following encosting format to calculate the machine code for the instruction 4. What is the immll in binary format? |1 point 15 14 13 12 11 10 9 8 6 2 0 What is the machine code in hexadecimal format? [1 point d) What is the machine code of the instruction 6? 6 points e) Fill in the following table based on the provided 7 instructions. 18 points Memory Even Odd Location Address Address 0x04000000 OXFE OxE7 0x0400000A 0x04000008 0x04000006 0x04000004 OxCA Ox10 Ox04000002 0x04000000 What will be the values of NZCV, RI and R2 after the instruction 3 is executed? (4 points g) What will be the final value of NZCV and R2 at the end of the program? 12 points

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

6. Testing equipment that will be used in instruction.

Answered: 1 week ago