Mail Archives: djgpp/2000/03/12/21:30:52
bob tway <tway AT wibble DOT com> writes:
> i am new to djgpp having used borland 4.51 mostly.can someone explain
> the difference between real and protected mode
There are many differences, one of the important ones being that your programs
will crash less and you get access to 4GB of memory including features such
as virtual memory. The FAQ explains more about it.
> ,and also the difference
> between int86
> and __dpmi_int.
int86 or int386 is used to call protected mode interrupts. __dpmi_int is
the equivalent of the int86 call in Borland.
> i am trying to learn how to use Vesa to do graphics
> stuff,but am having trouble mapping the linear frame buffer.Could
> someone explain exactly what mapping does and how to do it?
Usually when you attempt to access the VESA video memory, the DPMI prevents
you from doing so. This is a protection mechanism. However, you can override
that using the __djgpp_map_physical_memory. The FAQ again has another section
that tells you how to do this. Please go through that and if you still have
more questions, post here again.
- Raw text -