Date: Thu, 13 Feb 1997 19:15:20 +0200 (IST) From: Eli Zaretskii To: Liam cc: Michael Dylan Ryan , djgpp AT delorie DOT com Subject: Re: Help with Control-break code In-Reply-To: <199702131613.QAA26153@mx2.rmplc.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 13 Feb 1997, Liam wrote: > You can use inline assembly to turn off, or create your own > ctrl-c ctrl-brk... interupts > > mov ah,25h ; means change CTRL-C interupt > mov al,23h > mov dx,CTRL_INTERUPT ; your coded interupt > int 21h > > > CTRL_INTERUPT: iret ; return with out doing anything > Did you actually try this? I'm not sure it will work with DJGPP, because (1) the DPMI host itself hooks Ctrl-C; and (2) the value you put into DS:DX (btw, you forgot DS) should be a real mode SEG:OFF address, which means that the interrupt handler needs to be put into a buffer in the conventional memory (under 1MByte mark).