delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/08/17:05:52

From: Dr P Mouton <pnm AT maties DOT sun DOT ac DOT za>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Inline Assembly
Date: Wed, 04 Jun 1997 12:12:50 -0700
Organization: University of Stellenbosch
Message-ID: <3395BE32.6395@maties.sun.ac.za>
References: <3394E0CD DOT DE5 AT alpha7 DOT curtin DOT edu DOT au>
NNTP-Posting-Host: k2006b.sool.sun.ac.za
Mime-Version: 1.0
Lines: 25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

James Shirley wrote:

> Im am trying to do a few graphics routines which require some inline
> assembly. I was using Turbo C 3 before and when I loaded the code into
> RHIDE it gave errors for asm {... are there any extra libs i have to
> download to get assembly working....

No, no extra libs. You need to learn a TOTALLY NEW ASSEMBLY LANGUAGE!!!

Just kidding.

DJGPP uses AT&T (not Intel) asm syntax. You need NASM, a seperate
program that can assemble Intel format into DJGPP's AT&T format. You
must then link the object files generated by NASM into DJGPP by
specifing the filenames on the gcc command line.

I have not tried this myself, but it looks as if NASM will assemlbe TASM
files with no problems. Just read its docs to see how to get it to
output DJGPP COFF format object
files, and there you are!

Hope this helped

Rylan
Life is a lie

- Raw text -


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