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

Function x86ADC

NULLC/Translator_X86.cpp:625–638  ·  view source on GitHub ↗

adc dst, num

Source from the content-addressed store, hash-verified

623
624// adc dst, num
625int x86ADC(unsigned char *stream, x86Reg dst, int num)
626{
627 if((char)num == num)
628 {
629 stream[0] = 0x83;
630 stream[1] = encodeRegister(dst, 2);
631 stream[2] = (char)num;
632 return 3;
633 }
634 stream[0] = 0x81;
635 stream[1] = encodeRegister(dst, 2);
636 *(int*)(stream+2) = num;
637 return 6;
638}
639// adc dst, src
640int x86ADC(unsigned char *stream, x86Reg dst, x86Reg src)
641{

Callers 1

TranslateToNativeMethod · 0.85

Calls 3

encodeRegisterFunction · 0.85
assertFunction · 0.85
encodeAddressFunction · 0.85

Tested by

no test coverage detected