Calculating displacement value Target PC  current PC + 2 + displacement If the target PC value is known, which is the Label value, the displacement can be easily obtained from the above equation Example: If instruction is bra $4000 and current PC = $003F40, then $004000 = $003FA0 + displacement + 2 displacement = $004000 - $003FA0 – 2 = $5E For short branch, the machine code is: 605E For long branch, the machine code is: 6000 005E
{}