Mail Archives: djgpp/2003/02/18/22:00:12
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 <dos.h>
#include <dpmi.h>
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
- Raw text -