manualshive.com logo in svg
background image

Содержание TRS-80

Страница 1: ...del II DiskOperatingSystem ReferenceManual A Description of the Operating System General Information Operator Commands Technical Information CUSTOM MANUFACTURED IN THE U S A BY RADIO SHACK A DIVISION...

Страница 2: ...section you should read Section 1 For details on programs or utilities mentioned see the specific entry for that subject use the Index Important Do not try to use 1 1 or 1 2 diskettes when the system...

Страница 3: ...ned and labeled and a table ofcontents or directory created The FORMAT utility program performs this function We suggest you format several diskettes now You cannot perform the other operations listed...

Страница 4: ...e remove the original diskette Keep it in a safe place and don t use it unless you need to recreate the working master 3 Make a Working Master PURGE The factory release TRSDOS diskette contains a vari...

Страница 5: ...use the diskette in drive O SYSRES SYS This file is required on all full system diskettes but not on minimum systems To find definitions use the Index If you want to use the diskette to start TRSDOS...

Страница 6: ...em after they are used DOCOMnn BASCOMnn COMSUBnn EXDATMnn DATMnn nn 32 or 64 These are demonstration programs and routines See the descriptions elsewhere in this manual use the Index For each file the...

Страница 7: ...ill probably find it most convenient to have a Full System Diskette in drive 0 at all times This will give you access to all of the utilities and system functions without a disk swap being necessary F...

Страница 8: ...u will not need SYSTEM 64 or SYSTEM 32 on your minimum system diskette The technique for using a minimum system diskette is as follows 1 Initialize using your working master which must be a full syste...

Страница 9: ...a maximum of space available for user files Why and How ofData Diskettes Ifyou have a Disk Expansion Unit and you plan to run applications or programs that require large data files you will want to h...

Страница 10: ...syntax Allows keyboard input from and video output to a remote terminal via the serial interface Copies multiple files and re organizes a diskette Prints any file in text format Inputs Intel hex form...

Страница 11: ...SETCOM TERMINAL VERIFY XFERSYS For details see the replacement pages for Section 2 Other Changes Keyaheads TRSDOS allows keyaheads of up to 80 characters This means you can type in the next command wh...

Страница 12: ...ility To find a full description of wild card use use the Index Alternate Directory For increased reliability ofthe diskette filing system TRSDOS now sets up an alternate directory If the main directo...

Страница 13: ...BRCV AlBTX AlBCTRL 46 Function Output a character to video Initialize printer driver parameters Output a character to printer New Lookup in a table New Process the HOLD key OpenlCreate a Program or Da...

Страница 14: ...ASIC Use ERRS to get the TRSDOS error number and message LinePrinter The maximum LPRINT or LUST line is 255 characters was 132 Passwords You can assign a password to a program when you SAVE it This pa...

Страница 15: ...ement To specify a record length Of256 you can use either 256 ora For example OPEN 0 1 FILE 256 and OPEN 0 1 FILE 0 are equivalent NEW In addition to erasing the BASIC program in memory this statement...

Страница 16: ...Section 1 General Information...

Страница 17: ...pying renaming deleting protecting etc File access loading into memory listing to Printer or Display etc Error identification See the Commands section for details Utility programs provide essential se...

Страница 18: ...e values for a particular command For example the line LIST filespec indicates that you can supply any valid file specification defined later after LIST ellipsis Indicates that preceding items can be...

Страница 19: ...ate them above X 2FFF to allow use of the high overlays without loss of your program DECIMAL ADDRESS a 10240 12288 TOP 32767 or 65535 SYSTEM AREA USER AREA SHARED WITH TRSDOS HIGH OVERLAY COMMANDS USE...

Страница 20: ...stem starts up it will prompt you to enter the date Type in the date in MMjDDjYYYY form and press 13m I For example 07 04 1979 for July 4 1979 Next the System will prompt you to enter the time To skip...

Страница 21: ...ressed Interrupts line entry and starts with a new line Backspaces the cursor erasing the last character you typed Use this to correct entry errors Forward spaces the cursor without erasing any charac...

Страница 22: ...ou type any other control key non alphanumeric non punctuation a symbol will be displayed for that key but the control code will be sent to the Computer Such control keys will either be ignored or wil...

Страница 23: ...nce drive 0 drive 1 etc unless you include an explicit drive specification with the file name described later on IfTRSDOS finds a matching program file it will load and execute the file Otherwise you...

Страница 24: ...Syntax Forms General Information specification g dicated as 1 6 optional spaces al spaces above above 57...

Страница 25: ...Model II TRSDOS Examples ofSyntax Forms Command Empty option list required because of comment Comment Command Filespec Option list Comment Command Filespec 1 Filespec 2 58...

Страница 26: ...TS references the file named FileA TXT ACCOUNTS with the password Manager on Drive 3 diskette name ACCOUNTS File Names DATAll BAS WAliEHOUS TEST l INVN rORY AU91 JS ot 15 TESTl A file name consists of...

Страница 27: ...d wild card fields may take any of the following forms Wild Card Fields string string string string string Where string is a sequence ofcharacters The overall length ofthe wild card field depends on w...

Страница 28: ...TEST l on drive 3 only Passwords You can protect a file from unauthorized access by assigning passwords to the file That way a person cannot access a file simply by referring to the file name he must...

Страница 29: ...a diskette name to the file specifica tion TRSDOS will first check to see that the correct diskette is in the drive You assign diskette names during the Format or Backup process Note Only the COpy co...

Страница 30: ...Section 2 Library Commands...

Страница 31: ...goes into user area Other library commands use memory below X 2800 Exit Conditions ofLibrary Commands Any command executed from the TRSDOS READY level will return to TRSDOS Most library commands exec...

Страница 32: ...s the same effect as DI R f3YS PRT PRT When no ambiguity would result the braces around the option list can be omitted CREATE FileA NRECS 100 LRL 64 is acceptable but CREATE FileA NRECS 100 LRL 64 Set...

Страница 33: ...a command For example suppose you type Il L OLDF Il E 1 and the diskette in drive 1 is write protected Then you ll get an ERROR 15 message Put a write enable tab on the diskette and type I GAI N Now...

Страница 34: ...termine how the diskette tracks are allocated to system and user files It may be useful before performing a BACKUP or XFERSYS operation Example ANALYZE DATAFILE shows which tracks are used by the file...

Страница 35: ...rd lengths Examples APPEND Wordfile 2 TO Wordfile l A copy OfWordfile 2 is appended to Wordfile l APPEND REGION1 DAT TOTAL DAT 9uess A copy OfREGION1 DAT is appended to TOTALjDAT which is protected wi...

Страница 36: ...PAYROLL A will now look like this Atkins W R Baker J B Chambers C P Dodson M W Kickamon T Y Lewis G E Miller L O Peterson B Rodriguez F PAYROLL B will be unaffected Library Commands 69...

Страница 37: ...ge the passwords to an existing file Passwords are initially assigned when the file is created At that time the update and access words are set to the same value either the password you specified or a...

