Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

EL 5 7 4 MICROPROCESSOR SYSTEMS ( ARM ) ASSIGNMENT 1 Unless otherwise stated, the architecture or instruction set of the ARM Cortex M 4

EL 574 MICROPROCESSOR SYSTEMS (ARM)
ASSIGNMENT 1
Unless otherwise stated, the architecture or instruction set of
the ARM Cortex M4 architecture is assumed.
In the code snippets are variables x1x2x3x4 and x5, which
represent missing numbers. Use the values in Table 1(which
correspond to serial numbers in the course registration form) to
replace the variables given in the code.
Table 1 Designation of missing variables
SN
1,800132040,888
2,100023601 OXFFF 884
3,240033801 OXFOF 880
4,360043922OX0OF876
5,320054101 OXF00872
6,100064230OX0F0888
7,640014250 OXFFE 884
8,160024280 OXFEE 880
9,200034400 OXEOE 876
10,160044422OX0OE872
What will be the content of R2 after these instructions?
MOV R2, #x1
MOV R3,2048
ADD R2,R2,R3,LSR??# x2
Assuming that the registers R0,R1,R2,R3 and R4 have
the following hex contents: R0=0x04A,R1=0x3F, and
R2=050B,R3=0580 and R4=030D. In case of each
of the following operations, state the content of each
register involved [assume that each operation is
independent of the other].
I. ORR R3,R3,??#419
II. BIC R0,R3,R4
III. AND R0,R1,R3
IV.RSBR0,R2,??#x.
State the value in R2 after the following sequence of
instructions is executed:
MOV RO, # 04 BO
MOV R1, # x4
BIC R2, R1, R0
Suppose a certain memory location has the addresses
shown in Fig. 1 and the numbers 890,24,580,0,17261,
245 are stored in it.
Fig. 1 A Portion ARM7 Memory with content
After the following sequence of instructions are executed:
MOV R1, # x5
MOV R2, #8192
LDR R0,[R1, R2, LSR#7]!
a) Which of the numbers would be stored in register R0?
Explain.
b) What will be the values in registers R1 and R2 after
these instructions?
State the value in R2 after the following sequence of
instructions is executed:
a. For a 4-bit computer, indicate whether or not the
following operations will set the Carry flag:
i.03+07
ii.11+8
iii. 0A-09
b. For a 4-bit computer, indicate whether or not the
following operations will set the oVerflow flag:
i.03+07
ii.11+8
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

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago