Mail Archives: djgpp/1997/06/08/17:05:52
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 -