Страница 38: ...do which grants total access to the file Suppose you want to temporarily stop access to the file Then use the command ATTRIB PAYROLL Avocado PROT NONE Now the use of the password PAYDAY grants no acce...

Страница 39: ...the System is started up Examples AUTO DIR SYS Tells TRSDOS to write the command DIR SYS at the end of its start up procedure Each time the System is reset or powered up it will automatically execute...

Страница 40: ...ommand Programs which are executed via the AUTO function should normally provide a means ofexiting to the TRSDOS READY mode Unless the BREAK key is blocked by the user program pressing BREAK will get...

Страница 41: ...o begin inserting lines Each time you complete a line press BUILD will give you another chance to re do the line or keep it Press lm to erase and re do the line i3 mld to store it and start the next l...

Страница 42: ...f the file one line at a time Beneath the line is an option list h f P D l b I plac In er t or G uit ENTER h D R I Q Type the first letter of the desired option and press IF1 U301 Keep Option Copies t...

Страница 43: ...le To recover a BUILD file s previous contents There are a couple ofcases in which you may need to do this Let s assume you are editing a file named STARTER 1 After ending the edit session you realize...

Страница 44: ...brary Commands CLEAR Clear User Memory This command zeros user memory and returns to TRSDOS It does not reinitialize the I O drivers unprotect high memory or perform any other functions Example CLEAR...

Страница 45: ...play When it is on the 24 hour time will be displayed and updated once each second regardless of what program is executing TRSDOS starts up with the clock off Note The real time clock is always runnin...

Страница 46: ...he Screen This command clears the Display Use it to erase information that you don t want others to see for example file specifications which include passwords Example CLS Sample Use CREATE PERSONNL B...

Страница 47: ...option to overwrite destroy an existing file without the prompt Normally COpy uses memory below X 3000 however when copying from one diskette to another in a single drive it will use memory up to the...

Страница 48: ...TESTPROG TO 3 Copies the specified file from the first drive that contains it onto drive 3 using the file name TESTPROG Sample Use Whenever a file is updated use COpy to make a backup file on another...

Страница 49: ...cedure in which space is allocated to a file dynamically i e as necessary when data is written into the file With preallocated files unused space at the end of file is not deallocated recovered when t...

Страница 50: ...Only A record is the quantity of data TRSDOS processes for you during disk operations The record length can be any value from 1 to 256 File Type TRSDOS allows two types of files Fixed Length Record FL...

Страница 51: ...Job Description Up to 92 characters Then your records will need to be 25 11 92 128 bytes long You could create an appropriate file with the command CREATE PERSONNL TXT NRECS 250 LRL 128 Once creaed hi...

Страница 52: ...979 200 14 15 31 for Thursday July 19 1979 the 200th day of the year 2 15 31pm Note If the time passes 23 59 59 TRSDOS does not start over at 00 00 00 Instead it continues with 24 00 00 However the ne...

Страница 53: ...y protect this area from being overlaid by BASIC or other user programs To use DEBUG from BASIC you must turn DEBUG on before you start BASIC While DEBUG is on every time you attempt to load and execu...

Страница 54: ...ter display ASCII display period indicates a non displayable character RAM display shows hex contents of each byte Z 80A register contents SZHPNC are the flag bits in register F Start address of one 1...

Страница 55: ...rom that point press a The original instruction will be executed but the breakpoint will not be removed It will still be there the next time that address is reached Note Place breakpoints at the begin...

Страница 56: ...d to by Pc Use it after the debugger has stopped at a breakpoint The original instruction at the breakpoint address will be executed but the breakpoint will remain in place D Decimal Format Press J to...

Страница 57: ...mal format In this mode all addresses must be entered as four digit hexadecimal numbers J Jump This is a two step process 1 Type in the J command and the jump address This will load the address into t...

Страница 58: ...and The debugger will prompt you to type in the starting address of memory to be examined As soon as you type in the complete address the memory display will show the l28 byte area starting with that...

Страница 59: ...HL The cursor will move over to the first byte of the register pair While in the register modify mode use the cursor control keys Iand1 2to move over one nibble at a time Use to advance to the next r...

Страница 60: ...f the drive specification in sion but use awild card field in place of and the wild card specification may list all files with the extension ext to be used If omitted drive zero will be nA I Tnl rDlfR...

Страница 61: ...rogram file or D for Data file The second character is either S for System file or for User file The third character gives the password protection status X The file is unprotected no passwords A The f...

Страница 62: ...culated Ifnumber exceeds 65535 it starts over at zero That is it is a modulo 65536 number True number of records can be inferred from Sectors Used column Number ofExtents How many segments contiguous...

Страница 63: ...SDOS library commands you can load and execute user programs from a DO file You will probably want to make your program name be the last line in the DO file see Note Before the Do processor starts the...

Страница 64: ...OS it will begin automatic command input from STARTER Sample Use Suppose you want to set up the followingTRsDosfunctions automatically on start up FORMS l J 812l CLOO ON VERIFY OFF Then use BUILD to c...

Страница 65: ...s in the output devices and in the output software 2 Having dual routing on will slow dowri the video output process 3 Ifyour printer is currently off line or not powered up the Video Display will app...

Страница 66: ...al form without the X notation This command copies a machine language program from memory into a program file You can then load and execute the program at any time by entering the file name in the TRS...

Страница 67: ...mmand Press BREAK to stop ECHO and return to TRSDOS READY Sample Use You can key data directly to the printer by turning on dual routing and then starting ECHO DUALON ECHO Now whatever you type will b...

Страница 68: ...ys a descriptive error message When TRSDOS gives you a reverse black on white message like ERROR 1 7 You type back ERROF 47 to see the full error message Example ERliOR 3 Gives you the message PARAMET...

Страница 69: ...pon completion of the command control switch may be anyone ofthe following tellsTRSDOS to issue aform feed X OC character X tellsTRSDOS to send all data directly to the printer wittlout translation tr...

Страница 70: ...ne feeds to advance paper to top of next page No auto top ofform send X OC and X OB directly to printer Automatic carriage return after W characters in a single line translate X 09 as 1 8 spaces to pe...

Страница 71: ...default is PAGE 66 Lines per page This number determines the number of blank lines at the bottom ofeach page Ifyou set lines equal to page size then TRSDOS will print every line on the page Ifyou set...

Страница 72: ...would use a command like this SETCOM 8 300 7 N 1 Then you would execute the FORMS command Technical Information The serial printer driver uses the following pins of channel B refer to the Model II Op...

Страница 73: ...become segmented dispersed or fragmented This slows the access time since the disk read write mechanism must move back and forth across the diskette to read or write to a file FREE and ANALYZE help y...

Страница 74: ...s are used in the FREE map Unused Granule D Directory Information X Allocated Granule F Granule Contains a Flawed Sector Unusable A Alternate directory Here s a typical display Disk name 110 X indicat...

