Date: Sat, 27 Jul 1996 14:05:50 +0200 (MET DST) From: Mark Habersack To: patrick fox cc: djgpp AT delorie DOT com Subject: Re: pointers In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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... ************************/ /*********************************************/