public CMOVNP ( |
||
target | ||
source | ||
return | void |
public void CMOVNP_reg32_rmreg32 () { // CMOVNP ESI, ECX // CMOVNP (R32.ESI, R32.ECX) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.CMOVNP (R32.ESI, R32.ECX); asm.Encode (memoryStream); byte [] target = new byte [] { 0xf, 0x4b, 0xf1 }; Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNP ESI, ECX' failed."); }
public void CMOVNP_reg32_mem32 () { // CMOVNP ECX, [CS:EBP] // CMOVNP (R32.ECX, new DWordMemory(Seg.CS, R32.EBP, null, 0)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.CMOVNP (R32.ECX, new DWordMemory (Seg.CS, R32.EBP, null, 0)); asm.Encode (memoryStream); byte [] target = new byte [] { 0x2e, 0xf, 0x4b, 0x4d, 0x0 }; Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNP ECX, [CS:EBP]' failed."); }
public void CMOVNP_reg16_rmreg16 () { // CMOVNP SP, DX // CMOVNP (R16.SP, R16.DX) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.CMOVNP (R16.SP, R16.DX); asm.Encode (memoryStream); byte [] target = new byte [] { 0x66, 0xf, 0x4b, 0xe2 }; Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNP SP, DX' failed."); }
public void CMOVNP_reg16_mem16 () { // CMOVNP DX, [0x12345678] // CMOVNP (R16.DX, new WordMemory(null, null, null, 0, 0x12345678)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.CMOVNP (R16.DX, new WordMemory (null, null, null, 0, 0x12345678)); asm.Encode (memoryStream); byte [] target = new byte [] { 0x66, 0xf, 0x4b, 0x15, 0x78, 0x56, 0x34, 0x12 }; Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNP DX, [0x12345678]' failed."); }