delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/21/09:07:18

Date: Wed, 21 Jan 1998 16:07:00 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Sérgio Vale e Pace <space AT gold DOT com DOT br>
cc: djgpp AT delorie DOT com
Subject: Re: Fat CS?
In-Reply-To: <34C521FA.5BDC6A6D@gold.com.br>
Message-ID: <Pine.SUN.3.91.980121160217.27671N-100000@is>
MIME-Version: 1.0

On Tue, 20 Jan 1998, Sérgio Vale e Pace wrote:

>     if the fat DS trick can be used to CS to call real mode functions
> (the vbe direct bank switch in case) ?

It won't help you.  The ``fat'' hack is only about being able to access a 
given address.  But there is another fundamental incompatibility between 
real- and protected-mode code, and that is that the way memory addresses 
are interpreted.  So you might be able to call the address in lower 
memory, but your program will most probably crash when the real mode code 
does something that's illegal in PM, such as loading an arbitrary value 
into a segment register.

In short: forget it.

- Raw text -


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