home *** CD-ROM | disk | FTP | other *** search
/ World of A1200 / World_Of_A1200.iso / programs / develop / as09 / as09.man < prev    next >
Text File  |  1995-02-27  |  26KB  |  711 lines

  1. Kingswood Software Development Tools                                 AS09
  2. -------------------------------------------------------------------------
  3.  
  4. NAME
  5.    as09 - assembler for M6809 microprocessor.
  6.  
  7.  
  8. SYNOPSIS
  9.    as09 [-chlnopqstvwxz] file
  10.  
  11.  
  12. DESCRIPTION
  13.    This documentation is for as09 [1.04].
  14.    Copyright 1990-1994, Frank A. Vorstenbosch, Kingswood Software
  15.  
  16.    AS09 is an assembler for the Motorola 6809 microprocessor.  It reads
  17.    input from an ASCII text file, assembles this into memory, and then 
  18.    writes a listing and a binary or hex file.
  19.  
  20.    AS09 is case sensitive, not only does it differentiate between the
  21.    labels XYZ and xyz, but it also requires all (pseudo) instruction and
  22.    register names to be lower case.  This way, the listing is the most
  23.    readable.  Option -i can be used to make the assembler case insensitive.
  24.  
  25.  
  26. OPTIONS
  27.    As09 recognizes the following options:
  28.  
  29.       -c   Show number of cycles per instruction in listing.  This
  30.            decreases the number of columns available for listing by 5.
  31.            The number of cycles is printed between brackets [ and ].
  32.  
  33.       -h<lines>
  34.            Specify height of page for listing.  This option determines
  35.            the number of lines per printed page.  Each page has a header
  36.            and is terminated by a form-feed character.
  37.  
  38.       -i   Ignore case in opcodes.  In this way, the assembler does not
  39.            differentiate between 'add' and 'ADD', for example.  Labels
  40.            are still case sensitive.
  41.  
  42.       -l   Generate pass 2 listing.
  43.  
  44.       -l<filename>
  45.             Listing file name.  The listing file is used for pass 1 and
  46.             pass 2 listing, for the symbol table (printed between the
  47.             two passes), and some statistics.  When neither -p nor -t
  48.             is specified, and -l<filename> is given, then the assembler
  49.             automatically generates a pass 2 listing.  When -p or -t is
  50.             specified, an additional -l should be given is a pass 2
  51.             listing is required.  The filename - can be used to direct
  52.             the listing to standard output.
  53.  
  54.       -l   Generate pass 2 listing.
  55.  
  56.       -n   Disable optimizations.  When this option is specified no
  57.            optimizations will be done, even when the _opt_ pseudo-
  58.            instruction is used in the source code.
  59.  
  60.       -o<filename>
  61.            Specify binary or s-records output file name.  The assembler
  62.            automatically adds ".bin" for binary output or ".s19" for
  63.            s-records output when no extension is given.
  64.  
  65.       -p   Generate pass 1 listing.  This may be used to examine any
  66.            optimizations/bugs generated in pass 2.
  67.  
  68.       -q   Quiet mode.  No running line counter is displayed on standard
  69.            error output.
  70.  
  71.       -s   Write s-records instead of binary file.  The s-records file
  72.            contains data for (only) the used memory; the binary file
  73.            begins at the lowest used address, and continues up to the
  74.            highest used address; filling unused memory between these
  75.            two addresses with either $ff or $00.
  76.  
  77.       -s2  Write intel-hex file instead of binary file.  The intel-hex
  78.            file contains data for (only) the used memory.
  79.  
  80.       -t   Generate symbol table.  The symbol table is listed between
  81.            passes one and two, displaying the name, hexadecimal and
  82.            decimal value of each label, using 4-digit hexadecimal
  83.            numbers where possible, otherwise 8-digit numbers.  The
  84.            decimal value is followed by an asterisk if the label is
  85.            redefinable (defined using _set_ instead of _equ_).
  86.  
  87.       -v   Verbose mode.  More information is displayed on standard
  88.            output.
  89.  
  90.       -w<width>
  91.            Specify column width.  Normally, the listing is printed using
  92.            79 columns for output to a 80-column screen or printer.  If
  93.            the -w option is given without a number following it, then
  94.            the listing will be 131 columns wide, otherwise it will be
  95.            the number of colulmns specified (between 60 and 200).
  96.  
  97.       -x   Use 6309 extensions.  The 63(C)09 CPU from Hitachi has many
  98.            additional instructions and addressing modes, but is otherwise
  99.            software and hardware compatible to the 6809.  When this
  100.            option is not specified the assembler rejects these extensions.
  101.  
  102.       -z   Fill unused memory with zeros.  Normally when a binary file
  103.            is generated, unused bytes between the lowest and highest
  104.            used addresses are filled with $ff, the unprogrammed state
  105.            of EPROMs.  If this is not wanted, the -z option can be used
  106.            to initialize this memory to $00.  With s-records, unused
  107.            memory is not output to the file, and this option forces the
  108.            creation of an S9 (start address) record, even if no start
  109.            address is specified in the file with the _end_ pseudo-
  110.            instruction.
  111.  
  112.    It is possible to discard any of the the output files by specifying
  113.    the name 'nul'.
  114.  
  115.  
  116. EXPRESSIONS
  117.  
  118.    The assembler recognizes most C-language expressions.  The operators
  119.    are listed here in order of precedence, highest first:
  120.  
  121.        ()            braces to group subexpressions
  122.        *             current location counter
  123.        unary + - ! ~ unary + (no-operation), negation, logical NOT,
  124.                      binary NOT
  125.        * / %         multiplication, division, modulo
  126.        + -           addition, subtraction
  127.        << >>         shift left, shift right
  128.        < > <= >=     comparison for greater/less than
  129.        = !=          comparison for equality (== can be used for =)
  130.        &             binary AND
  131.        ^             binary XOR
  132.        |             binary OR
  133.  
  134.    The logical NOT (!) evaluates to zero if the parameter is nonzero,
  135.    and vice versa.  The binary NOT (~) complements all the bits in its
  136.    parameter.
  137.  
  138.    Note: the asterisk is both used as the multiplication operator, and
  139.    as symbol for the current location.  The assembler determines from
  140.    the context which is which. Thus:
  141.  
  142.        5**
  143.  
  144.    is a valid expression, evaluating to five times the current location
  145.    counter, and:
  146.  
  147.        2+*/2
  148.  
  149.    is too, evaluating to the current location counter divided by two, to
  150.    which two is added.  In the same way, the % sign is both used as the
  151.    modulo operator and the prefix for binary numbers.
  152.  
  153.    Numbers can be specified in any number base between 2 and 36.
  154.    Decimal numbers can be used without a prefix, hexadecimal numbers
  155.    can be prefixed by $, octal numbers by @, and binary numbers by %.
  156.    Other number bases can be used by using the following format:  
  157.       <base>#<number>, 
  158.    where the base is the number base to use (must be specified in 
  159.    decimal), and number is the value.  Thus:
  160.       1000    - decimal number, value 10*10*10=1000
  161.       %1000   - binary number, value 2*2*2=8
  162.       @1000   - octal number, value 8*8*8=512
  163.       $1000   - hexadecimal number, value 16*16*16=4096
  164.       2#1000  - binary number, value 2*2*2=8
  165.       4#1000  - base-4 number, value 4*4*4=64
  166.       7#1000  - base-7 number, value 7*7*7=343
  167.       36#1000 - base-36 number, value 36*36*36=444528
  168.    For number bases greater than 10, additional digits are represented
  169.    by letters, starting from A.  Both lower and upper case letters can
  170.    be used.
  171.       11#aa = 120
  172.       16#ff = 255
  173.       25#oo = 624
  174.       36#zz = 1295
  175.  
  176.  
  177. PSEUDO-INSTRUCTIONS
  178.  
  179.    align <expression>
  180.  
  181.       Align fills zero or more bytes with zeros until the new address
  182.       modulo <expression> equals zero.  If the expression is not present,
  183.       align fills zero or one bytes with zeros until the new address
  184.       is even.
  185.  
  186.       Example 1:
  187.                       align  256             ; continue assembly on the
  188.                                              ; next 256-byte page
  189.  
  190.       Example 2:
  191.                       align                  ; make sure table begins
  192.       Table           dw     1,2,3           ; on an even address
  193.  
  194.  
  195.  
  196.    bss
  197.       Put all assembled instructions and data in the code segment.
  198.       Only data pseudo-instructions can be used in the bss segment, and
  199.       these only increment the location counter.  It is up to the programmer
  200.       to initialize the bss segment.  The bss segment is especially
  201.       meaningful in a ROM based system where variables must be placed
  202.       in RAM, and RAM is not automatically initialized.
  203.  
  204.       The assembler internally maintains three separate location counters,
  205.       one for the code segment, one for the data segment and one for the
  206.       uninitialized data segment.  The user is responsible for not overlapping
  207.       the segments by setting appropriate origins.  The code, data and bss
  208.       pseudo-instructions can be used to interleave code and data in the source
  209.       listing, while separating the three in the generated program.  The
  210.       assembler starts with the code segment if none is specified.
  211.  
  212.       Example:
  213.                      code
  214.                      org    $f000           ; Assuming 4 kbyte code ROM
  215.                      data                   ; with 2 kbyte program and
  216.                      org    $f800           ; 2 kbyte initialized data
  217.                      bss
  218.                      org    0               ; bss segment is in RAM
  219.  
  220.       Buffer         ds     100
  221.  
  222.                      code
  223.       Begin          ldx    #Table
  224.                      ldy    #Buffer
  225.                      lda    ,x+
  226.                      sta    ,y+
  227.                      .
  228.                      .
  229.                      .
  230.  
  231.                      data
  232.       Table          db     1,2,3
  233.  
  234.                      code
  235.       MyFunc         ldx    #Table
  236.                      .
  237.                      .
  238.  
  239.    code
  240.       Put all assembled instructions and data in the code segment.
  241.       See _bss_
  242.  
  243.  
  244.    data
  245.       Put all assembled instructions and data in the data segment.
  246.       See _bss_
  247.  
  248.  
  249.    db <bytelist>
  250.  
  251.       Define bytes.  The bytes may be specified as expressions or strings,
  252.       and are placed in the current (code or data) segment.  This pseudo
  253.       instruction is similar to the Motorola-defined fcb and fcc pseudo-
  254.       instructions.
  255.  
  256.       Example:
  257.       Message         db     7,"Error",13,10,0
  258.  
  259.  
  260.    direct <expression>
  261.  
  262.       Direct informs the assembler to which 256-byte page the direct
  263.       page register (dp or dpr) points.
  264.       The value can be either 0...255 indicating the value of the dp
  265.       register, or 0,256,512,...65280 indicating the dp value multiplied
  266.       by 256.  If <expression> equals -1, the assembler assumes the dp
  267.       register is uninitialized, and will not generate direct addressing
  268.       mode instructions.  It is the responsibility of the user to set
  269.       the dp register.  Note that the direct pseudo-instruction does
  270.       only influence assembly following it, and only when optimization
  271.       is enabled.
  272.  
  273.       Example:
  274.                      lda    #Table>>8
  275.                      tfr    a,dp
  276.                      direct Table & $ff00   ; mask off low bits.
  277.  
  278.                      lda    Table           ; these instructions will
  279.                      ldb    Table+1         ; use direct addressing
  280.  
  281.                      direct -1              ; disable use of dpr
  282.  
  283.  
  284.    ds <expression>
  285.  
  286.       Define zero or more bytes empty space.  The specified number of
  287.       bytes are filled with zeros.  This pseudo-instruction is identical
  288.       to the Motorola-defined pseudo-instruction rmb.
  289.  
  290.       Example:
  291.                      ds     100             ; reserve 100 bytes here
  292.  
  293.  
  294.    dw <wordlist>
  295.  
  296.       Define words.  The words are placed in the current (code or data)
  297.       segment.  This pseudo-instruction is identical to the Motorola-
  298.       defined fcw and fdb pseudo-instructions.
  299.  
  300.       Example:
  301.                      ldb    Function        ; number of function
  302.                      ldx    #JumpTable
  303.                      lslb
  304.                      jmp    [b,x]           ; jump to function
  305.  
  306.       JumpTable      dw     Function0
  307.                      dw     Function1
  308.                      dw     Function2
  309.  
  310.  
  311.    else
  312.  
  313.       The else pseudo-instruction can be used for if-then-else
  314.       constructions. It must be placed between an if and an endif
  315.       instruction.  For an example, see the if pseudo-instruction.
  316.  
  317.  
  318.    end <expression>
  319.  
  320.       The end pseudo-instruction is optional, and need not be used.  If
  321.       it is used, its optional operand specifies the staring address of
  322.       the program.  This address is displayed when the program is
  323.       assembled, and is also placed in the s-record output file.
  324.  
  325.       Example:
  326.                      end    Start
  327.  
  328.    endif
  329.  
  330.       The endif pseudo-instruction must be used to close an if-endif
  331.       or if-else-endif construction.  For an example, see the if
  332.       pseudo-instruction.
  333.  
  334.  
  335.    <label> equ <expression>
  336.  
  337.       The equ (equate) pseudo-instruction sets the specified label to
  338.       the value of the expression.  The label may not already exist.
  339.       Some programmers choose to use only upper-case identifiers for
  340.       labels defined in this way to differentiate them from addresses.
  341.  
  342.       Example:
  343.       ESCAPE          equ    27
  344.  
  345.  
  346.    fcb <bytelist>
  347.  
  348.       Define bytes (form constant byte).  The bytes may be specified
  349.       only as expressions, and are placed in the current (code or data)
  350.       segment.  This pseudo-instruction was originally defined
  351.       by Motorola and is similar to the db pseudo-instruction.
  352.  
  353.       Example:
  354.       Message        fcb    7
  355.                      fcc    "Error"
  356.                      fcb    13,10,0
  357.  
  358.  
  359.    fcc <string>
  360.  
  361.       Define bytes (form constant character).  The bytes may be
  362.       specified only as a string, and are placed in the current (code or
  363.       data) segment.  This pseudo-instruction was originally defined
  364.       by Motorola and is similar to the db pseudo-instruction.
  365.  
  366.  
  367.    fcw <wordlist>
  368.  
  369.       Define words (form constant word).  The words are placed in the
  370.       current (code or data) segment.  This pseudo instruction is
  371.       identical to the fdb and dw pseudo-instructions.
  372.  
  373.  
  374.    fdb <wordlist>
  375.  
  376.       Define words (form double byte).  The words are placed in the
  377.       current (code or data) segment.  This pseudo instruction is
  378.       identical to the fcw and dw pseudo-instructions.
  379.  
  380.  
  381.    if <expression>
  382.  
  383.       The if pseudo-instruction can be used in conjunction with the
  384.       endif and possibly the else pseudo-instructions to selectively
  385.       enable and disable pieces of code in the source.  If the expression
  386.       given evaluates to zero, then the following code up to the matching
  387.       else or endif is not included in the assembly.  If the expression
  388.       is nonzero, then the following code is included, but any code
  389.       between the matching else and endif is not.
  390.  
  391.       Example:
  392.                      if COUNT=2 | COUNT=4
  393.                      aslb                   ; shift left for counts
  394.                      if COUNT=4             ; of 2 and 4
  395.                      aslb
  396.                      endif
  397.                      else
  398.                      pshs    a
  399.                      lda     #COUNT         ; otherwise use slow multiply
  400.                      mul
  401.                      puls    a
  402.                      endif
  403.  
  404.  
  405.    include <string>
  406.  
  407.       The named file is included in the assembly at this point.  After
  408.       it has been read, assembly continues with the next line of the
  409.       current file. Include files may be nested.
  410.  
  411.       Example:
  412.                      include "defines.i"
  413.  
  414.  
  415.    list
  416.  
  417.       Enable generation of the listing in the list-file.  If the listing
  418.       has been disabled twice, it must be enabled twice before it is
  419.       generated.  When no -p or -l option has been specified on the
  420.       command line, this pseudo-instruction has no effect.
  421.  
  422.  
  423.    nolist
  424.  
  425.       Disable generation of the listing in the list-file.
  426.  
  427.  
  428.    noopt
  429.  
  430.       Disable optimizations.  If the -n option has been specified on the
  431.       command line, this pseudo-instruction has no effect.
  432.  
  433.  
  434.    nop <expression>
  435.  
  436.       No operation.  When the optional expression is not present, this
  437.       is simply the nop instruction of the processor.  When the
  438.       expression is present, the specified number of nop instructions
  439.       are inserted.
  440.  
  441.       Example:
  442.                      nop    10
  443.  
  444.  
  445.    opt
  446.  
  447.       Enable optimizations.  If the -n option has been specified on the
  448.       command line, this pseudo-instruction has no effect.
  449.       When optimization is enabled, the assembler tries to use the
  450.       shortest and fastest instructions possible which have the effect
  451.       the user wants.  It may replace any extended-address instruction
  452.       by direct-address instructions (provided the direct pseudo-
  453.       instruction has been used).  It replaces long branches with jumps
  454.       or short branches, calls with branches to subroutines, and
  455.       replaces zero-offset indexed instructions by no-offset indexed
  456.       instructions.  The effects of optimizations is clearly visible if
  457.       both a pass one and a pass two listing is generated.
  458.  
  459.  
  460.    org <expression>
  461.  
  462.       The org (origin) pseudo-instruction specifies the next address to
  463.       be used for assembly.  When no origin has been specified, the
  464.       assembler uses the value 0.  The assembler maintains three separate
  465.       location counters: one for the code segment, one for the data
  466.       segment, and one for the bss segment.  See the code and pseudo-
  467.       instruction for more information.
  468.  
  469.  
  470.    page <expression>
  471.  
  472.       When the optional expression is not present, the assembly listing
  473.       is continued on the next page.  When the expression is present,
  474.       the listing is continued on the next page only if the specified
  475.       number of lines do not fit on the current page.
  476.  
  477.  
  478.    rmb <expression>
  479.  
  480.       Define zero or more bytes empty space.  The specified number of
  481.       bytes are filled with zeros.  This pseudo-instruction is identical
  482.       to the pseudo-instruction ds.
  483.  
  484.  
  485.    <label> set <expression>
  486.  
  487.       The set pseudo-instruction sets the specified label to the value
  488.       of the expression.  The label may or may not already exist.
  489.       Some programmers choose to use only upper-case identifiers for
  490.       labels defined in this way to differentiate them from addresses.
  491.  
  492.       Example:
  493.       CURRENT         set    0
  494.  
  495.                       .
  496.                       .
  497.                       .
  498.  
  499.       CURRENT         set    CURRENT+1
  500.  
  501.  
  502.    struct <name>
  503.    struct <name>,<expression>
  504.  
  505.       The struct (structure) pseudo-instruction can be used to define
  506.       data structures in memory more easily.
  507.  
  508.       The name of the structure is set to the total size of the structure;
  509.       if the expression is present, the starting offset is the value of
  510.       the expression in stead of zero.
  511.  
  512.       Between the struct and end struct pseudo-instructions the following
  513.       pseudo-instructions can be used: db, dw, ds, label, align.
  514.       Within structures these pseudo-instructions take a slightly different
  515.       format than normally:
  516.  
  517.          db <name>                element is one byte
  518.  
  519.          dw <name>                element is two bytes
  520.  
  521.          ds <name>,<expression>   element is the specified number of bytes
  522.  
  523.          ds <expression>          skip the specified number of bytes
  524.  
  525.          label <name>             element is zero bytes, i.e. set the name
  526.                                   to the current structure offset
  527.  
  528.          align <expression>       skip until offset modulo expression
  529.                                   equals zero
  530.  
  531.          align                    skip until offset is even
  532.  
  533.  
  534.       Example:
  535.                      struct ListNode,4
  536.                      dw     LN_Next
  537.                      dw     LN_Previous
  538.                      db     LN_Type
  539.                      align
  540.                      label  LN_Simple       ; size of structure so far
  541.                      align  8
  542.                      ds     LN_Data,10
  543.                      end struct
  544.  
  545.       This is identical to:
  546.  
  547.       LN_Next        equ     4       ;\
  548.       LN_Previous    equ     6       ; offset of structure elements
  549.       LN_Type        equ     8       ;/
  550.       LN_Simple      equ     10      ; size of structure so far
  551.       LN_Data        equ     16      ; offset of structure element
  552.       ListNode       equ     26      ; size of structure
  553.  
  554.  
  555.    title <string>
  556.  
  557.       The title pseudo-instruction sets the title to be used in the
  558.       header of each listing page.  The string should be no longer than
  559.       80 characters.
  560.  
  561.       Example:
  562.                    title  "DIS09 : A disassembler for a 6809 CPU"
  563.  
  564.  
  565. ADDRESSING MODES
  566.    The assembler allows all 6809 (and when enabled also 6309) addressing
  567.    modes.  Expressions can be prefixed by < to force 8 bit direct addres
  568.    or 8 bit offset; << to force 5 bit offset and > to force 16 bit
  569.    address or offset.  >> is provided for symmetry, and functions as >.
  570.    Normally, the assembler will automagically select the 'best' (least
  571.    instruction bytes) addressing mode, although when forward references
  572.    are used it may be necessary to specify a prefix.
  573.  
  574.    Note that although the "address,pc" mode looks similar to the indexed
  575.    addressing modes, it actually defines a program-counter-relative
  576.    address.  In the list, x can be replaced by y, s or u; address is
  577.    the label (or expression) of the data, and offset is the signed offset
  578.    relative to the specified index register.
  579.  
  580.    List of available modes:
  581.       address
  582.       ,x
  583.       ,x+
  584.       ,x++
  585.       ,-x
  586.       ,--x
  587.       a,x
  588.       b,x
  589.       d,x
  590.       offset,x
  591.       address,pc
  592.       [address]
  593.       [,x]
  594.       [,x++]
  595.       [,--x]
  596.       [a,x]
  597.       [b,x]
  598.       [d,x]
  599.       [offset,x]
  600.       [address,pc]
  601.  
  602.    Additional addressing modes for the 6309:
  603.       ,w
  604.       ,w++
  605.       ,--w
  606.       e,x
  607.       f,x
  608.       w,x or x,w
  609.       offset,w
  610.       [,w]
  611.       [,w++]
  612.       [,--w]
  613.       [e,x]
  614.       [f,x]
  615.       [w,x] or [x,w]
  616.       [offset,w]
  617.  
  618.  
  619. LIST OF ACCEPTED INSTRUCTIONS
  620.    abx adc adca adcb adcd adcr add adda addb addd adde addf addr addw aim
  621.    align and anda andb andcc andd andr asl asla aslb asld aslw asr asra asrb
  622.    asrd asrw band bcc bcs beor beq bge bgt bhi bhs biand bieor bior bita
  623.    bitb bitd bitmd ble blo bls blt bmi bne bor bpl bra brn bsr bss bvc bvs clr
  624.    clra clrb clrd clre clrf clrs clrv clrw clrx clry cmp cmpa cmpb cmpd cmpe
  625.    cmpf cmpr cmps cmpu cmpw cmpx cmpy code com coma comb comd come comf comw
  626.    cwai daa data db dd dec deca decb decd dece decf decw direct divd divq
  627.    ds dw eim else end endif eor eora eorb eord eorr equ exg fcb fcc fcw
  628.    fdb if inc inca incb incd ince incf include incw jmp jsr lbcc lbcs lbeq
  629.    lbge lbgt lbhi lbhs lble lblo lbls lblt lbmi lbne lbpl lbra lbrn lbsr
  630.    lbvc lbvs lda ldb ldbt ldd lde ldf ldmd ldq lds ldu ldw ldx ldy leas leau
  631.    leax leay list lsl lsla lslb lsr lsra lsrb lsrd lsrw mul muld neg nega
  632.    negb negd negw nolist noopt nop oim opt or ora orb orcc ord org orr page
  633.    pshs pshsw pshu pshuw puls pulsw pulu puluw rmb rol rola rolb rold rolw
  634.    ror rora rorb rord rorw rti rts sbc sbca sbcb sbcd sbcr set sex sexw sta
  635.    stb stbt std ste stf stq struct sts stu stw stx sty sub suba subb subd
  636.    sube subf subr subw swi swi2 swi3 sync tfm tfr tim title tst tsta tstb
  637.    tstd tste tstf tstw
  638.  
  639.    Of these instructions, the following are (more or less) synonymous,
  640.    and can be used interchangably.
  641.    YOU CAN USE     WHERE YOU WOULD PREVIOUSLY USE
  642.       adc       -  adcr
  643.       add       -  addr
  644.       and       -  andr
  645.       cmp       -  cmpr
  646.       eor       -  eorr
  647.       or        -  orr
  648.       sbc       -  sbcr
  649.       sub       -  subr
  650.       tfr       -  tfm
  651.       clrs      -  tfr z,s
  652.       clrv      -  tfr z,v
  653.       clrx      -  tfr z,x
  654.       clry      -  tfr z,y
  655.       nop 6     -  nop nop nop ....
  656.       swi 1     -  swi
  657.       swi 2     -  swi2
  658.       swi 3     -  swi3
  659.       pshs w    -  pshsw -- can't mix with other registers though
  660.       puls w    -  pulsw
  661.       pshu w    -  pshuw
  662.       pulu w    -  puluw
  663.       pshs all  -  pshs pc,u,y,x,dp,b,a,cc
  664.       pshu all  -  pshs pc,s,y,x,dp,b,a,cc
  665.  
  666.    And pseudo-instructions:
  667.       db        -  fcb, fcc
  668.       dw        -  fcw, fdb
  669.       ds        -  rmb
  670.       struct    -  lots of EQUs
  671.       direct    -  < in referencing instructions
  672.  
  673.  
  674. LIST OF OTHER KEYWORDS
  675.    !  !=  #  %  &  (  )  *  +  ++  ,  -  --  /  <
  676.    <<  <=  =  >  >=  >>  [  ]  ^  | ~
  677.    a all b c cc ccr d dp dpr e f h i n pc s sp u v w x y z
  678.  
  679.  
  680. BUGS
  681.    No provision for linking other pre-assembled modules is made.
  682.  
  683.  
  684. RETURNS
  685.    As09 returns one of the following values:
  686.  
  687.       0 - Source file assembled without errors.
  688.       1 - Incorrect parameter specified on the commandline.
  689.       2 - Unable to open input or output file.
  690.       3 - Assembly gave errors.
  691.       4 - No memory could be allocated.
  692.  
  693.  
  694. DIAGNOSTICS
  695.    Help message if only parameter is a question mark, or if an
  696.    illegal option has been specified.
  697.  
  698.  
  699. AUTHOR
  700.    This is copyrighted software, but may be distributed freely as long
  701.    as this document accompanies the assembler, and no copyright messages
  702.    are removed.  You are explicitly _not_ allowed to sell this software
  703.    for anything more than a reasonable copying fee, US$5.
  704.    To contact the author:
  705.       Frank A. Vorstenbosch
  706.       Kingswood Software
  707.       P.O. Box 85800
  708.       2508CM  The Hague
  709.       Netherlands
  710.       Email: prompt@hacktic.nl
  711.