Question 1 In the ARM chip, register ________ is the stack pointer. Question 2 A
ID: 3729500 • Letter: Q
Question
Question 1
In the ARM chip, register ________ is the stack pointer.
Question 2
Assume that R7 contains the value 20 000 000 hexadecimal. Which instruction would you use to load the 32 bit word addressed by R7 into R1?
Question 3
If register R0 contains 0x0000FFF1, and register R4 contains 0x0000FFF1, and the following instruction sequence executes:
CMP R0, R4
BEQ valueFound
will the branch be taken, or will the code fall-through the branch to the next instruction?
Question 4
Assume that register R6 contains the number 1, and SUBS instruction in the following code fragment is about to execute:
loop
; body of the loop
SUBS R6, #1
BNE loop
will the body of the loop execute one more time.
Question 5;
Assume that R0 contains the hexadecimal value 2000000C. If you want to store the 32-bit value in R5 at the address 2000000C, which instruction would you use?
Question 6;
The branch instruction, BNE someLabel, loads the program counter with the address of someLabel if the zero flag is true (logic-level 1).
Question 7;
Which instruction would you use to load register R4 with 20000008 hexadecimal?
LDR R7, R1Explanation / Answer
Answer:-----
1. In the ARM chip, register ___R13_____ is the stack pointer.
2. LDR R1, [R7]
3. take the branch
4. No
5. STR R5, [R0]
6. True
7. LDR R4, =0x20000008
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.