Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

Correct syntax for "include" in assembly

What is the correct syntax for "include" in assembly?

 

I've tried:

$include XXX.inc

#include XXX.inc

.include XXX.inc

$include <XXX.inc>

#include <XXX.inc>

.include <XXX.inc>

$include 'XXX.inc'

#include 'XXX.inc'

.include 'XXX.inc'

$include "XXX.inc"

#include "XXX.inc"

.include "XXX.inc"

 

and all I get is errors.  I cannot find a forum posting nor any web examples.

0 Kudos
Message 1 of 2
(985 Views)


Hi kr389,

 

 

 

It depends on the assembler that you are using. Other formats that you haven't tried are:

 

  • enclosing the filename in parentheses
  • just include without any symbol ($, #, ., etc.) preceding it

 


So you might want to also try

 

$include (XXX.inc)
#include (XXX.inc)
.include (XXX.inc)

 

include XXX.inc
include <XXX.inc>
include 'XXX.inc'
include "XXX.inc"
include (XXX.inc)

 


If none of these work, you have to specify what assembler (or development tools package) you are using in your follow-up reply. You should also look for the proper format from the documentation or help system of the code generation tools that you are using. Posting the error messages in your follow-up reply will also help.

 

 

 

Best regards,
G. Goodwin

 

0 Kudos
Message 2 of 2
(922 Views)