Article View: comp.os.msdos.programmer
Article #3255Re: Calling assembly routines from C
From: Kevin D. Quitt
Date: Sun, 02 Dec 1990 16:02
Date: Sun, 02 Dec 1990 16:02
21 lines
1380 bytes
1380 bytes
In article <1990Dec1.050322.15678@wpi.WPI.EDU> jhall@wpi.WPI.EDU (John Clinton Hall) writes:
>
>I am writing a program to be separately assembled to be linked with a C
>program. The assembly part prints a string using the undocumented INT 29h
>function call (I do know the dangers of using an undocumented function call).
Write a fake version of your assembly routine in C: same calling
parameters, etc. Make sure your fake code refers to each of the calling
parameters the way you expect to. Compile the module with the /Fa
option, and the compiler will produce a source assembly file, suitable
for hacking. All questions about referencing variables will be answered.
--
_
Kevin D. Quitt demott!kdq kdq@demott.com
DeMott Electronics Co. 14707 Keswick St. Van Nuys, CA 91405-1266
VOICE (818) 988-4975 FAX (818) 997-1190 MODEM (818) 997-4496 PEP last
96.37% of all statistics are made up.
Technical Details
Message-ID:
<1055@demott.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!usc!srhqla!demott!kdqReferences:
<1990Dec1.050322.15678@wpi.WPI.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!usc!srhqla!demott!kdq From: kdq@demott.COM (Kevin D. Quitt) Newsgroups: comp.os.msdos.programmer Subject: Re: Calling assembly routines from C Message-ID: <1055@demott.COM> Date: 2 Dec 90 16:02:27 GMT References: <1990Dec1.050322.15678@wpi.WPI.EDU> Reply-To: kdq@demott.COM (Kevin D. Quitt) Organization: DeMott Electronics Co., Van Nuys CA Lines: 21