01-09-2023 01:33 PM
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.
01-14-2023 09:57 AM
Hi kr389,
It depends on the assembler that you are using. Other formats that you haven't tried are:
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