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

Function x86SBB

NULLC/Translator_X86.cpp:730–743  ·  view source on GitHub ↗

sbb dst, num

Source from the content-addressed store, hash-verified

728
729// sbb dst, num
730int x86SBB(unsigned char *stream, x86Reg dst, int num)
731{
732 if((char)num == num)
733 {
734 stream[0] = 0x83;
735 stream[1] = encodeRegister(dst, 3);
736 stream[2] = (char)num;
737 return 3;
738 }
739 stream[0] = 0x81;
740 stream[1] = encodeRegister(dst, 3);
741 *(int*)(stream+2) = num;
742 return 6;
743}
744// sbb dword [index*mult+base+shift], num
745int x86SBB(unsigned char *stream, x86Size size, x86Reg index, int multiplier, x86Reg base, int shift, int num)
746{

Callers 1

TranslateToNativeMethod · 0.85

Calls 3

encodeRegisterFunction · 0.85
assertFunction · 0.85
encodeAddressFunction · 0.85

Tested by

no test coverage detected