From: Dirk Zabel Newsgroups: comp.os.msdos.djgpp Subject: delay call under XP Date: 17 Feb 2003 23:54:08 +0100 Organization: private site Lines: 35 Sender: Dirk AT AUENLAND Message-ID: X-Trace: news.eusc.inter.net 1045522543 21643 213.73.67.136 (17 Feb 2003 22:55:43 GMT) X-Complaints-To: abuse AT eusc DOT inter DOT net X-Newsreader: Gnus v5.7/Emacs 20.7 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello everyone, i am using djgpp 2.00 for long under Win 95/98, and it worked great for me. Now i aquired a new machine running XP home and tried to move my applications. The first step was update to 2.03, which solved most problems, but one remains: delay does not work any more. The function returns immediately regardless of the argument i provide. After a look into the source I gave up: delay.c runs: /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ #include #include void delay(unsigned msec) { __dpmi_regs r; while (msec) { unsigned usec; unsigned msec_this = msec; if (msec_this > 4000) msec_this = 4000; usec = msec_this * 1000; r.h.ah = 0x86; r.x.cx = usec>>16; r.x.dx = usec & 0xffff; __dpmi_int(0x15, &r); msec -= msec_this; } } and i have no idea what goes wrong. Any ideas? Or did i miss something in the docs? TIA Dirk