cpu.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:Gilgamesh 作者: AndreaOrru 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号