Mail Archives: djgpp/1994/09/23/21:29:34
Here's the corrected example:
> #include <stdio.h>
> #include <go32.h>
> #include <sys/farptr.h>
>
> void main ()
> {
> char color = 0;
> long loop = 0;
>
> asm ("mov $0x0013, %eax");
> asm ("int $0x10");
>
> _farsetsel(__go32_conventional_mem_selector());
> for ( color = 0; color <=255 ; color++)
> for ( loop = 0; loop <= 65535 ; loop++ )
> _farnspokeb ( 0xa0000 + loop, color );
>
> while (getchar() == '\0');
>
> asm ("mov $0x0003, %eax");
> asm ("int $0x10");
> return;
> }
Note that I haven't actually tried this yet.
- Raw text -