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

Function x86LEA

NULLC/Translator_X86.cpp:527–538  ·  view source on GitHub ↗

lea dst, [label+shift]

Source from the content-addressed store, hash-verified

525
526// lea dst, [label+shift]
527int x86LEA(unsigned char *stream, x86Reg dst, unsigned int labelID, int shift)
528{
529 labelID &= 0x7FFFFFFF;
530 (void)shift;
531
532 stream[0] = 0x8d;
533
534 pendingJumps.push_back(UnsatisfiedJump(labelID, true, stream));
535 unsigned int asize = encodeAddress(stream+1, rNONE, 1, rNONE, 0xcdcdcdcd, regCode[dst]);
536 assert(asize == 5);
537 return 1 + asize;
538}
539// lea dst, [index*multiplier+base+shift]
540int x86LEA(unsigned char *stream, x86Reg dst, x86Reg index, int multiplier, x86Reg base, int shift)
541{

Callers 1

TranslateToNativeMethod · 0.85

Calls 4

UnsatisfiedJumpClass · 0.85
encodeAddressFunction · 0.85
assertFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected