Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Could someone help with this review. I am struggling to achieve the right values. 1. (10 pts) On the ARM7TDMI, let the SP register hold

Could someone help with this review. I am struggling to achieve the right values. image text in transcribed
image text in transcribed
1. (10 pts) On the ARM7TDMI, let the SP register hold 0x814C and memory hold the following (all values in hexadecimal) at the start of part (a) and the start of part (b). address contents 8144 12121212 8148 33334444 814C ABABABAB 8150 50005000 8154 67896789 (a) After executing the following instruction POP fr3, r4, what are the contents of r3, r4, and SP? (b) After executing the following instruction: LDMDA SP!, (r3, r4) , what are the contents of r3, r4, and SP? 2. (35 pts) Write an ARM subroutine NO NEGATIVE to replace each negative element in word array blue of signed numbers with 0, while leaving each positive or 0 element unchanged. Let size hold the number of elements in blue. The subroutine receives the addresses or values of the parameters via registers, as shown in the calling sequence from the calling program below. Assume that blue and size are word variables in memory. (The subroutine is not to use variable names for any of these items, as it is to be a general subroutine capable of working on any array of any size.) LDR rl, -blue LDR r2, -size LDR r2, [r2] BL NO NEGATIVE 3. (10 pts) When an ARMTTDMI encounters an exception, the processor performs a specific set of actions. For each of the actions below, explain why the processor performs it. (a) Set CPSR bits according to new exception mode (lower 5 bits changed to proper mode bits) (b) Automatically disable IRQs

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

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions

Question

218 In Figure P217 i2 = 30mA and i4 = 20 mA. Find i1 and i3.

Answered: 1 week ago

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago