SETG() public method

SETG mem8
public SETG ( ByteMemory target ) : void
target ByteMemory
return void
Esempio n. 1
0
	public void SETG_rmreg8 ()
	{
		// SETG CL
		// SETG (R8.CL)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETG (R8.CL);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x9f, 0xc1 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETG CL' failed.");
	}
Esempio n. 2
0
	public void SETG_mem8 ()
	{
		// SETG Byte [GS:EBP]
		// SETG (new ByteMemory(Seg.GS, R32.EBP, null, 0))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETG (new ByteMemory (Seg.GS, R32.EBP, null, 0));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x65, 0xf, 0x9f, 0x45, 0x0 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETG Byte [GS:EBP]' failed.");
	}