🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #1981

Re: Using mice with C w/o machine language

#1981
From: Joe Huffman
Date: Fri, 24 Aug 1990 09:06
19 lines
1221 bytes
In article <1990Aug23.215002.8771@uokmax.uucp>, gene@uokmax.uucp (Gene E. 
 Johannsen) writes:
> This vector has to be in the es:dx registers when this interrupt is called.  
> How in a C program can I make these registers point to a C routine?

You can't do it without a helper function.  Zortech has the msm_XXXX family
of functions.  One of which will install your interrupt.  You could also
do it with the int86x() function.  Be careful though.  In this case it 
can't be a standard C function.  The return must be an IRET, not a RET.
the msm_ function puts a 'wrapper' around your 'C' function with an IRET
in the proper place...

Some other compilers have a special interrupt declared function type.


-- 
joe@proto.com
uunet!proto!joe
FAX: 208-263-8772
Technical Details
Message-ID: <1403@proto.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!yale!cs.utexas.edu!uunet!proto!joe
References: <1990Aug23.215002.8771@uokmax.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!yale!cs.utexas.edu!uunet!proto!joe
From: joe@proto.COM (Joe Huffman)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Using mice with C w/o machine language
Summary: Zortech has a function to call for this.
Message-ID: <1403@proto.COM>
Date: 24 Aug 90 09:06:34 GMT
References: <1990Aug23.215002.8771@uokmax.uucp>
Organization: Prototronics; Sandpoint, Idaho
Lines: 19