delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/01/07:01:09

From: Wojciech Zabolotny <wzab AT ise DOT pw DOT edu DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: HELP! Assembly language dual mode interrupt handler for djgpp program
Date: Mon, 1 Mar 1999 12:55:04 +0100
Organization: http://news.icm.edu.pl/
Lines: 23
Message-ID: <Pine.LNX.3.96.990301124809.446A-100000@ipebio15.ise.pw.edu.pl>
NNTP-Posting-Host: ipebio15.ise.pw.edu.pl
Mime-Version: 1.0
X-Trace: sunsite.icm.edu.pl 920289305 21256 148.81.29.49 (1 Mar 1999 11:55:05 GMT)
X-Complaints-To: abuse AT news DOT icm DOT edu DOT pl
NNTP-Posting-Date: 1 Mar 1999 11:55:05 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi!

I have to write the assembly language interrupt handler to interface
a piece of hardware with my DJGPP compiled C++ program.
The interrupts rate is so high (up to 20 kHZ), that I have to install
both real mode and protected mode handlers. Additionally, due to
the complicated data processing I have to write it in assembly language
(NASM I think). 
Unfortunately, although there are some information about the interrupt
handlers written in C language (even in DJGPP-faq - chapter 18),
I couldn't find anything about using the assembly language interrupt
handlers. How to write them, to interface them smoothly with the rest
of C program? How to access handler's data from the C program.
How to write "dual mode handler" (code which may be executed both in
real and in protected mode)?
Any help or pointers to sources of information is appreciated.

				TIA
				Wojtek Zabolotny
				wzab AT ise DOT pw DOT edu DOT pl



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019