Professional Documents
Culture Documents
Ca 4
Ca 4
Week 12 ()
Text Transcripts ()
Download Videos ()
Books ()
Week 4 : Assignment 4
The due date for submitting this assignment has passed.
Due on 2023-08-23, 23:59 IST.
mov r1, #0
mov r0, #0
What are the values in the registers r1 and r0, respectively, after the execution of the program?
10 and 10
9 and 50
11 and 55
9 and 10
2) What is the function of the bl instruction in the ARM assembly language? Choose the 1 point
most appropriate answer.
Only jump unconditionally to a function
Both jump unconditionally to a function and save the value PC + 4 in the lr register
3) Consider the following load instruction and select the correct addressing mode used. 1 point
Register-indirect
Base-offset
Base-index
Base-scaled-index
4) Which of the following ARM assembly instructions are used to spill a set of registers 1 point
and save it on the stack?
stmfd
ldmfd
str
addstk
5) Which of the following ARM assembly branch instructions jumps to a specified address 1 point
if and only if the negative flag (N ) is clear, that is, the number in question is positive?
ble
bpl
bve
beq
Yes, the answer is correct.
Score: 1
Accepted Answers:
bpl
6) Which of the following is a valid reason to justify the ISA compatibility of modern 64-bit 1 point
Intel machines with the older 32-bit or 16-bit processors?
7) What is the size of the eax register in the x86 ISA? 1 point
8 bits
16 bits
32 bits
64 bits
8) What is the purpose of the Segment Descriptor Cache in an x86 processor? 1 point
9) Which of the following is not a rule for operands in x86 assembly instructions? 1 point