instructions.py 文件源码

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

项目:Vanstein 作者: SunDwarf 项目源码 文件源码
def POP_JUMP_IF_TRUE(ctx: _VSContext, instruction: dis.Instruction):
    """
    Jumps to the specified instruction if True-y is on the top of the stack.
    """

    i = ctx.pop()
    if not i:
        # Falsey, stay where we are.
        return ctx

    # Jump, again.
    ctx.instruction_pointer = get_instruction_index_by_offset(ctx, instruction)

    return ctx


# endregion


# region Stubs
# Instructions that do nothing currently.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号