public void SETP_rmreg8 () { // SETP CH // SETP (R8.CH) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.SETP (R8.CH); asm.Encode (memoryStream); byte [] target = new byte [] { 0xf, 0x9a, 0xc5 }; Assert.IsTrue (CompareData (memoryStream, target), "'SETP CH' failed."); }
public void SETP_mem8 () { // SETP Byte [CS:ESI*8] // SETP (new ByteMemory(Seg.CS, null, R32.ESI, 3)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.SETP (new ByteMemory (Seg.CS, null, R32.ESI, 3)); asm.Encode (memoryStream); byte [] target = new byte [] { 0x2e, 0xf, 0x9a, 0x4, 0xf5, 0x0, 0x0, 0x0, 0x0 }; Assert.IsTrue (CompareData (memoryStream, target), "'SETP Byte [CS:ESI*8]' failed."); }