You are on page 1of 2

EEE320

Test
Date: 14 December 2015 (8.15pm-9.15pm)
Name:
Matrix No:
1.

a. Explain 2 advantages of ARM processor compared to CISC processor.


b. State the modes of the ARM7TDMI.
c. What is the standard use of register r14, r13 and r15?
(30%)
2
By using a block diagram, show the differences of Harvard and Von Newman
memory organization.
(20%)
Answer: Please refer to notes
3. a. Indicate whether the following instruction use pre or post indexed addressing
modes:
a. STR R6, [R4, #4]
Answer: Pre Indexed addressing
b. LDR R3, [R12], #6
Answer: Post Indexed Addressing
b. Calculate the effective address of the following instruction if register r3 = 004000
and register r4 = 0020:
LDR r7, [r3], r4
Answer: will load the register R7 with the word at the memory address contained in the
base register R3. It will then calculate the new value of R3 by adding the value of R4 to
the current value of R3.
Beginning R3=004000
After execution: R3=4020
c. What is the final content of all the registers after the execution of the following
instruction:
MOV R1, #10
LOOP
ADD R3, R2,R1, LSL #3
SUBS R1, R1, #1
BNE LOOP
Assume the initial value of R3 and R2 are 0.
Answer:
R1=10

shift r1
10

r2
80

(50%)

r3
0

80

9
8
7
6
5
4
3
2
1
0

72
64
56
48
40
32
24
16
8
8

0
0
0
0
0
0
0
0
0
0

72
64
56
48
40
32
24
16
8
8

You might also like