Mail Archives: djgpp/2001/07/19/07:57:21
I wrote:
>#include<go32.h>
>#include<dpmi.h>
>#include<sys/farptr.h>
>
>_farpokeb (_dos_ds, ScreenPrimary + 12*160 + 80, 1);
>
>
>
>D:\GCC203>gcc video3.c -o video3.out
OK, I knew, that I had perhaps to include a main() . (but wasn't sure)
I tried this before with one of the other versions but failed.
Now I got your version working:
#include<go32.h>
#include<dpmi.h>
#include<sys/farptr.h>
int main() {
long int ScreenPrimary=0xb8000;
_farpokeb (_dos_ds, ScreenPrimary + 12*160 + 80, 1);
}
// D:\GCC203>gcc video3.c -o video3.out
looks fine and easy now , but took me quite some time !
- Raw text -