delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/09/25/19:41:58

Date: Sun, 25 Sep 1994 18:25:47 -0400 (EDT)
From: Kimberley Burchett <OKRA AT max DOT tiac DOT net>
Sender: Kimberley Burchett <OKRA AT max DOT tiac DOT net>
Reply-To: Kimberley Burchett <OKRA AT max DOT tiac DOT net>
Subject: es:di points to....
To: DJGPP Mailing List <djgpp AT sun DOT soe DOT clarkson DOT edu>

  'lo there. 
  I've got to do two things with es:di.  First I have to get it to point 
to a function I want called by a real-mode function, and second I have to 
get it to point to an array of data.
  I have a feeling that there will be a different approach for the two 
problems.  I'm thinking I'll need some kind of real-mode function that 
will call my protected-mode one for the first problem and I'll need a 
function that allocates lower 640k memory and copies to it for the second 
one.  For both problems, I'll need to figure out how to load es:di with a 
segment and offset.
  Also, I need to make sure that the registers will be preserved when my 
function is called and somehow need to access them - should I use the 
inline assembler or is there a C function to load the registers into a 
struct?
  Thanksalot for any help.
							Kim

- Raw text -


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