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


C# Assembly.IMUL方法代碼示例

本文整理匯總了C#中SharpOS.AOT.X86.Assembly.IMUL方法的典型用法代碼示例。如果您正苦於以下問題:C# Assembly.IMUL方法的具體用法?C# Assembly.IMUL怎麽用?C# Assembly.IMUL使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在SharpOS.AOT.X86.Assembly的用法示例。


在下文中一共展示了Assembly.IMUL方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: IMUL_reg32_rmreg32

	public void IMUL_reg32_rmreg32 ()
	{
		// IMUL ESI, EDX
		// IMUL (R32.ESI, R32.EDX)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.IMUL (R32.ESI, R32.EDX);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0xaf, 0xf2 };
		Assert.IsTrue (CompareData (memoryStream, target), "'IMUL ESI, EDX' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例2: IMUL_rmreg16

	public void IMUL_rmreg16 ()
	{
		// IMUL DI
		// IMUL (R16.DI)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.IMUL (R16.DI);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0xf7, 0xef };
		Assert.IsTrue (CompareData (memoryStream, target), "'IMUL DI' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例3: IMUL_reg16_rmreg16

	public void IMUL_reg16_rmreg16 ()
	{
		// IMUL BX, DX
		// IMUL (R16.BX, R16.DX)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.IMUL (R16.BX, R16.DX);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0xf, 0xaf, 0xda };
		Assert.IsTrue (CompareData (memoryStream, target), "'IMUL BX, DX' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例4: IMUL_reg32_mem32_imm32

	public void IMUL_reg32_mem32_imm32 ()
	{
		// IMUL ESP, [ESI], 0x53495ce
		// IMUL (R32.ESP, new DWordMemory(null, R32.ESI, null, 0), 0x53495ce)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.IMUL (R32.ESP, new DWordMemory (null, R32.ESI, null, 0), 0x53495ce);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x69, 0x26, 0xce, 0x95, 0x34, 0x5 };
		Assert.IsTrue (CompareData (memoryStream, target), "'IMUL ESP, [ESI], 0x53495ce' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例5: IMUL_rmreg8

	public void IMUL_rmreg8 ()
	{
		// IMUL AL
		// IMUL (R8.AL)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.IMUL (R8.AL);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf6, 0xe8 };
		Assert.IsTrue (CompareData (memoryStream, target), "'IMUL AL' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例6: IMUL_reg32_rmreg32_imm8

	public void IMUL_reg32_rmreg32_imm8 ()
	{
		// IMUL ESP, ECX, 0x7
		// IMUL (R32.ESP, R32.ECX, 0x7)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.IMUL (R32.ESP, R32.ECX, 0x7);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x6b, 0xe1, 0x7 };
		Assert.IsTrue (CompareData (memoryStream, target), "'IMUL ESP, ECX, 0x7' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例7: IMUL_mem32

	public void IMUL_mem32 ()
	{
		// IMUL DWord [ESI*1 + 0x12345678]
		// IMUL (new DWordMemory(null, null, R32.ESI, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.IMUL (new DWordMemory (null, null, R32.ESI, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf7, 0xae, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'IMUL DWord [ESI*1 + 0x12345678]' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例8: IMUL_reg32_imm32

	public void IMUL_reg32_imm32 ()
	{
		// IMUL ESP, 0xb4f535a
		// IMUL (R32.ESP, 0xb4f535a)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.IMUL (R32.ESP, 0xb4f535a);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x69, 0xe4, 0x5a, 0x53, 0x4f, 0xb };
		Assert.IsTrue (CompareData (memoryStream, target), "'IMUL ESP, 0xb4f535a' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例9: IMUL_reg16_mem16_imm8

	public void IMUL_reg16_mem16_imm8 ()
	{
		// IMUL AX, [GS:EAX*4 + 0x12345678], 0x7
		// IMUL (R16.AX, new WordMemory(Seg.GS, null, R32.EAX, 2, 0x12345678), 0x7)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.IMUL (R16.AX, new WordMemory (Seg.GS, null, R32.EAX, 2, 0x12345678), 0x7);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x65, 0x66, 0x6b, 0x4, 0x85, 0x78, 0x56, 0x34, 0x12, 0x7 };
		Assert.IsTrue (CompareData (memoryStream, target), "'IMUL AX, [GS:EAX*4 + 0x12345678], 0x7' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例10: IMUL_reg16_imm16

	public void IMUL_reg16_imm16 ()
	{
		// IMUL BX, 0x916
		// IMUL (R16.BX, 0x916)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.IMUL (R16.BX, 0x916);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0x69, 0xdb, 0x16, 0x9 };
		Assert.IsTrue (CompareData (memoryStream, target), "'IMUL BX, 0x916' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例11: IMUL_reg32_imm8

	public void IMUL_reg32_imm8 ()
	{
		// IMUL EBP, 0xd
		// IMUL (R32.EBP, 0xd)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.IMUL (R32.EBP, 0xd);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x6b, 0xed, 0xd };
		Assert.IsTrue (CompareData (memoryStream, target), "'IMUL EBP, 0xd' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例12: IMUL_reg16_imm8

	public void IMUL_reg16_imm8 ()
	{
		// IMUL BP, 0xc
		// IMUL (R16.BP, 0xc)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.IMUL (R16.BP, 0xc);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0x6b, 0xed, 0xc };
		Assert.IsTrue (CompareData (memoryStream, target), "'IMUL BP, 0xc' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例13: IMUL_reg32_mem32

	public void IMUL_reg32_mem32 ()
	{
		// IMUL EDX, [ES:ECX + EBP*4]
		// IMUL (R32.EDX, new DWordMemory(Seg.ES, R32.ECX, R32.EBP, 2))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.IMUL (R32.EDX, new DWordMemory (Seg.ES, R32.ECX, R32.EBP, 2));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x26, 0xf, 0xaf, 0x14, 0xa9 };
		Assert.IsTrue (CompareData (memoryStream, target), "'IMUL EDX, [ES:ECX + EBP*4]' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例14: IMUL_reg16_mem16

	public void IMUL_reg16_mem16 ()
	{
		// IMUL AX, [EAX + 0x12345678]
		// IMUL (R16.AX, new WordMemory(null, R32.EAX, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.IMUL (R16.AX, new WordMemory (null, R32.EAX, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0xf, 0xaf, 0x80, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'IMUL AX, [EAX + 0x12345678]' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs

示例15: IMUL_reg16_rmreg16_imm8

	public void IMUL_reg16_rmreg16_imm8 ()
	{
		// IMUL BX, SI, 0x8
		// IMUL (R16.BX, R16.SI, 0x8)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.IMUL (R16.BX, R16.SI, 0x8);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0x6b, 0xde, 0x8 };
		Assert.IsTrue (CompareData (memoryStream, target), "'IMUL BX, SI, 0x8' failed.");
	}
開發者ID:sharpos,項目名稱:SharpOS,代碼行數:11,代碼來源:X86.cs


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