Date: Sun, 24 Nov 1996 11:44:59 +0200 (IST) From: Eli Zaretskii To: "Mr. Meanie" Cc: djgpp AT delorie DOT com Subject: Re: ASM Modules in DJGPP + DPMI In-Reply-To: <57470h$s8f@cherry.news.easynet.net> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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? Post the shortest code fragment that exhibits the above, and somebody will find the bug.