Mail Archives: djgpp/1995/01/31/12:24:21
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 -