本文整理汇总了C#中SharpOS.AOT.X86.Assembly.DIV方法的典型用法代码示例。如果您正苦于以下问题:C# Assembly.DIV方法的具体用法?C# Assembly.DIV怎么用?C# Assembly.DIV使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SharpOS.AOT.X86.Assembly
的用法示例。
在下文中一共展示了Assembly.DIV方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DIV_rmreg32
public void DIV_rmreg32 ()
{
// DIV EBP
// DIV (R32.EBP)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.DIV (R32.EBP);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf7, 0xf5 };
Assert.IsTrue (CompareData (memoryStream, target), "'DIV EBP' failed.");
}
示例2: DIV_rmreg16
public void DIV_rmreg16 ()
{
// DIV SI
// DIV (R16.SI)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.DIV (R16.SI);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xf7, 0xf6 };
Assert.IsTrue (CompareData (memoryStream, target), "'DIV SI' failed.");
}
示例3: DIV_rmreg8
public void DIV_rmreg8 ()
{
// DIV DL
// DIV (R8.DL)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.DIV (R8.DL);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf6, 0xf2 };
Assert.IsTrue (CompareData (memoryStream, target), "'DIV DL' failed.");
}
示例4: DIV_mem32
public void DIV_mem32 ()
{
// DIV DWord [ESP]
// DIV (new DWordMemory(null, R32.ESP, null, 0))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.DIV (new DWordMemory (null, R32.ESP, null, 0));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf7, 0x34, 0x24 };
Assert.IsTrue (CompareData (memoryStream, target), "'DIV DWord [ESP]' failed.");
}
示例5: DIV_mem16
public void DIV_mem16 ()
{
// DIV Word [0x12345678]
// DIV (new WordMemory(null, null, null, 0, 0x12345678))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.DIV (new WordMemory (null, null, null, 0, 0x12345678));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xf7, 0x35, 0x78, 0x56, 0x34, 0x12 };
Assert.IsTrue (CompareData (memoryStream, target), "'DIV Word [0x12345678]' failed.");
}
示例6: DIV_mem8
public void DIV_mem8 ()
{
// DIV Byte [DS:0x12345678]
// DIV (new ByteMemory(Seg.DS, null, null, 0, 0x12345678))
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.DIV (new ByteMemory (Seg.DS, null, null, 0, 0x12345678));
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x3e, 0xf6, 0x35, 0x78, 0x56, 0x34, 0x12 };
Assert.IsTrue (CompareData (memoryStream, target), "'DIV Byte [DS:0x12345678]' failed.");
}