Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!ames!ucbcad!ucbvax!sdcsvax!ucsdhub!jack!man!sdsu!m596008 From: m596008@sdsu.UUCP Newsgroups: comp.lang.pascal Subject: Re: Linking assembly with Turbo Pascal Message-ID: <2562@sdsu.UUCP> Date: Wed, 1-Apr-87 23:22:23 EST Article-I.D.: sdsu.2562 Posted: Wed Apr 1 23:22:23 1987 Date-Received: Sat, 4-Apr-87 10:48:52 EST References: <245@io.UUCP> Reply-To: m596008@sdsu.UUCP (Robotix Wizz!) Organization: San Diego State University, Math/Sciences Dept. Lines: 14 Summary: here's what I did... In article <245@io.UUCP> alan@io.UUCP writes: >I have just purchased Turbo Pascal for my pc compatible. I have written >an assembly language piece of code, assembled it, linked it, and >converted it to a .com file. It runs standalone, however when I >declare it an external in Turbo it does not run properly. I had the same problems. Even though I followed the Borland manuals exactly when it came to the passed parameters and return address on the stack. After fiddling around I got it to work by stacking these things differently. I am running Turbo Pascal 3.03a on an XT. I will dig up this code and post the relevant sections. John Falkenthal Lowly student until May 23!