public void SETPO_rmreg8 () { // SETPO CH // SETPO (R8.CH) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.SETPO (R8.CH); asm.Encode (memoryStream); byte [] target = new byte [] { 0xf, 0x9b, 0xc5 }; Assert.IsTrue (CompareData (memoryStream, target), "'SETPO CH' failed."); }
public void SETPO_mem8 () { // SETPO Byte [EAX + EDI*1 + 0x12345678] // SETPO (new ByteMemory(null, R32.EAX, R32.EDI, 0, 0x12345678)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.SETPO (new ByteMemory (null, R32.EAX, R32.EDI, 0, 0x12345678)); asm.Encode (memoryStream); byte [] target = new byte [] { 0xf, 0x9b, 0x84, 0x38, 0x78, 0x56, 0x34, 0x12 }; Assert.IsTrue (CompareData (memoryStream, target), "'SETPO Byte [EAX + EDI*1 + 0x12345678]' failed."); }