Question: ARM Cortex - M 4 Programming Each bullet point is worth 0 . 1 points unless otherwise noted.The first few questions will use the program

ARM Cortex-M4 Programming
Each bullet point is worth 0.1 points unless otherwise noted.The first few questions will use the program below. Questions #1-7 are in red in the
comments of the code. List the register values after that line executes (for example, #1 is
asking after that Idr r1,[r0] executes, what value will be in register 1?). You're welcome to
paste the code into uVision and step through it to double check your answers.
AREA RESET, CODE
THUMB
ENTRY
Main
ldr r0,= Fourth
ldr r1,[r0],;#1-r1=0x
ldrb 22,[r0],;#2-r2=0x
ldr ro,=output
strb r1,[r0,#2],;#3-r0=0x
ldr r1,= First
ldr r2,[r1,#4],;#4-r2=0x and #5-r1=0x
strb r2,[r0]
ldr r3,[r1],#8,;#6-r3=0x and #7-r1=0x
strb r3,[r0,#3]!
mov r1,#-3
strb r1,[r0, #-2] ;yes, that's a negative two
b.
AREA HW03, DATA
Output space 4
END
 ARM Cortex-M4 Programming Each bullet point is worth 0.1 points unless

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!