Страница 75: ...HELP Help with TRSDOS Commands Library Commands Sample Use HELP MOVE gives the syntax for the MOVE command HELP SYNTAX explains the format of the HELP messages 111...

Страница 76: ...d by sending an ASCII X 03 If you disable remote BREAK that code will be ignored when it comes in via the serial interface The HOST will process a remote X QQ null char as if it were the local HOLD ke...

Страница 77: ...and immediately after swapping diskettes It tells TRSDOS to read the diskette D s on all drives in the system Note Do not swap diskettes while a file is open See VERIFY for related information Example...

Страница 78: ...file or Q pmi3jJ to cancel the command Examples KILL TESTPROG 8AS Deletes the named file from the first drive that contains it KILL J08FILE IDY fo99y Deletes the named file from the first drive that c...

Страница 79: ...verified that the update file is correct you can Kill the old file KILL is also useful in conjunction with pre allocated files Suppose you have finished writing to a pre allocated file and one or more...

Страница 80: ...MODEL II TRSDOS LIB Display Library Commands This command lists to the Display all the Library Commands Example L I I 116...

Страница 81: ...e contents ofa file The listing shows both the hexadecimal contents and the ASCII characters corresponding to each value For values outside the range X 20 X 7F a period is displayed To stop the listin...

Страница 82: ...0G l00000 60 6 5 10 r J 80 f 3 s 9l1J 9 j 1m Text on top row hex on next two rows Period for text indicates non printable data PAGE 1 6 31 Fixed or variable Iength records TYPE F Column ma kers BYTE R...

Страница 83: ...p 1 Note You may not load a program file if it would overlay TRSDOS The code must be loaded above X 27FF Sample Use Often several program modules must be loaded into memory for use by a master program...

Страница 84: ...Stop prompts and and no more copies If all files that match the Tode tin drive ALL ASS PROMPT It sJ lecifieswhich drive will contain the tspe ifies the destination of the copy allusE r files This para...

Страница 85: ...offiles on a diskette The files will retain their relative positions in the directory listing BACKUP cannot serve this function since it duplicates the file segmentation of the source diskette To per...

Страница 86: ...d for use inside a DO file It makes TRSDOS print a message and then wait for the operator to press miEn Example PAUSE Insert Diskette 21 Prints PAUSE followed by the message and prompts the operator t...

Страница 87: ...IEmg th records tells TI S OSi totreiat tl e j irst byte in each record as a forms ASCII Contents of Ffrst Byte Control Functfon Do aform feed before printing top of form Only llsethi 3 Ol tioln Vl he...

Страница 88: ...s all printer output You can then PRINT to the video by using the v option 2 PRINT does a top ofform before it starts printing 3 Unprintable characters undefined control codes and codes 127 are printe...

Страница 89: ...userfile protection is left unchanged Ifone is used the othermust be omitted PROT changes file protection on a large scale If you know the diskette s master password you can change it You can also pro...

Страница 90: ...se PURGE you must know the diskette s master password TRSDOS System diskettes are supplied with the password PASSWORD Before eliminating any system files read Disk File Requirements in Section O When...

Страница 91: ...f the serial channels with SETCOM Select the appropriate parameters depending on the requirements of the transmitting device Notes 1 The data will be loaded into memory according to the load informati...

Страница 92: ...hexadecimal addresses The code will be in the memory area specified in the data itself You can now use the DUMP command to create a program file on diskette 2 You have initialized channel B properly...

Страница 93: ...nibble most significant four bits sent as first byte of pair 2 low nibble least significant four bits sent as second byte of pair For example the value X FT is sent as two bytes F X 46 followed by 7...

Страница 94: ...re the data is to start loading Address 6 High nibble of Isb specified must be in the user area X 2800 TOPj of load addr Low nibble of Isb of load addr 8 High nibble of Isb of EOF end of file This byt...

Страница 95: ...d back tothe original byte of data before it is summed CHARACTER NUMBER SAMPLE DATA ASCII HEX VALUE 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 7 A 3 3A 30 32 32 38 30 30 30 30 33 37 37 30 41 33 This record w...

Страница 96: ...ord Use ATIRIB to do that Examples RENAME Miss BAS TO Ms BAS TRSDOS will search for Miss BAS starting with drive 0 and will rename it to Ms BAS RENAME REPORT AUG 3 TO REPORT SEP Renames REPORT AUG on...

Страница 97: ...Library Commands i RESET Reset Restart TRSDOS Executing the command is equivalent to pressing the RESET switch The RESET command closes all open files Sample Use RESET 133...

Страница 98: ...of the display and outputs it to the printer Graphics characters will be represented as periods and reverse alphanumeric characters will be represented as normal characters Sample Use You want to save...

Страница 99: ...ositional e g thethird item in an option list must always specify parity To use a default value omit the option If you want to list subsequentopJions you must include a commafbr each default SETCOMwit...

Страница 100: ...available when the respective channel has been initialized See Technical Information for details Examples SETCOM A Sets up channel A for serial communications using all the default parameters System f...

Страница 101: ...deleted after it is printed TRSDOS will print file ifthe file is closed by aSPOOL S r ifadisk erroroccurs in the print file C copies Specifies how many copies you want Ifomitted one copy is made c may...

Страница 102: ...pture file SPOOL I Type SPOOL ON SPOOL N F SPOOL1 Now all printer output will be saved in SPOOL I To stop capturing the printer output in SPOOL type SPOOL OFF Now SPOOL I is a text file which may be L...

Страница 103: ...details of spooler a briefexplanation of how it works is in order Spooler itselfcan be thought ofas a high level supervisor whose role is to monitor the use of the physical printer As such spooler ca...

Страница 104: ...course disk space Printed reports usually take a lot ofdisk space to store More on this later 3 Some of the features that spooler print has that should be helpful are listed below A The operator has c...

Страница 105: ...the same software in the operating system then the spooler will take a back seat to your program An example would be spooler printer needs another disk record to continue its printing Your program is...

Страница 106: ...se new functions will preclude the use of spooler print while your program is running Only when your program is outputting data directly to the physical printer which it is not the case ifspooler is r...

Страница 107: ...mple runs should show you what disk space requirements you might have and what limitations ofprinted report size you might experience IO Spooler either capture or printing is compatible with A Host B...

Страница 108: ...NTIL YOU HAVE TURNED THE SPOOLER OFF Do not Backup or Format to these disks either 5 The capture file traps all printer bytes no translation is done This is true regardless of what print control optio...

Страница 109: ...This command tells you the first address of protected high memory non user memory and list the on offstatus of various TRSDOS functions are active Sample Use You want to locate a Z 80 program at the...

Страница 110: ...the T option Use it whenever you adjust the printer paper position or whenever you want to start a new page If spooler is currently active and capturing this will send Top Of Forms character X OC to t...

