public void FILD_mem32 () { // FILD DWord [GS:ECX] // FILD (new DWordMemory(Seg.GS, R32.ECX, null, 0)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.FILD (new DWordMemory (Seg.GS, R32.ECX, null, 0)); asm.Encode (memoryStream); byte [] target = new byte [] { 0x65, 0xdb, 0x1 }; Assert.IsTrue (CompareData (memoryStream, target), "'FILD DWord [GS:ECX]' failed."); }
public void FILD_mem64 () { // FILD QWord [EAX + ECX*8 + 0x12345678] // FILD (new QWordMemory(null, R32.EAX, R32.ECX, 3, 0x12345678)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.FILD (new QWordMemory (null, R32.EAX, R32.ECX, 3, 0x12345678)); asm.Encode (memoryStream); byte [] target = new byte [] { 0xdf, 0xac, 0xc8, 0x78, 0x56, 0x34, 0x12 }; Assert.IsTrue (CompareData (memoryStream, target), "'FILD QWord [EAX + ECX*8 + 0x12345678]' failed."); }
public void FILD_mem16 () { // FILD Word [ESI + 0x12345678] // FILD (new WordMemory(null, R32.ESI, null, 0, 0x12345678)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.FILD (new WordMemory (null, R32.ESI, null, 0, 0x12345678)); asm.Encode (memoryStream); byte [] target = new byte [] { 0xdf, 0x86, 0x78, 0x56, 0x34, 0x12 }; Assert.IsTrue (CompareData (memoryStream, target), "'FILD Word [ESI + 0x12345678]' failed."); }