public CMOVP ( R16Type target, R16Type source ) : void | ||
target | R16Type | |
source | R16Type | |
return | void |
public void CMOVP_reg32_rmreg32 () { // CMOVP EBP, ESI // CMOVP (R32.EBP, R32.ESI) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.CMOVP (R32.EBP, R32.ESI); asm.Encode (memoryStream); byte [] target = new byte [] { 0xf, 0x4a, 0xee }; Assert.IsTrue (CompareData (memoryStream, target), "'CMOVP EBP, ESI' failed."); }
public void CMOVP_reg32_mem32 () { // CMOVP EAX, [0x12345678] // CMOVP (R32.EAX, new DWordMemory(null, null, null, 0, 0x12345678)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.CMOVP (R32.EAX, new DWordMemory (null, null, null, 0, 0x12345678)); asm.Encode (memoryStream); byte [] target = new byte [] { 0xf, 0x4a, 0x5, 0x78, 0x56, 0x34, 0x12 }; Assert.IsTrue (CompareData (memoryStream, target), "'CMOVP EAX, [0x12345678]' failed."); }
public void CMOVP_reg16_rmreg16 () { // CMOVP AX, SI // CMOVP (R16.AX, R16.SI) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.CMOVP (R16.AX, R16.SI); asm.Encode (memoryStream); byte [] target = new byte [] { 0x66, 0xf, 0x4a, 0xc6 }; Assert.IsTrue (CompareData (memoryStream, target), "'CMOVP AX, SI' failed."); }
public void CMOVP_reg16_mem16 () { // CMOVP AX, [ESP] // CMOVP (R16.AX, new WordMemory(null, R32.ESP, null, 0)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.CMOVP (R16.AX, new WordMemory (null, R32.ESP, null, 0)); asm.Encode (memoryStream); byte [] target = new byte [] { 0x66, 0xf, 0x4a, 0x4, 0x24 }; Assert.IsTrue (CompareData (memoryStream, target), "'CMOVP AX, [ESP]' failed."); }