delorie.com/archives/browse.cgi | search |
From: | Dave Bird <dave AT xemu DOT demon DOT co DOT uk> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: INTEL ASM in DJGPP??? |
Date: | Sun, 14 Mar 1999 03:01:07 +0000 |
Organization: | very little |
Message-ID: | <i1+KIqBzZy62Ew29@xemu.demon.co.uk> |
References: | <01a8eb18$17241020$4c2357ce AT axis> |
NNTP-Posting-Host: | xemu.demon.co.uk |
X-NNTP-Posting-Host: | xemu.demon.co.uk:158.152.196.209 |
X-Trace: | news.demon.co.uk 921423835 nnrp-08:16649 NO-IDENT xemu.demon.co.uk:158.152.196.209 |
X-Complaints-To: | abuse AT demon DOT net |
MIME-Version: | 1.0 |
X-Newsreader: | Turnpike (32) Version 4.01 <dQumtnY$x4rJ2u5tL5fS$n2vuP> |
Lines: | 31 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
In article <01a8eb18$17241020$4c2357ce AT axis>, Axis writes: >I want to know if it is 100% impossible to use assembly coded in intel >sytax with a program compiled in DJGPP?. You can use an Intel-LIKE assembler called NASM: 95% of the difference from MASM is dealt with by defining "PTR" as "" and "OFFSET" as "" and writing all indexing in [a+b+c] rather than a[b+c] style. If in the IDE you call files of a project .nsm, they are fed to nasm; if you call them .a, they will be fed to as.exe (AT&T). You can also include AT&T style assembler sections in C/C++ programs. http://www.rt.e-technik.tu-darmstadt.de/~georg/djgpp/djgpp_asm.html >Is there any program that will convert intel to at&t for me. Yes, others will supply details. > >If none of this is true could you link assembly code to a DJGPP compiled >program?. You can translate your assembler source to a DJGPP-COMPATIBLE object file and include the object file in your project too (MicroSloth MASM does not produce compatible files). -- ^-^-^-@@-^-;-^ http://www.xemu.demon.co.uk/ (..)__u news:alt.smoking.mooses
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |