CMOVNL() public method

CMOVNL reg16,rmreg16
public CMOVNL ( R16Type target, R16Type source ) : void
target R16Type
source R16Type
return void
Esempio n. 1
0
	public void CMOVNL_reg32_rmreg32 ()
	{
		// CMOVNL ESI, EAX
		// CMOVNL (R32.ESI, R32.EAX)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.CMOVNL (R32.ESI, R32.EAX);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x4d, 0xf0 };
		Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNL ESI, EAX' failed.");
	}
Esempio n. 2
0
	public void CMOVNL_reg32_mem32 ()
	{
		// CMOVNL ECX, [0x12345678]
		// CMOVNL (R32.ECX, new DWordMemory(null, null, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.CMOVNL (R32.ECX, new DWordMemory (null, null, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x4d, 0xd, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNL ECX, [0x12345678]' failed.");
	}
Esempio n. 3
0
	public void CMOVNL_reg16_rmreg16 ()
	{
		// CMOVNL BX, BP
		// CMOVNL (R16.BX, R16.BP)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.CMOVNL (R16.BX, R16.BP);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0xf, 0x4d, 0xdd };
		Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNL BX, BP' failed.");
	}
Esempio n. 4
0
	public void CMOVNL_reg16_mem16 ()
	{
		// CMOVNL DI, [CS:EBP*8]
		// CMOVNL (R16.DI, new WordMemory(Seg.CS, null, R32.EBP, 3))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.CMOVNL (R16.DI, new WordMemory (Seg.CS, null, R32.EBP, 3));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x2e, 0x66, 0xf, 0x4d, 0x3c, 0xed, 0x0, 0x0, 0x0, 0x0 };
		Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNL DI, [CS:EBP*8]' failed.");
	}