Asn4Part1 - Assignment 4 Part 1 Question 0. [0] What mark...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Assignment 4 Part 1 Question 0. [0] What mark do you anticipate you got on part 2? FLC and FLA C only code ARM 1 file ARM multi-file C and ARM /10 /10 /10 /10 /10 Question 1. [10] Consider the following code segment. Assume that r1 has an initial value of 0xB0000000 (32 bit register). [1] mov r0, #0 [2] loop: movs r1, r1, LSL #1 [3] addcs r0, r0, #1 [4] bne loop a) [8] What are the vales of R0 and R1 each time the code reaches line [4]? (Note there may be more lines than needed. Loop R0 R1 Initial Value 0 0xB0000000 1 2 3 4 5 b) [2] Describe in a single sentence what this function does.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Question 2. [8] [8] Amdhal’s law (in the text book and the Resources tab on ConneX), stated as: Speedup 1 f 1 f p ---------- + ------------------ = . Your task is to explain briefly what it is and in what context it is applied, as if you were giving a mini lecture. Show your understanding. Answering the questions below should guide you. (a)
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

Asn4Part1 - Assignment 4 Part 1 Question 0. [0] What mark...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online