ROR() public method

ROR mem8,imm8
public ROR ( ByteMemory target, Byte source ) : void
target ByteMemory
source Byte
return void
Esempio n. 1
0
	public void ROR_rmreg32_imm8 ()
	{
		// ROR EBP, 0xa
		// ROR (R32.EBP, 0xa)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.ROR (R32.EBP, 0xa);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xc1, 0xcd, 0xa };
		Assert.IsTrue (CompareData (memoryStream, target), "'ROR EBP, 0xa' failed.");
	}
Esempio n. 2
0
	public void ROR_rmreg16_imm8 ()
	{
		// ROR BP, 0xe
		// ROR (R16.BP, 0xe)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.ROR (R16.BP, 0xe);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0xc1, 0xcd, 0xe };
		Assert.IsTrue (CompareData (memoryStream, target), "'ROR BP, 0xe' failed.");
	}
Esempio n. 3
0
	public void ROR_rmreg8_imm8 ()
	{
		// ROR AL, 0x8
		// ROR (R8.AL, 0x8)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.ROR (R8.AL, 0x8);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xc0, 0xc8, 0x8 };
		Assert.IsTrue (CompareData (memoryStream, target), "'ROR AL, 0x8' failed.");
	}
Esempio n. 4
0
	public void ROR_mem32_imm8 ()
	{
		// ROR DWord [ESI + ESI*1], 0x3
		// ROR (new DWordMemory(null, R32.ESI, R32.ESI, 0), 0x3)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.ROR (new DWordMemory (null, R32.ESI, R32.ESI, 0), 0x3);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xc1, 0xc, 0x36, 0x3 };
		Assert.IsTrue (CompareData (memoryStream, target), "'ROR DWord [ESI + ESI*1], 0x3' failed.");
	}
Esempio n. 5
0
	public void ROR_mem16_imm8 ()
	{
		// ROR Word [0x12345678], 0xc
		// ROR (new WordMemory(null, null, null, 0, 0x12345678), 0xc)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.ROR (new WordMemory (null, null, null, 0, 0x12345678), 0xc);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0x66, 0xc1, 0xd, 0x78, 0x56, 0x34, 0x12, 0xc };
		Assert.IsTrue (CompareData (memoryStream, target), "'ROR Word [0x12345678], 0xc' failed.");
	}
Esempio n. 6
0
	public void ROR_mem8_imm8 ()
	{
		// ROR Byte [0x12345678], 0x1
		// ROR (new ByteMemory(null, null, null, 0, 0x12345678), 0x1)
		MemoryStream memoryStream = new MemoryStream ();
		Assembly asm = new Assembly ();
		asm.ROR (new ByteMemory (null, null, null, 0, 0x12345678), 0x1);
		asm.Encode (memoryStream);
		byte [] target = new byte [] { 0xd0, 0xd, 0x78, 0x56, 0x34, 0x12 };
		Assert.IsTrue (CompareData (memoryStream, target), "'ROR Byte [0x12345678], 0x1' failed.");
	}