Страница 111: ...plays it in this format THU JUl 19 1979 200 14 15 31 for Thursday July 19 1979 the 200th day of the year 2 15 31 pm Note If the time passes 23 59 59 TRSDOS does not start over at 00 00 00 Instead it c...

Страница 112: ...ion to verify that the data is readable If the data is not readable after retries TRSDOS will return an error message so you ll know that the operation was not successful Note TRSDOS always verifies d...

Страница 113: ...Section 3 Utility Programs...

Страница 114: ...m Several other incidental utilities are included BASCOM COMSUBand DOCOM all for serial communications EXDATM and DATM for date calculations HERZ50 farnan USA users PRTBKSP LPII The following utilitie...

Страница 115: ...destination diskette If omitted TRSDOS will use the diskette name ofthe source diskette Yt e s r t i lf omitted all files will ASS tells TRSDOS notto prompt the operatorfor diskette information butto...

Страница 116: ...is omitted and the destination diskette contains file data If you wish to overwrite existing information type Y ENTER To cancel BACKUP type Q ENTER Change Diskette Information This prompt will only be...

Страница 117: ...the destination diskette contains an alternate directory on a track which is used for data on the source diskette the backup will be cancelled Other Messages and Error Conditions This is not a compreh...

Страница 118: ...ry is available TRSDOS will use it automatically This will slow down disk I O If you begin having diskette errors with a particular diskette use BACKUP with a destination diskette which is known to be...

Страница 119: ...o place the primary directory If this option is omitted track 44 will be used The primary directory may be placed on any track from 1 76 Warning SYSTEM SYS requires 7 tracks following directory if dis...

Страница 120: ...e data on that diskette See BACKUP Using BACKUP to Recover Lost Data Selecting the Directory Tracks TRSDOS allows you to specify where the directories will be placed The default locations are Primary...

Страница 121: ...defaulted FORMAT 1 DIR 01 ALT 02 Drive 1 primary directory on track 1 alternate on track 2 This leaves all unused space in one extent The resultant diskette can not be used to contain TRSDOS since th...

Страница 122: ...3000 to top of user memory To execute the test type under TRSDOS READY MEMTEST ENTER Note After running the full memory test you must reset the system After running the user memory test control return...

Страница 123: ...to replace findstring changestring must contain the same number of bytes as does findstring Both findstring and changstring can be in hexadecimal or hexadecimal form each byte to be changed is rep1 re...

Страница 124: ...e operating system Note If you press during a patch operation before any changes have been made in the file PATCH will close the file and return you to TRSDOS The file will be unchanged Once PATCH has...

Страница 125: ...ograms Ifthe file is stored with the D attribute you specify the patch area in terms ofthe logical record which contains the data and the starting byte ofthe data in that record The TRSDOS LIST comman...

Страница 126: ...u are patching adat Ing spans two records You wi patch in two steps one for each re s a part of the string to be changed ADDRESS OUT OF PROGRAM LOAD RANGE ABORT 162 This occurs when you attempt to pat...

Страница 127: ...ct code Input output is through serial channel A In most applications hookup will be through telephone lines via a modem TERMINAL has three modes of operation Menu Allows you to select or change optio...

Страница 128: ...serial terminator on that channel 2 Find out what RS 232 C parameters are required by the host program you are going to use Baud rate Word length Parity Number of stop bits You will need to initializ...

Страница 129: ...ng to communicate with Type ENTER MENU SELECTION The program will prompt you to type in a TRSDOS command Type in the SETCOM command just as you would in the TRSDOS READY mode For example ENTER TRSDOS...

Страница 130: ...ho option and TERMINAL will display your keyboard input Incoming characters can be saved in the RAM buffer R option and can be output to the printer P option If transmission errors occur TERMINAL will...

Страница 131: ...sions If not you might want to speed it up Ifabreak character or sequence is received in this mode TERMINAL will pause until the next character is received IfaX 13 is received TERMINAL will pause unti...

Страница 132: ...B Set Change Break Character or Sequence This command lets you select which incoming code will be interpreted as a break It also lets you define a key to send that same break character or to send a br...

Страница 133: ...does not affect operation in the interactive terminal mode The prompt wait feature allows you to use the high speed transmit from RAM mode even when the host program can only accept one line at a time...

Страница 134: ...l F2 Keys This command lets you program F1 and F2 to output any code from zero to 255 This is useful when you will be using a particular code frequently For example suppose the host program accepts a...

Страница 135: ...d to the printer as it is received and displayed Whenever you use D command while this option is on the RAM buffer text will be copied to the printer Be sure you have initialized the printer with the...

Страница 136: ...and the menu prompt will return R Toggle RAM Buffer Option This command pertains to the interactive terminal mode only It lets you save in RAM some or all the data that is received by opening and clo...

Страница 137: ...control code will be sent When you display a message control codes will not be shown at all For example suppose the host terminal requires responses to the following prompts during sign on USER ID USE...

Страница 138: ...can now send it with the X command After transmission is complete TERMINAL will go to the interactive terminal mode C Copy RAM Buffer to Disk This command creates a disk file copy ofthe text in the R...

Страница 139: ...ting from RAM press BREAK You will be returned to the menu o Enter Terminal Mode with Auto Sign On This command starts transmission ofthe current auto sign on message After the message is sent TERMINA...

Страница 140: ...the display Ifthe RAM buffer is open they will be saved in RAM regardless of the state ofthis option Here is a list offiltered codes when the option is on all codes are given in hexadecimal OI 02 03 0...

Страница 141: ...except that it will no longer be saved in the buffer Saving the RAM Buffer When the buffer is filled in the interactive mode or when you suspect it will be soon do the following 1 Transmit a pause or...

Страница 142: ...n Video filter option Auto sign on option Receive into RAM option not recommended Speed of transmit from RAM and auto sign on as set by the CD and keys Once you find out the maximum rate oftransmissio...

Страница 143: ...u are receiving the carrier signal from the host program ENTER MENU SELECTION Now go through the necessary sign on with the program When you want to send theBASIC program press BREAK to return to the...

Страница 144: ...the interactive terminal mode T option and tell the host to send the program After the entire program has been received press BREAK to return to the menu then type ENTER MENU t EL ECT I ON ENTER ENTE...

Страница 145: ...may be produced while you are in the interactive terminal mode The following messages can be produced in any mode except the menu Check the telephone modem connection TERMINAL will pause until the car...

Страница 146: ...smission until next Character Is Received Yes Transmit From RAM Auto Sign On Yes Option W 1 Option Option Use E Option Menu N A Use S Command l Receive Into RAM Auto Sign On Wait For Prompt PrograrnCf...

Страница 147: ...o No Yes Transmit From RAM Auto Sign On S No Menu Command No Command Dump X 3000 X 3FFF Feature Option GetDisk FilEfinto Ram Copy Ram To Disk Transmit Ram Buffer Recognize DC1 DC3 Resume Pause DisplCi...

Страница 148: ...eation of Minimum System or Data Diskettes For definitions of minimum system and data diskettes see Section 0 of this manual 3 Merging System Files from Different Diskettes This is useful for combinin...

