FADD() public method

FADD mem32
public FADD ( DWordMemory target ) : void
target DWordMemory
return void
Esempio n. 1
0
	public void FADD_fpureg ()
	{
		// FADD ST5
		// FADD (FP.ST5)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FADD (FP.ST5);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xd8, 0xc5 };
		Assert.IsTrue (CompareData (memoryStream, target), "'FADD ST5' failed.");
	}
Esempio n. 2
0
	public void FADD_mem64 ()
	{
		// FADD QWord [0x12345678]
		// FADD (new QWordMemory(null, null, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FADD (new QWordMemory (null, null, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xdc, 0x5, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'FADD QWord [0x12345678]' failed.");
	}