Mail Archives: djgpp/1996/11/29/19:26:27
: 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 -