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
  • My code is consisting of about 10 modules
    Now, i have to more over than 10 code lines of commands such as
    EXTRN CODE (),EXTRN DATA (), etc. in every
    code module for every common element between the modules
    (data and routines that are used in several modules of that code).
    With an INCLUDE my job will become simpler,
    because in every module i will have to add only one
    code line and that it will be an INCLUDE command.
    The problem is that in Keil uVision Assembler i do not know the
    procedure to make an INCLUDE file and and the assembly command
    to include it in my code.
    So, can you give me some help if you know Keil uVision Assembler
    and the procedure of the above things?

Reply
  • My code is consisting of about 10 modules
    Now, i have to more over than 10 code lines of commands such as
    EXTRN CODE (),EXTRN DATA (), etc. in every
    code module for every common element between the modules
    (data and routines that are used in several modules of that code).
    With an INCLUDE my job will become simpler,
    because in every module i will have to add only one
    code line and that it will be an INCLUDE command.
    The problem is that in Keil uVision Assembler i do not know the
    procedure to make an INCLUDE file and and the assembly command
    to include it in my code.
    So, can you give me some help if you know Keil uVision Assembler
    and the procedure of the above things?

Children