Mail Archives: djgpp/1998/03/14/13:45:40
Michael Langton wrote:
> This program is intended to put a smiley character in the top left of
> the text mode screen)
> #include <conio.h>
>
> main() {
> char *p = (char) 0xb8000;
> p = 1;
> getch();
> }
how do you intend to achieve that with p=1?
#include <sys/farptr.h>
#include <go32.h>
#include <conio.h>
#define SMILEY 1
int main(void)
{
clrscr();
_farpokeb(_dos_ds, 0xb8000, SMILEY);
getch();
return 0;
}
info libc alpha _far has more info.
--
----------------------------------------------------------------------
A. Sinan Unur
Department of Policy Analysis and Management, College of Human Ecology,
Cornell University, Ithaca, NY 14853, USA
mailto:sinan DOT unur AT cornell DOT edu
http://www.people.cornell.edu/pages/asu1/
- Raw text -