delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/08/15:37:28

Sender: nate AT cartsys DOT com
Message-ID: <35F58484.40ABE3E4@cartsys.com>
Date: Tue, 08 Sep 1998 12:24:52 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: Markus Brenner <brenner AT biochem DOT mpg DOT de>
CC: djgpp AT delorie DOT com
Subject: Re: Help with high-speed data aquisition
References: <6t15sc$7es$1 AT fu-berlin DOT de>

Markus Brenner wrote:

> My question is: Can I turn off interrupts, and if yes, how? I could well
> confine myself to use this tool under DOS, so I don't really have scrupels to
> kill the multitasking :) OTOH I am not very familiar with protected mode and
> memory management, can I still use large memory (needed for the buffer) if I
> turn off interrupts?

See the functions `enable' and `disable'.  Note that interrupts could
still happen (for instance, if a page of your buffer needs to be swapped
in).  You might consider locking your memory (with __dpmi functions, or
the crt0 flag (which is simpler though inflexible)).  And of course,
under Windows or another multitasker, it won't really disable interrupts
at all.
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


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