Calculators

Manual / Guide · c. 1980

TRS-80 Pocket Computer Reference Card

Read the PDF ↗

The quick-reference card for the TRS-80 Pocket Computer: commands, statements, functions and error codes.

Author
Radio Shack
Year
c. 1980
Type
Manual / Guide
Credit
Radio Shack; scan via the Internet Archive.

← Back to the Reference Library

TRS-80 Pocket Computer Reference Card

TRS-80 Pocket Computer QUICK REFERENCE CARD T 1 Usability|Pro- ] | abe. | Bp | struc" | viation | and DEF|mabil-; Exemp! modes lity - ves | Yes + Yes | Yes - yes | Yes . Yes | Yes ! Yes | Yes A yes | ves o ves | Yes - Yer | ves IF A= Yes Yes [IF A>B be yes | Yes iF A>=8 < Yes Yes (IF A<B <= yes | ves IF A<=B <> Yes Yes 'IF A<>B/*(Not equal) ‘SIN SI. ‘Yes Yes |A=SINB cos Yes Yes |A-COSB TAN TA. ‘Yes Yes | A=TANB asn jas. | ves | Yes ‘Asasne! ACS | AC. | Wes | Yes A=ACSB) ATN jAT. | Yes | Yes ASATNB: LOG | LO. * Yes ‘Yes A=LOG B'Common : logarithm LN ‘ Yes Yes A=iNB |Natural f ogarithiny EXP | EX. 1 Yes Yes A-EXPB/A-e3 vo | | Yes Yes As DMS | OM. H Yes Yes A-DMS 8 Conversion to sexagesi- smal notation DEG Yes INT Yes i ass las. | ves | Yes ‘A-AB8@ lobtains ne absolute value A=iBi. SGN | SG. Yes Yes |A*SGNB/IfB>0, A=1 B=0, A-0 B<0, A=1 JAREAD | A. No ‘Yes |AREAD A Display (shown be- fore execu- tion) is read into A Only when jused in the i © copyright 1980, Radio Shack. a division of Tandy Cor- poration CC In- struc tion Usability in RUN and DEF) modes T i Pro- gram- mabil- ity Example Note BEEP CLEAR, DeE- GREE GOTO Go. suB GRAD cL. DEG. cos. No No No ves |BEEPA Yes [CLEAR ves [DEGREE Yes [ENO Yes |10FORA| 0 TO hoster 2 100 NEXT A Yes [10 GOTO 100 yes [10 Go. SUB 100 Yes [GRAD first line of the execut ing program in the DEF mode). Sound buz- zer as many times as A. Clears all ati variables, Sets the angle mode 10 DEG (decimal notation). Terminates the program execution. Increments by 2 from. 0 to A= At 10, during which time pro- gram lines up to NEXT A are repeated. Repeats lines 10 the through 100 for 6 times as A=0 vances ad. to 2410 Jumps to tine ‘umber 100. ‘Jumps to ‘subroutine in fine num Sets the ber angle mode to GRAD. Decision struction, successive statement executed when the statement statisfied, executes next line when the statement not statist in- is F 1s or the IF is fied. In struc tion Abbre- viation Usability in RUN and DEF modes Example Note PRINT RADI AN RE. TURN STEP STOP THEN USING STE, Yes Yes Yes PRINT A PRINT A, B PRINT A] B.C RADIAN REM “INTER: est” RETURN STOP IF [THEN 60 PRINT USING display for a period of 0.85 second. Display A. Displays A jand Boat left and right Displays A, 8 and Cin succession from the eft ‘set the angle ‘mode to RAD {radian} A comment |statement tis ‘not executed) | End of sub- routine, The | program ex- ecution re- tums to ex- Jecute the |stotement next to the GOSUB in- struction ‘See FOR. ‘Suspends Program ex ecution. Written after the IF in. struction to indicate jump fine ‘umber, | Designates the format in relation with PRINT instruction. In this ex: ample, A is designated 3 digits of integer and 2 digits lafter the decimal point (NPUT LeT NEXT PAUSE Le t Yes JINPUT A Yes [LET A= 10 LET AS- TRS80" | Yes INexT A Yes PAUSE A| i Data input through keyboard the ‘Substitute instruction (can be omitted ex: cept immedi- ately after the IF state ment). Used with FOR (see FOR). Holds the CONT No CONT Use to con- tinue execu tion after a STOP in- ‘struction, preac key, or’ in [debug mode, DEBUG List MEM Only ap- plicable for PRO mode. Yes No DEBUG ust LIST 100 Direct the program ex- ecution under the Debug mode. Displays the contents of the program from line number 100. Unused por- J Ine Usabi Hue. [Abbe ID RUN ]aroM | example] Note tion modes (Execut- tion of the files tenes in PRO. mory — dis- mode.) played {number of eos ane ne memo. ries). NEW Yes No |NEW Clears the (Execut- in PRO mode.) aun |p [ver | wo RUN {starts or gram neu: tion |RUN 100] Starts pro- ror ecu: on wom tne uber 100. ICSAVE | CS. Yes No |CSAVE | Stores com- (Execut- "File puter program: Soieatto, frame” Ge tene th in PRO its file name. mode.) ICLOAD; CLO. Yes No |CLOAD | Program re- (Execut- “File corded on able also name | tape with rao thee rome mode.) is transferred tone one (LOAD) CLO?) Yes No |CLOAD? | Verifies pro- {Execut- File gram on tape able also mame” | with the pro- in PRO mode.) CHAIN! CH. No ‘Yes Rett name i vara to the Com- Sener Cod recut et emple — pro- gom'sven era he Ine number 10 and ex- ecuted. lrintale.e | ver | vee [peuvre | the contens rie |ot'ate dete ame” | mernery Pwr [fattor "File recorded on emer, c|tnewane mete te INPUT #| 1. Yes Yes |INPUT # | The data “File stored on Control Keys TE] @ moves cursor right. ‘executes playback instruction. @ recalls cursor, when program is displayed in PRO or RESERVE mode. Ta] © moves cursor left. @ executes playback instruction. @ recalls cursor, when program is displayed in PRO or RESERVE mode. ([SHFTIINS) @ inserts space ( — symbol} between the address (N) indicated by cursor and the Preceding address (N-1). (BHF (DEL) @ deletes character indicated by cursor. _ @ displays the preceding program line in RO mode. T_ @ displays the next program line in PRO mode. © turns power on, ‘@ breaks (temporarily interrupts) program, being executed. clears the Computer completely (resets after error message). ® changes the mode (DEF, RUN, PRO, RESERVE). ‘SHE @ space key. Error Messages Error code | Kinds of arror Description (@ When the absolute value of the result exceeds 7 © Arithmetic x 10° or when the operation error| _ divisor is 0. ‘@Memory desig- | @When the numerics! nation error value has been defined in the memory desig- as a character variable, and vice versa, 1 ‘@ Syntax error 2 Line ercor @ When the line or label specified by GOTO, GOSUB, RUN, DEBUG, , or LIST statement does not exist. @When level exceeds 4 in a _GOSUB or. FOR/ NEXT statement. @ RETURN instruction without GOSUB state 3 Level error ment. | @ NEXT ‘ststement with- out FOR. 4 Out-of.memory | @ Entering program longer than available memory space. @When a non-existing dimensioned memory location is designated. When an error is generated during the execution of the magnetic tape control instruction (such 1s verify error, check-sum error). 5 ‘Magnetic tape control error 6 Format error | When data can not be displayed with the given format by the PRINT or PAUSE statement during execution of the program. AusTRAUA secu ve 31 VICTORIA ROAD ‘PARC MOUSTPIELO¢ MANWNE—ULSVON RDAG WEONESBUTY aPOAUuRE woo 206 me MEST MOUNDS WS1D 4 7009 PRINTED IN JAPAN