CMOVO() public method

CMOVO reg16,rmreg16
public CMOVO ( R16Type target, R16Type source ) : void
target R16Type
source R16Type
return void
Esempio n. 1
0
	public void CMOVO_reg32_rmreg32 ()
	{
		// CMOVO ECX, EBP
		// CMOVO (R32.ECX, R32.EBP)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.CMOVO (R32.ECX, R32.EBP);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x40, 0xcd };
		Assert.IsTrue (CompareData (memoryStream, target), "'CMOVO ECX, EBP' failed.");
	}
Esempio n. 2
0
	public void CMOVO_reg32_mem32 ()
	{
		// CMOVO ESI, [EAX + EDX*4 + 0x12345678]
		// CMOVO (R32.ESI, new DWordMemory(null, R32.EAX, R32.EDX, 2, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.CMOVO (R32.ESI, new DWordMemory (null, R32.EAX, R32.EDX, 2, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x40, 0xb4, 0x90, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'CMOVO ESI, [EAX + EDX*4 + 0x12345678]' failed.");
	}
Esempio n. 3
0
	public void CMOVO_reg16_rmreg16 ()
	{
		// CMOVO DI, CX
		// CMOVO (R16.DI, R16.CX)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.CMOVO (R16.DI, R16.CX);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0xf, 0x40, 0xf9 };
		Assert.IsTrue (CompareData (memoryStream, target), "'CMOVO DI, CX' failed.");
	}
Esempio n. 4
0
	public void CMOVO_reg16_mem16 ()
	{
		// CMOVO CX, [ECX + 0x12345678]
		// CMOVO (R16.CX, new WordMemory(null, R32.ECX, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.CMOVO (R16.CX, new WordMemory (null, R32.ECX, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0xf, 0x40, 0x89, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'CMOVO CX, [ECX + 0x12345678]' failed.");
	}