home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / ENTERPRS / CPM / UTILS / S / Z80ASM24.ZIP / Z80ASM.DOC < prev    next >
Text File  |  1991-10-06  |  4KB  |  115 lines

  1.  
  2.  
  3.   Z
  4.    8
  5.     0
  6.      A
  7.       S
  8.        M
  9.  
  10.  
  11.   Zilog/Mostek
  12.  
  13.   Z80-CPU
  14.  
  15.  
  16.   Assembly
  17.    Language
  18.     Processor
  19.  
  20.  
  21.   (C) Copyright 1977 LCS
  22.   All Rights Reserved
  23.  
  24.  
  25.   Latest Revision: 21-July-1977
  26.  
  27.  
  28.  Z 8 0 A S M
  29.  
  30.  
  31.      Z80ASM is an assembler for the Zilog/Mostek Z80-CPU microprocessor.
  32. It is designed to run under the CP/M operating system from Digital
  33. Research.  CP/M will run on either an 8080a system or a Z80 system.
  34. Z80ASM will run in the CP/M minimum (16k) system but will utilize more
  35. memory for symbol table storage in larger (up to 64k) CP/M systems.
  36.  
  37.      Z80ASM reads a source (asm) file produced by the CP/M "ED" text
  38. editor program and produces an optional listing (on the lst: device) and
  39. an optional object code (hex) file in intel format hex.  The "hex" file
  40. can be loaded for execution using "DDT" or "LOAD" commands of CP/M or it
  41. can be punched on paper tape using the "pip" program.
  42.  
  43.      Input statements are free format i.e., not column oriented.
  44. Between fields any number of blank or tab characters may be present but
  45. within a field there may be no blank or tab characters.  However,
  46. statements labels must be in the first position of the line.  Statement
  47. labels may have a colon following them but the colon is not required.
  48. Comments are preceded by a semicolon and may appear by themselves or
  49. following all of the fields on a source line.
  50.  
  51.  
  52.      All the Zilog/Mostek mnemonics are supported with the following
  53. exceptions:
  54.  
  55.      1. The Z80CPU technical manual has conflicting information regarding
  56.  the syntax of the rlc, rl, rrc, and rr instructions when the a
  57.  register is used as the operand.  On page 50 the forms
  58.  "rlca", "rla", "rrca", "rra" are used while on page 68 the form
  59.  "rr a" is shown.  Z80ASM will support only the "rra", etc. form.
  60.  
  61.      2. The Z80CPU manual does not describe the pseudo operators available
  62.  except that "EQU" and "DEFS" are used on page 67 in the sample
  63.  program.  The list below describes the pseudo operators available
  64.  in Z80ASM and their argument formats:
  65.  
  66.      <LABEL> EQU     <EXPRESSION>    assign value to label
  67.       ORG     <EXPRESSION>    assign value to program counter
  68.       DEFS    <EXPRESSION>    reserve storage
  69.       DEFW    <EXPRESSION>    define word (2 bytes)
  70.       DEFG    <ESPRESSION>    define byte (format 1)
  71.       DEFG    '-STRING-'      define byte (format 2)
  72.       EJECT       listing eject
  73.       END     <EXPRESSION>    define execution address
  74.  
  75.  NOTE: For DEFW and DEFB, only one operand is allowed.
  76.  
  77.      EXPRESSIONS;
  78.  
  79.      expressions may be any number of the items listed below separated
  80. by +, -, and * for addition, subtraction, and multiplication respectively.
  81.  
  82.      expression elements:
  83.  
  84.       <LABEL>      1 to 11 character statement label
  85.       <NUMBER>H      hexadecimal number
  86.       <NUMBER>B      binary (bit) number
  87.       <NUMBER>      decimal number
  88.   $      program counter reference
  89.         'x'      x=any printable character
  90.  
  91.      examples of expressions are:
  92.  
  93.       LABEL1+5
  94.       0FFH
  95.       10100001B+6
  96.       $-6
  97.       '9'+1
  98.  
  99.      The input file must have an extension of "asm" and the output file
  100. will have an extension of "hex" if it is created.  Z80ASM is called
  101. using a command with the following format:
  102.  
  103.      Z80ASM <FILENAME>.<AB>
  104.  
  105.      <FILENAME>      1 to 8 character CP/M file name (must be .ASM)
  106.      <AB>      option controls-
  107.          A=Y or N for listing
  108.          B=Y or N for hex file
  109.        if <FILENAME> only format is used the A and B
  110.        default to YY
  111.  
  112.      Note: Even if the listing is not requested, any errors that will
  113.     occur will be listed on the lst: device.
  114. 
  115.