FIDIV() public method

FIDIV mem32
public FIDIV ( DWordMemory target ) : void
target DWordMemory
return void
Esempio n. 1
0
	public void FIDIV_mem32 ()
	{
		// FIDIV DWord [FS:EAX*1]
		// FIDIV (new DWordMemory(Seg.FS, null, R32.EAX, 0))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FIDIV (new DWordMemory (Seg.FS, null, R32.EAX, 0));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x64, 0xda, 0x30 };
		Assert.IsTrue (CompareData (memoryStream, target), "'FIDIV DWord [FS:EAX*1]' failed.");
	}
Esempio n. 2
0
	public void FIDIV_mem16 ()
	{
		// FIDIV Word [CS:0x12345678]
		// FIDIV (new WordMemory(Seg.CS, null, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FIDIV (new WordMemory (Seg.CS, null, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x2e, 0xde, 0x35, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'FIDIV Word [CS:0x12345678]' failed.");
	}