www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/19/10:34:55

Date: Thu, 19 Mar 1998 17:30:42 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Kanaya <kanaya AT mediavision DOT co DOT jp>
cc: djgpp AT delorie DOT com
Subject: Re: [Q] __dpmi_regs
In-Reply-To: <3510C6C1.D4FA68B3@mediavision.co.jp>
Message-ID: <Pine.SUN.3.91.980319172732.27106B-100000@is>
MIME-Version: 1.0

On Thu, 19 Mar 1998, Kanaya wrote:

> 	regs.x.bp = (unsigned long)str;	// <-- This line right?or mistake?

This is a mistake.  Please download the DJGPP FAQ list (v2/faq210b.zip 
from the same place you get DJGPP) and read sections 18.2 and 18.3 
there.  The FAQ explains how to do this correctly.

(The problem is that a real-mode interrupt service needs a real-mode 
address below the 1MB mark, whereas your `str' buffer is always above 
1MB and is 32-bit protected-mode address.)

- Raw text -


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