Question
Consider a machine where each instruction is exactly 'w' bytes long. All types of branching instructions are using PC-relative addressing mode with relative address(offset) specified in bytes to the target location of the branch instruction. Further, the offset is always with respect to the address of the next instructions in the program sequence. Consider a program (instruction sequence) with n instruction numbered I0 to In−2. Last instruction In−1 is the branch instruction and its target is first instruction I0. The value of offset for branch instruction is