FDIVR() public method

FDIVR mem32
public FDIVR ( DWordMemory target ) : void
target DWordMemory
return void
Esempio n. 1
0
	public void FDIVR_mem64 ()
	{
		// FDIVR QWord [ECX + 0x12345678]
		// FDIVR (new QWordMemory(null, R32.ECX, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FDIVR (new QWordMemory (null, R32.ECX, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xdc, 0xb9, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'FDIVR QWord [ECX + 0x12345678]' failed.");
	}
Esempio n. 2
0
	public void FDIVR_fpureg ()
	{
		// FDIVR ST4
		// FDIVR (FP.ST4)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FDIVR (FP.ST4);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xd8, 0xfc };
		Assert.IsTrue (CompareData (memoryStream, target), "'FDIVR ST4' failed.");
	}
Esempio n. 3
0
	public void FDIVR_mem32 ()
	{
		// FDIVR DWord [ES:0x12345678]
		// FDIVR (new DWordMemory(Seg.ES, null, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FDIVR (new DWordMemory (Seg.ES, null, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x26, 0xd8, 0x3d, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'FDIVR DWord [ES:0x12345678]' failed.");
	}