CMOVNAE() public method

CMOVNAE reg16,rmreg16
public CMOVNAE ( R16Type target, R16Type source ) : void
target R16Type
source R16Type
return void
Esempio n. 1
0
	public void CMOVNAE_reg32_rmreg32 ()
	{
		// CMOVNAE EBX, EBX
		// CMOVNAE (R32.EBX, R32.EBX)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.CMOVNAE (R32.EBX, R32.EBX);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x42, 0xdb };
		Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNAE EBX, EBX' failed.");
	}
Esempio n. 2
0
	public void CMOVNAE_reg32_mem32 ()
	{
		// CMOVNAE EDX, [ES:EDI + ESI*2]
		// CMOVNAE (R32.EDX, new DWordMemory(Seg.ES, R32.EDI, R32.ESI, 1))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.CMOVNAE (R32.EDX, new DWordMemory (Seg.ES, R32.EDI, R32.ESI, 1));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x26, 0xf, 0x42, 0x14, 0x77 };
		Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNAE EDX, [ES:EDI + ESI*2]' failed.");
	}
Esempio n. 3
0
	public void CMOVNAE_reg16_rmreg16 ()
	{
		// CMOVNAE SI, BP
		// CMOVNAE (R16.SI, R16.BP)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.CMOVNAE (R16.SI, R16.BP);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0xf, 0x42, 0xf5 };
		Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNAE SI, BP' failed.");
	}
Esempio n. 4
0
	public void CMOVNAE_reg16_mem16 ()
	{
		// CMOVNAE CX, [0x12345678]
		// CMOVNAE (R16.CX, new WordMemory(null, null, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.CMOVNAE (R16.CX, new WordMemory (null, null, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0xf, 0x42, 0xd, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNAE CX, [0x12345678]' failed.");
	}