[net.micro.pc] C86 .asm files HELP

cnrdean@ucbtopaz.CC.Berkeley.ARPA (01/12/85)

I am using the C86 C Compiler on a PC.  I need some information 
this weekend if possible; so I can't call CI.

I want to use the 'loadexec' function provided in the dos2.arc.  
However, it is an assembly language program (loadexec.asm).  I 
have never used assembly language programs with C86 before, and 
don't have a clue how to.

My guess is that I have to assemble it with some assembler to
create a '.obj' file, and then link with the linker.  I already
know how to do the latter part with the compiled C routines.
But, I don't know how to assemble the loadexec.asm.  I don't have
any assembler (as far as I know).  All I have besides C86 stuff
is dos 2.10.

Thanks, in advance.

Sam Scalise
UC Berkeley

hohensee@uiucdcs.UUCP (01/15/85)

Sam, why is it that you think (thought) that you had to 
reassemble the loadexec function?  Were you going to make
some modifications to it?  If you simply planned on using
it in some C program that you wrote, why not link as you
would normally with the C86S2S.LIB?

Sorry, I don't understand.

al@psivax.UUCP (Al Schwartz) (01/16/85)

The source code for the loadexec function may be in .asm but the object code
for it should already be in one of the libraries supplied with the compiler.
The library will be a file with a name such as "C86S2S.LIB" (the library for
DOS 2.0 calls, small model and software emulation on IEEE floating point
numbers).  Try linking to the library and see if you get an unresolved
reference called loadexec.  I bet you wont.  You will only need the assembler
if you wish to make changes to the source code.
-- 
Antipasto tastes better than Toe-Jam!    Al Schwartz
                                      Pacesetter Systems Inc., Sylmar, CA 
{trwrb|allegra|burdvax|cbosgd|hplabs|ihnp4|sdcsvax}!sdcrdcf!psivax!al