www.delorie.com/archives/browse.cgi | search |
From: | Alberto Chessa <achessa AT fiar DOT finmeccanica DOT it> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: vesa 2.0 development |
Date: | Tue, 04 May 1999 11:35:48 +0200 |
Organization: | TISCALI S.p.A. |
Lines: | 28 |
Message-ID: | <372EBF74.8CF8B277@fiar.finmeccanica.it> |
References: | <372E36D8 DOT D046D9AA AT nothingreal DOT com> |
NNTP-Posting-Host: | mi2-1080.tiscalinet.it |
Mime-Version: | 1.0 |
X-Mailer: | Mozilla 4.5 [en] (Win95; I) |
X-Accept-Language: | en |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Francois wrote: > i'm currently rewriting my vesa2.0 library > under djgpp v2.... > but i face a problem when i need to use the ints ... > for example to get vesa info i must do : > > ax = 4f00h > es:di = ptr to buffer > int 10h > > the int seems to works fine as at the end > ax = 004fh > but the buffer is not filled ... > how to give the int the right es:di ???? Do You use a conventional memory buffer ? DOS calls can use conventional memory buffer only. Use _tb (defined in go32.h) as transfer buffer and then move it to your actual buffer ( regs.x.di = __tb & 0x000F; regs.x.es = (__tb >> 4) & 0xFFFF;). Look at "Graphic Programming in DJGPP" by Jeff Weeks (http://www.gameprog.com/codex/tut/chapter.html).
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |