wait for vertical retrace-crashes laptop
Juts wondered if anyone has had the same problem and if someone knew why: Im using mode 0x13 in dos and I have a problem with a wait for vertical retrace function. It goes like this (canīt get curly braces here on this keyboard now...so only whats inside):
while((inp(0x03da) & 0x08));
while(!(inp(0x03da) & 0x08));
I call this before my pixel plotting routines in a loop and it makes for example one pixel on screen dissapear and perhaps appear once in a while. When I have run the program everything behaves really strange. If I try to write anything with the keyboard only strange symbols appear and enter is out of function. Obviously I have messed badly with the systems internals, but what? Shouldnīt the wait_for_retrace implementation stop the flickering of animated stuff rather than almost remove it?
I use Turbo C compiler and running win98 and also tried in pure DOS on a laptop with LCD. I believe LCDs might have different ways to refresh from other screens, but then again, I can run DOS games brilliantly on the laptop?
Anyone have nay ideas?
Thanks