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.
评论列表
文章目录