Страница 149: ...kette that does not have these seven free tracks cannot be converted until the files located on these tracks are moved or killed You should try to copy the files onto another less full diskette then k...

Страница 150: ...ending on the number of system files on your source diskette If there are not seven contiguous free tracks following the directory XFERSYS will list the files that must be moved to free up this area I...

Страница 151: ...ill purge from the destination diskette all system files that are duplicated on source diskette It will not purge the system files unique to the destination diskette i e the language package files Nex...

Страница 152: ...nation drive will move a minimum system onto the destination diskette The system files will occupy tracks 2 8 Details ofthe XFERSYS Process XFERSYS has three phases Phase 1 Part 1 XFERSYS determines w...

Страница 153: ...1 1 1 2 or 2 0 Phase 2 TRSDOS now copies the system file SYSTEM SYS This is the file residing on seven contiguous tracks following the directory Phase 3 TRSDOS copies the remaining system programs ma...

Страница 154: ...e COMSUB via the USR function Like TERMINAL BASCOM and COMSUB are included on your system diskette and may be examined by employing the TRSDOS command LIST or the BASIC command LIST in the case of BAS...

Страница 155: ...mit or receive error is detected COMSUB will print the word ERROR followed by an 8 bit error code The leftmost digit represents bit 7 the right most digit bit zero The program will continue to attempt...

Страница 156: ...ON ERROR IF MODEM CARRIER NOT PRESENT IRETURN IF r tJ CHARACTER RECIEVED ISET sTATUS BITS IQ JIT ON ERROR IF ANY STATUS BITS ARE SET IPASS RECIEVEP CHARACTER TO STRING LOCATION ICHARACTER TO BE TRANSM...

Страница 157: ...e resulting date The timespan can t be greater than 65535 days the year of the date must be at least 1600 and not larger than 9999 2 Given two dates the program calculates the number of days between t...

Страница 158: ...number of days between two days type D in response to the initial prompt A D In response to the ENTER PARAMETERS prompt type in your data as in this sample 104 15 197912 31 1979 The program will prin...

Страница 159: ...buffer located above X 27FF as follows mm dd yyyy i5jjjjj just like the input text for EXDATM described previously DE 26 byte output buffer located above X 27FF as follows NAME OF MONTH DAY OF DAY MO...

Страница 160: ...TE AT EC60H 29 I 30 I 3T 32 1 __ _ _ _l _ 0000 E5 3 DATM 01 05 35 _0 3 2_C5 36 37 0003 7C 38 LD A H ICHECK FOR BAD BUFFER ADDRESS 0004 FE28 39 CP 28H 1 0006 3822 0 JR C ERRoR IQUIT ON ERROR 0008 lA 41...

Страница 161: ...L I A D6 6AYrlFMONTHrn c PAN 1010510 6F 81 LD L A IMoVE SPAN 0051 ED52 B2 SBC HL DE ISEE IF OVER A MoNLH _ 01053 23 83 INC HL READJUST REMAINING SPAN 0054 382A 84 JR C FINISH LEAVE LOOP IF NIJT nVER A...

Страница 162: ...LD C 4 l 4 0106D 3E17 143 LD A 17H IDIVIDE OOBF CF 144 RsT 8 SVC 00C0 23 145 INC HL ADJUST FOR DAY ZERO SAT MON 100Cl 23 146 INC H1 lSAME OOC2 23 147 INC HL SAME 00C3 23 148 INC HL SAME 00C4 23 149 I...

Страница 163: ...D TABLE ADDRESS 011F of 203 LD L A FIND TABLE ADDREss 0120 3001 204 JR NC MONDFY IJUMP IF MSB c _ 0122 24 205 INC H I INC MSB ON C 0123 0J0300 200 MONOFY LD BC 3 13 LOOPS _ 0 1 2 0 ____ cC DC 8 c 0 0...

Страница 164: ...DD HL OE IFIND FIRST DIGIT 252 LOADSS EQU 10 180 110000 253 LD DE 0 IGET BUFFER ADDRESS 254 OUTDSS EQU 0183 EDB0 255 LDIR I MOVE 0185 ED538101 R 256 LD OUTDSS DE ISAVE ADDRESS 0189 C9 257 RET 258 I 01...

Страница 165: ...lOFC 316 DJNZ LooPl I LOOP 200 0E02 317 LD C 2 ICoUNT FOR MOVE 020F EDBIO 318 LDIR 1MOVE 0211 E5 319 PUSH HL ISAVE POINTER TO INFORMATION 0212 211 B02 R 320 LD iL BUFF5 IFRONT OF BUFFER 0215 04 321 IN...

Страница 166: ...ERROR 0268 78 374 LD A E IYEAR 0269 322102 R 375 LD YR1 A ISTORE YEAR 026C ES 376 PUSI HL SA VE pm NTER TO I NFrlRMAT ION 0260 CDF601 R 377 CALL FIXFE8 IFIX FE S 0270 3A2202 R 378 LD A ION MONTf j 02...

Страница 167: ...LD C OiL MOVE 1ST DATE 02CE 77 431 LO HLl A I 02CF 9 432 LO A C I 0200 12 433 LO DE A I 0201 23 434 INC HL BUMP POINTER 0202 13 435 INC DE BUMP POINTER 02 03 10F7 436 DJNZ SWITCH IUJoP 0205 C08902 R 4...

Страница 168: ...86 JP ALEXIT lEND 487 0328 CDF601 R 488 CoMPAR CALL FIXFEB FIX FFB 032 3A2202 R 48Q LD A MoNI MONTH 0331 1600 4Q0 MORE LD D 0 ZERO MSB 0333 5F 4Ql LD E A MOVE MONTH 0334 21D101 R 492 LD HL MONTHS MONT...

Страница 169: ...5 R 5102 49 7 GOOD 102 3 R 446 443 5107 514 519 JUL1 0227 R 335 56 72 78 87 425 459 495 502 JULDAT 0016 R 48 JlJl IAN 0224 R 333 122 J 74 2 14 JULT j 031 R 65 57 99 1107 LOBUFF 0099 R 124 LOAOR 10289...

Страница 170: ...the drive zero diskette is changed Be sure it is write enabled before you start the Do file Once the HERZ50 changes are done they will remain in effect for that diskette To perform the change type und...

Страница 171: ...This Do file changes the TRSDOS printer driver to make it properly operate the Radio Shack Line Printer II It makes a permanent change in the TRSDOS diskette The change will take effect when the Compu...

Страница 172: ...e using a printer which can handle this code properly you may want to modify TRSDOS so that it will send the backspace code to the printer To make the modification execute the Do file named PRTBKSP Th...

Страница 173: ...al level You do not need it to use the Operator Commands nor do you need it to run BASIC applications programs on the Computer You do need it to write assemblyprograms which use System routines You ma...

