本文整理汇总了C#中SharpOS.AOT.X86.Assembly.TEST方法的典型用法代码示例。如果您正苦于以下问题:C# Assembly.TEST方法的具体用法?C# Assembly.TEST怎么用?C# Assembly.TEST使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SharpOS.AOT.X86.Assembly
的用法示例。
在下文中一共展示了Assembly.TEST方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TEST_rmreg32_imm32
public void TEST_rmreg32_imm32 ()
{
// TEST ESP, 0xe698429
// TEST (R32.ESP, 0xe698429)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.TEST (R32.ESP, 0xe698429);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf7, 0xc4, 0x29, 0x84, 0x69, 0xe };
Assert.IsTrue (CompareData (memoryStream, target), "'TEST ESP, 0xe698429' failed.");
}
示例2: TEST_rmreg8_imm8
public void TEST_rmreg8_imm8 ()
{
// TEST CL, 0x5
// TEST (R8.CL, 0x5)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.TEST (R8.CL, 0x5);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf6, 0xc1, 0x5 };
Assert.IsTrue (CompareData (memoryStream, target), "'TEST CL, 0x5' failed.");
}
示例3: TEST_rmreg16_imm16
public void TEST_rmreg16_imm16 ()
{
// TEST DI, 0xb4d
// TEST (R16.DI, 0xb4d)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.TEST (R16.DI, 0xb4d);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0xf7, 0xc7, 0x4d, 0xb };
Assert.IsTrue (CompareData (memoryStream, target), "'TEST DI, 0xb4d' failed.");
}
示例4: TEST_rmreg16_reg16
public void TEST_rmreg16_reg16 ()
{
// TEST DI, CX
// TEST (R16.DI, R16.CX)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.TEST (R16.DI, R16.CX);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x66, 0x85, 0xcf };
Assert.IsTrue (CompareData (memoryStream, target), "'TEST DI, CX' failed.");
}
示例5: TEST_rmreg32_reg32
public void TEST_rmreg32_reg32 ()
{
// TEST ESI, EBX
// TEST (R32.ESI, R32.EBX)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.TEST (R32.ESI, R32.EBX);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x85, 0xde };
Assert.IsTrue (CompareData (memoryStream, target), "'TEST ESI, EBX' failed.");
}
示例6: TEST_mem32_imm32
public void TEST_mem32_imm32 ()
{
// TEST DWord [ECX*2 + 0x12345678], 0xdb3e2b7
// TEST (new DWordMemory(null, null, R32.ECX, 1, 0x12345678), 0xdb3e2b7)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.TEST (new DWordMemory (null, null, R32.ECX, 1, 0x12345678), 0xdb3e2b7);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf7, 0x84, 0x9, 0x78, 0x56, 0x34, 0x12, 0xb7, 0xe2, 0xb3, 0xd };
Assert.IsTrue (CompareData (memoryStream, target), "'TEST DWord [ECX*2 + 0x12345678], 0xdb3e2b7' failed.");
}
示例7: TEST_rmreg8_reg8
public void TEST_rmreg8_reg8 ()
{
// TEST CL, BH
// TEST (R8.CL, R8.BH)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.TEST (R8.CL, R8.BH);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x84, 0xf9 };
Assert.IsTrue (CompareData (memoryStream, target), "'TEST CL, BH' failed.");
}
示例8: TEST_mem16_imm16
public void TEST_mem16_imm16 ()
{
// TEST Word [DS:EDX*1], 0xeee
// TEST (new WordMemory(Seg.DS, null, R32.EDX, 0), 0xeee)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.TEST (new WordMemory (Seg.DS, null, R32.EDX, 0), 0xeee);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x3e, 0x66, 0xf7, 0x2, 0xee, 0xe };
Assert.IsTrue (CompareData (memoryStream, target), "'TEST Word [DS:EDX*1], 0xeee' failed.");
}
示例9: TEST_mem8_imm8
public void TEST_mem8_imm8 ()
{
// TEST Byte [EBP*8 + 0x12345678], 0xa
// TEST (new ByteMemory(null, null, R32.EBP, 3, 0x12345678), 0xa)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.TEST (new ByteMemory (null, null, R32.EBP, 3, 0x12345678), 0xa);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0xf6, 0x4, 0xed, 0x78, 0x56, 0x34, 0x12, 0xa };
Assert.IsTrue (CompareData (memoryStream, target), "'TEST Byte [EBP*8 + 0x12345678], 0xa' failed.");
}
示例10: TEST_mem32_reg32
public void TEST_mem32_reg32 ()
{
// TEST [ES:0x12345678], EAX
// TEST (new DWordMemory(Seg.ES, null, null, 0, 0x12345678), R32.EAX)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.TEST (new DWordMemory (Seg.ES, null, null, 0, 0x12345678), R32.EAX);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x26, 0x85, 0x5, 0x78, 0x56, 0x34, 0x12 };
Assert.IsTrue (CompareData (memoryStream, target), "'TEST [ES:0x12345678], EAX' failed.");
}
示例11: TEST_mem16_reg16
public void TEST_mem16_reg16 ()
{
// TEST [FS:EBP*2 + 0x12345678], BP
// TEST (new WordMemory(Seg.FS, null, R32.EBP, 1, 0x12345678), R16.BP)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.TEST (new WordMemory (Seg.FS, null, R32.EBP, 1, 0x12345678), R16.BP);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x64, 0x66, 0x85, 0xac, 0x2d, 0x78, 0x56, 0x34, 0x12 };
Assert.IsTrue (CompareData (memoryStream, target), "'TEST [FS:EBP*2 + 0x12345678], BP' failed.");
}
示例12: TEST_mem8_reg8
public void TEST_mem8_reg8 ()
{
// TEST [DS:0x12345678], CL
// TEST (new ByteMemory(Seg.DS, null, null, 0, 0x12345678), R8.CL)
MemoryStream memoryStream = new MemoryStream ();
Assembly asm = new Assembly ();
asm.TEST (new ByteMemory (Seg.DS, null, null, 0, 0x12345678), R8.CL);
asm.Encode (memoryStream);
byte [] target = new byte [] { 0x3e, 0x84, 0xd, 0x78, 0x56, 0x34, 0x12 };
Assert.IsTrue (CompareData (memoryStream, target), "'TEST [DS:0x12345678], CL' failed.");
}