This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Create Include Files (.inc) in Assebly

I am using the Assembler of the Keil uVision IDE.
I have wrote several modules of code that they
have in common several elements such as data, flags
and some sfr and Port Pins renames.
What is the procedure of making an "include file"
in order to $INCLUDE it in all of my code modules.

Best regards,
Nick

Parents
  • I have used successfully the line (example):

    #include "filename.inc"

    with a file containing the lines to be included. Looks like C-syntax, but works in my A51 Keil assembler.

    And I do not know if there is something like:

    $include "filename"

    and have not the time to investigate this.

Reply
  • I have used successfully the line (example):

    #include "filename.inc"

    with a file containing the lines to be included. Looks like C-syntax, but works in my A51 Keil assembler.

    And I do not know if there is something like:

    $include "filename"

    and have not the time to investigate this.

Children