public void SETPE_rmreg8 () { // SETPE AH // SETPE (R8.AH) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.SETPE (R8.AH); asm.Encode (memoryStream); byte [] target = new byte [] { 0xf, 0x9a, 0xc4 }; Assert.IsTrue (CompareData (memoryStream, target), "'SETPE AH' failed."); }
public void SETPE_mem8 () { // SETPE Byte [EBP + ECX*1] // SETPE (new ByteMemory(null, R32.EBP, R32.ECX, 0)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.SETPE (new ByteMemory (null, R32.EBP, R32.ECX, 0)); asm.Encode (memoryStream); byte [] target = new byte [] { 0xf, 0x9a, 0x44, 0xd, 0x0 }; Assert.IsTrue (CompareData (memoryStream, target), "'SETPE Byte [EBP + ECX*1]' failed."); }