• retagged by
6,722 views
7 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

1 Answer

Best answer
7 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
Position:
Show:

Related questions

3 3 votes
3 answers 3 answers
3.9k
3.9k views
Himanshu1 asked Dec 4, 2015
3,906 views
 Program counter (PC) uses which of the following addressing modes:auto incrementindex addressing moderelative addressing modeall of these
0 0 votes
1 1 answer
1.1k
1.1k views
Chaitanya Kale asked Feb 13, 2023
1,133 views
Consider 3-word long jump instruction designed with PC-relative addressing mode, stored in the memory with a starting address of (2000)$_{10}$. Address field of an instru...
6 6 votes
1 answers 1 answer
4.6k
4.6k views
dragonball asked Dec 17, 2017
4,620 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. ...
0 0 votes
3 3 answers
818
818 views
lea asked Jun 12, 2023
818 views