home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / emulate / x_comp / tasm / summary.doc < prev    next >
Text File  |  1989-10-08  |  6KB  |  57 lines

  1. TASM SUMMARY
  2. --------------------------------------------------------------------------------------------------------------------------
  3. COMMAND LINE:                                               | DIRECTIVES:
  4.   tasm -vv [-<option>] src_file [obj_file [list_file        |   #INCLUDE <filename> Read <filename> as source
  5.                               [export_file [symbol_file]]]] |   #DEFINE  <label> [<macro_def>] Define a macro
  6.   -<vv>   Select version (-48,-51,-65,-85,-80,-68,-05,-32)  |   #IFDEF   <label>    Assemble following if <label> DEFINEd
  7.   -o<nn>  Specify number of obj bytes per record (hex)      |   #IFNDEF  <label>    Assemble following if <label> not DEFd
  8.   -c      object file written as a contiguous block         |   #IF      <expr>     Assemble following if <expr> nonzero
  9.   -d<mac> define a macro                                    |   #ELSE               Alternate block to assemble
  10.   -f<xx>  Fill entire memory space with <xx> (hex)          |   #ENDIF              End of conditional block
  11.   -g<m>   Obj format(0=Intel,1=MOSTech,2=Motorola,3=bin)    |
  12.   -h      Produce hex table of the assembled code           |   .ORG     <expr>     Set Instruction Pointer
  13.   -l      Produce a label table in the listing              |   .BYTE    <expr>     Define a byte
  14.   -m      Produce object in MOS Technology format           |   .WORD    <expr>     Define a word (lsb, msb)
  15.   -b      Produce object in binary (.COM) format            |   .EQU     <expr>     Assign a value to label
  16.   -e      Expand the source lines in listing file           |   .DB      <expr>     Same as BYTE
  17.   -t<tab> Select version (if non numeric)                   |   .DW      <expr>     Same as WORD
  18.   -p      Page the listing file                             |   .TEXT    <string>   Define bytes as ASCII characters
  19.   -x<m>   Enable extended instruction set (m = class mask)  |   .BLOCK   <expr>     Block space reserve
  20.   -q      Quite, disable listing file                       |   .TITLE   <string>   Set a title to appear on listing
  21.   -r<kb>  Set read buffer size (Kbytes, default 2K)         |   .CODES/NOCODES      Enable/disable opcodes in list file               
  22.   -s      Generate symbol table file                        |   .SET     <expr>     Set value of label      
  23. ------------------------------------------------------------|   .EJECT              Do Top of Form on listing
  24. OPERATORS:                                                  |   .LIST/NOLIST        Enable/disable listing
  25.                                                             |   .SYM/AVSYM <file>   Generate symbol table file
  26.   Operator  Type          Description                       |   .PAGE/NOPAGE        Enable/disable paging of list file
  27.   __________________________________________                |   .LSFIRST            Set least significant byte first
  28.   +        Additive       addition                          |   .MSFIRST            Set most significant byte first
  29.   -                       subtraction                       |   .ADDINSTR <instdef> Add instruction
  30.   *        Multiplicative multiplication                    |   .END                End of source code
  31.   /                       division                          |   =        <expr>     Alternate form of EQU
  32.   %                       modulo                            |   *=       <expr>     Alternate form of ORG
  33.   <<                      logical shift left                |------------------------------------------------------
  34.   >>                      logical shift right               | CONSTANTS:
  35.   ~        Unary          bit inversion (one's complement)  |   Numeric constants: <digits><suffix> or <prefix><digits>
  36.   -                       unary negation                    |     <digits> = digit string taken from (0-9,a-f,A-F)
  37.   =        Relational     equal                             |     <suffix> = radix indicator defined as follows:
  38.   ==                      equal                             |
  39.   !=                      not equal                         |     Prefix   Suffix              Radix
  40.   <                       less than                         |     -------------------------------------
  41.   >                       greater than                      |     %        b or B               2   
  42.   <=                      less than or equal                |     @        o or O               8   
  43.   >=                      greater than or equal             |              d or D (or nothing)  10
  44.   &       Binary          binary 'and'                      |     $        h or H               16  
  45.   |                       binary 'or'                       |
  46.   ^                       binary 'exclusive or'             |   Character constants: '<char>' (e.g. 'a')
  47. Note: 16 bit values used.  Relational Ops yield 1 or 0.     |   String    constants: "<chars>" (.e.g "abc")
  48. --------------------------------------------------------------------------------------------------------------------------  
  49. NOTES:                                                        
  50.  1. Statement format: <label> <operation> <operand> <comment>  
  51.  2. The backslash can be used to separate multiple statements on a line (e.g. lda byte1 \ sta byte2).  
  52.  3. '$' or '*' represent the current Instruction Counter.   
  53.  4. Comments preceded by semicolon (';').                   
  54.  5. TASM is case insensitive for mnemonics, but not labels. 
  55. --------------------------------------------------------------------------------------------------------------------------
  56.  
  57.