LSS() public method

LSS reg16,mem
public LSS ( R16Type target, Memory source ) : void
target R16Type
source Memory
return void
Example #1
0
	public void LSS_reg32_mem ()
	{
		// LSS EDX, [ECX + EAX*1 + 0x12345678]
		// LSS (R32.EDX, new DWordMemory(null, R32.ECX, R32.EAX, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.LSS (R32.EDX, new DWordMemory (null, R32.ECX, R32.EAX, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0xb2, 0x94, 0x1, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'LSS EDX, [ECX + EAX*1 + 0x12345678]' failed.");
	}
Example #2
0
	public void LSS_reg16_mem ()
	{
		// LSS BX, [EDI + 0x12345678]
		// LSS (R16.BX, new DWordMemory(null, R32.EDI, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.LSS (R16.BX, new DWordMemory (null, R32.EDI, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0xf, 0xb2, 0x9f, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'LSS BX, [EDI + 0x12345678]' failed.");
	}