VERW() public method

VERW rmreg16
public VERW ( R16Type target ) : void
target R16Type
return void
Esempio n. 1
0
	public void VERW_rmreg16 ()
	{
		// VERW BP
		// VERW (R16.BP)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.VERW (R16.BP);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x0, 0xed };
		Assert.IsTrue (CompareData (memoryStream, target), "'VERW BP' failed.");
	}
Esempio n. 2
0
	public void VERW_mem16 ()
	{
		// VERW Word [GS:EDX*4]
		// VERW (new WordMemory(Seg.GS, null, R32.EDX, 2))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.VERW (new WordMemory (Seg.GS, null, R32.EDX, 2));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x65, 0xf, 0x0, 0x2c, 0x95, 0x0, 0x0, 0x0, 0x0 };
		Assert.IsTrue (CompareData (memoryStream, target), "'VERW Word [GS:EDX*4]' failed.");
	}