FISUBR() public method

FISUBR mem32
public FISUBR ( DWordMemory target ) : void
target DWordMemory
return void
Esempio n. 1
0
	public void FISUBR_mem32 ()
	{
		// FISUBR DWord [ESI + 0x12345678]
		// FISUBR (new DWordMemory(null, R32.ESI, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FISUBR (new DWordMemory (null, R32.ESI, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xda, 0xae, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'FISUBR DWord [ESI + 0x12345678]' failed.");
	}
Esempio n. 2
0
	public void FISUBR_mem16 ()
	{
		// FISUBR Word [GS:EDX*1]
		// FISUBR (new WordMemory(Seg.GS, null, R32.EDX, 0))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FISUBR (new WordMemory (Seg.GS, null, R32.EDX, 0));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x65, 0xde, 0x2a };
		Assert.IsTrue (CompareData (memoryStream, target), "'FISUBR Word [GS:EDX*1]' failed.");
	}