Xref: utzoo comp.sys.intel:1752 alt.lang.asm:72 Newsgroups: comp.sys.intel,alt.lang.asm Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!ficc!peter From: peter@ficc.ferranti.com (Peter da Silva) Subject: Re: Need help in porting 8088/286 assembly code to 386. Message-ID: Reply-To: peter@ficc.ferranti.com (Peter da Silva) Organization: Xenix Support, FICC References: <1991Jun21.161443.13880@kofax.uucp> <1991Jun24.160828.6047@ima.isc.com> Date: Mon, 24 Jun 91 18:48:32 GMT In article <1991Jun24.160828.6047@ima.isc.com> suitti@ima.isc.com (Stephen Uitti) writes: > In article <1991Jun21.161443.13880@kofax.uucp> jdm@kofax.uucp (James D. Murray) writes: > >realizing the changes that must be made to 8086/80286 assembly code > >to make it 80386-only. > > I'm told that I need to do away with the lds and les instructions > >and rewrite code that considers the segement in address calculations. > My guess is that if the code ran on an 8088, it should run > reasonably quickly on a '386 without changes. The 386/25 on my > desk runs 20 times faster than my 8088/4.77 at home. Can an > additional 10%-50% going to buy anyone anything? Well, if the code uses segments extensively you can expect as much as a factor of 10 slowdown because of the extra costs involved in doing segment calculations. We have code here that runs slower on the 386 than on the 286 because of this. -- Peter da Silva; Ferranti International Controls Corporation; +1 713 274 5180; Sugar Land, TX 77487-5012; `-_-' "Have you hugged your wolf, today?"