retagged by
5,041 views
7 votes
7 votes

What is the intial pc value meaning 

530=Pc + value 

what should be the pc value 

631 or 632 or 633 basically 

the instruction length is not give so how can i determine the addr loaded in pc hen instructtion at 630 is executing because if instruction length is 4 bytes it should be 634 

thanks in advance

retagged by

1 Answer

Best answer
7 votes
7 votes
Since the address part of the instruction is 10 bits, I assume instruction length is 16 bits = 2 bytes.

So, PC value during execution of branch instruction = 620 + 2 = 622 (PC always contains the next instruction address)

Now, branch is PC relative and the address to jump is 530, the operand will be 530 - 622 = -92 =  (10100100)2 (2's complement representation. )
edited by

Related questions

6 votes
6 votes
1 answer
2
dragonball asked Dec 17, 2017
3,721 views
A two- word instruction is stored in a location A. The operand part of instruction holds B. If the addressing mode is relative , the operand is available in location :A. ...
3 votes
3 votes
3 answers
3
Himanshu1 asked Dec 4, 2015
2,393 views