901546C Basic Refere

Total Page:16

File Type:pdf, Size:1020Kb

901546C Basic Refere XJDl5 SIGMA 5/7 BASIC Xerox Oata Systems Reference Manual - ~ , ~ ~~§~~ ~~§~~ ~~§~~ ~~§~~ ~~§~~ ~~§~~ ~~§~~ ~~§~~ ~~§~~ .• ~~§~~ ~~§~~ ~~§~~ ~~§~~ ~~§~~ ~~§~~ . ~~§~~ ~~§~~ ~~§~~ .' ~~§~~ ~~§~~ ~~§~~ ~ -~ - ~~§~~ ~~§~~ ~~§~~ .• ~~§~~ ~~§~~ ~~§~~ ~~§~~ ~~§~~ ~~§~~ - - -----. '- .. -- - -----..._- - -- -' ~- --- - . -- --.--- __ .--i.....",. ~_ -~._._ _ _____.. _____ _ __ __. __ . ________._ -'-_ ......A- _______ . __ Price: $2.00 BASIC REFERENCE MANUAL for XDS SIGMA 5/7 COMPUTERS 90 15 46C July 1970 Xerox Data Systemsj701 South Aviation Boulevard/EI Segundo, California 90245 @1969. 1970. Xerox Data Systems. Inc. Printed in U.S.A. REVISION This publication is a minor revision to the BASIC Reference Manual for XDS Sigma 5/7 Computers, and incorporates new material for the Universal Time-Sharing Monitor version of BASIC. A change in text from that of the previous manual is indicated by a vertical bar in the margin of the page. RELATED PUBLICATIONS o Title Publication No. XDS Sigma 5 Computer Reference Manual 900959 XDS Sigma 7 Computer Reference Manual 900950 XDS Sigma 5/7 Batch Processing Monitor (BPM) Reference Manual 900954 XDS Sigma 5/7 Batch Processing Monitor (BPM) Operations Manual 90 11 98 XDS Sigma 5/7 Batch Time-Sharing Monitor (BTM) Reference Manual 90 1577 XDSSigma Multipurpose Keyboard/Display Reference Manual 900982 XDS Sigma 5/7 Mathematical Routines Technical Manual 900906 XDS Sigma Message-Oriented Communications Equipment Reference Manual 90 1568 XDS Sigma Character-Oriented Communications Equipment Reference Manual 900981 XDS Sigma 7 Universal Time-Sharing System (UTS) Reference Manual 900907 XDS Sigma 7 Universal Time-Sharing System (UTS) Operations Manual 90 1675 NOTICE The specifications of the software system described in this publicotion ore subject to change without notice. The availability or performance of some features may depend on a specific configuration of equipment such as additional tape units or larger memory. Customers should consult their XDS sales representative for details. ii CONTENTS ./--------.., l. AN INTRODUCTION TO BASIC User-Defined Functions 16 16 The Computer Dimensioning 16 Computer Programs DIM 16 The BASIC System Print Images 17 A Sample Program PRINTUSING 17 : (Image statement) 17 2. ELEMENTARY FEATURES OF BASIC 5 Matrix Operations 18 Print 18 0 Elements of a BASIC Program 5 Put 18 Step Numbers 5 Get 18 Simple 5 Size 19 Simple Variables 5 Read 19 (' Arithmetic Operators 5 Input 19 Intrinsic Functions 5 Zero 19 Expressions 6 Constant 19 Error Messages 6 Identity Matrix 19 Defining Arithmetic Operations 6 Copy 20 LET 6 Scalar Multiplication 20 6 Addition and Subtraction 20 6 Transposition 20 7 Multiplication 20 Data 7 Inversion 20 PRINT 7 Simultaneous Equation Solution 21 Data Input 8 DATA 8 4. BASIC OPERATING PROCEDURES READ 8 22 Miscellaneous 8 On-Line STOP and PAUSE 8 22 Calling BASIC END 8 22 REM 8 Editing Mode 22 Looping 8 Compi lation and Execution Mode 24 Escape Key Activation FOR 9 24 Parameter Setting NEXT 9 24 Direct Statements 25 3. ADVANCED FEATURES OF BASIC 10 File Operations 25 Precision of Output 25 Other Elements of a BASIC Program 10 Printer Width 25 Status Arphanumeric Constants 10 25 Sign-Off 26 Subscripted Variables_ 10 Batch Processing 26 Additional Intrinsic Functions 10 Print Formats II UTS BASIC ADDITIONS 30 Number Ranges 12 5. External Data Input 12 Summary of UTS Additions 30 INPUT 12 UTS BASIC Language Extensions 30 Rereading Data 13 Character String Manipulation 30 RESTORE 13 Intrinsic Functions Added to UTS BASIC 32 Branching to a 13 Chain Link Statement 33 GOSUB and RETURN 13 Additions to Edit Command List 33 Multiple Path Branching 14 CLEAR 33 ON 14 NULL 33 GOTO ••. ON 14 FILE PACK 34 File Manipulations 14 EXECUTE 34 OPEN 14 SET 34 CLOSE 15 DELETE 34 PUT 15 INPUT 34 15 Increased Interaction, Edit-Execute Activities_ 34 Running Consecutive Programs 15 Break-Proceed Logic Changes 35 CHAIN 15 Changes in Direct-Statement Capability ___ 35 iii Summary of UTS BASIC Operating Procedures __ 35 ILLUSTRATIONS Group 1 . 35 Group 2 35 Group 3 36 1. The Evolution of a Program 2 Group 4 36 2. Sample Program 2 Proceed 36 3. Modified Sample Program 3 Direct Statements 36 4. Nested Loops 9 Batch Processing 36 5. Coding Sheet with Modified Sample Program __ 26 I/O Control 36 6. Deck Setup for BASIC Batch Processing 27 7. Deck Setup for BASIC Batch Processing (UTSl-- 28 6. BASIC MESSAGES 37 INDEX 48 APPENDIXES TABLES A. SUMMARY OF BASIC STATEMENTS 41 1. Order of Arithmetic Operations 5 B. BASIC EDITING COMMANDS 44- 2. Partial list of BASIC Intrinsic Functions 5 C. BASIC INTRINSIC FUNCTIONS 45 3. Condition Operators 7 D. TECHNICAL ASPECTS OF MATHEMATICAL 4. Additional BASIC Intrinsic Functions 10 RUN-TIME FOR BASIC 47 5. Intrinsic Functions, UTS BASIC Only 33 iv 1. AN INTRODUCTION TO BASIC BASld is a programming system that enables a person with COMPUTER PROGRAMS little or no computer experience to write computer programs for solving a variety of numerical problems. The system is A computer program is analogous to the operations manually easy to learn and to use, but it also conlains a number of performed on a desk calculator in solving a problem. That advanced features that make it suitable for programming is, a program is a series of instructions (statements) that complex problems. prescribes a set of operations to be performed by the com­ puter to solve a particular problem. To make up the pro­ To augment the flexibility of the language, XDS BASIC gram, the programmer selects and orders the instructions he provides the user with two highly desirable capabilities for requires out of many the computer can perform. These in­ on-I ine operation: o structions are usually in a format referred to as "symbolic 1. Immediate, statement-by-statement syntax checking, language". That is, they are made up of ordinary numbers, which permits the programmer to correct syntax errors English words, and alphabetic symbols in a form that can be without the necessity of waiting compilation and re­ input to the computer. sulting error messages. As the program is read into the computer, it must be trans­ 2. Direct execution of statements, which allows the pro­ formed (compiled) from symbolic language into so-called grammer to debug a program and to continue execution "machine language", which is the only language the com­ without recompilation. Additionally, direct statements puter understands. After the machine-language program permit use of the computer in a desk calculator fashion. has been produced, the computer can be allowed to "exe­ cute" it; that is, to step through the instructions in the Alternatively, after on-,line development, programs may be program one at a time, performing the operations each submitted for compilation under the Batch Processing Moni­ calls for. When the program specifies, the results accumu­ tor System. BASIC is most effective in small to medium lated up to a certain point are recorded permanently by scale applications of a computational nature. being sent to some output device such as a line printer, typewriter, magnetic tape, or card punch. This output This chapter orients the reader to fundamental programming produced by the user's program is usually printed in concepts. The reader with some programming experience natural-language form as English words, abbreviations, and may skip to Chapter 2, where the elementary BASIC state­ decimal numbers. When the program has finished operating, ments are explained. As the skill of the BASIC programmer either it will be rerun using new data, or another program increases, he may progress to Chapter 3, where more ad­ wi II be read in and executed. vanced features of the system are presented. Chapter 4 describes procedures for operating the computer within the THE BASIC SYSTEM BASIC system. The appendixes contain reference material including a summary of the BASIC statements. BASIC is an operating system consisting of both the BASIC language and the BASIC processor for the language. The BASIC language is composed of English words, decimal THE COMPUTER numbers, special characters, and rules of usage with which the user writes a BASIC program. The BASIC processor is a The beginning programmer may think of a computer as an previousl y-stored program that compiles the user's BASIC­ elaborate desk calculator; that is, a device capable of language program and assists in execution of the resulting performing step-by-step calculations on data to praduce a machine-language program. The overall flow of information numerical result. That part of the computer most like a from programmer to computer and back is shown in Figure 1. calculator is the arithmetic unit, in which mathematical operations are performed. Other, no less important, ele­ ments of the computer that a calculator does not have are At this point, the user need not be concerned with opera­ a memory unit for storing program instructions and data, a tional details such as entering his symbolic program into control unit for stepping through the program and directing the computer, the compilation of the program into machine the execution of its instructions, and input/output devices language, the actual execution of the program, or the for accepting the program and data and for delivering the handling of output. Operating instructions and related results to various output media. matters are explained in Chapter 4. A SAMPLE PROGRAM Figure 2 shows a program written in the BASIC language. This program evaluates the quantities tBASIC stands for Beginner's All-Purpose Symbolic Instruc­ tion Code, which was originOlly developed at Dartmouth -B ±~B2 -4AC College. 2A An Introduction to BASIC Programmer Analyzes new prob­ lem or output of pre­ vious program ond designs method of solution 5 Output Programmer Transm i tted to output Selects required media in natural­ BASIC instructions language form for his program 4 3 Program Program Compiled and Input to computer executed Figure 1.
Recommended publications
  • Wireless-World-1984
    a` Semiconductor buyer's guide ABC micro Mimicontroller XY plotter update Mobile radio Digital feedback , Australia AS 3.00 Norway Nkr 29.20 -Denmark DKr 34.50 Singapore MS .5.50 LSermany Dm 7.00 Spain Pts 340.00 Greece Dra 220.00 Switzerland SFr 7.00 Holland DFL 8.50 U.S.A. 5 3.75 Italy L 3800, www.americanradiohistory.com bench power supplies THE D RANGE ... Four models: Digital meters D30-2 0-30 volts at 2 amps single 1 mA resolution of current D30 -2T 0-30 volts at 2 amps twin 10 turn voltage control Measure external voltages D30-4 0-30 volts at 4 amps single Output on/off switch CV or Cl operation D100-1 0-100 volts at 1 amp single Send for new colour leaflet now to: FARNELL INSTRUMENTS LIMITED SANDBECK WAY WETHERBY WEST YORKSHIRE LS22 4DH TEL. (0937) 61961 TELEX 557294 OR HARPENDEN TEL. (05827) 66123 CIRCLE 1 FOR FURTHER INFORMATION www.americanradiohistory.com ThcAchcr-ing1e BComputcr The SDS ARCHER - The Z80 based single board computer chosen by professionals and OEM users. FEATURES * High quality double sided plated through PCB * 4 Bytewide memory sockets - upto 64k * Power -fail and watchdog timer circuits * 4 Parallel ports with handshaking * Bus expansion connector * CMOS battery back-up * Counter -timer chip * 2 serial ports * 4 MHz. Z80A Telephone or write for full technical description and price information. OPTIONS * SDS BASIC with autostart and "user program in ROM" facility * SDS DEBUG MONITOR: a powerful 8k byte development aid * On board 120/240 volt mains power supply * Attractive two tone instrument case Morwood Da yt1 Ltd Sherwood House, The Avenue, Farnham Common, Slough SL2 3JX.
    [Show full text]
  • Analytical Engine NEWSLETTER of the COMPUTER HISTORY ASSOCIATION of CALIFORNIA It's Been Almost More Than We Can Keep up Editorial: CAMPAIGN 1994 With
    January-~Iarch 1994 Volume 1.3 The Analytical Engine NEWSLETTER OF THE COMPUTER HISTORY ASSOCIATION OF CALIFORNIA it's been almost more than we can keep up Editorial: CAMPAIGN 1994 with. Now we need size. Size means weight; The Association begins a new year, and presence; recognition; visibility. Size convinces everything we had dreamed of doing, we're donors that charitable organizations are . doing. The ENGINE gets thicker, the e-mail worthy and credible. Size helps us reach out deeper. New computers - well, new old to potential members. Size brings down costs computers - are lugged to our doorstep. through economies of scale. Size will make Delivery vans bring boxes of books and files. the ENGINE a more attractive, more com­ Collaborations are proposed, exhibits planned, prehensive newsletter. names written excitedly on scraps of paper and then logged. And under it all the cer­ And size alone won't build a museum - but tainty, slightly awed still: This thing is it's a key ingredient in the dealing we'll need working. to do, between now and 1999. We promised to build, from the outset, an So we're calling our own bluff. By the end of organization with room to grow - an organi­ 1994, a year from this publication, we want zation that could start with a few like-minded 1,994 new members and ENGINE subscribers individuals, and smoothly become a major for the CHACo Promotions, perks, collabora­ voice for the preservation of computers and tions, colloquia, prizes, press releases, or their history, without spending scarce energy (even) a party - whatever it takes, we'll do.
    [Show full text]
  • Formation of the Cloud: History, Metaphor, and Materiality Trevor D Croker
    Formation of the Cloud: History, Metaphor, and Materiality Trevor D Croker Dissertation submitted to the faculty of the Virginia Polytechnic Institute and State University in partial fulfillment of the requirements for the degree of Doctor of Philosophy In Science and Technology Studies Janet Abbate, Chair Daniel Breslau Saul Halfon Richard Hirsh November 14, 2019 Blacksburg, Virginia Keywords: cloud computing, material culture, infrastructure, internet studies Formation of the Cloud: History, Metaphor, and Materiality Trevor D Croker Abstract In this dissertation, I look at the history of cloud computing to demonstrate the entanglement of history, metaphor, and materiality. In telling this story, I argue that metaphors play a powerful role in how we imagine, construct, and maintain our technological futures. The cloud, as a metaphor in computing, works to simplify complexities in distributed networking infrastructures. The language and imagery of the cloud has been used as a tool that helps cloud providers shift public focus away from potentially important regulatory, environmental, and social questions while constructing a new computing marketplace. To address these topics, I contextualize the history of the cloud by looking back at the stories of utility computing (1960s-70s) and ubiquitous computing (1980s-1990s). These visions provide an alternative narrative about the design and regulation of new technological systems. Drawing upon these older metaphors of computing, I describe the early history of the cloud (1990-2008) in order to explore how this new vision of computing was imagined. I suggest that the metaphor of the cloud was not a historical inevitability. Rather, I argue that the social- construction of metaphors in computing can play a significant role in how the public thinks about, develops, and uses new technologies.
    [Show full text]
  • Robot Electronics Interface, Timer
    '01111411111 Wireles,. rld FEBRUARY 1986 95p Synchrodyne receiver Forth for control Compact disc mastering Loop aerial Australia A$ 3l5 Denmark DKr 38 00 Robot electronics interface, Germany Dm 7 50 Greece Dra 360 00 Netherlands DR 9 20 Italy L 4 /0 0 land NI$ 4 80 Sparn Pts 421) 00 Switzerland SFr 8 00 Remote-controlled timer Singapore . M$ J 00 USA $ 4 00 www.americanradiohistory.com 4i/ 1Â1401 IL :1G oiriTHE HIGH TECHNOLOGY TEST INSTRUMENTS OF THE FUTURE GRUNDIG OSCILLOSCOPES M020: 20MHz DUAL - CHANNEL M022: 20MHz DUAL- CHANNEL OSCILLOSCOPE OSCILLOSCOPE WITH AUTOMATIC TIME 20MHz Dual channel oscilloscope RANGE 2 mV /cm with full bandwidth 20MHz Dual channel oscilloscope Automatic peak-value trigger Automatic time base selection TV line and field triggering Soft tuning for fast manual adjustment Add and invert (Both channels invertable) Triggerable 2nd time -base, guarantees error Internal graticule and X -Y operation free 'zooming -in' This 20MHz dual -channel oscilloscope has Hold -off control and Z modulation advanced facilities, making it easy -to -use, with Plus all the advanced engineering of the M053: 50MHz DUAL - CHANNEL all the ruggedness and reliability to meet your M020 OSCILLOSCOPE go- anywhere testing needs. Included is a peak -value trigger to ensure stationary displays. 50MHz Dual channel oscilloscope Automatic Triggering facilities allow clear display of even time -base selection complex signal shapes. Alternating 2nd time -base for expanded traces £275 Digital display of time- bases, for unambiguous measurements Suits advanced applications in pulse, data and video technology A 50MHz dual -channel oscilloscope. Time -base range is automatically selected and shown on a digital display.
    [Show full text]
  • Wireless-World-1985
    I es órldJUNE 1985 85p KMAZINUAR CO 1-00.1. Switched-mode power supplies Improving BBC data recording Look after your nicad batteries Ot n; C D'a ; 24.00 www.americanradiohistory.com CONGUIN SOFTWARE Low Cost IBM PC Based CAD Systems smARTWORK AUTOCAD An Electronic LIGHT -BOX allowing layout of General 2D drafting package with auto - component pads with auto or interactive dimensioning. Will support a variety of tracking. Artwork can be printed on Epson graphic displays and output devices. dot matrix printer or plotted on Houston Software from £1000.00. Instrument or Hewlett Packard plotters. Systems from £3495.00. smARTWORK Software only £895.00. Complete systems from £3500.00. SAM 2001 - XT An IBM compatible with 10Mbyte hard disk, will run all IBM software. Can be upgraded to run as fast as an AT. CEDS From £1995.00. A full PCB design system allowing the design of boards from schematic diagrams. Note: All prices exclude VAT and are Systemm expandable from basic manual subject to change without notice. placing and routing to auto -tracking and schematic capture. Also available with Terms: Strictly CASH WITH ORDER. technical drawing facilities and auto dimensioning. Software from £1200.00. High resolution colour systems from £6000.00. PSPICE Circuit simulation package allowing simulation of upto 120 transistors with unlimited number of nodes. Performs AC, DC and transient analysis. Can us CEDS schematic capture as input. Software from £950.00. Conguin Software, Freepost, Lancaster LA1 1BR. Phone: 0524 381423 CIRCLE I F'ORFURTHERINFORMATION www.americanradiohistory.com Editor ELECTRONICS 8 PHILIP DARRINGTON Deputy Editor GEOFFREY SHORTER, B .Sc.
    [Show full text]