本文整理汇总了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.");
}