delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/27/08:09:38

Date: Sat, 27 Jul 1996 14:05:50 +0200 (MET DST)
From: Mark Habersack <grendel AT ananke DOT amu DOT edu DOT pl>
To: patrick fox <web183 AT charweb DOT org>
cc: djgpp AT delorie DOT com
Subject: Re: pointers
In-Reply-To: <Pine.SOL.3.91.960726112415.27901A@wilbur>
Message-ID: <Pine.NEB.3.93.960727140353.20548A-100000@ananke.amu.edu.pl>
MIME-Version: 1.0

On Fri, 26 Jul 1996, patrick fox wrote:

>If I allocate a pointer with pointer=malloc(10), how would I go about 
>accessing the memory location in an external .S file?
Just pass it to the routine (a regular C call) then, in the .S, load it into
ESI, EDI, WHATEVER and voila!
Of course you have to make sure your .S routine uses C calling convention.

Mark

/*******************************/
/** So here I am once more... **************************************/
/** When you grown up and leave your playground, where you kissed **/
/** your Prince and found your Frog - remember the Jester that    **/
/** showed you tears, a Script for Tears... ************************/
/*********************************************/

- Raw text -


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