FICOMP() public method

FICOMP mem32
public FICOMP ( DWordMemory target ) : void
target DWordMemory
return void
Esempio n. 1
0
	public void FICOMP_mem32 ()
	{
		// FICOMP DWord [DS:EBX*2]
		// FICOMP (new DWordMemory(Seg.DS, null, R32.EBX, 1))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FICOMP (new DWordMemory (Seg.DS, null, R32.EBX, 1));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x3e, 0xda, 0x1c, 0x1b };
		Assert.IsTrue (CompareData (memoryStream, target), "'FICOMP DWord [DS:EBX*2]' failed.");
	}
Esempio n. 2
0
	public void FICOMP_mem16 ()
	{
		// FICOMP Word [ES:ECX + EBP*2]
		// FICOMP (new WordMemory(Seg.ES, R32.ECX, R32.EBP, 1))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FICOMP (new WordMemory (Seg.ES, R32.ECX, R32.EBP, 1));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x26, 0xde, 0x1c, 0x69 };
		Assert.IsTrue (CompareData (memoryStream, target), "'FICOMP Word [ES:ECX + EBP*2]' failed.");
	}