public void FIDIVR_mem32 () { // FIDIVR DWord [SS:EBP*2 + 0x12345678] // FIDIVR (new DWordMemory(Seg.SS, null, R32.EBP, 1, 0x12345678)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.FIDIVR (new DWordMemory (Seg.SS, null, R32.EBP, 1, 0x12345678)); asm.Encode (memoryStream); byte [] target = new byte [] { 0x36, 0xda, 0xbc, 0x2d, 0x78, 0x56, 0x34, 0x12 }; Assert.IsTrue (CompareData (memoryStream, target), "'FIDIVR DWord [SS:EBP*2 + 0x12345678]' failed."); }
public void FIDIVR_mem16 () { // FIDIVR Word [EBP*1 + 0x12345678] // FIDIVR (new WordMemory(null, null, R32.EBP, 0, 0x12345678)) MemoryStream memoryStream = new MemoryStream (); Assembly asm = new Assembly (); asm.FIDIVR (new WordMemory (null, null, R32.EBP, 0, 0x12345678)); asm.Encode (memoryStream); byte [] target = new byte [] { 0xde, 0xbd, 0x78, 0x56, 0x34, 0x12 }; Assert.IsTrue (CompareData (memoryStream, target), "'FIDIVR Word [EBP*1 + 0x12345678]' failed."); }