Using it

65816

65816, ca65 syntax.

--dialect also accepts 816, ca65-816.

Directives

15 directives, 25 spellings. This is the list the parser looks a word up in, so a spelling here is one the assembler accepts and a spelling missing from it is one it refuses.

Directive Spellings Notes
asciiz .asciiz
bankbytes .bankbytes
bytes .byte, .byt
dbyt .dbyt
dword .dword
faraddr .faraddr
hibytes .hibytes
ignored .setcpu, .segment, .smart, .p816, .i16, .a16, .i8, .a8 Accepted and discarded — it changes no bytes
incbin .incbin
include .include
lobytes .lobytes
macro .macro, .mac
org .org
res .res
words .word, .addr

Instruction mnemonics are not listed here — they come from the instruction-set spec and have their own reference.

Projects in more than one file

A relative request is looked for in the including file’s directory, then each enclosing includer’s, then in the -I search directories in the order they were given.

The anchor is pinned against this dialect’s own reference assembler, and the dialects genuinely disagree — Projects in more than one file has the comparison.

Elsewhere