當前位置: 首頁>>代碼示例>>C#>>正文


C# Assembly.TEST方法代碼示例

本文整理匯總了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.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例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.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例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.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例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.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例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.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例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.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例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.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例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.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例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.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例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.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例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.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例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.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs


注:本文中的SharpOS.AOT.X86.Assembly.TEST方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。