Mail Archives: djgpp/1995/09/09/18:02:19
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:1961
|
Path: | news-dnh.mv.net!mv!news.NH.Destek.Net!news2.net99.net!news.cais.net!news.sprintlink.net!howland.reston.ans.net!ix.netcom.com!netnews
|
From: | lars3 AT ix DOT netcom DOT com (Lars Damerow)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Retrieving structures from the transfer buffer
|
Date: | 9 Sep 1995 18:10:38 GMT
|
Organization: | Drooling Freaks, Inc.
|
Lines: | 22
|
Nntp-Posting-Host: | ix-bin-ny2-11.ix.netcom.com
|
To: | djgpp AT sun DOT soe DOT clarkson DOT edu
|
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp
|
That's right, it's another stupid question from Lars Damerow!! :)
I'm trying to move information from the transfer buffer to a struct
variable using dosmemget. The struct is set up to match the data that a
VESA interrupt is putting in the buffer. So, this is what I'm trying:
__dpmi_regs r;
r.x.ax=0x4f00;
r.x.ss=r.x.sp=0;
r.x.di=__tb & 0x0f;
r.x.es=(__tb>>4) & 0xffff;
__dpmi_int (0x10,&r);
dosmemget(__tb, 256, &vesainfo);
vesainfo is the struct that I defined. I'm hoping that dosmemget will
just dump the data to the address of vesainfo and fill in the struct.
When this code is executed, however, vesainfo is filled with garbage.
What am I doing incorrectly? Is this even possible? I'm using version 2,
beta 2.. thanks!
- Raw text -