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

Function ByteReversedStore

arch/powerpc/il.cpp:476–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474}
475
476static void ByteReversedStore(LowLevelILFunction &il, struct cs_ppc* ppc, size_t size, size_t addressSize_a=4)
477{
478 ExprId addr = operToIL(il, &ppc->operands[1], OTI_GPR0_ZERO, PPC_IL_EXTRA_DEFAULT, addressSize_a); // (rA|0)
479 addr = il.Add(addressSize_a, addr, operToIL_a(il, &ppc->operands[2], addressSize_a)); // (rA|0) + (rB)
480 ExprId val = ByteReverseRegister(il, ppc->operands[0].reg, size); // rS = swap(rS)
481 il.AddInstruction(il.Store(size, addr, val)); // [(rA|0) + (rB)] = swap(rS)
482}
483
484static void loadstoreppcfs(LowLevelILFunction& il,
485 int load_store_sz,

Callers

nothing calls this directly

Calls 5

operToILFunction · 0.85
ByteReverseRegisterFunction · 0.85
AddMethod · 0.45
AddInstructionMethod · 0.45
StoreMethod · 0.45

Tested by

no test coverage detected