FISUB() public method

FISUB mem32
public FISUB ( DWordMemory target ) : void
target DWordMemory
return void
Beispiel #1
0
	public void FISUB_mem32 ()
	{
		// FISUB DWord [GS:EBP + 0x12345678]
		// FISUB (new DWordMemory(Seg.GS, R32.EBP, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FISUB (new DWordMemory (Seg.GS, R32.EBP, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x65, 0xda, 0xa5, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'FISUB DWord [GS:EBP + 0x12345678]' failed.");
	}
Beispiel #2
0
	public void FISUB_mem16 ()
	{
		// FISUB Word [EAX + 0x12345678]
		// FISUB (new WordMemory(null, R32.EAX, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FISUB (new WordMemory (null, R32.EAX, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xde, 0xa0, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'FISUB Word [EAX + 0x12345678]' failed.");
	}