public void SETNGE_rmreg8 () { // SETNGE CL // SETNGE (R8.CL) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.SETNGE (R8.CL); asm.Encode (memoryStream); byte [] target = new byte [] { 0xf, 0x9c, 0xc1 }; Assert.IsTrue (CompareData (memoryStream, target), "'SETNGE CL' failed."); }
public void SETNGE_mem8 () { // SETNGE Byte [ECX*2 + 0x12345678] // SETNGE (new ByteMemory(null, null, R32.ECX, 1, 0x12345678)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.SETNGE (new ByteMemory (null, null, R32.ECX, 1, 0x12345678)); asm.Encode (memoryStream); byte [] target = new byte [] { 0xf, 0x9c, 0x84, 0x9, 0x78, 0x56, 0x34, 0x12 }; Assert.IsTrue (CompareData (memoryStream, target), "'SETNGE Byte [ECX*2 + 0x12345678]' failed."); }