| www.delorie.com/djgpp/mail-archives/browse.cgi | search |
| From: | yhirsch <yhirsch AT ibm DOT net> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Accessing variables in assembler |
| Date: | Sat, 09 Oct 1999 23:33:12 +0200 |
| Organization: | Unspecified Organization |
| Lines: | 15 |
| Message-ID: | <37FFB497.174422A@ibm.net> |
| NNTP-Posting-Host: | slip139-92-184-63.tel.il.ibm.net |
| Mime-Version: | 1.0 |
| X-Trace: | news.ibm.net.il!ibm.net 939505098 15508 (none) 139.92.184.63 |
| X-Complaints-To: | postmaster AT ibm DOT net |
| X-Mailer: | Mozilla 4.03 [en] (Win95; I) |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Hi,
I'm trying to access function variables inside __asm__ without
loading them
in advance ( for example, ... : :"a"(my_int) - which loads my_int to
%eax). How do
I access them inside the __asm__ part? When I opened the
disassembler window,
it shows something like this: 0xc(%ebp), or something similar to
this. How do I know
where they are in the memory? How do I access them?
Thanks in advance.
Yaron
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |