SETL() public method

SETL mem8
public SETL ( ByteMemory target ) : void
target ByteMemory
return void
Esempio n. 1
0
	public void SETL_rmreg8 ()
	{
		// SETL CH
		// SETL (R8.CH)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETL (R8.CH);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x9c, 0xc5 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETL CH' failed.");
	}
Esempio n. 2
0
	public void SETL_mem8 ()
	{
		// SETL Byte [EDX + 0x12345678]
		// SETL (new ByteMemory(null, R32.EDX, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETL (new ByteMemory (null, R32.EDX, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x9c, 0x82, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETL Byte [EDX + 0x12345678]' failed.");
	}