Professional Documents
Culture Documents
B. STR R6,[R1,#4]!STR
LDR R9,[R0,#4]
R7,[R1,#4]!
ADD R10,R8,R9
LDR R8,[R1],#4
LDR R9,[R1],#4
SUB R10,R8,R9
3. Which of the following ARM instructions would cause the assembler to issue a syntax
error message? Why?
A. ADD R2,R2,R2
B. SUB R0,R1,[R2,#4]
C. MOV R0,#2_1010101
D. MOV R0,#257
E. ADD R0,R1,R11,LSL #8
4. What is contents of R5 after execution of following instruction, assume R2 contains
0x34560701 and R3 contains 0x56745670
A. ADD R5, R2, R3
B. AND R5, R3, R2
C. XOR R5, R2,R3
D. ADD R5, R3, #0x45
5. What is contents of R1? Assume R2= 0x00001234
A. MOV R1, R2, LSL #4
B. MOV R1, R2, LSR #4
7. Write an ARM assembly program to perform the function of Absolute value. Register
R0 will contain the initial value and R1 will contain the Absolute value.
8. Write an ARM assembly language program to count how many vowels are in the
following string.
"Embedded system design is an interesting subject!",0