www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/18/22:30:56

From: Martin Str|mberg <ams AT father DOT ludd DOT luth DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: NO DPMI MEMORY (II)
Date: 18 Sep 2000 17:19:36 GMT
Organization: University of Lulea, Sweden
Lines: 41
Message-ID: <8q5ir8$m24$1@news.luth.se>
References: <39C64BF4 DOT BC13F2BC AT inwind DOT it>
X-Trace: news.luth.se 969297576 22596 130.240.16.18 (18 Sep 2000 17:19:36 GMT)
X-Complaints-To: abuse AT luth DOT se
User-Agent: tin/pre-1.4-981225 ("Volcane") (UNIX) (SunOS/4.1.4 (sun4m))
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Ivan Ferrara <ifalpsfun AT inwind DOT it> wrote:
: Here's a code compiled and linked with DJGPP. I'm working under WINDOWS
: 98 and, after a double click on the EXE file, I get this error message
: :  "LOAD ERROR: NO DPMI MEMORY"
: This program should set video mode in 320X200 (13h graphic mode),then
: show a PCX image file.
: What's the problem ?

: Thanks a lot,

: Ivan

: /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

: #include <stdio.h>
: #include <conio.h>
: #include <stdlib.h>
: #include <dos.h>
: #include <math.h>
: #include <dpmi.h>

: #define PALETTE_MASK 0x3c6
: #define PALETTE_REGISTER_WR 0x3c8
: #define PALETTE_REGISTER_RD 0x3c7
: #define SCREEN_WIDTH 320
: #define SCREEN_HEIGHT 200
: #define PALETTE_DATA 0X3C9

: FILE *dati;
: unsigned char far *video_buffer = (char far *)0xA0000000L; // vram byte
: ptr

Problem 1: 0xA0000000L won't work in DJGPP.

Problem 2: How did you make that compile. C doesn't have a "far"
keyword and it's certainly not in the DJGPP headers.


Right,

						MartinS

- Raw text -


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