delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/01/31/12:24:21

From: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
To: DJGPP AT sun DOT soe DOT clarkson DOT edu
Date: Tue, 31 Jan 1995 11:17:54 GMT
Subject: Re: Writing to screens etc

I wrote:-
> Can I write an 0x14 byte to graphics screen address 0xa0000017 in Gnu C
thus:- ? ...

Charles Sandmann <sandmann AT new-orleans DOT NeoSoft DOT com> replied:-
> ... A simple example of what you want to do is:
> #include <go32.h>
> #include <sys/farptr.h>
>    _farsetsel(_go32_info_block.selector_for_linear_memory);
>    _farnspokeb(0xa0017,0x14);

(1) Should `0xa0017' be `0x0017' or `0xa0000017'?
(2) Do I have to call farsetsel() once per program, or every time I write to
the screen?

- Raw text -


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