FIADD() public method

FIADD mem32
public FIADD ( DWordMemory target ) : void
target DWordMemory
return void
Esempio n. 1
0
	public void FIADD_mem32 ()
	{
		// FIADD DWord [EBP + 0x12345678]
		// FIADD (new DWordMemory(null, R32.EBP, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FIADD (new DWordMemory (null, R32.EBP, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xda, 0x85, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'FIADD DWord [EBP + 0x12345678]' failed.");
	}
Esempio n. 2
0
	public void FIADD_mem16 ()
	{
		// FIADD Word [ECX]
		// FIADD (new WordMemory(null, R32.ECX, null, 0))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FIADD (new WordMemory (null, R32.ECX, null, 0));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xde, 0x1 };
		Assert.IsTrue (CompareData (memoryStream, target), "'FIADD Word [ECX]' failed.");
	}