www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/14/08:35:16

Message-Id: <199702141321.NAA04485@mx2.rmplc.co.uk>
From: "Liam" <marl AT rmplc DOT co DOT uk>
To: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Cc: "<Michael Dylan Ryan" <mdr6 AT dana DOT ucc DOT nau DOT edu>, <djgpp AT delorie DOT com>
Subject: Re: Help with Control-break code
Date: Thu, 13 Feb 1997 21:45:24 -0000
MIME-Version: 1.0

I have used the below code with Nasm with out any
modification. I'm not sure if it would work with DJGPP
after it has been converted to AT&T syntax that
it understands becuse DJGPP will of course add
its own error handling to it. I'v just tried using it with
DJGPP but it did'n work
Sorry
Liam

----------
> From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
> > 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). 

- Raw text -


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