Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(Please help me answer all of the questions below) 3. Which of the following are advantage of programming in assembly language? (Select all that apply.)

(Please help me answer all of the questions below)

3. Which of the following are advantage of programming in assembly language? (Select all that apply.)

easy to learn compared to high-level languages
compact programs
highly portable
fastest code
direct hardware access

4. During which phase the instruction cycle is an instruction retrieved from memory?

Fetch
Decode
Execute
Re-write

None of the above.

5. Inside the CPU, which register keeps track of where the next instruction fetch comes from?

R0
R1
IR
PC

None of the above.

6. In the ARM chip, register ________ is the stack pointer.

7. Each register in the ARM Cortex CPU programmer's model is ________ bits wide

8. Which instruction would you use to load register R4 with 20000008 hexadecimal?

LDR R4, #20000008
MOV R4, #0x20000008
LDR R4, =0x20000008
None of the above.

9. Assume that R8 contains the value 20000000 hexadecimal. Which instruction would you use to load the 32 bit word addressed by R8 + 4 into R1?

LDR R8, R1
LDR R1, [R8, #4]
LDR [R8], R1
MOV R1, R8
None of the above.

10. Assume that R0 contains the hexadecimal value 20000000. If you want to store the 32 bit value in R5 at the address 20000008, without changing the value in R0, which instruction would you use?

STR R5, [R0]
STR [R0], R5
STR R0, [R5, #8]
MOV [R0], R5, #4
None of the above.

11. You are using R1 as a loop counter and you want to add one to the register content. Which instruction would you use?

MOVS R1, #1
ADDS R1, #1
ADD #1, R1
LDR R1, #1
None of the above.

12. Consider the width of the ARM registers and data bus. The natural size data type for the ARM Cortex family is ________ bits. (Please enter a number.)

13.If our CPU can execute one instruction every 32 ns, how many instructions can it execute in 0.1 s ?

2 000 000
48 000 148
9 225 100
3 125 000
none of the above.

14. If you were translating an if..else statement from pseudocode to ARM assembly language, and the logical operator used in the if was ==, which branch would you use following the CMP instruction?

BEQ
BLO
BGE
BNE
None of the above.

15. If you were translating an if..else statement from pseudocode to ARM assembly language, and the logical operator used in the if is >, which branch would you use following the CMP instruction?

BNE
BEQ
BLO
BLS
BHS

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential Data Protection For Estate Agencies In Singapore 2024

Authors: Yang Yen Thaw Yt

1st Edition

B0CQK79WD3, 979-8872095392

More Books

Students also viewed these Databases questions

Question

Develop successful mentoring programs. page 400

Answered: 1 week ago