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