Hi all,
Does the version of ASxxxx used for SDAS assemblers not support .define
directives?
I am tearing my hair out trying to figure out if it doesn't actually
support those directives, or whether I am being a giant idiot and doing
something incorrectly.
My simple scenario: I have two assembly code files, foo.s and bar.s; in
each I want to .define some keywords with a value and then .include a
third file, common.s, where those keywords are to be substituted. An
example of what one of the two files contains:
.define SOME_VALUE "4"
.define aaaa "xxxx"
.define bbbb "yyyy"
.include "common.s"
But SDAS just gives me "Error: <o> .org in REL area or directive /
mnemonic error" for every line containing a .define directive.
I was starting to wonder if it was a feature that was added to only
mainline ASxxxx more recently than when forked, but the .define
directive (and it's siblings, .undefine, .ifdef, .ifndef, etc.) is
actually mentioned in the SDAS docs that are included with SDCC.
So what is going on here?
Regards,
Basil Hussain
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user