gheller@YODA.EECS.WSU.EDU (Geoffrey Heller - CS216) (06/20/91)
Is there a generally acceptable way to use assembly language routines in a C program. I'm using Dillon's C (I haven't yet received the manuals for the registration) and have been puzzling over this for some time now. What is a good way to do this? - Geoffrey Heller ------------------------------------------------------------------ gheller@yoda.eecs.wsu.edu ------------------------------------------------------------------
dillon@overload.Berkeley.CA.US (Matthew Dillon) (06/21/91)
In article <9106200513.AA13500@yoda.eecs.wsu.edu> gheller@YODA.EECS.WSU.EDU (Geoffrey Heller - CS216) writes: >Is there a generally acceptable way to use assembly language routines >in a C program. I'm using Dillon's C (I haven't yet received the manuals >for the registration) and have been puzzling over this for some time now. >What is a good way to do this? > - Geoffrey Heller >------------------------------------------------------------------ > gheller@yoda.eecs.wsu.edu >------------------------------------------------------------------ With DICE the accepted way is in a separate assembly file, I do not implement #asm on purpose. The only real use it might have is in handling geta4() type operations and register save/restore, but DICE does this correctly and the registered version has direct A4 support with __geta4. This leaves only assembly tags or subroutines you may want to write in assembly. With DICE, you write these in a separate .A file. DICE uses the Commodore object file format with SAS/C small-data model extensions so it shouldn't be too difficult to use more sophisticated assemblers when DAS is not sufficient. In anycase, the registered version, when you get it, will have several complete examples that demonstrate assembly tags in an exec device driver, library, dos handler, and printer driver. -Matt -- Matthew Dillon dillon@Overload.Berkeley.CA.US 891 Regal Rd. uunet.uu.net!overload!dillon Berkeley, Ca. 94708 USA