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

Function WriteILOperand

arch/mips/il.cpp:128–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127
128static size_t WriteILOperand(LowLevelILFunction& il, Instruction& instr, size_t i, size_t addrSize, size_t value)
129{
130 InstructionOperand& operand = instr.operands[i - 1];
131 switch (operand.operandClass)
132 {
133 case NONE:
134 case IMM:
135 return il.Undefined();
136 case MEM_IMM:
137 case MEM_REG:
138 return il.Operand(i - 1, il.Store(addrSize, GetILOperandMemoryAddress(il, operand, addrSize), value));
139 default:
140 return il.Operand(i - 1, SetRegisterOrNop(il, addrSize, addrSize, operand.reg, value));
141 }
142}
143
144
145static size_t DirectJump(Architecture* arch, LowLevelILFunction& il, uint64_t target, size_t addrSize)

Callers 1

Calls 5

SetRegisterOrNopFunction · 0.85
OperandMethod · 0.80
UndefinedMethod · 0.45
StoreMethod · 0.45

Tested by

no test coverage detected