Mail Archives: djgpp-workers/1997/10/31/07:28:50
Hi!
from the users list:
--
^ ^ ^
| | |
+-+-+ Fabrice ILPONSE
| <fabrice AT asim DOT lip6 DOT fr>
|
|
-
Fabrice ILPONSE wrote:
>
> I am thinking about adding another kind of pointer in djgpp.
> In djgpp, the pointers are flat but the lowest adress is limited by the
> DS selector.
> Why not use a "<type> flat *" in djgpp that would make easier to access
> the < 640Ko memory for the video memory for example.
> The code would be the same as the normal pointers except that the
> generated code will be :
> - movl %gs:(?,?,?),?
> rather than
> - movl (?,?,?),?
>
> I think GS is already set to the physical adress 0000:0000 (in RM)
> This kind of pointer is very dangerous and certainly reserved to expert
> user that know what they do.
>
> It would be possible to assign normal pointers to flat by adding the DS
> base adresse to the offset but in the other sens it would be more
> "hazardious".
>
> What's your mind about that?
- Raw text -