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
"the instruction length is not given"
So, you should ask this to the guy who made the question :)
For solving assume the instruction size is 2 bytes.
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 = 630 + 2 = 632 (PC always contains the next instruction address)
Now, branch is PC relative and the address to jump is 530, the operand will be 530 - 632 = -102 = (10011010)2 (2's complement representation. )
Thank you so much Arjun Sir!