You are on page 1of 1

ASSIGNMENT (10 Marks)

EMBEDDED SYSTEMS (UEC 605) Summer Semester

Q.1. What will be the output of following program? 1 Mark

LDR R1, = 0x01


LDR R2, = 0x06
LOOP MUL R0, R1, R2
MOV R1, R0
SUB R2, R2, #0x01
CMP R2, #0x01
BNE LOOP
END

Answer:…………………….

Q.2. What will be the output of following program? 1 Mark

LDR R1, #6
LDR R2, #4
LOOP ADD R3, R2, R2
SUBS R1, R1, #0x01
BNE LOOP
END
Answer:……………………

Q.3. What will be the content of R5 and R6 registers and flag registers after executing the following
program? 2 Mark

LDR R1, = 0xFFFFFFFF


LDR R2, = 0xFFFFFFFF
LDR R3, = 0x01100001
LDR R4, = 0x11100001
ADDS R5, R1, R3
ADCS R6, R2, R4
END
Answer: R5=…………………… R6 =…………….....
N =……………., Z=……………….
C = ……………., V=……………….

Q.4. Write a program in ARM assembly language to generate a Fibonacci series. 2 Mark

Q.5. Write a program in ARM assembly language to count the number of two consecutive 1’s in
any 32 bit data stored in memory location. Number of consecutive 1’s should be considered
in non-overlapping or overlapping manner as per our choice. Please mention your choice
clearly before writing the program. 2 Mark

Q.6. What are the benefits of working in Thumb state of ARM processor? Write a small code of
your choice in both ARM and Thumb state. Also give the comparative analysis of both the
codes in terms of code density, speed of program execution and power consumption. 2 Mark

Last date of Submission: 01 Sep 2021 (Before 12 PM)


Link to submit the assignment: https://tinyurl.com/ESSummerAssignment

You might also like