Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!princeton!mind!tiger!wei From: wei@tiger.Princeton.EDU (P Wei) Newsgroups: comp.sys.ibm.pc,comp.lang.c Subject: making COM program using assembly language with C routines ? Message-ID: <200@tiger.Princeton.EDU> Date: Wed, 21-Oct-87 13:08:22 EDT Article-I.D.: tiger.200 Posted: Wed Oct 21 13:08:22 1987 Date-Received: Sat, 24-Oct-87 05:24:02 EDT Organization: EE, Princeton University Lines: 27 Keywords: COM Xref: mnetor comp.sys.ibm.pc:9286 comp.lang.c:5062 I am using IBM MASM 2.0 and MSC 4.0. The problem is that I want to make a COM program written in assembly language in which I call some comercial library routines written in C. The first naive intuition is the following: _text segment byte public 'code' _text ends _data segment word public 'data' _data ends dgroup group _text, _data ; forcing _text and _data to be ; in the same segment _text segment byte public 'code' assume cs:dgroup, ds:dgroup, ss:dgroup extrn croutines:near public _main org 100h _main proc near call _croutines int 20h _main endp _text ends end _main AND this doesn't work. The linker gave me three 'fixup overflow...' messages. It looks like I have to work on the start up code for MSC. Well, can somebody give me some hints or suggestions ? thanks HP wei@princeton.UUCP