public void SETBE_rmreg8 () { // SETBE BL // SETBE (R8.BL) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.SETBE (R8.BL); asm.Encode (memoryStream); byte [] target = new byte [] { 0xf, 0x96, 0xc3 }; Assert.IsTrue (CompareData (memoryStream, target), "'SETBE BL' failed."); }
public void SETBE_mem8 () { // SETBE Byte [DS:ESI*2 + 0x12345678] // SETBE (new ByteMemory(Seg.DS, null, R32.ESI, 1, 0x12345678)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.SETBE (new ByteMemory (Seg.DS, null, R32.ESI, 1, 0x12345678)); asm.Encode (memoryStream); byte [] target = new byte [] { 0x3e, 0xf, 0x96, 0x84, 0x36, 0x78, 0x56, 0x34, 0x12 }; Assert.IsTrue (CompareData (memoryStream, target), "'SETBE Byte [DS:ESI*2 + 0x12345678]' failed."); }