Mail Archives: djgpp/1997/12/10/10:20:04
krizz wrote:
>
>
> short video=__dpmi_segment_to_descriptor(0xa000);
> unsigned char buffer=malloc(0xffff);
> _movedatal(_my_ds(), (unsigned int)buffer, video, 0, 0x3fff);
This is blitting and it's perhaps not the original poster wanna do!
>
> krizz
>
> Olmeca wrote:
>
> > I wanna have a pointer to the address 0xA000, but in Djgpp it's a problem.
> > e.g.: unsigned char *vga=0xA000 (this doesn't work, cause of protected
> > mode)
I know it exists _djgpp_convential_base_adress() or something like
that. You can do char *videomem=_djgpp_convential_base_adress()+0x0a0000
and use it as a normal pointer. I saw an example in the Mikmod 2.xx
code.
--
^ ^ ^
| | |
+-+-+ Fabrice ILPONSE
| <fabrice AT asim DOT lip6 DOT fr>
|
|
-
- Raw text -