LDS() public method

LDS reg16,mem
public LDS ( R16Type target, Memory source ) : void
target R16Type
source Memory
return void
Beispiel #1
0
	public void LDS_reg32_mem ()
	{
		// LDS EDI, [CS:EBP]
		// LDS (R32.EDI, new DWordMemory(Seg.CS, R32.EBP, null, 0))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.LDS (R32.EDI, new DWordMemory (Seg.CS, R32.EBP, null, 0));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x2e, 0xc5, 0x7d, 0x0 };
		Assert.IsTrue (CompareData (memoryStream, target), "'LDS EDI, [CS:EBP]' failed.");
	}
Beispiel #2
0
	public void LDS_reg16_mem ()
	{
		// LDS BP, [ECX + 0x12345678]
		// LDS (R16.BP, new DWordMemory(null, R32.ECX, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.LDS (R16.BP, new DWordMemory (null, R32.ECX, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0xc5, 0xa9, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'LDS BP, [ECX + 0x12345678]' failed.");
	}