• edited by
504 views
2 2 votes

Consider a processor with a 4-byte jump instruction encountered at memory address 4096. If the jump instruction is in PC-relative mode and the instruction at memory address 4096 is jump −15 (where −15 is a signed byte), what is the branch target address? All the addresses are in decimal. 

1 Answer

Best answer
3 3 votes
PC relative = pc + given offset

=> after fetching pc=pc+4 ,pc gets incremented by instruction size after fetching the instruction

=> pc= 4100

=> Target address= 4100-15

=> 4085
• selected by
Position:
Show:

Related questions

0 0 votes
1 answers 1 answer
696
696 views
Gitika Babbar asked May 26, 2019
696 views
Why can’t we keep target32 address in the 32 bit registers of the RISC instruction? Why is it have to be tJ target26 instead of J target32 ?
6 6 votes
1 answers 1 answer
6.5k
6.5k views
navi asked Jun 17, 2016
6,504 views
QuestionPart- IIf the program below, the number of times the FIRST and SECOND JNZ instruction cause the control to be transferred to LOOP respectivelyMVI H,02HMVI L,05HLO...