Mail Archives: djgpp/1998/04/23/23:58:18
At 10:37 4/23/1998 +0200, Marco Koegler wrote:
>Hi all!
>
>
>OK, here's my little problem. I want to code some VESA routines for the
>LFB modes. I'm currently at the following stage:
>
>I can set the mode I want and draw around on the screen, blah blah blah
>
>Very exciting indeed, but what I'm wondering is what approach to use for
>my screen pointer. Should I use NEAR pointers or FAR? I think NEAR
>pointers are VERY convinient to use, but what about memory protection?
They are convenient, but also dangerous. With them, you lose most of the
benefits of protected mode. Bugs in your code are perfectly free to wipe out
the OS or do other unpleasant things.
If you use a decent buffering algorithm with your graphics, far pointers are
not significantly slower.
>Well, if someone has done something similar to this I'd appreciate some
>suggestions.
>
>Thanks,
>
>Marco Koegler
>koegler AT uni-koblenz DOT de
>
Nate Eldredge
nate AT cartsys DOT com
- Raw text -