SETA() public method

SETA mem8
public SETA ( ByteMemory target ) : void
target ByteMemory
return void
Esempio n. 1
0
	public void SETA_rmreg8 ()
	{
		// SETA CL
		// SETA (R8.CL)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETA (R8.CL);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x97, 0xc1 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETA CL' failed.");
	}
Esempio n. 2
0
	public void SETA_mem8 ()
	{
		// SETA Byte [CS:EDI*4 + 0x12345678]
		// SETA (new ByteMemory(Seg.CS, null, R32.EDI, 2, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETA (new ByteMemory (Seg.CS, null, R32.EDI, 2, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x2e, 0xf, 0x97, 0x4, 0xbd, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETA Byte [CS:EDI*4 + 0x12345678]' failed.");
	}