CMOVNP() public method

CMOVNP reg16,rmreg16
public CMOVNP ( R16Type target, R16Type source ) : void
target R16Type
source R16Type
return void
Example #1
0
	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.");
	}
Example #2
0
	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.");
	}
Example #3
0
	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.");
	}
Example #4
0
	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.");
	}