Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ucla-cs!feldy From: feldy@CS.UCLA.EDU Newsgroups: comp.sys.ibm.pc Subject: Calling IBM C from Assembler interrupt routine Message-ID: <5145@shemp.ucla-cs.UCLA.EDU> Date: Thu, 19-Mar-87 19:59:08 EST Article-I.D.: shemp.5145 Posted: Thu Mar 19 19:59:08 1987 Date-Received: Sat, 21-Mar-87 07:23:12 EST Sender: root@ucla-cs.UCLA.EDU Reply-To: feldy@CS.UCLA.EDU (Bob Felderman) Distribution: world Organization: UCLA Computer Science Department Lines: 16 I'm writing an interrupt routine on PC-AT and I want to call a C function from the assembler code. Does anyone have some "canned" code to set up the stack and other pointers before calling the C routine? My current attempt calls the C routine and then fails with a stack overflow. I'm using Microsoft Assembler and IBM C version 1.0. This version of C is roughly Microsoft C version 3.0 with "enhancements". Thanks in advance. Bob Felderman 3732L Boelter Hall feldy@ats.ucla.edu University of California ...!{trwspp,sdcrdcf,ihnp4,ucbvax}!ucla-cs!feldy Los Angeles, CA 90024 (213) 825-2841