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

Function GetStackPointer

arch/x86/il.cpp:10–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9
10static xed_reg_enum_t GetStackPointer(const size_t addrSize)
11{
12 switch (addrSize)
13 {
14 case 2:
15 return XED_REG_SP;
16 case 4:
17 return XED_REG_ESP;
18 default:
19 return XED_REG_RSP;
20 }
21}
22
23
24static xed_reg_enum_t GetFramePointer(const size_t addrSize)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected