Mail Archives: djgpp/1996/06/21/23:52:37
Xref: | news2.mv.net comp.os.msdos.djgpp:5260
|
From: | Steven Shaw <umshaw18 AT cc DOT umanitoba DOT ca>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | _movedata question
|
Date: | Fri, 21 Jun 1996 21:55:37 -0700
|
Organization: | The University of Manitoba
|
Lines: | 19
|
Message-ID: | <31CB7CC9.D67@cc.umanitoba.ca>
|
NNTP-Posting-Host: | dyn2-066.cc.umanitoba.ca
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Someone tell me if there is something wrong with this statement;
_movedatab((unsigned) _my_ds, (unsigned) pImagePtr, _dos_ds, 0xA0000, 5);
I'm sure you're all tired of questions with respect to how to write to video memory,
but I can't get this to work. pImagePtr points to an image in memory, and after trying
again and again to get it to display in it's entirety and being rewarded with nothing
but GPF after GPF, I tried this to display just the first 5 pixels and it still doesn't
work. I've tried converting to using _farpokeb to display it pixel by pixel and it
worked. When I try to use _movedata it doesn't. Does _movedata need some sort of
initialization of either _my_ds or _dos_ds? Is there some other aspect I'm missing?
I realize that it my be difficult to diagnose from just this, so I won't be surprised
if no one answers. I'll just keep messing with it, I guess. It's probably written
right in the info page for _movedata, and I just missed it.
--
Steven Shaw | I hear and I forget, I see and I remember,
umshaw18 AT cc DOT umanitoba DOT ca | I do and I understand.
| -- Chinese proverb
- Raw text -