home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / prog2 / a86.lzh / 00README.DOC next >
Encoding:
Text File  |  1987-05-22  |  12.2 KB  |  287 lines

  1. A86 assembler package   V3.04           May 22, 1987
  2. The entire package is Copyright (C)1986-1987 Eric Isaacson.
  3. All rights reserved.
  4.  
  5. For easier bulletin-board distribution, I have split this package 
  6. into two ARC files, A86V304A.ARC and A86V304B.ARC.  The first half 
  7. contains enough to get you started; you can evaluate the package 
  8. and then download the second half later on.  
  9.  
  10. PLEASE read Chapter 1 for legal terms and conditions, how to 
  11. register for the package, and the overview of the assembler.
  12.  
  13.  
  14. QUESTION: "I bought this assembler from XYZ Software House, that 
  15.   advertised great software for $5 per disk.  What's going on 
  16.   here?  Have I already bought an assembler, or what?" 
  17.  
  18. ANSWER: Well, no, not exactly.  You've bought a disk that has 
  19.   great software on it; you haven't bought the software yet.  
  20.   A86, like the vast majority of software offered by the $5-per-
  21.   disk distribution houses, is free-distribution software (also 
  22.   known as "shareware", or "user-supported software").  That 
  23.   means I retain the right to A86, but I choose to let people 
  24.   pass it around.  I have no business relationship with any 
  25.   distribution houses; I don't get a penny of the $5 (or 
  26.   whatever) you paid them for the disk containing A86.  So I need 
  27.   and expect to be paid by you, because I'm trying to make a 
  28.   living out of making and supporting shareware products. 
  29.  
  30.   Many distribution houses do a pretty poor job of revealing the 
  31.   shareware nature of the software they sell.  If you thought you 
  32.   had purchased the software free and clear, you might feel 
  33.   justified in being angry with them for having misled you.  And 
  34.   you might look around for houses that do a better job of 
  35.   informing the public.  But I hope you'll take the time to 
  36.   consider everybody's role in the shareware marketing scene; if 
  37.   you do, I think you'll conclude that although you may have 
  38.   been misled, you haven't really been cheated out of anything. 
  39.  
  40.   Shareware is great for authors like me, who have spent all 
  41.   their years in their computer holes, learning to be great 
  42.   programmers, and no time in business school learning marketing 
  43.   and distribution techniques.  We simply cast our programs to 
  44.   the winds.  They are distributed at practically no cost to 
  45.   us.  That's why we can charge a lot less than the cost of 
  46.   "commercial" software. 
  47.  
  48.   Shareware is also great for customers like you.  You can try 
  49.   out the software before paying for it.  You'll know that a 
  50.   successful shareware product is good, because only satisfied 
  51.   customers pay for it.  The existence of shareware infuses 
  52.   healthy competition in the entire software market, for both 
  53.   price and quality.  In the case of A86, I'm utterly convinced 
  54.   that you'll never find a better value for an assembler, 
  55.   anywhere.
  56.                                                         0-2
  57.  
  58.   Finally, let's consider the distribution houses.  They provide 
  59.   a legitimate service, for which they charge a reasonable price.  
  60.   The best houses act as librarians, evaluating and cataloguing 
  61.   software.  Most pay thousands of dollars for advertising.  
  62.   Their cut is far less than the distributor's cut for 
  63.   "commercial" software.  Most customers for the distribution 
  64.   houses are repeat customers, who are aware of, and happy with, 
  65.   what they are getting.  If it weren't for your XYZ House, you 
  66.   might never have heard of A86, or might never have figured out 
  67.   where to obtain it. 
  68.  
  69.   So I hope you'll be happy with shareware, and actively desire 
  70.   to support it.  You'll feel good about promoting a healthy 
  71.   situation for everybody.  And you'll encourage the best 
  72.   programmers in the world to keep writing for you, instead of 
  73.   for the big corporations.
  74.  
  75.  
  76. Now that I've said that, let's move on to the package.   The A86 
  77. package consists of the three programs A86.COM, XREF.COM, and 
  78. EXMAC.COM; a bunch of source, batch, and library files used by 
  79. the demonstration contained in Chapter 2, and a sequence of DOC 
  80. files that, when printed out in order, make the manual.  Each 
  81. chapter is a DOC file whose name starts with 2 digits indicating 
  82. the chapter number.  The files are:
  83.  
  84. 00README.DOC  (this file)     09DIRC.DOC
  85. 01INTRO.DOC                   10RELOC.DOC
  86. 02DEMO.DOC                    11MACRO.DOC
  87. 03OPREQ.DOC                   12COMPAT.DOC
  88. 04ELEM.DOC                    13TOOLS.DOC
  89. 05EXCLUS.DOC                  14HIST.DOC
  90. 06INSTR.DOC                   15RESERV.DOC
  91. 07FLOAT.DOC                   16INDEX.DOC
  92. 08EXPR.DOC
  93.  
  94.                                                         0-3
  95. TABLE OF CONTENTS
  96.  
  97.  
  98. CHAPTER 1   INTRODUCTION AND LEGAL TERMS
  99.  
  100.   Introduction                             1-1
  101.   Legal Terms and Conditions               1-1
  102.   Overview of A86                          1-3
  103.   Who IS That Guy?                         1-4
  104.   Support Your Local Bulletin Board        1-5
  105.   How to Get in Touch With Me              1-5
  106.  
  107.  
  108. CHAPTER 2   A86 DEMONSTRATION
  109.  
  110.   Demonstration of A86 and Associated Tools                 2-1
  111.   Assembling a Very Short Program: PAGE.COM                 2-1
  112.   Demonstration of Error-Reporting                          2-1
  113.   Assembling a Longer Program with Library Files: REV.COM   2-2
  114.   Using XREF on a medium-sized program: TCOLS.COM           2-2
  115.   Using EXMAC                                               2-3
  116.  
  117.  
  118. CHAPTER 3   OPERATION AND REQUIREMENTS
  119.  
  120.   A86 Program Invocation                    3-1
  121.   Assembler Switches                        3-2
  122.   Strategies for Source File Maintenance    3-3
  123.   System Reuqirements for A86               3-4
  124.  
  125.  
  126. CHAPTER 4   ELEMENTS OF THE A86 LANGUAGE
  127.  
  128.   The A86 Language and the A86 Program               4-1
  129.   General Categories of A86 Elements                 4-1
  130.   Operand Typing and Code Generation                 4-3
  131.   Registers                                          4-3
  132.   Variables                                          4-3
  133.   Labels                                             4-4
  134.   Constants                                          4-4
  135.   Generating Opcodes from General Purpose Mnemonics  4-4
  136.  
  137.  
  138. CHAPTER 5   SOME EXCLUSIVE FEATURES OF A86
  139.  
  140.   The IF Statement                               5-1
  141.   Multiple operands to PUSH, POP, INC, DEC       5-1
  142.   Conditional Return Instructions                5-1
  143.   A86 extensions to the MOV instruction          5-2
  144.   Local Labels                                   5-2
  145.   Operands to AAM and AAD Instructions           5-3
  146.                                                            0-4
  147. CHAPTER 6    THE 86 INSTRUCTION SET
  148.  
  149.   Effective Addresses                            6-1
  150.   Segmentation and Effective Addresses           6-2
  151.   Effective Use of Effective Addresses           6-3
  152.   Encoding of Effective Addresses                6-4
  153.   Table of Effective Address byte values         6-5
  154.   How to Read the Instruction Set Chart          6-6
  155.   The Instruction Set Chart                      6-7
  156.  
  157.  
  158. CHAPTER 7   THE FLOATING-POINT PROCESSOR
  159.  
  160.   The 8087 and 287 Coprocessors          7-1
  161.   The Floating Point Stack               7-2
  162.   Floating Point Initializations         7-3
  163.   Built-In Constant Names                7-3
  164.   Special Immediate FLD Form             7-3
  165.   Floating Point Operand Types           7-4
  166.   Operand Choices in A86                 7-5
  167.   The 87 Instruction Set                 7-5
  168.  
  169.  
  170. CHAPTER 8   NUMBERS AND EXPRESSIONS
  171.  
  172.   Numbers and Bases                      8-1
  173.   The RADIX Directive                    8-2
  174.   Special Defaults for DT Numbers        8-2
  175.   Floating-point Initializations         8-3
  176.   Overview of Expressions                8-3
  177.   Types of Expression Operands           8-4
  178.   Numbers and Label Addresses            8-4
  179.   Variables                              8-4
  180.   Index Expressions                      8-4
  181.   Arithmetic Operators                   8-4
  182.   HIGH/LOW                               8-4
  183.   BY                                     8-5
  184.   Addition (combination)                 8-5
  185.   Subtraction                            8-6
  186.   Multiplication and Division            8-6
  187.   Shifting Operators                     8-6
  188.   Logical Operators                      8-7
  189.   Relational Operators                   8-7
  190.   Attribute Operators/Specifiers         8-8
  191.   SHORT and LONG operators               8-8
  192.   OFFSET operator                        8-9
  193.   NEAR Operator                          8-9
  194.   Square Brackets Operator              8-10
  195.   Colon Operator                        8-10
  196.   ST Operator                           8-11
  197.   TYPE Operator                         8-11
  198.   THIS and $ Specifiers                 8-11
  199.   Operator Precedence                   8-12
  200.                                                          0-5
  201. CHAPTER 9   DIRECTIVES IN A86
  202.  
  203.   Segments in A86                                 9-1
  204.   CODE ENDS and DATA ENDS Statements              9-2
  205.   The ORG Directive                               9-2
  206.   The EVEN Directive                              9-3
  207.   Data Allocation Using DB, DW, DD, DQ, and DT    9-3
  208.   The STRUC Directive                             9-6
  209.   Forward References                              9-6
  210.   Forward References in Expressions               9-7
  211.   The EQU Directive                               9-8
  212.   Equates to Built-In Symbols                     9-9
  213.   The NIL Prefix                                  9-9
  214.   Interrupt Equates                               9-9
  215.   Duplicate Definitions                          9-10
  216.   The PROC Directive                             9-11
  217.   The ENDP Directive                             9-11
  218.   The LABEL Directive                            9-12
  219.  
  220.  
  221. CHAPTER 10   RELOCATION AND LINKAGE
  222.  
  223.   .OBJ Production Made Easy                          10-1
  224.   Overview of Relocation and Linkage                 10-2
  225.   The NAME Directive                                 10-5
  226.   The PUBLIC Directive                               10-5
  227.   The EXTRN Directive                                10-6
  228.   MAIN: The Starting Location for a Program          10-7
  229.   The END Directive                                  10-7
  230.   The SEGMENT Directive                              10-8
  231.   DATA SEGMENT, STRUC and CODE SEGMENT Directives   10-11
  232.   The ENDS Directive                                10-11
  233.   Default Outer SEGMENT                             10-11
  234.   The GROUP Directive                               10-12
  235.  
  236.  
  237. CHAPTER 11   MACROS AND CONDITIONAL ASSEMBLY
  238.  
  239.   Macro Facility                                     11-1
  240.   Simple Macro Syntax                                11-1
  241.   Formatting in macro definitions and calls          11-2
  242.   Macro operand substitution                         11-2
  243.   Quoted-string operands                             11-3
  244.   Looping by operands in macros                      11-4
  245.   The #L last operator and indefinite repeats        11-5
  246.   Character-loops                                    11-5
  247.   The "B"-before and "A"-after operators             11-6
  248.   Multiple-increments within loops                   11-6
  249.   Negative R-loops                                   11-7
  250.   Nesting of loops in macros                         11-7
  251.   Implied closing of loops                           11-8
  252.   Local labels in macros                             11-8
  253.   Debugging macro expansions                         11-9
  254.                                                             0-6
  255.   Conditional Assembly                              11-10
  256.   Conditional Assembly and Macros                   11-11
  257.   Conditional Assembly and the XREF Program         11-12
  258.   Declaring Variables in the Assembler Invocation   11-13
  259.   Null Invocation Variable Names                    11-13
  260.   Changing Values of Invocation Variables           11-14
  261.  
  262.  
  263. CHAPTER 12   COMPATIBILITY WITH OTHER ASSEMBLERS
  264.  
  265.   Conversion of Intel/IBM/MSDOS programs to A86     12-1
  266.   Compatibility-symbols recognized by A86           12-3
  267.   Conversion of A86 Programs to Intel/IBM/MSDOS     12-3
  268.  
  269.  
  270. CHAPTER 13   ASSOCIATED TOOLS
  271.  
  272.   XREF Cross-reference and Symbol Listing Facility    13-1
  273.   EXMAC Macro Expansion Tool                          13-3
  274.   A86LIB Source File Library Tool                     13-4
  275.   Listings with A86                                   13-5
  276.  
  277.  
  278. CHAPTER 14   RELEASE HISTORY OF A86
  279.  
  280.  
  281. CHAPTER 15    RESERVED SYMBOLS IN THE A86 LANGUAGE
  282.  
  283.  
  284. INDEX
  285.  
  286.  
  287.