def _branch_always(self, i):
"""Emulate the BRA and BRL instructions.
Args:
i: The instruction.
Returns:
The target of the branch.
"""
if i.address_mode == Mode.RELATIVE:
self.pc += c_int8(i.operand).value
elif i.address_mode == Mode.RELATIVE_LONG:
self.pc += c_int16(i.operand).value
return self.pc
评论列表
文章目录