本文整理匯總了C#中SharpOS.AOT.X86.Assembly.CMOVNE方法的典型用法代碼示例。如果您正苦於以下問題:C# Assembly.CMOVNE方法的具體用法?C# Assembly.CMOVNE怎麽用?C# Assembly.CMOVNE使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SharpOS.AOT.X86.Assembly
的用法示例。
在下文中一共展示了Assembly.CMOVNE方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: CMOVNE_reg32_rmreg32
public void CMOVNE_reg32_rmreg32 ()
{
// CMOVNE ECX, EDI
// CMOVNE (R32.ECX, R32.EDI)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.CMOVNE (R32.ECX, R32.EDI);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf, 0x45, 0xcf };
Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNE ECX, EDI' failed.");
}
示例2: CMOVNE_reg32_mem32
public void CMOVNE_reg32_mem32 ()
{
// CMOVNE EDX, [DS:ECX*8]
// CMOVNE (R32.EDX, new DWordMemory(Seg.DS, null, R32.ECX, 3))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.CMOVNE (R32.EDX, new DWordMemory (Seg.DS, null, R32.ECX, 3));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x3e, 0xf, 0x45, 0x14, 0xcd, 0x0, 0x0, 0x0, 0x0 };
Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNE EDX, [DS:ECX*8]' failed.");
}
示例3: CMOVNE_reg16_rmreg16
public void CMOVNE_reg16_rmreg16 ()
{
// CMOVNE DI, DX
// CMOVNE (R16.DI, R16.DX)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.CMOVNE (R16.DI, R16.DX);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xf, 0x45, 0xfa };
Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNE DI, DX' failed.");
}
示例4: CMOVNE_reg16_mem16
public void CMOVNE_reg16_mem16 ()
{
// CMOVNE AX, [ESP]
// CMOVNE (R16.AX, new WordMemory(null, R32.ESP, null, 0))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.CMOVNE (R16.AX, new WordMemory (null, R32.ESP, null, 0));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xf, 0x45, 0x4, 0x24 };
Assert.IsTrue (CompareData (memoryStream, target), "'CMOVNE AX, [ESP]' failed.");
}