Professional Documents
Culture Documents
Answer:…………………….
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
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