home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpmhelp / asm2.hlp < prev    next >
Text File  |  1994-07-27  |  3KB  |  84 lines

  1. Invoking the Assembler
  2. Assembler Pseudo-Ops
  3. Assembler In-Line Error Messages
  4. Assembler Console Error Messages
  5. :Invoking the Assembler
  6.  
  7.      The CP/M Assembler is invoked by typing --
  8.  
  9.           ASM filename   or   ASM filename.parms
  10.  
  11. where 'filename' is the name of the file 'filename.ASM' to be assembled.
  12.  
  13.      In the case of the first command, the following files are created --
  14.  
  15.           filename.HEX        - "HEX" file containing machine code in
  16.                                 Intel hex format
  17.           filename.PRN        - listing file
  18.  
  19.  
  20.      In  the case of the second command,  these files are created according 
  21. to the parameters specified --
  22.  
  23.           ASM filename.pqr
  24.  
  25. where
  26.           p : A,B,...  - designates the disk name which contains the source
  27.           q : A,B,...  - designates the disk name to receive the hex file
  28.               Z        - skips generation of the hex file
  29.           r : A,B,...  - designates the disk name which will receive the
  30.                          print file
  31.               X        - outputs the listing to the console
  32.               Z        - skips generation of the print file
  33. :Assembler Pseudo-Ops
  34.  
  35.      ORG       Set the program or data origin
  36.      END       End program
  37.      EQU       Numeric equate
  38.      SET       Numeric set
  39.      IF        Begin conditional assembly
  40.      ENDIF     End conditional assembly
  41.      DB        Define data bytes
  42.      DW        Define data words
  43.      DS        Define data storage area
  44. :Assembler In-Line Error Messages
  45.  
  46.      D    Data error:  element in data statement cannot be  placed  in  the 
  47.           specified data area
  48.      E    Expression  error:   expression   is  ill-formed  and  cannot  be 
  49.           computed at assembly line
  50.  
  51.      L    Label  error:   label  cannot  appear in  this  context  (may  be 
  52.           duplicate label)
  53.      N    Not  implemented:   features  which  will appear  in  future  ASM 
  54.           versions
  55.  
  56.      O    Overflow:  expression is too complicated to compute; simplify
  57.      P    Phase  error:   label  does  not  have  the  same  value  on  two 
  58.           subsequent passes through the program
  59.  
  60.      R    Register  error:   the  value  specified as  a  register  is  not 
  61.           compatible with the operation code
  62.      V    Value  error:  operand  encountered in expression  is  improperly 
  63.           formed
  64. :Assembler Console Error Messages
  65.  
  66.      NO SOURCE FILE PRESENT        The file specified in the ASM command
  67.                                    does not exist on disk
  68.  
  69.      NO DIRECTORY SPACE            The disk directory is full, erase files
  70.                                    which are not needed, and retry
  71.  
  72.      SOURCE FILE NAME ERROR        Improperly formed ASM file name
  73.  
  74.      SOURCE FILE READ ERROR        Source file cannot be read properly by
  75.                                    the assembler, execute a TYPE to
  76.                                    determine the point of error
  77.  
  78.      OUTPUT FILE WRITE ERROR       Output files cannot be written properly,
  79.                                    most likely cause is a full disk, erase
  80.                                    and retry
  81.  
  82.      CANNOT CLOSE FILE             Output file cannot be closed, check to
  83.                                    see if disk is write protected
  84.