MCPcopy Create free account
hub / github.com/WheretIB/nullc / x86POP

Function x86POP

NULLC/Translator_X86.cpp:397–409  ·  view source on GitHub ↗

pop dword [index*mult+base+shift]

Source from the content-addressed store, hash-verified

395
396// pop dword [index*mult+base+shift]
397int x86POP(unsigned char *stream, x86Size size, x86Reg index, int multiplier, x86Reg base, int shift)
398{
399 (void)size;
400 assert(size == sDWORD);
401 if(base == rNONE && index != rNONE && multiplier == 1) // swap so if there is only one register, it will be base
402 {
403 base = index;
404 index = rNONE;
405 }
406 stream[0] = 0x8f;
407 unsigned int asize = encodeAddress(stream+1, index, multiplier, base, shift, 0);
408 return 1+asize;
409}
410// pop reg
411int x86POP(unsigned char *stream, x86Reg reg)
412{

Callers 1

TranslateToNativeMethod · 0.85

Calls 2

assertFunction · 0.85
encodeAddressFunction · 0.85

Tested by

no test coverage detected