ltadl8/haeK GettingStarted with btended Color BASIC, Cl1984 TandyCorporation, Fort Worth, Texas 76102 U.s.A. All Rights Reserved. Reproduction or use, without express written permission from Tandy Corporation, of any portion ofthis manual is prohibited. While reasonableefforts havebeen taken intheprep aration of this manual to assure its accuracy, Tandy Corporation assumes no liability re sultingfrom any errors or omissions in this manual, or from the use of the information contained herein. TRS-80 btended Color BASIC System Software; @ 1984TandyCorporation and Microsoft. All Rights Reserved. The system software in the ColorComputer is retained in aread-only memory (ROM) for mat. All portions of this system software, whether in the ROM format or other source code form format, and the ROM circuitry, are copyrighted and are the proprietary and trade secret information ofTandy Corporation and Microsoft. Use, reproduction, or publi cation ofany portionofthis material without the priorwritten authorization byTandyCor poration is strictly prohibited. 10987654321 To All New Customers ... Ifyou don'tknowathing aboutcomputers, relax~thisbook's foryou! It has you "program".your computer using ils own language - Extended Color BASIC. You'll slart a little crazy by: Composing music Playing games Conducting light shows Painting pictures Ifyou'restraightbusiness,bepatient. Havingfun'sthefastestwaytolearn, So spend afew hourswith yourcomputer. Type whateveryou want. Play with it. Be bold and strange. In other words ... feel at ease! You havean amazing tool to command. And to All Upgrading Customers ••• WelcomebacktotheColorBASICfamily! Letusintroduceyouto...slight drum roll, please Extended Color BASIC. It has all the features of non-Extended Color BASIC plus much more. For example, with Extended Color BASIC you can: Draw a circle . • Edit a line Paint a house Square a root Cool off with a cube Playa symphony And even try a triangle! If you've read Getting Started with Color BASIC, you can skip half this· book: SkipSection IexceptforChapter9. Chapter9 shows how to use the Extended Color BASIC "Editor"- agreattime-saver in typing prog rams. Read Section II. You'll learn to use the most exciting features of Extended Color BASIC - high-resolution graphics and music. Skip Section III. Read Section IV. This shows how to use the re~t of Extended Color BASIC's expanded features. This Is How to Start ... Connectyourcomputer by referringtoyourIn/roducing YourColorCom puter 2 or Introducing Your Deluxe Color Computer. Then power up your computer: 1. Turn on your television set 2. Select Channel 3 or 4 on the television set. 3. Set the antenna switch 10 COMPUTER. 4. Turn on thecomputer. The POWER button ison the leftrearofyour keyboard (when you're facing the front). This message appears on your screen: EXTENDED COLOR BASIC v.r. © 1880 TANDY OK (v.r. is two numbers specifying which version and release you have.) If you don't get this message: Turn the computer on and off again. Adjust the brightness and contrast on your television set. • Check all the connections. If you still don', get this message, refer 10 "Troubleshooting and Mainte+ nance" in IntroducingYourColorComputer2orIntroducing Your Deluxe Color Computer. Once you do get the above message, you're ready to start. How Do You Talk to a Computer? Inthis book, you'll learnhow totalktoyourcomputer.That'sall program mingis,bytheway.Onceyou learnhow10talktoyourcomputer,youcan tell it to do whatever you want. (Well, almost.) Yourcomputerunderstandsalanguagecalled ExtendedColorBASIC.This isan enhanced form of BASIC- BeginnersAll-PurposeSymbolicInstruc tion Code. There are lots of computer languages. Extended Color BASIC just happens to be the one your computer understands. We'll introduce BASIC words in the order that they're easiest to learn. When you gelmidway in the book, you mayforget whataword means. If this happens, simply look il up in your QuiCK Reference Card. ? • ---_ .......-........ .... .-::=====!:~~=.=':.-==.':.':.-' -- CONTENTS Section I THE BASICS Chapter 1 Meet yourComputer..............•.......•. 13 PRINT SOUND CLS Chapter 2 Your Computer Never Forgets (. .. unless you turn it off...J..•...•••••.•.•. 19 Strings Variables Chapter 3 See How Easy It Is? . 24 NEW INI'UT COTO RUN PRINT, PRINT; LIST IFfTHEN Chapter 4 Count the Beat........................•.•.... 30 FOR ..•TO•..STEP NEXT Chapter 5 Watch the Clock .. ...........••..••.•••...... 35 CLS Nested Loops Chapter 6 Decisions, Decisions. .. ....•.••...•.•••...... 40 IFfTHEN END Chapter 7 Garneso(Chance. .........•..•......•....... 43 RND PRINT@ Chapter 8 Reading.............. ...........•...... 47 DATA READ RESTORE INT CLEAR Chapter 9 Writing . . 53 EDIT DEL RENUM Chapter 10 Arith~tk ......................•........... ~ GOSUB RETURN REM Chapler 11 Words, Words, Words..........•......... 65 LEN LEFTS RIGHTS MID$ Chapter 12 A Pop Quiz . ....•................. 71 INKEYS VAL Chapter 13 MoreBasics. ................................ 75 SlOP SGN CQNT ABS MEM STRS AND OR
Description: