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

Function GetCountRegister

arch/x86/il.cpp:38–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38static xed_reg_enum_t GetCountRegister(const size_t addrSize)
39{
40 switch (addrSize)
41 {
42 case 2:
43 return XED_REG_CX;
44 case 4:
45 return XED_REG_ECX;
46 default:
47 return XED_REG_RCX;
48 }
49}
50
51//TODO handle imms for MPX args
52// For most instructions, instruction_index == operand_index, but some instructions (floating point, some others) have an implicit first operand (st0), so we have to remap things a bit

Callers 2

RepeatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected