www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/19/07:45:15

From: "Lars O. Hansen" <lars DOT o DOT hansen AT gmx DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: inline assembly syntax for accessing variables ?
Date: Thu, 19 Dec 2002 13:42:52 +0100
Organization: 1&1 Internet AG
Lines: 20
Message-ID: <atses9$d2v$1@news.online.de>
NNTP-Posting-Host: p50838032.dip0.t-ipconnect.de
X-Trace: news.online.de 1040301769 13407 80.131.128.50 (19 Dec 2002 12:42:49 GMT)
X-Complaints-To: abuse AT online DOT de
NNTP-Posting-Date: 19 Dec 2002 12:42:49 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I have
INTEGERVARIABLES a,b;

I like to do
asm OPCODE-MNEMONIC a,b

how do I do it in djgpp?

for example:

int a,b;
a=4;
b=8;
asm ADD b,a

this should result in b being 12 (a+b);

I am using C and am used to Intel syntax.


- Raw text -


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