Mail Archives: djgpp/1998/09/08/15:37:28
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 -