background image

Summary of Contents for 4

Page 1: ...Radie haeK Model 4 Quick fl Reference Guide Copyright 1983 by Radio Shack A Division oi Tandy Corporation...

Page 2: ...Contents Start Up TRSDOS l J Commands and Utilities 4 Error Messages BASIC Statements and Functions Control Keys Operators Edit Commands Special Characters 4 Error Messages u Internal Codes...

Page 3: ...format 6 The following system prompt will appear on your screen TRSDOS Ready Now you can type in a TRSDOS command 7 To start BASIC type BASIC ENTER and you see the BASIC prompt Ready represents a val...

Page 4: ...W password NAME disk name PW password Changes the protection of files on a drive n ATTRIB 1 NAME DATA PW SECRET MPW BOSSMAN AUTO drive drive drive command line Stores a command line for automatic exec...

Page 5: ...Y TEST DAT TO 1 COPY KI TO PR ECHO CREATE file LRL number REC number SIZE number Creates a file and reserves space on the disk for future use CREATE INVENT DAT SIZE 20 DATE mmydd yy Sets or displays t...

Page 6: ...umber FFHARD INDENT number LINES number MARGIN number PAGE number QUERY TAB XLATE X aabb Sets up printer options FORMS MARGIN 10 CHARS 80 INDENT G FORMS FLT SET PF TO FORMS FLT FILTER PR PF Prepares t...

Page 7: ...K MEMORY CLEAR value HIGH address LOW address ADD address WORD word BYTE byte GO address Reserves a portion of memory sets or displays current HIGHS and LOW modifies a memory address or jumps to a spe...

Page 8: ...e to a disk file or to nothing NIL ROUTE PR D0 ROUTE PR TO PRINTER DAT RUN X file command text Loads and executes a program command text is optional values the program may require RUN CONTROL CMD CONT...

Page 9: ...owing SYSTEM commands switch is YES or NO SYSTEM ALIVEf switch Displays a moving character when task processor is running SYSTEM BLINK siv fcW SYSTEM BLINK number SYSTEM BLINK LARGE SMALL Control the...

Page 10: ...e file and writes it to a disk file or reads a disk file and writes it to cassette tape TAPE100 PRNTER TO PR INT DAT READ TIME hh mm ss CLOCK YES NO Sets the time or displays current time TIME TIME 12...

Page 11: ...irectory full can t extend file Copy files to new disk 17 X 11 Directory read error Try another drive or disk 18 X 12 Directory write error Try another disk 27 X 1B Disk space full Write file to a dis...

Page 12: ...PY file to another file that has the spec ified LRL 33 X 21 No device space available REMOVE non system devices to provide more space 26 X lA No directory space available Use a different disk or REMOV...

Page 13: ...X OA Seek error during write Set step rate with SYSTEM command or try another drive or disk Unknown error code Check for error in program 14 X OE Write fault on disk drive Try another disk or drive 15...

Page 14: ...SC A ATN number Computes the arctangent of number returns the value in radians Y ATN X 3 AUTO line increment Automatical ly generates line numbers every time you press enter AUTO begins numbering at l...

Page 15: ...riables and closes all open files Optionally it also sets the highest memory location for BASIC and the amount of stack space CLEAR CLEAR 75 CLEAR G1000 20E CLOSE buffer Closes access to a file The bu...

Page 16: ...INT integer SNG single precision or STR string 10 DEFDBL L P 10 DEFINT I N W Z 10 DEFSNG I Q T 10 DEFSTR A DEF FN iunction name argument function definition Defines function name according to function...

Page 17: ...ror has occurred IF ERR 7 THEN 1000 ELSE 2000 iuKKv Returns a system error number and message PRINT THE LATEST TRSDOS ERROR IS 5 ERR ERROR code Simulates the error associated with code during program...

Page 18: ...SUB line Goes to a subroutine beginning at the specified line GOSUB 1000 GOTO line Goes to the specified line GOTO 100 HEX number Calculates the hexadecimal value of number PRINT HEX 30 HEX 50 HEX 90...

Page 19: ...at which the match is found INSTR A 12 im number Converts number to integer value PRINT INT 79 89 LEVT string integer Returns all characters left of position integer in the string PRINT LEFT BATTLESHI...

Page 20: ...buffer Returns the end of file record number Y L0F 5 LOG number Computes the natural logarithm of number PRINT LOGO 14159 Z 10 LOG PS P1 LPOS number Returns the position of the line printer s print he...

Page 21: ...e string MKl single precision expression Converts single precision expression to a string value and returns the 2 byte string MKS doufafe preefeio text ression Converts double precision expression to...

Page 22: ...tEK memory location Returns a byte from memory location A PEEK H5A00 POKE memory location data byte Writes a data byte into memory location 10 POKE 153G0 131 tOS number Returns the position of the cur...

Page 23: ...0 100 RESTORE line Restores a program s access to previously read DATA statements RESTORE RESUME line RESUME NEXT Resumes program execution after an error handling routine has been performed RESUME li...

Page 24: ...under filespec A causes the file to be stored in ASCII format P causes the file to be stored in an encoded binary format SAVE FILE1 BAS J0HNQD0E 3 SAVE MATHPAK TXT A SGN number Determines number s si...

Page 25: ...you specify a command TRSDOS executes it and returns you to BASIC SYSTEM SYSTEM DIR TAB number Spaces to position number on the display The number must be from to 255 PRINT A TAB 25 B Tkn number Compu...

Page 26: ...first byte of data identified with variable When used with a buffer it returns the address of the file s data buffer Y USRKUARPTR X WAIT port integer integer2 Suspends program execution until a machin...

Page 27: ...to either all upper case or all MPS lower case ESSE Ends and enters the current logical line Execution Mode Pauses execution Press any other key except break to continue Terminates execution and retur...

Page 28: ...o the nth occurrence of character c and moves the cursor to that position Lists the line Quits edit mode and cancels all changes Searches for nth occurrence of character c and moves the cursor to that...

Page 29: ...15 LS String too long 16 ST String formula too complex 17 CN Can t continue 18 UF Undefined user function 19 No RESUME 20 RESUME without error 21 Unprintable error 22 Missing operand 23 Line buffer ov...

Page 30: ...TA 132 MEM 225 DATES 222 MERGE 197 DEF 151 MID 65411 DEFDBL 176 MKDS 6545E DEFINT 174 MOD 253 DEFSNG 175 NAME 199 DEFSTR 173 NEW 148 DELETE 170 NEXT 131 DIM 134 NOT 214 EDIT 167 OCT 65433 ELSE 162 ON...

Page 31: ...50 SPACES 65432 WEND 181 SPC 213 WHILE 180 SQR 65415 WIDTH 161 STEP 210 WRITE 183 STOP 144 XOR 250 STR 65427 243 STRINGS 217 244 SWAP 165 245 SYSTEM 189 246 TAB 209 247 TAN 65421 254 THEN 208 220 TIME...

Reviews: