delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/09/02:25:11

From: "Mike McDonald" <kelek AT engin DOT umich DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Urgent Question: Interrupt handling
Date: 9 Oct 1996 02:51:14 GMT
Organization: University of Michigan Engineering, Ann Arbor
Lines: 21
Message-ID: <01bbb58c$a6acc510$c61ed58d@enigma>
NNTP-Posting-Host: enigma.engin.umich.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

    I, being new to djgpp and AT&T assembly, am programming a keyboard
interrupt handler for a simple DOS game under djgpp.  I set the new vector
using DOS function 35h but whenever the interrupt is called, the program
immediately exits.  The interrupt handler does nothing except a nop and
return:

	__asm__ __volatile__ ("
	   _Keyboard_Driver:\n
		nop\n
		iret"
	);

     Am I missing something about programming interrupt handlers under
djgpp?  I need to finish this handler ASAP.  Could anyone post or e-mail me
some sample code for setting up a rudimentary interrupt handler?


- Mike McDonald
kelek AT engin DOT umich DOT edu

- Raw text -


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