delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/06/13:12:40

From: Viktor Lundstrom <viktor DOT lundstrom AT mailbox DOT swipnet DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Inline asm: arrays, how do you access them?
Date: Thu, 05 Jun 1997 23:57:37 +0200
Organization: A customer of Tele2
Lines: 13
Message-ID: <33973651.40EF@mailbox.swipnet.se>
NNTP-Posting-Host: mn8.swip.net
Mime-Version: 1.0
Cache-Post-Path: mn8!s-13642 AT dialup91-8-8 DOT swipnet DOT se
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Im trying to access an array declared in C in inline asm,
like: (note that Im using DJGPP, hence AT&T asm)
(in C)
justavariable=justanarrayofword[6]

(in asm)
???????
movw justanarrayofword[dx],%ax
???????

Would be thankful for an answer (preferably by e-mail)

viktor DOT lundstrom AT mailbox DOT swipnet DOT se

- Raw text -


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