Digital Electronics ARM7 Microprocessor?

  • Thread starter Thread starter kaushik
  • Start date Start date
K

kaushik

Guest
Hello,
Below are some questions which appeared in the mock of Microprocessor Test and it's dealing with ARM7 Microprocessor. It would be great if you could please provide me with the answers asap.

1. Initially the registers hold the following values:

r0:=0x12345678
r1:=0x87654321
r2:=0x9ABCDEF0
r3:=0x0FEDCBA9
r4:=0xDEADBEEF
r5:=0xBADCAFE5
r6:=0x02468ACE
r7:=0xECA86420
r8:=0x13579BDF
r9:=0xFDB97531
r10:=0xAAAAFFFF
r11:=0x20202020
r12:=0x00008085
r13:=0x00004004
r14:=0x00001066
r15:=0x00002004

Then an instruction with the following mnemonic is executed: ADD r0, r1, r12

What 32 bit value (in hexadecimal) is held in register r0 after this instruction is executed?

2. Initially the registers hold the following values:

r0:=0x12345678
r1:=0x87654321
r2:=0x9ABCDEF0
r3:=0x0FEDCBA9
r4:=0xDEADBEEF
r5:=0xBADCAFE5
r6:=0x02468ACE
r7:=0xECA86420
r8:=0x13579BDF
r9:=0xFDB97531
r10:=0xAAAAFFFF
r11:=0x20202020
r12:=0x00008085
r13:=0x00004004
r14:=0x00001066
r15:=0x00002004

Then an instruction with the following mnemonic is executed: ADD r0, r6, r12

What 32 bit value (in hexadecimal) is held in register r0 after this instruction is executed?

3. Initially the registers hold the following values:

r0:=0x12345678
r1:=0x87654321
r2:=0x9ABCDEF0
r3:=0x0FEDCBA9
r4:=0xDEADBEEF
r5:=0xBADCAFE5
r6:=0x02468ACE
r7:=0xECA86420
r8:=0x13579BDF
r9:=0xFDB97531
r10:=0xAAAAFFFF
r11:=0x20202020
r12:=0x00008085
r13:=0x00004004
r14:=0x00001066
r15:=0x00002004

Then an instruction with the following mnemonic is executed: SUB r0, r4, r11

What 32 bit value (in hexadecimal) is held in register r0 after this instruction is executed?

4. Initially the registers hold the following values:

r1:=0x00020001
r2:=0x00002001
r3:=0x00010002
r4:=0x00005D68
r5:=0x00007D58

Then an instruction with the following mnemonic is executed: MUL r0, r2, r4

What 32 bit value (in hexadecimal) is held in register r0 after this instruction is executed?

5. Initially the registers hold the following values:

r1:=0x00020001
r2:=0x00002001
r3:=0x00010002
r4:=0x00005D68
r5:=0x00007D58

Then an instruction with the following mnemonic is executed: MLA r0, r1, r2, r4

What 32 bit value (in hexadecimal) is held in register r0 after this instruction is executed?

6. Initially the registers hold the following values:

r0:=0x12345678
r1:=0x87654321
r2:=0x9ABCDEF0
r3:=0x0FEDCBA9
r4:=0xDEADBEEF
r5:=0xBADCAFE5
r6:=0x02468ACE
r7:=0xECA86420
r8:=0x13579BDF
r9:=0xFDB97531
r10:=0xAAAAFFFF
r11:=0x20202020
r12:=0x00008085
r13:=0x00004004
r14:=0x00001066
r15:=0x00002004

Then an instruction with the following mnemonic is executed: AND r0, r1, r8

What 32 bit value (in hexadecimal) is held in register r0 after this instruction is executed?

7. Initially the registers hold the following values:

r0:=0x12345678
r1:=0x87654321
r2:=0x9ABCDEF0
r3:=0x0FEDCBA9
r4:=0xDEADBEEF
r5:=0xBADCAFE5
r6:=0x02468ACE
r7:=0xECA86420
r8:=0x13579BDF
r9:=0xFDB97531
r10:=0xAAAAFFFF
r11:=0x20202020
r12:=0x00008085
r13:=0x00004004
r14:=0x00001066
r15:=0x00002004


Then an instruction with the following mnemonic is executed: ORR r0, r1, r5

What 32 bit value (in hexadecimal) is held in register r0 after this instruction is executed?

8. Initially the registers hold the following values:

r1:=0xFF00F0C3
r2:=0xF0F0CCA5
r3:=0x0F0F335A
r4:=0x00FF0F3C
r5:=0xF00FA50F

Then an instruction with the following mnemonic is executed: EOR r0, r1, r2

What 32 bit value (in hexadecimal) is held in register r0 after this instruction is executed?

9. Initially the registers hold the following values:

r1:=0xFF00F0C3
r2:=0xF0F0CCA5
r3:=0x0F0F335A
r4:=0x00FF0F3C
r5:=0xF00FA50F

Then an instruction with the following mnemonic is executed: BIC r0, r3, r4

What 32 bit value (in hexadecimal) is held in register r0 after this instruction is executed?

10. Which of the following instructions will always set the value in register r0 to 0x00000000 no matter what values are held in the other registers?

ADD r0, r1, r1
AND r0, r2, #0x00
BIC r0, r3, r3
EOR r0, r4, r4
MOV r0, r5
MOV r0, #0x00
ORR r0, r6, #0x00
RSB r0, r7, r7
SUB r0, r8, r9
SUB r0, r10, r10

Thanks,
 
Back
Top