Страница 174: ...r track On System diskettes 65 tracks are available for the user on non System diskettes 75 tracks are available Details Track 0 is reserved by the System Another track usually track 44 is reserved by...

Страница 175: ...l not de allocate unused granules when a pre allocated file is Closed The way to reduce the size of a Pre Allocated file is to Copy it to a dynamically allocated file and Kill the Pre Allocated one Re...

Страница 176: ...Record length in an FLR file is set when the file is Opened for the first time This length can be any value from 1to 256 bytes Once set the record length in an FLR cannot be changed unless the file i...

Страница 177: ...e record contains 255 bytes of data Length Data Data A length byte value of 2 indicates that the record contains 1 byte of data Length Byte one byte of data A length byte value of 16 indicates that th...

Страница 178: ...h records VLRs you can only position to the beginning of the file or to the end of file You cannot position to any other record in the file since the position of interior VLRs cannot be calculated If...

Страница 179: ...Examples with Variable Length Records Here are examples of ways to read or write to VLR files 1 Start reading or writing sequentially at tirst record Open the file and start reading or writing sequent...

Страница 180: ...s Function Code Calling Procedure All SVCs are accomplished via the RST 8 instruction 1 Load the Function Code for the desiredsvc into the A register Also load any other registers which are needed by...

Страница 181: ...Technical Information Get a character from the Keyboard GETCHAR L D A 4 Rt T 8 rR NZ GET CHAR CHARACTER IS IN REGISTER B CODE 4 GET CHARACTER SVC JUI 1P TO t C DO AGAIN IF NO CHARACTER 217...

Страница 182: ...File Already In Directory No DriveA lajl bl ForAn Open Write Attempt To A Read Only File Write FaultOn DiSk I O Disk Is Write Protected DCBISl Aodified AndJsUnusable Directory Read Error OirectpryWri...

Страница 183: ...o An Unopen File IHe gal I OAttempt SEEK Error l ata l ostQ ringDiskI O Hardware Fault Printer Not Ready Prtnt c9 tt P lp er Printer Fault May Be Turned Off printer Not Available Not Applicable To VLR...

Страница 184: ...ress of points to the data If Z flag is not set an error occurred When a range is not given any representable number can be used For example a register can contain any value from 0 255 The contents of...

Страница 185: ...mand and then returns to TRSDOS READY 38 RETCMD Sends TRSDOS a command and return to caller 39 ERROR Displays ERROR number 52 ERRMSG Returns Error Message to Buffer 57 CLRXIT Clear RAM and return to T...

Страница 186: ...al to 0 B Function code to be used 95 code 128 C Set Reset code If C O remove the vector Otherwise add the vector A 2 Exit Conditions HL Removed vector address when c o on entry SETBRK Set lJIlIm func...

Страница 187: ...assigned by the FORMAT and BACKUP utilities This routine is useful when the program needs to ensure that the Operator has inserted the proper diskette Entry Conditions B Drive Select Code If B 0 read...

Страница 188: ...ntinue executing your program until the timer counts down to zero or you reset the timer This is a one shot timer When it counts to zero and causes an interrupt it automatically shuts off See Programm...

Страница 189: ...he HOLD processor by calling the SYC with B 1 Then when you want to check whether HOLD has been pressed call it again with B 1 If HOLD has been pressed the routine will not return until HOLD is presse...

Страница 190: ...ends TRSDOS an operator command After completion of the command control returns to your program All Open files are Closed automatically Note Take care thatTRSDOS doesn t overlay your program while loa...

Страница 191: ...Conditions B Error Code A 39 Exit Conditions NZ Error A Error Code ERRMSG Error Message function code 52 This routine returns an 80 byte descriptive error message to the specified buffer area See list...

Страница 192: ...itions A 57 Exit Conditions None Keyboard Supervisor calls described in this section FUNCTION CODE NAME PURPOSE 1 KBINIT Clears stored keystrokes 4 KBCHAR Gets a character from keyboard S KBLINE Gets...

Страница 193: ...cter from the keyboard The routine returns immediately either with or without a character in register B The key is masked from the user it will never be returned since it is intercepted by the System...

Страница 194: ...HL Start of input buffer B Maximum number of characters to receive B A 5 Actual number of characters input including carriage return if input buffer was filled without carriage return If line ended w...

Страница 195: ...visor Calls described in this section FUNCTION CODE NAME PURPOSE Table 4 6 Video Display Supervisor Calls The Display has two modes of operation Scroll and Graphics Cursor motion and allowable input c...

Страница 196: ...ode Each time an acceptable display character is received it is displayed at the current cursor position which is set on entry to the Graphics Mode routines Before displaying the next character the cu...

Страница 197: ...ters per line The illustration above shows the 80 character per line mode In the scroll mode each time an acceptable display character is received it is displayed at the current cursor position and th...

Страница 198: ...or to the top left corner position 0 in the Scroll Mode illustration Entry Conditions B Character size switch If B O then size is set to 40 characters line Otherwise size is set to 80 characters line...

Страница 199: ...previous line Cursor will not move into the scroll protected area ENTER OD Moves cursor down to beginning of next line CTRl J OE Turns dual routing on CTRU J OF Turns dual routing off CTRl CI 14 Home...

Страница 200: ...codes in the range 0 127 Received control codes code X 20 are handled as with VDCHAR Entry Conditions HL Beginning of the buffer containing characters to be set t6 the Display B Number of characters t...

Страница 201: ...de reverts to previous state after completion of VDGRAF call FA Sets Reverse black on white mode Cursor does not advance Mode reverts to previous state after completion of VDGRAF call FS Homes cursor...

Страница 202: ...acter line mode C 40 ForC 39 C modulo 40 is used as column position D Length of buffer in range 0 255 HL Beginning of text buffer The buffer should contain codes below X SO or the special control code...

Страница 203: ...is routine can also be used just to locate the cursor see below Entry Conditions B Row on screen where read starts B 24 If B 23 then B mod 24 is used as row position C Column on screen where read star...

Страница 204: ...t buffer Next the routine gets a line from the Keyboard Note Before starting the line input all previously stored keystrokes are cleared Refer to KBUNE for a list of Received Control Codes and other d...

Страница 205: ...ck of the current cursor position whether it is on or off Entry Conditions B Function Switch If B 0 then cursor will be turned off If B 0 then cursor will be turned on A 26 SCROLL function code 27 Thi...

Страница 206: ...other control codes The following table summarizes the character code relationships for this routine Hex Code OO IF 20 7F 80 9F AO FF Display Character Normal Graphics Normal ASCII Text Reversed Graph...

Страница 207: ...Conditions A 17 B Page length C Printed lines per page D Maximum number ofcharacters per line Register C must always be less than or equal to B IfB C 1 0 TRSDOS will not do any automatic top ofform H...

Страница 208: ...aintains current line on page and current character in line counts regardless of which initialization settings are used See SVC PRCTRL for further details on these counts 2 The printer need not be rea...

