SETO() public method

SETO mem8
public SETO ( ByteMemory target ) : void
target ByteMemory
return void
Esempio n. 1
0
	public void SETO_rmreg8 ()
	{
		// SETO CH
		// SETO (R8.CH)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETO (R8.CH);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x90, 0xc5 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETO CH' failed.");
	}
Esempio n. 2
0
	public void SETO_mem8 ()
	{
		// SETO Byte [EAX*4 + 0x12345678]
		// SETO (new ByteMemory(null, null, R32.EAX, 2, 0x12345678))
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.SETO (new ByteMemory (null, null, R32.EAX, 2, 0x12345678));
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xf, 0x90, 0x4, 0x85, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'SETO Byte [EAX*4 + 0x12345678]' failed.");
	}