Assignment - 9 Solution
Assignment - 9 Solution
QUESTION 1:
ARM9TDMI is a
Correct Answer: b
Detailed Solution:
option b is correct
QUESTION 2:
Correct Answer: D
Detailed Solution:
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
ARM10 core is a 6-stage Pipeline, which has 64 bit instruction bus and data bus
Option D is correct
QUESTION 3:
When a procedure call is made, the return address is automatically placed into
Correct Answer: B
Detailed Solution:
R14 is called as link register. When a procedure call is made, the return address is automatically
placed into this register. A return from the procedure can be implemented by copying R14 to
R15
Option B is correct
QUESTION 4:
When the processor encounters a software interrupt instruction, ARM processor enters in
A. Fast interrupt processing mode (FIQ)
B. Normal interrupt processing mode (IRQ)
C. Supervisor mode (SVC)
D. Abort mode
Correct Answer: C
Detailed Solution:
ARM enters supervisor mode when it experience a RESET or software interrupt instruction
Option C is correct
QUESTION 5:
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
Which of the following ARM instructions is the same as multiplying the contents of r0 by nine
and storing the product in r7?
A. ADD r0, r7, r7, LSL #3
B. ADD r0, r7, r0, LSL #3
C. ADD r7, r7, r0, LSL #3
D. ADD r7, r0, r0, LSL #3
Correct Answer: D
Detailed Solution:
ADD r7, r0, r0, LSL #3 ;
r0,LSL #3 means logical left shift r0 by three positions, which is equivalent to r0*8.
r7 = r0+r0*8 , this instruction multiplies the content of r0 by 9 and stores the result in r7
QUESTION 6:
Which register is not allowed in ARM multiplication instructions?
A. R0
B. R1
C. R14
D. R15
Correct Answer: D
Detailed Solution:
QUESTION 7:
In which of the following modes of an ARM processor, The CPSR cannot be modified?
Correct Answer: C
Detailed Solution:
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
QUESTION 8:
Which of the following operations is performed by the below ARM instruction?
EQADD R0, R1, R2;
A. Performs R0 = R1+R2 if zero flag is set
B. Performs R0 = R1+R2 if zero flag is reset
C. Performs R0 = R1+R2 if carry flag is set
D. Performs R0 = R1+R2 if parity flag is set
Correct Answer: A
Detailed Solution:
QUESTION 9:
A little-endian processor stores _______________________.
Correct Answer: B
Detailed Solution:
In a little-endian processor, the least significant byte of a word is stored in the memory location
with the lowest address, while the most significant byte is stored in the memory location with the
highest address.
QUESTION 10:
Which of the following registers acts as a program counter (PC)?
A. R0
B. R1
C. R14
D. R15
Correct Answer: D
Detailed Solution:
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
QUESTION 11:
Which of the following statements is TRUE?
A. ARM instructions are 16 bit wide
B. ARM instructions are 32 bit wide
C. THUMB instructions are 8 bit wide
D. THUMB instructions are 64 bit wide
Correct Answer: B
Detailed Solution:
ARM instructions are 32 bits wide. Thumb instructions are 16 or 32-bits wide.
QUESTION 12:
Which ARM operating mode is used for handling software interrupts (SWIs)?
A. SVC
B. FIQ
C. IRQ
D. Abort
Correct Answer: A
Detailed Solution:
Detailed Solution:
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
ARM enters undefined mode when fetched instruction is not an ARM instruction or a
coprocessor instruction
QUESTION 14:
What is the purpose of the N flag in the CPSR register?
A. Indicates if the result of the previous operation was negative
B. Indicates if the processor is in privileged mode
C. Indicates if the result of the previous operation resulted in a carry
D. Indicates if the result of the previous operation result is zero
Correct Answer: A
Detailed Solution:
QUESTION 15:
What is the purpose of the T flag in the CPSR register?
Detailed Solution:
Flag T in CPSR register specifies the ARM processor operates in THUMB instruction set
***********END*******