public void JMP_FAR_mem32 () { // JMP FAR DWord [ES:0x12345678] // JMP_FAR (new DWordMemory(Seg.ES, null, null, 0, 0x12345678)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.JMP_FAR (new DWordMemory (Seg.ES, null, null, 0, 0x12345678)); asm.Encode (memoryStream); byte [] target = new byte [] { 0x26, 0xff, 0x2d, 0x78, 0x56, 0x34, 0x12 }; Assert.IsTrue (CompareData (memoryStream, target), "'JMP FAR DWord [ES:0x12345678]' failed."); }
public void JMP_FAR_mem () { // JMP FAR [EBX] // JMP_FAR (new DWordMemory(null, R32.EBX, null, 0)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.JMP_FAR (new DWordMemory (null, R32.EBX, null, 0)); asm.Encode (memoryStream); byte [] target = new byte [] { 0xff, 0x2b }; Assert.IsTrue (CompareData (memoryStream, target), "'JMP FAR [EBX]' failed."); }