I found some 6502 assembler code for a Commodore 64 program that uses meta commands like #include "foobar"
, define the address to be assembled to via *=$1234
and define labels without a colon. Comments are marked with a leading ;
, and the syntax allows for specifying characters as constants such as in lda #'A'
.
Which assembler programs have this kind of syntax and could be used to assemble the file?
I already know that
ca65
assembler uses keywords like.import
and.export
but not#include
. Andca65
requires a colon after a label definitiondasm
assembler files define the start address with the org directive, but not with*=
kickass
assembler has different comment format64tass
does not know theinclude
keyword
so it is none of the above (I tried and the build failed).
#include
and any other C preprocessor like directive, and assume the source code you're looking at meant to handled by passing the source though a C preprocessor before being assembled. The GNU Assembler doesn't support C preprocessing directives, but you'll find a lot of code written for it that uses them anyways.