Страница 209: ...directly to the printer There are several ways to override some or all of these character translations See SVC PRINIT and SVC PRCTRL Table ofIntercepted Codes ASCII Hex Name Code Tab 09 Vertical OB T...

Страница 210: ...acter to send after last character in buffer A 19 Exit Conditions NZ Error A Error Code PRCTRL Control Printer Operations function code 95 This routine lets you select various printer options and chec...

Страница 211: ...rinted on each page D Maximum number ofcharacters to be printed on each line E ASCII P or S Indicates which printer option Parallel or Serial Printer is selected H Number ofcharacters printed on curre...

Страница 212: ...set return code During dummy mode operation the line count and character count remain unchanged Auto Line Feed Normally the TRSDOS printer driver does not print line feeds after carriage returns This...

Страница 213: ...efore you switch to the serial printer and select normal operation before you switch to the parallel printer That way the line and character count will remain accurate for the parallel printer It will...

Страница 214: ...OPEN HL A Reserved for use in later versions ofTRSDOS 33 Exit Conditions BC NZ A Current Record Number Error Error Code READNX Read Next Record function code 34 This routine reads the next record aft...

Страница 215: ...ith VLR files you can only use it to read the first record or to read the end of file Entry Conditions DE Data Control Block for currently Open file see OPEN BC Desired record number BC 0 means positi...

Страница 216: ...xit Conditions NZ Error A Error Code Before calling OPEN you must reserve space for the Data Control Block Parameter List Buffer Area and Record Area as described below Data Control Block 60 bytes The...

Страница 217: ...UFADR RECADR EODAD R or W RL F or V 0 or 1 USER or p or 2 ATTRIBUTE BUFADR Buffer Address This two byte field must point to the beginning of the Buffer Area The Buffer Area is the space TRSDOS will us...

Страница 218: ...Files this area should be long enough to contain the longest record in the file including the length byte If you are not sure what the longest record will be reserve 256 bytes EODAD End of Data Addre...

Страница 219: ...es not already exist TRSDOS will use the first write enabled drive with at least one free granule RL Record Length This one byte field specifies the record length to be used Zero indicates a record le...

Страница 220: ...R ATTRIBUTE value of zero All files created with the CREATE command will have a USER ATTRIBUTE value of zero The USER ATTRIB UTE is assigned when a file is created or opened with creation code 1or 2 W...

Страница 221: ...TNX Write Next Record function code 43 This routine writes the next record after the last record accessed that is it writes sequentially IfWRITNX is the first access after the file is Opened the first...

Страница 222: ...set to the last record written Entry Conditions DE Data Control Block for currently Open file BC Record number you want to write BC 0 means write first record in file BC X FFFF means write record at e...

Страница 223: ...is routine compares a file specification with a wild card specification For details on wild card specifications use the Index Entry Conditions B Function Code Result Set wild card mask Compare file sp...

Страница 224: ...ntry with B 0 the exit conditions are NZ Invalid mask specification After entry with B I the exit conditions are NZ File does not match mask or no mask has been set After entry with B 2 the exit condi...

Страница 225: ...nto RAM in the format described below Gets one specified directory record into RAM if it exists in the format described below Gets free space information in the format described below HL Buffer area I...

Страница 226: ...d to fill 15 bytes Indicates Fixed or Variable length records Logical Record Length one byte binary 0 255 oimplies LRL 256 or VLR file One byte binary 0 16 Null files O Binary 0 65535 in LSB MSB seque...

Страница 227: ...error The following registers are set up B Which drive contains the file binary 0 I 2 or 3 C Position of file in the diskette directory binary 1 96 User Notes This routine is especially intended for u...

Страница 228: ...umber range 0 254 Converts binary to AScII coded decimal and vice versa Compares two text strings Performs 8 bit 16 bit muItiplication and 16 bit 8 bit division Converts binary to AScII coded hexadeci...

Страница 229: ...22 microseconds A 6 RANDOM function code 20 This routine returns a random one byte value To extend the cycle of repetition the instantaneous time date are used in generating the number You pass the ro...

Страница 230: ...Contents of other registers when B 0 binary to decimal DE Two byte binary number to convert HL 5 byte area to contain ASCII coded decimal value upon return The field will contain decimal digits X 30 X...

Страница 231: ...tical NZ indicates strings not identical Carry flag set indicates first string pointed to by DE precedes second string pointed to by HL in collating sequence Other register contents A First non matchi...

Страница 232: ...r multiplication HL Multiplicand C Multiplier For division HL Dividend C Divisor Exit Conditions HL Result product HL C or quotient HL C A Overflow byte multiplication only C Remainder division only S...

Страница 233: ...h keys must be between X OO and X FE Given a one byte search argument the routine locates the first matching entry in the table The routine uses a sequential search algorithm Entry Conditions HL First...

Страница 234: ...cimal to binary A 24 Contents of other registers when B 0 DE Two byte binary number to convert HL 4 byte area to contain ASCII coded hexadecimal value upon return The field will contain hexadecimal di...

Страница 235: ...TAPR28197911813 20 42045 Represents the data Saturday April 28 1979 118th day of the year 13 20 42 hours 4th month of the year 5th day of the week Notes DAY OF WEEK Field Monday is day O The date calc...

Страница 236: ...lds are delimited by separators and terminators defined below For example the line BAUD 300 PARITY EVEN WORD 7 contains 6 fields BAUD 300 PARITY EVEN WORD and 7 However a field can also be delimited b...

Страница 237: ...it Conditions Field position HL First byte of field if a delimited field was found HL Terminator or non blank separator if no field was found HL Last byte of buffer if parse reached maximum length Act...

Страница 238: ...ts List 1 Characters to be used as terminators List 2 Additions to the set of field characters List 3 Deletions from the set of field characters i e alphanumerics to be interpreted as separators Each...

Страница 239: ...typical List Address Block with its associated lists Assume that on entry to PARSER DE X 8000 X 8000 Start Start Start of of of list 1 list 2 list 3 X 9010 3 characters in list 2 X 9000 4 characters...

Страница 240: ...initi l l i l ll to NXTFLD LD HL BUFFER HL string to parse PARSE LOOP PARSE CALL NXTFLD Routine to call PARSER CALL HANDLR Routine to handle new field JR NZ NXTRTN Go to next routine if parsed ended o...

Страница 241: ...ns NZ String not found Z String found HL Start position of matching string in search string SORT RAM Sort function code 56 This routine sorts a list ofentries in RAM All entries must have the same len...

Страница 242: ...TRSDOS code Value in A I 2 3 4 5 Meaning Key end exceeds last byte of entry Key start exceeds last byte of entry Entry length 0 invalid Key length 0 invalid Address offirst entry address of last entr...

Страница 243: ...ke keyboard input and video output The major difference is that your program must check the communications status at various times to ensure that the communications link is in place and that data is n...

Страница 244: ...haracter received 6 Framing error occurred on last character received 7 A break sequence extended null character was received B will have a X OO in it It is possible to obtain the status ofa serial ch...

