Next Previous Contents

## 3. The assembler

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

> `

The `-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 compiler-generated file `hello.s` does not contain any character constants, so specification of a target is not necessary (it wouldn't do any harm, however).

If the assembler does not complain, we should now have two object files (named `hello.o` and `text.o`) in the current directory.

For more information about the assembler, see ca65.html.

Next Previous Contents