Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!rochester!ritcv!ritcsh!ultb!pad3563 From: pad3563@ultb.UUCP (P.A. Deupree ) Newsgroups: comp.sys.ibm.pc Subject: External variables using Microsoft C and MASM Message-ID: <142@ultb.UUCP> Date: 27 Oct 88 16:07:56 GMT Reply-To: pad3563@ultb.UUCP (P.A. Deupree (713ICS)) Organization: Rochester Institute of Technology (Info Systems) Lines: 30 I've recently been trying to figure out how to interface between Microsoft C and Microsoft Macro Assembler and I'm having a few problems. To start off, I'm using C 5.0 and MASM 5.0 (I think that's the number, but in any case it's the version that has the 286 commands in it). I've written stuff and gotten it to successfully link up as far as external function and procedure calls go. The C program can find the assembly procedures and the Assembly program can find the C procedures. Here's where the problem is It won't accept my externally defined variables. I defined them all as EXTRN in the assembly program and gave them _ in front. However, I'm still getting tons of linker messages saying they are undefined and I can't figure it. Oh yeah, I got the C program to accept a value that I defined in my Assembly program just fine also (course, I havn't been able to run it and see if it is REALLY accepting things). The linker doesn't cough on them. Just the darn C to ASM values. While I'm at it I may as well bring up another one. Has anyone successfully written something to field interrupts from the Logitech Bus Mouse? I've got one and found the interrupt vector listed in the instruction manual (is that a miracle or what?) but it didn't work out. Course, I could just be a bonehead that didn't set up my ISR correctly (those addresses are tricky). Any help would be greatly appreciated since I've been noodling over this one for about a week. -- Patrick A. Deupree Bitnet: PAD3563@RITVAX.BITNET UUCP: pxd3563@ultb.UUCP "I have great faith in fools. Self confidence my friends call it." Edgar Allen Poe