FST() public method

FST mem32
public FST ( DWordMemory target ) : void
target DWordMemory
return void
Esempio n. 1
0
	public void FST_mem64 ()
	{
		// FST QWord [ES:0x12345678]
		// FST (new QWordMemory(Seg.ES, null, null, 0, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FST (new QWordMemory (Seg.ES, null, null, 0, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x26, 0xdd, 0x15, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'FST QWord [ES:0x12345678]' failed.");
	}
Esempio n. 2
0
	public void FST_fpureg ()
	{
		// FST ST1
		// FST (FP.ST1)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FST (FP.ST1);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xdd, 0xd1 };
		Assert.IsTrue (CompareData (memoryStream, target), "'FST ST1' failed.");
	}
Esempio n. 3
0
	public void FST_mem32 ()
	{
		// FST DWord [EAX*2]
		// FST (new DWordMemory(null, null, R32.EAX, 1))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.FST (new DWordMemory (null, null, R32.EAX, 1));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xd9, 0x14, 0x0 };
		Assert.IsTrue (CompareData (memoryStream, target), "'FST DWord [EAX*2]' failed.");
	}