CMOVNLE() public method

CMOVNLE reg16,rmreg16
public CMOVNLE ( R16Type target, R16Type source ) : void
target R16Type
source R16Type
return void
Example #1
0
	public void CMOVNLE_reg32_rmreg32 ()
	{
		// CMOVNLE EAX, EDI
		// CMOVNLE (R32.EAX, R32.EDI)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.CMOVNLE (R32.EAX, R32.EDI);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x4f, 0xc7 };
		Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNLE EAX, EDI' failed.");
	}
Example #2
0
	public void CMOVNLE_reg32_mem32 ()
	{
		// CMOVNLE EBP, [ECX]
		// CMOVNLE (R32.EBP, new DWordMemory(null, R32.ECX, null, 0))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.CMOVNLE (R32.EBP, new DWordMemory (null, R32.ECX, null, 0));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x4f, 0x29 };
		Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNLE EBP, [ECX]' failed.");
	}
Example #3
0
	public void CMOVNLE_reg16_rmreg16 ()
	{
		// CMOVNLE DI, SI
		// CMOVNLE (R16.DI, R16.SI)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.CMOVNLE (R16.DI, R16.SI);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0xf, 0x4f, 0xfe };
		Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNLE DI, SI' failed.");
	}
Example #4
0
	public void CMOVNLE_reg16_mem16 ()
	{
		// CMOVNLE BP, [EDI + ESI*2 + 0x12345678]
		// CMOVNLE (R16.BP, new WordMemory(null, R32.EDI, R32.ESI, 1, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.CMOVNLE (R16.BP, new WordMemory (null, R32.EDI, R32.ESI, 1, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0xf, 0x4f, 0xac, 0x77, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNLE BP, [EDI + ESI*2 + 0x12345678]' failed.");
	}