MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / jump

Method jump

python/examples/nes.py:421–430  ·  view source on GitHub ↗
(il:LowLevelILFunction, dest:ExpressionIndex)

Source from the content-addressed store, hash-verified

419
420 @staticmethod
421 def jump(il:LowLevelILFunction, dest:ExpressionIndex) -> None:
422 label = None
423 instr = LowLevelILInstruction.create(il, dest)
424 if isinstance(instr, LowLevelILConst):
425 label = il.get_label_for_address(Architecture['6502'], instr.constant) # type: ignore
426 if label is None:
427 il.append(il.jump(dest))
428 else:
429 il.append(il.goto(label))
430 return None
431
432 @staticmethod
433 def get_p_value(il:LowLevelILFunction) -> ExpressionIndex:

Callers 4

lift_instructionFunction · 0.45
instruction_llilMethod · 0.45
M6502Class · 0.45
cond_branchMethod · 0.45

Calls 4

get_label_for_addressMethod · 0.80
createMethod · 0.45
appendMethod · 0.45
gotoMethod · 0.45

Tested by

no test coverage detected