Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q7: you have two 32-bit numbers stored at memory locations 0x20000004 and 0x20000008, write an assembly program to compare these two numbers and calculate how

Q7: you have two 32-bit numbers stored at memory locations 0x20000004 and 0x20000008, write an assembly program to compare these two numbers and calculate how many bit positions at which these two numbers have the same content.

Q12: For the following assembly code, how many times the loop calculate is going to be executed? Why? MOV r1, 10

calculate SUB r1, r1, 1

BNE calculate

Q13: The following code is called delay loop, It is used to create a certain delay during program execution. Calculate the amount of delay created by this code:

LDR r0,= #9800

repeat SUBS r0,r0,#1

BNE repeat Given that the clock frequency of the processor is 48 MHz and the execution time of the LDR instruction is 2 clock cycles, SUBS instruction is 1 clock cycle, BNE instruction 2 clock cycle when branch taken and 1 clock cycle when branch is not taken.

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

Students also viewed these Databases questions