www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/01/13:24:02

Date: Mon, 1 Mar 1999 16:31:20 +0100 (CET)
From: Wojciech Zabolotny <wzab AT ise DOT pw DOT edu DOT pl>
To: djgpp AT delorie DOT com
Subject: HELP! Assembly language dual mode interrupt handler for djgpp program
Message-ID: <Pine.LNX.3.96.990301163037.622A-100000@ipebio15.ise.pw.edu.pl>
MIME-Version: 1.0
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