Страница 245: ...C LOSTC A 4 8 NZ START A B o Z TRYKE 8 NZ ERROR 3000H LD RST LD RST JR ORG LO CP JR RsT JR LD PST JR SETCOMJO MUST HAVE ALREADY BEEN DONE BEFORE THE EXECUTION OF THIS Pq GRAM SAMPLE IS SETCiJM A JfJ0...

Страница 246: ...LD A 100 CH A CONTROL SVC RST 8 PERFORM THE SVC JR JZ EI ROR ERROR BAD FUNCT ION BIT 3 8 SEE IF CARRIER BIT STI LL ON JP JZ CLooP IF ON IE CARRIER NOT THERE WAIT JR START IF CARRIER THERE RETURN TO MA...

Страница 247: ...se stranded wire 24 gauge to connect two DB 25 connectors as illustrated_ If wire length exceeds 50 feet twist lines 7 GND 2 TO and 3 AD Refer to the Modell Operation Manual for a description of signa...

Страница 248: ...tive Entry Conditions HL Parameter list described below B Function switch If B is not equal to zero then tum on the channel and define I O SVC s for that channel IfB is equal to zero then tum off the...

Страница 249: ...reduce data overruns when receiving data at high speeds When each byte is received the communications status at that time is also stored in the receive buffer Each time you get a character via the SV...

Страница 250: ...routines perform character output to channel A or B They are analogous to video character output see YDCHAR TRSDOS sets up A BTX A BRCY and A BCTRL when you initialize channel AlB with RS232C If you...

Страница 251: ...CTRL BCTRL Control Channel A B function codes 100 101 These routines control the RS 232 C interface Channels Aand B Entry Conditions A 100 for ACTRL 101 for BCTRL B Option switch Contents of Register...

Страница 252: ...ng when set 7 Break sequence is now being received 6 Framing error in a byte now being received 5 Data overflow due to a byte now being received 4 Parity error in byte now being received 3 Modem data...

Страница 253: ...n executable disk file setting load and transfer addresses 3 To run the program input the file name to the TRSDOS command interpreter TRSDOS READY mode Program Entry Conditions Upon entry to your prog...

Страница 254: ...her registers Contents are the same as they were when the interrupt was processed Before doing any processing you should save all registers When finished processing restore all registers and execute a...

Страница 255: ...iguous there can be no unused bytes after the end ofone block and the beginning of the next There are three major types of blocks 1 Program data blocks These contain the actual program data prefixed b...

Страница 256: ...following Byte 1 2 3 4 5 end Notes Contents Block Identifier 1 Length number of bytes of program data plus two for load address Load address where the following program data starts loading into RAM L...

Страница 257: ...will be loaded serially starting at the load address The load address must allow the entire block ofprogram data to load in the User area of RAM see Memory Requirements ofTRSDOS Comment Blocks Commen...

Страница 258: ...lowing the program just loaded 2 The transfer address is in LSB MSB sequence It must be in the user area of RAM see Memory Requirements ofTRSDOS Procedure for Writing a Program File Program files must...

Страница 259: ...FD4FIZl8E4FD4F956FEDE3F I 22 F 11l11l1Zl11l1Zl1Zl1Zl11l11l11l11l1Zl11l11l11l1Zl1Zl1Zl1Zl1Zl11l11l1Zl Length of Comment R I LRL 256 First Byte of Program Data oo H O eo 00 EFIZlIZl 21 IE EF 06 33 3E 34...

Страница 260: ...gh memory modules If you invoke a system function that loads this high RAM with a module and then your application loads something on top of this you will certainly experience problems Refer to the me...

Страница 261: ...ations and programs as if the remote were local the local keyboard and video If this high RAM space is overlayed with a user subroutine serious problems will occur Operation flexibility suffers ifan a...

Страница 262: ...to stay away from the high RAM areas It is also possible that in future releases of the TRSDOS operating system more features or routines will be available that will use this space in high RAM You sho...

Страница 263: ...Section 5 Appendix TRSDOS Character Codes Keyboard Code Map Decimal Hexadecimal Conversion...

Страница 264: ...rriage return Dual routing on Dual routing off Erase to end of line Erase to end of screen Sets white on black mode Sets black on white mod Clears screen homes cursor Moves cursor back Moves cursor fo...

Страница 265: ...mode Video Display Scroll mode 0 0 1 1 1 2 2 2 3 3 3 4 5 6 7 8 9 A A A B B C C C 0 0 0 0 41 42 43 44 45 53 54 55 56 57 58 59 60 61 32 gH1SJ Fj2 ts 33 21 34 22 35 23 36 24 37 25 38 39 63 64 65 66 67 K...

Страница 266: ...Code 302 Modell TRSDOS Character Video Display Scroll mode...

Страница 267: ...o Display Scroll mode Appendix Codes 128 248 cannot be input from the keyboard or output to the display When re ding the display a value greater than 127 indicates a reverse character corresponding to...

Страница 268: ...7F 28 ESC 21 240 23 4 24 25 5E 26 2A 28 29 iF 28 BACK BREAK 1 31 32 3 33 34 5 35 636 737 838 939 030 20 30 SPACE 18 31 32 33 34 35 36 37 38 39 30 20 30 08 03 all W 17 E05 R 12 T 14 y19 U 15 1 9 OOF p...

Страница 269: ...7 8 9 F1 1C 38 39 01 4 5 6 F2 1D 34 35 36 02 E 1 2 3 E 31 32 33 N T c E F I R 30 2E OD...

Страница 270: ...713 L E 9 iZ 9 79 LtoF 10 ijjA fm 50 11 0B Bl J1 1 Q JC f32 13 0D D3 3 1L 0E f3 54 1 elF B t t 1 16 10 86 56 17 11 t t _ 1El 12 81 3 58 19 13 Be 59 0 14 90 SA 21 15 91 B 22 16 92 4 3 17 93 SD 24 1f 3...

Страница 271: ...BF L 3 1 4 911 2L 11 5 91 J 146 92 2 6 1I 7 9 l 11 B 9 2 B 149 9 ci 150 96 3 lj 1 1 97 231 152 98 5 1 3 99 ZB 154 9 4 3 t 1 J5 9B 35 1 56 9C 36 157 9D 37 1513 liE 2313 159 9F 39 160 0 0 21 0 161 Ai 2...

Страница 272: ...Section 6 Index...

Страница 273: ...CMD 226 Drive specification 61 DUAL 101 DUMP 102 295 Dynamically allocated file 84 211 310 ECHO 103 Entering a Command 56 65 ERRMSG 227 ERROR 104 227 Error messages 104 218 EXDATM 193 Examples of Synt...

Страница 274: ...4 SCREEN 134 SCROLL 233 241 Scroll mode 230 233 236 240 Sectors 210 213 Sequential file access 214 215 Serial communications supervisor calls 278 Serial interface 86 92 SETBRK 222 290 SETCOM 135 SETUS...

Отзывы: