Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions