cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/22/13:30:36

From: "F.X.Gruber-Museum-Arnsdorf" <f DOT x DOT gruber-museum-arnsdorf AT magnet DOT at>
Newsgroups: comp.os.msdos.djgpp
Subject: inline asm
Date: Sun, 22 Mar 1998 19:17:55 +0100
Organization: magnet Internet Services
Lines: 24
Message-ID: <6f3kpe$sqr$1@orudios.magnet.at>
NNTP-Posting-Host: 195.3.67.124
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,

i have a simple question about DJGPP's inline
assembler:
if i write
  int a;
i can write "0" to "a" with the following:
  asm("mov $0,_a");
if i have
  int a[10];
how can i write "0" to a specific element
of "a" ?
  asm("mov $0,_a[%eax]");
doesn't work.
how would i do this ?
i know it must be something like ?_a(%eax,4)?

thanx for your help

Li




- Raw text -


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