sbb dst, num
| 728 | |
| 729 | // sbb dst, num |
| 730 | int 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 |
| 745 | int x86SBB(unsigned char *stream, x86Size size, x86Reg index, int multiplier, x86Reg base, int shift, int num) |
| 746 | { |
no test coverage detected