Date: Tue, 8 Aug 1995 11:12:14 +0300 (IDT) From: Eli Zaretskii To: Kevin Baca Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: CLI asm instruction On Mon, 7 Aug 1995, Kevin Baca wrote: > This works great under plain DOS, but under Windows it's about 20% > slower. If I remove the CLI, the performance goes back up, but then > my buffer gets trashed. Anyone have any idea why the CLI slows > performance under Windows? CLI is a privileged instruction under Windows (disabling interrupts in a multitasked environment is a risky business), so Windows traps it and does what in effect disables interrupts for the task which asked for it. This inflicts runtime penalty.