本文整理匯總了C#中SharpOS.AOT.X86.Assembly.NOT方法的典型用法代碼示例。如果您正苦於以下問題:C# Assembly.NOT方法的具體用法?C# Assembly.NOT怎麽用?C# Assembly.NOT使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SharpOS.AOT.X86.Assembly
的用法示例。
在下文中一共展示了Assembly.NOT方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: NOT_rmreg32
public void NOT_rmreg32 ()
{
// NOT EDX
// NOT (R32.EDX)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.NOT (R32.EDX);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf7, 0xd2 };
Assert.IsTrue (CompareData (memoryStream, target), "'NOT EDX' failed.");
}
示例2: NOT_rmreg16
public void NOT_rmreg16 ()
{
// NOT BX
// NOT (R16.BX)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.NOT (R16.BX);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xf7, 0xd3 };
Assert.IsTrue (CompareData (memoryStream, target), "'NOT BX' failed.");
}
示例3: NOT_rmreg8
public void NOT_rmreg8 ()
{
// NOT CL
// NOT (R8.CL)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.NOT (R8.CL);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf6, 0xd1 };
Assert.IsTrue (CompareData (memoryStream, target), "'NOT CL' failed.");
}
示例4: NOT_mem32
public void NOT_mem32 ()
{
// NOT DWord [FS:EDI*1]
// NOT (new DWordMemory(Seg.FS, null, R32.EDI, 0))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.NOT (new DWordMemory (Seg.FS, null, R32.EDI, 0));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x64, 0xf7, 0x17 };
Assert.IsTrue (CompareData (memoryStream, target), "'NOT DWord [FS:EDI*1]' failed.");
}
示例5: NOT_mem16
public void NOT_mem16 ()
{
// NOT Word [DS:EDX*4]
// NOT (new WordMemory(Seg.DS, null, R32.EDX, 2))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.NOT (new WordMemory (Seg.DS, null, R32.EDX, 2));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x3e, 0x66, 0xf7, 0x14, 0x95, 0x0, 0x0, 0x0, 0x0 };
Assert.IsTrue (CompareData (memoryStream, target), "'NOT Word [DS:EDX*4]' failed.");
}
示例6: NOT_mem8
public void NOT_mem8 ()
{
// NOT Byte [ESP + EBP*8]
// NOT (new ByteMemory(null, R32.ESP, R32.EBP, 3))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.NOT (new ByteMemory (null, R32.ESP, R32.EBP, 3));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf6, 0x14, 0xec };
Assert.IsTrue (CompareData (memoryStream, target), "'NOT Byte [ESP + EBP*8]' failed.");
}