www.delorie.com/archives/browse.cgi | search |
Message-ID: | <373E296B.F468B13@unb.ca> |
Date: | Sat, 15 May 1999 22:11:55 -0400 |
From: | Endlisnis <s257m AT unb DOT ca> |
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> |
X-Info: | BrunNet, Inc. 888-278-6638 |
Reply-To: | djgpp AT delorie DOT com |
Radu Georgescu aka skoola wrote: > static long a1,a2; > then you say: > __asm__(" > mov 4+%0,%%eax > " > : > :"g"(a1)); > > and you get mov a2,%%eax > > all you got to do is to declare in the parameter list one of the arguments > and know the relative adress of the others... Your making an assumption about how the static variables are allocated which may change and break your code. -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT HotMail DOT com ICQ: 32959047
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |