filename[,list
option]
where list option is one of list, nolist. Lines which
begin with * or ; or ! are comments.
Output files
-Foassembled file name - gives
the name of the output file with compiled program and
additional information (BNR file). If
ommited the output file gets the name of first source file but
with BNR extension.
-Fs[source listing file] -
causes source listing to be generated. If no file name is
given the name of first source file is used but LST extension is applied.
-Fx[CRF-cross-reference file] -
generates cross reference file (not human readable). If
no file name is given the name of
first source file is used but the extension is CRF. HREF utility is needed to convert it
to ASCII format REF file.
-FX - generates human readable cross-reference
file. The file name is always the name of first source
file but with REF extension.
Optimization
-Ob - disable branch optiomization.
Disables relative jumps optimization and jmp <-->
bra replacements
-Oe - optimize instructions with ,e
Language
-Zc - case insensitive keywords &
instructions (normal these are lowcase)
-Ze - extern directive ingnored
-Zg - generate define/extern files
-Zi - generate symbolic debugging
information in BNR file
-Zr - enable exporting
-Zs - syntax check only
Source listing
-Sc - case insensitive sorting of map
tables
-Sf - disable form-feed in listing
-Slcolumns -
set line width (default 86)
-Sn - no page headers
-Sp - set page length (default 63)
-Su - unreferenced identifiers at the
end
-Sv - symbol sorting by value (default
by name)
-Sx - no symbol sorting
-s - silent assembling (no screen output)
-Vlevel -
level of detailed listing (level = 0,1,2; default is 1)
Miscelaneous
-Aaddress -
highest memory address
-H,-h,-?
- command line help
-k - keep temporary files
-nologo - suppress logo screen
-Wlevel -
warning level (level = 0,1,2,3; default is 1)
System | Prefix | Digits | Comment |
binary | 0b | 0 1 | |
octal | 0o | 0 1 2 3 4 5 6 7 | |
octal | no prefix | 0 1 2 3 4 5 6 7 | must begin with 0 |
decimal | no prefix | 0 1 2 3 4 5 6 7 8 9 | must not begin with 0 |
hexadecimal | 0x | 0 1 2 3 4 5 6 7 8 9 A B C D E F |
Symbol | ASCII | Code | Symbol | ASCII | Code |
" | 34 | \" | CR | 13 | \r |
\ | 92 | \\ | TAB | 9 | \t |
BELL | 7 | \a | VT | 11 | \v |
FF | 12 | \f | anyone | - | \xnn |
LF | 10 | \n |
tmstamp: asciz @TIMESTAMP
String | Replaced with... |
DATE | Date of assemling (month, day, year) |
DAY | Day of assembly time |
FILE | Full name of source file with path |
FILEL | Full name of
source file with path and current line (example: this file.asm(45)) |
LINE | Current line |
MCODE | Microprocessor code (for 6805 - 1) |
MNAME | Microprocessor name (for 6805 - "6805") |
MONTH | Current month |
SECT | Current section in source file |
TIME | Current time |
TIMESTAMP | Current time and date |
TITLE | Title of the listing (the argument of title directive) |
VERSION | Current version of 6X assembler |
YEAR | Current year |
Operations ordered by priority | ||||
( ) | ||||
not, unary minus (-), ~, hi, whi, lo, wlo | ||||
*, /, % | ||||
+, - | ||||
<<, >> | ||||
<, <=, >=, > | ||||
==, /= | ||||
& | ||||
^ | ||||
| | ||||
&& | ||||
|| |
Most of operations have
same meaning as in C language. Exceptions are:
not - logical NOT (! is
reserved as comment mark)
hi - return high byte or word argument
whi - return high word of double word
agrument
lo - return low byte of word argument
wlo - return low word of double word
agrument
/= - logical NOT EQUAL
Some of operations have synonims: <<, shl; >>,
shr; ==, eq; /=, ne; <, lt; <=, le; >, gt;
>=,
ge.
Comments
The comment is any text preceded with ;
or !.
Program line
The program line has following common syntax:
[identifier:][reserved name [expression]][; comment]
The maximal length of the line is 254 symbols.
Type | Examples |
internal (inherent) | clc |
direct | lda #12 |
zero page | lda 12 |
extended | lda 0x0100 |
indexed | lda x |
indexed with
|
lda 12,x |
indexed with
|
lda 0x100,x |
relative | bra 12 |
bit set/clear | bset status,2 |
bit test and branch | brset status,2,target |
Type | Examples |
internal (inherent) | clc |
direct | lda #12 |
zero page | lda 12 |
extended | lda 0x0100 |
indexed | lda x |
indexed with
|
lda 0x100,x |
relative | bra 12 |
Type | Examples |
internal (inherent) | clc |
direct | ldaa #12 |
zero page | lda 12 |
extended | lda 0x0100 |
indexed X | ldaa 12,x |
indexed Y | ldaa 12,y |
relative | bra 12 |
bit set/clear | bset 12,6 |
bit set/clear indexed | bset 12,x,6 |
bit test and branch | brclr 12,6,target |
bit test and branch indexed | brclr 12,x,6,target |