www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/19/07:57:21

From: Sterten AT aol DOT com
Message-ID: <5f.18129a39.288824a1@aol.com>
Date: Thu, 19 Jul 2001 07:55:13 EDT
Subject: Re: pokeb peekb
To: eliz AT is DOT elta DOT co DOT il
CC: djgpp AT delorie DOT com
MIME-Version: 1.0
X-Mailer: AOL 3.0 16-bit for Windows sub 60
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019