org $3000
ldx #$C646
loop leax -1,x
bne loop
swi
end
Note that assembler directives do not have a dot preceding them and to obtain the
# symbol it may be necessary to use the "pound" key (shift-3).
asm6809 test.asm -l > test.lst
This redirects the output listing to a file called test.lst which can then be listed or
printed.
e.g. lda >$fe00