public CMOVO ( R16Type target, R16Type source ) : void | ||
target | R16Type | |
source | R16Type | |
return | void |
public void CMOVO_reg32_rmreg32 () { // CMOVO ECX, EBP // CMOVO (R32.ECX, R32.EBP) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.CMOVO (R32.ECX, R32.EBP); asm.Encode (memoryStream); byte [] target = new byte [] { 0xf, 0x40, 0xcd }; Assert.IsTrue (CompareData (memoryStream, target), "'CMOVO ECX, EBP' failed."); }
public void CMOVO_reg32_mem32 () { // CMOVO ESI, [EAX + EDX*4 + 0x12345678] // CMOVO (R32.ESI, new DWordMemory(null, R32.EAX, R32.EDX, 2, 0x12345678)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.CMOVO (R32.ESI, new DWordMemory (null, R32.EAX, R32.EDX, 2, 0x12345678)); asm.Encode (memoryStream); byte [] target = new byte [] { 0xf, 0x40, 0xb4, 0x90, 0x78, 0x56, 0x34, 0x12 }; Assert.IsTrue (CompareData (memoryStream, target), "'CMOVO ESI, [EAX + EDX*4 + 0x12345678]' failed."); }
public void CMOVO_reg16_rmreg16 () { // CMOVO DI, CX // CMOVO (R16.DI, R16.CX) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.CMOVO (R16.DI, R16.CX); asm.Encode (memoryStream); byte [] target = new byte [] { 0x66, 0xf, 0x40, 0xf9 }; Assert.IsTrue (CompareData (memoryStream, target), "'CMOVO DI, CX' failed."); }
public void CMOVO_reg16_mem16 () { // CMOVO CX, [ECX + 0x12345678] // CMOVO (R16.CX, new WordMemory(null, R32.ECX, null, 0, 0x12345678)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.CMOVO (R16.CX, new WordMemory (null, R32.ECX, null, 0, 0x12345678)); asm.Encode (memoryStream); byte [] target = new byte [] { 0x66, 0xf, 0x40, 0x89, 0x78, 0x56, 0x34, 0x12 }; Assert.IsTrue (CompareData (memoryStream, target), "'CMOVO CX, [ECX + 0x12345678]' failed."); }