The assembler translates one assembly source into an object file, for each invocation. The assembler is not able to translate more than one source file per run.
Let's translate the "hello.s" and "text.s" files from our example:
ca65 hello.s ca65 -t c64 text.s
-t switch is needed when translating the
text.s file, so the
text is converted from the input character-set (usually ISO-8859-1) into the
target character-set (PETSCII, in this example) by the assembler. The
hello.s does not contain any character constants,
so specification of a target is not necessary (it wouldn't do any harm,
If the assembler does not complain, we should now have two object files (named
text.o) in the current directory.
For more information about the assembler, see ca65.html.