Technical discussions about Freescale Microcontrollers: M68HC11. (Freescale Semiconductor is a Subsidiary of Motorola).
|
Hey guys, another quick question here. As I come from the C/C++ background, I was wondering if there is a way to have include files in Assembly similar to C language. I ask this because my assembly program is large and in an effort to make it somewhat unique, I thought of separating the program into components. Is this possible? I've seen .c files being included into assembly program, but never other assembly programs. If this is possible, how does it affect the program? And when uploading to the EEPROM, which file will be uploaded? Or is there a special method to all of this? Any ideas would be appreciated! Thanks! |
|
|
|
You need to consult the documentation of the assembler for this. All assemblers I have seen so far support a way to include other (assembly) files, e.g. With an INCLUDE directive. But there is no real standard around this. The other way is that you use assembly code embedded in normal C files/functions. Then you can use the normal #include Way. Erich > -----Original Message----- > From: nimish_sudan [mailto:] > Sent: Sonntag, 28. November 2004 18:22 > To: > Subject: [m68HC11] Include File > > > Hey guys, another quick question here. As I come from the C/C++ > background, I was wondering if there is a way to have include files > in Assembly similar to C language. I ask this because my assembly > program is large and in an effort to make it somewhat unique, I > thought of separating the program into components. Is this possible? > I've seen .c files being included into assembly program, but never > other assembly programs. If this is possible, how does it affect the > program? And when uploading to the EEPROM, which file will be > uploaded? Or is there a special method to all of this? Any ideas > would be appreciated! > Thanks! > ------------------------ Yahoo! Groups Sponsor > --------------------~--> > Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. > Now with Pop-Up Blocker. Get it for free! > http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/dN_tlB/TM > -------------------------------------------------------------- > ------~- > Yahoo! Groups Links |