Using it

lwasm

6809, lwasm syntax.

--dialect also accepts 6809.

Directives

33 directives, 84 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
align align
bytes fcb, .byte
conditional if, ifne, ifeq, ifgt, ifge, iflt, ifle, ifdef, ifndef, ifpragma, ifopt, ifp1, ifp2, ifstr, else, endc, endif
diagnose error
diagnose-warning warning, msg
end end Accepted and discarded — it changes no bytes
equ equ
fcc fcc
fcn fcn, fcz
fcs fcs
fill fill
fqb fqb
incbin includebin
include include, use, incl, lib
listing nam, ttl, pag, page, spc Accepted and discarded — it changes no bytes
macro macro, macr, endm
object-target-only export, extdep, extern, external, import Refused, as the reference refuses it — only supported for an object target, and asm198x emits a binary
org org
os9-module mod, emod, os9
pragma pragma, opt
pseudo-pc phase, dephase
reorg reorg
reserve rmb, .ds, zmb, bsz, fzb
reserve-double rmd, zmd, rmw
reserve-quad rmq, zmq
sections section, sect, endsection, endsect Refused, as the reference refuses it — only usable with an object target, and asm198x emits a binary
set set
setdp setdp
string-symbol setstr, includestr
struct struct, endstruct, ends
unsupported-lwasm dtb, dts Recognised, and not implemented
words fdb, .word
words-swapped fdbs

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 own directory, 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