CC/CA65 - Use macro's in included files
Posted: Wed Sep 30, 2020 8:39 pm
Hello fellow-coders!
I am using CC65/CA65 to code for my 65C02 machine.
Does anyone of you know if and how i could use Macro's in included files?
Example:
i have a main file that includes another file using:
.include "extrafile.s"
That extrafile.s file uses macro's:
.macro somefunction
bla
bla
bla
etc.
.endmacro
This is where the compiler throws an error, because it doesn't recognize the macro's when included in the main file.
Is this at all possible? Or should i give up trying to use macro's in this way?
Thanks for the help, people!
Greetings,
Jacco
I am using CC65/CA65 to code for my 65C02 machine.
Does anyone of you know if and how i could use Macro's in included files?
Example:
i have a main file that includes another file using:
.include "extrafile.s"
That extrafile.s file uses macro's:
.macro somefunction
bla
bla
bla
etc.
.endmacro
This is where the compiler throws an error, because it doesn't recognize the macro's when included in the main file.
Is this at all possible? Or should i give up trying to use macro's in this way?
Thanks for the help, people!
Greetings,
Jacco