本文整理汇总了C#中SharpOS.AOT.X86.Assembly.BT方法的典型用法代码示例。如果您正苦于以下问题:C# Assembly.BT方法的具体用法?C# Assembly.BT怎么用?C# Assembly.BT使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SharpOS.AOT.X86.Assembly
的用法示例。
在下文中一共展示了Assembly.BT方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BT_rmreg32_imm8
public void BT_rmreg32_imm8 ()
{
// BT EAX, 0xd
// BT (R32.EAX, 0xd)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.BT (R32.EAX, 0xd);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf, 0xba, 0xe0, 0xd };
Assert.IsTrue (CompareData (memoryStream, target), "'BT EAX, 0xd' failed.");
}
示例2: BT_rmreg32_reg32
public void BT_rmreg32_reg32 ()
{
// BT EBX, EDX
// BT (R32.EBX, R32.EDX)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.BT (R32.EBX, R32.EDX);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf, 0xa3, 0xd3 };
Assert.IsTrue (CompareData (memoryStream, target), "'BT EBX, EDX' failed.");
}
示例3: BT_rmreg16_imm8
public void BT_rmreg16_imm8 ()
{
// BT SI, 0xf
// BT (R16.SI, 0xf)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.BT (R16.SI, 0xf);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xf, 0xba, 0xe6, 0xf };
Assert.IsTrue (CompareData (memoryStream, target), "'BT SI, 0xf' failed.");
}
示例4: BT_rmreg16_reg16
public void BT_rmreg16_reg16 ()
{
// BT DI, CX
// BT (R16.DI, R16.CX)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.BT (R16.DI, R16.CX);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xf, 0xa3, 0xcf };
Assert.IsTrue (CompareData (memoryStream, target), "'BT DI, CX' failed.");
}
示例5: BT_mem32_imm8
public void BT_mem32_imm8 ()
{
// BT DWord [ESP + ECX*2 + 0x12345678], 0x0
// BT (new DWordMemory(null, R32.ESP, R32.ECX, 1, 0x12345678), 0x0)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.BT (new DWordMemory (null, R32.ESP, R32.ECX, 1, 0x12345678), 0x0);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf, 0xba, 0xa4, 0x4c, 0x78, 0x56, 0x34, 0x12, 0x0 };
Assert.IsTrue (CompareData (memoryStream, target), "'BT DWord [ESP + ECX*2 + 0x12345678], 0x0' failed.");
}
示例6: BT_mem16_imm8
public void BT_mem16_imm8 ()
{
// BT Word [0x12345678], 0x6
// BT (new WordMemory(null, null, null, 0, 0x12345678), 0x6)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.BT (new WordMemory (null, null, null, 0, 0x12345678), 0x6);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xf, 0xba, 0x25, 0x78, 0x56, 0x34, 0x12, 0x6 };
Assert.IsTrue (CompareData (memoryStream, target), "'BT Word [0x12345678], 0x6' failed.");
}
示例7: BT_mem32_reg32
public void BT_mem32_reg32 ()
{
// BT [GS:EAX + 0x12345678], ECX
// BT (new DWordMemory(Seg.GS, R32.EAX, null, 0, 0x12345678), R32.ECX)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.BT (new DWordMemory (Seg.GS, R32.EAX, null, 0, 0x12345678), R32.ECX);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x65, 0xf, 0xa3, 0x88, 0x78, 0x56, 0x34, 0x12 };
Assert.IsTrue (CompareData (memoryStream, target), "'BT [GS:EAX + 0x12345678], ECX' failed.");
}
示例8: BT_mem16_reg16
public void BT_mem16_reg16 ()
{
// BT [ESP + EBP*8], AX
// BT (new WordMemory(null, R32.ESP, R32.EBP, 3), R16.AX)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.BT (new WordMemory (null, R32.ESP, R32.EBP, 3), R16.AX);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xf, 0xa3, 0x4, 0xec };
Assert.IsTrue (CompareData (memoryStream, target), "'BT [ESP + EBP*8], AX' failed.");
}