background image

Summary of Contents for TRS-80 Model-4

Page 1: ...rladl8 hael Copyright 1983 by Radio Shack A Division 01 Tandy Corporation...

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

Page 3: ...yy 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...

Page 4: ...MAN PROT READ 1 S ATTRIB drive LOCK UNLOCK MPW password NAME disk name PW password Changes the protection of files on a drive ATTRIB 1 NAME DATA PW SECRET MPW BOSSMAN AUTO drive drive drive command li...

Page 5: ...REATE file LRL number REC number SIZE number Creates a file and reserves space on the disk for future use CREATE INVENT DAT SIZE 201 DATE mrnJdcVyy Sets or displays the current date DATE 08 08 82 DATE...

Page 6: ...r PAGE number QUERY TAB XLATE X aabb Sets up printer options FORMS MARGIN 10 CHARS 80 INDENT G FORMS FLT SET PF TO FORMSfFLT FILTER PR PF Prepares the Printer Filter PFJ for use FREE drive PRT Lists f...

Page 7: ...RTI MEMDISKlDCT SYSTEM DRIVE drive DRIVER MEMDISK Adds to the system a pseudo floppy drive which keeps its files in memory SYSTEM DRII E 2 DRII ER MEMDISK I PURGE fiIe drive QUERY NO MPW password INV...

Page 8: ...text is optional values the program may require RUN CONTROL CMD CONTROL CMD SET device TO driver tile parameters Assigns a driver prog a device parameters are optional values the dri may require SET...

Page 9: ..._ 10...

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 PRINT DAT 0 READ TIME hhmmss CLOCK YES NO Sets the time or displays current time TIME TIME 12...

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

Page 12: ...another X 2A fiIe that has the spec ified LRL 33 No device space REMOVE non X 21 available system devices to provide more space 26 No clirectory space Use a different disk X IA available or REMOVE unw...

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

Page 14: ...ant ATN number Computes the arctangent of number y t Ync tl 1 11 in radians Y ATN X 3 AUTO line incremen Automatically generates line numbers every time you press ENTER AUTO begins numbering at line a...

Page 15: ...ay CLEAR memory location stack space Clears the value of aI variables and closes aI open files Optional y it also sets the highest memory location for BASIC and the amount of stack space CLEAR CLEAR 7...

Page 16: ...10 DEFINT I N W Z 10 DEFSNG I Q T 10 DEFSTR A DEF FN function name argument function definition Defines function name according to function definition The argument represents those variables in the f...

Page 17: ...number in which an error has occurred PRINT ERL ERR if an error has occurred 101210 ELSE Z0012l message Tr cnil c ERROR IS ERROR code Simulates the error associated with code during program execution...

Page 18: ...d places it in a buffer GET 1 GET 1 25 GOSUB 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 va...

Page 19: ...to one or more variables INPUT l A 5 INPUT L A 5 C IN j i fr o 7r eOfstring 2 in string 1 ich the match is found KILL filespec from the disk KILL FILE 5AS KILL DATA 2 LET variable expression Assigns t...

Page 20: ...C program into memory If R is used the program is RUN automatically LOAD PROG1 BAS 2 LOAD PROG1 BAS LPRINT data Prints data at the printer LPRINT A 2 3 LPRINT USING formal data Prints data at line pri...

Page 21: ...D integer expression Converts integer ion to a string value and returns the a byt MK precision expression C single p expression to a string value and returns the 2 ng ion ble precision ssion to a stri...

Page 22: ...32 t1 PEEK memory location Returns a byte from memory location A PEEK II H5A POKE memory location data byte Writes a data byte into memory location 1 POKE 1536 181 POS number Returns the position of...

Page 23: ...it as new line The optional increment sets the increment to be used between each line number RENUM RENUM GIZlIZlIZl 51Zl1Zl1Zl llZllZl RESTORE line Fl estores a program s access to previously read DAT...

Page 24: ...disk then runs it RUN PROGRAM A RUN EDITDATA R SAVE filespec A P Saves a program in a disk under filespec A causes the file to be stored in ASCII format P causes the file to be stored in an encoded b...

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 0 to 255 PRINT A TA6 25 B TAN number Com...

Page 26: ...irst byte of data identified with variable When used with a buffer it returns the address of the file s data buffer Y USR1 t JARPTR X WAIT port integerl integer2 Suspends program execution until a mac...

Page 27: ...ll lower case Ends and enters the current logical line CS IfTl or tCAf sJ COOfID CD or lITlillCID SPACEBAff Pauses execution Press any other key except BREAK to continue Terminates execution and retur...

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

Page 29: ...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 III 21 Unprintable error 22 Missing operand 23 Line buffer...

Page 30: ...132 MEM 225 DATE 222 MERGE 197 DEF 151 MID 65411 III DEFDBL 176 MKD 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: ...PACE 65432 WEND 181 SPC 213 WHILE 180 SOR 65415 WIDTH 161 STEP 210 WRITE 183 STOP 144 XOR 250 STR 65427 243 STRING 217 244 SWAP 165 245 SYSTEM 189 246 TAB 209 247 TAN 65421 254 THE N 208 220 TIME 226...

Reviews: