2,471 views
2 2 votes
A 4 byte long PC-relative branch instruction is fetched from memory address 512 10 and while
its execution, the branch is made to location 885 10 . What is the unsigned displacement present
in the instruction? (relative value)

1 Answer

4 4 votes

After fetching the instruction PC value is = 51214 

Target address = current PC + relative distance

=> relative distance = 88510 - 51214 = 37296

• edited by
Position:
Show:

Related questions

1 1 vote
1 answers 1 answer
398
398 views
Vishnu__ asked Feb 4
398 views
“Consider a 6 stage instruction pipeline, where all stages are perfectly balanced. Assume that there is no cycle time overhead of pipelining. When an application is execu...
1 1 vote
1 1 answer
239
239 views
Vishnu__ asked Jan 20
239 views
In a magnetic surface memory, an 8 KB file is stored in the consecutive sectors in the same track. Let each sector capacity be 0.25 KB and the file starting sector number...
1 1 vote
1 answers 1 answer
251
251 views
Vishnu__ asked Jan 20
251 views
Question:Let A and B are 8 bit registers and used to represent the data in signed 2's complement notation. In the following the correct statement(s) is/are:The overflow o...
3 3 votes
2 2 answers
546
546 views
Vishnu__ asked Jan 20
546 views
P and Q are 32 bit registers used to store IEEE single precision floating point notations (32 bit).Let content of P and Q are P = C0400000H and Q = 40400000H. The P * Q r...