Message-ID: <3740A79B.757A3035@unb.ca> Date: Mon, 17 May 1999 19:34:51 -0400 From: Endlisnis X-Mailer: Mozilla 4.51 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp To: djgpp AT delorie DOT com Subject: Re: problem with extended inline asm References: <37394A06 DOT BA8BBA94 AT magix DOT com DOT sg> <373B38B0 DOT 41BCDF77 AT go DOT ro> <373E296B DOT F468B13 AT unb DOT ca> <373CF61B DOT 948F13AD AT go DOT ro> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Info: BrunNet, Inc. 888-278-6638 Reply-To: djgpp AT delorie DOT com Radu Georgescu aka skoola wrote: > > Your making an assumption about how the static variables are allocated > > which may change and break your code. > > the static and the automatic variables are located in memory one next to > another, if they are declared so, but i think the order is not the same. do you > have a better idea? Just load the address of each variable separately. That way, if the compiler decides to allocate the variables differently (maybe to optimize stuff with data boundries) your code won't break. -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT HotMail DOT com ICQ: 32959047