Xref: utzoo comp.sys.intel:1751 alt.lang.asm:71 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!olivea!mintaka!spdcc!dirtydog.ima.isc.com!suitti From: suitti@ima.isc.com (Stephen Uitti) Newsgroups: comp.sys.intel,alt.lang.asm Subject: Re: Need help in porting 8088/286 assembly code to 386. Message-ID: <1991Jun24.160828.6047@ima.isc.com> Date: 24 Jun 91 16:08:28 GMT References: <1991Jun21.161443.13880@kofax.uucp> Sender: usenet@ima.isc.com (news) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 26 In article <1991Jun21.161443.13880@kofax.uucp> jdm@kofax.uucp (James D. Murray) writes: > > I am looking for any books/magazine articles that could help me in >realizing the changes that must be made to 8086/80286 assembly code >to make it 80386-only. I am porting some assembly code from DOS and >Windows to SCO Unix on a 386 machine and I need to optimize it for >386-only operation. > > 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. I am >not an Intel assembly programmer and any printed information on this specific >problem would be very helpful. The March 1991 Dr. Dobbs has an article explaining this with some detail. 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? Stephen. suitti@ima.isc.com "We Americans want peace, and it is now evident that we must be prepared to demand it. For other peoples have wanted peace, and the peace they received was the peace of death." - the Most Rev. Francis J. Spellman, Archbishop of New York. 22 September, 1940