www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/29/19:26:27

From: spush AT atc-1s DOT hac DOT com (Stephen Pushak)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ASM Modules in DJGPP + DPMI
Date: 29 Nov 1996 23:42:37 GMT
Organization: Hughes Aircraft Company
Lines: 23
Message-ID: <57nsdd$k92@hacgate2.hac.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 961124114406 DOT 28870F-100000 AT is>
NNTP-Posting-Host: sawgrass.hac.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

: On Fri, 22 Nov 1996, Mr. Meanie wrote:

: > To interface with VESA, I need a bit of DOS memory, So I call DPMI int
: > 31h fuction 100h (Allocate DOS Memory) to allocate DOS mem. All I need
: > is 48 paragraphs, - 768 bytes, and function 100h returns 'out of
: > memory error'!!. And what really annoys me I that I am asking for 16
: > (or 32) paragraphs, it returns out of mem error, and then proceeds to
: > tell me that there are ONLY 3000+ paragraphs available!! Well if there
: > are 3000+ paragraphs available, and I ask for 48, WHY DON'T I GET MY
: > 48!?!?!? If however, I call the C equivalent
: > ('__dpmi_allocate_dos_mem' or something similar) it works fine. Can
: > anyone assist me in getting it to work in ASM?

Try using the debugger to step through the C call and disassemble
the interface. It could be that you have incorrectly set one of the
registers or are misinterpreting the return status.

 Steve Pushak - spush AT hcsd DOT hac DOT com - Vancouver, BC, Canada

 -------------------------------------------------------
 |    Don't fear what you face; face what you fear!    |
 -------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019