SETP() public method

SETP mem8
public SETP ( ByteMemory target ) : void
target ByteMemory
return void
Esempio n. 1
0
	public void SETP_rmreg8 ()
	{
		// SETP CH
		// SETP (R8.CH)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETP (R8.CH);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x9a, 0xc5 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETP CH' failed.");
	}
Esempio n. 2
0
	public void SETP_mem8 ()
	{
		// SETP Byte [CS:ESI*8]
		// SETP (new ByteMemory(Seg.CS, null, R32.ESI, 3))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETP (new ByteMemory (Seg.CS, null, R32.ESI, 3));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x2e, 0xf, 0x9a, 0x4, 0xf5, 0x0, 0x0, 0x0, 0x0 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETP Byte [CS:ESI*8]' failed.");
	}