delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/12/13/12:00:39

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Subject: Re: delay() different bahavior under Win98 window/fullscreen in DJGPP 2.04
From: "Rod Pemberton" <do_not_have AT bitfoad DOT cmm>
Date: Wed, 13 Dec 2006 11:52:10 -0500
Message-ID: <1166028710_4256@dscnews2.dcccd.edu>
References: <1165931131 DOT 768505 DOT 13330 AT 73g2000cwn DOT googlegroups DOT com> <t5udnW6gE8jud-PYnZ2dnUVZ_ujinZ2d AT comcast DOT com> <1165953093 DOT 635481 DOT 221520 AT 16g2000cwy DOT googlegroups DOT com> <AKydnWmn0cs-5eLYnZ2dnUVZ_obinZ2d AT comcast DOT com>
Lines: 34
NNTP-Posting-Host: 68.60.59.250
Newsgroups: comp.os.msdos.djgpp
X-Trace: dscnews2.dcccd.edu 1166028710 68.60.59.250 (13 Dec 2006 10:51:50 -0600)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Alexei A. Frounze" <alexfru AT chat DOT ru> wrote in message
news:AKydnWmn0cs-5eLYnZ2dnUVZ_obinZ2d AT comcast DOT com...
> I had to fix a couple of "induced" bugs in my DOS applications because of
> this. One app was an i8051 emulator which was checking if a key is pressed
> after execution of every instruction. The idea was to stop execution if a
> key was pressed. What happened is that Windows decided that the app is
doing
> too much of keyboard checks doing nothing good inbetween and slowed it
down
> below any reasonable level. Since this happens not immediately, on short
> 8051 pieces of code you'd never see this problem because there would be
not
> enough keyboard checks. But on larger 8051 pieces of code, there would be
> too many checks before the code finishes. My fix was to remove the old
> checks (calls to BIOS/DOS to see if a key is pressed) and hook up to the
> keyboard IRQ and get this info the other way.
>

This post provides an alternate method to _bios_keybrd():
http://groups.google.com/group/openwatcom.contributors/msg/ca944968d2a3485d?hl=en

I was planning on trying that method, but then I remembered that it may have
to be modified slightly for XP (perhaps NT,2k??):
http://groups.google.com/group/comp.os.msdos.djgpp/msg/67916cf4c1c73b7e?hl=en
http://groups.google.com/group/comp.os.msdos.djgpp/msg/30ac39382eb3560e?hl=en

What's interesting is that I haven't seen the OW guys bring up that last
issue with XP...


Rod Pemberton


- Raw text -


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