Mail Archives: djgpp/1998/06/07/01:03:52
> Could someone please convert the following into proper DJGPP asm
>code?
Can't help you with the ASM, but here's a C function that does the same:
#include <pc.h>
static void WaitVBlank(void)
{
while (inp(0x3DA)&0x08);
while (!(inp(0x3DA)&0x08));
}
the inp()'s are inline assembler macros, and optimize down to one opcode
apiece, so this function is pretty efficient. You might want to compile
with the -S option, and check the assembler output to see the differences.
Later,
Matt.
- Raw text -