ATOMIC THEORY AND PRACTICE Contents IntroductionThis manual explains how to connect up the ATOM, and how to program it in BASIC or Assembler. The manual is arranged in three sections printed on different coloured paper. If you have never programmed before you should read the BASIC section, on plain paper, starting from Chapter 1; but be warned that you are setting off on an adventure which will require some changes of attitude towards computers. The only way to learn the art of programming is by practice, and so every section of this manual includes many example programs which illustrate the concepts being explained. These should be typed in and tried out, even if at first you do not fully understand how they work. By the end of chapter 4 you will be able to write your own programs for many different types of problem, and you may wish to stop there. The subsequent chapters, 5 to 12, deal with progressively more advanced features of the ATOM's BASIC. If you have already programmed in BASIC you may prefer to turn to chapters 20 and 21 in the reference section; these contain a complete summary of all the BASIC statements, functions, commands, and operators. You will be pleased to discover a number of extensions in ATOM BASIC that are not found in other BASICS. If you want to learn to program in Assembler you should turn to the second section of the manual which is printed on coloured paper, and read from chapter 13 onwards. Readers experienced in Assembler programming can jump to chapter 23 in the reference section, which gives a concise description of the ATOM assembler. The third section of the manual, printed on plain paper, is the reference section. It contains a summary of all the ATOM's facilities, a listing of the special addresses in the ATOM, and the error codes. If you have a minimal ATOM you will be able to run all programs whose sizes are given as less than 512 bytes, or which are so short that no size is given. Longer programs will require additional memory, but many programs can be reduced in size by using the abbreviations explained in chapter 10. AcknowledgementsThe preparation of this manual would not have been possible without the continuous assistance of everyone at Acorn. In particular I am grateful to Roger Wilson for providing details of the operation of the BASIC interpreter, and for assistance with editing the source of this manual; to Nick Toop for explaining many details of the ATOM's circuitry; and to Laurence Hardwick for testing the example programs. I would also like to thank the many people who provided comments on previous drafts of the manual. The following example programs were provided by Roger Wilson: Curve Stitching in a Square, Tower of Hanoi, Eight Queens, Prime Numbers, Arbitrary Precision Powers, Day of Week, Random Rectangles, and Renumber; and the following by Nick Toop: Simultaneous Equations, Encoder/Decoder, Three-Dimensional Plotting, and Saddle Curve. The manual was prepared and edited on an Acorn System Three, and the final artwork was prepared using the Acorn Text Processing Package. CONNECTIONS TO ATOMATOM KEYBOARD |