Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!rochester!udel!burdvax!sdcrdcf!trwrb!aero!foy From: foy@aero.UUCP Newsgroups: comp.sys.amiga Subject: C/Assembly Help Message-ID: <18009@aero.ARPA> Date: Thu, 1-Oct-87 14:26:56 EDT Article-I.D.: aero.18009 Posted: Thu Oct 1 14:26:56 1987 Date-Received: Sat, 3-Oct-87 08:38:06 EDT Reply-To: foy@aero.UUCP (Richard Foy) Organization: The Aerospace Corporation, El Segundo, CA Lines: 35 I am trying to learn how to compile/assemble the dissolve program on one of the Fish disks. My compiler and assembler are Lattice 3.10. One function is : setbits( plane, maxbit, numbits ) UBYTE *plane; unsigned long maxbit; unsigned int numbits; { #asm ; register usage: d5 - max bit # to set, d4 - random generator mask ; d3 - current random value, d2 - byte offset in array for bit ; d2 - bit # to set, d1 - loop counter reg d2-d5 movem.l regs, -(a7) move.l 8(a5), a0 ..... etc #endasm } What do I have to do to asseble the assembly code? Do I have to make this into an assembly module with ref def statements and asseble it seperately and then link it with the rest of the program. Or is there some when of calling the assembler when I run the C compile functions. Thanks for any help. Richard Foy