
PRELIMINARYINSTRUCTIONMANUALDISK BASICVERSION1.1TRSDOSVERSION2.0JULY71978TIt. MIl...Il"'~1Mflm'I •01TlI;!ooS.Nftf1.1.-fitoo..la.-sdlt
DISKIlASltRadioSha~kDiskaasicaddsseyeralnondiskrelatedstatementstotheinterpreter.TheadditionalLEYEL[Istate.cntsandfunctionsproYidedbyt1Iealnidiskarc:M
NlDSNIDScanb.\I••doatheleftsfel..ofaaequationtoraplacea.ub'tTialinanladic:atedstriJ:l,.Th.la"eT.lfOnllltlsstailartothaforaatusael.forNIDSoat
IltSn•Thi.tsastri.,functionvhic.hs.arch.sfortheOCCUrTencaofon••trilllwithinanoth.1'stri.D,.usnwUI"tUTflthesurt1n,positionoftbaOCCUfT.nca.(Th
'bedph.betic.odonlyth.efirsttwoch.r.cterswillb.recolniudl...inv.ri.bles).The"v.Ti.hleUst"consistsofthevari.blesth.taTetobelUedinthefUO
KEXADECDU..LandOCTALCOHSTAHTS-Inso_(unct.ionsit.is-.oreconveni.nt.touseHEX(}Iau16)orOCTAL(baseI)consunurather'thandeci..1nuabers.ThuGn\1llberbuua
DEFUSR-I.providedtoustln,ntrypoinutoUSRroutin...Thi,state.entreplace'theu,er10cltl1ln• POUl •l'I.thoddUCTibedintheLevel.II••nual.Thec,neTalf
PASSIMG ARGtJ)(!.'iTSTOANDFROMUSR ROUTINES -TheTeIr'2...ystoeo_unie.t.fro.BASICto.I,cllJ.n.bnlual'subroutine•.1.PQ[EtheaT,uaontsintofi
oro"o"•Thisco_nd10ed.5theDOSdobuJler.SeetheDOSUTILITIESsection,OEJIUGcOlllllllJ1d.CUlADT-Thisverlfyroutineisnot..'nilableunderDIS'
llADiO SHACILEVEL[JolnCONNANOSTheco...ndsusedwiththedjlk'ylt..facilltatethecontrolofdh1l:op.!'at:lon..Th.yinitilt.udtItTlliJlat:.diskop.Tari
con]dindieae.1IeeWl"ndfilecouldindic.eeanobjeetfilesync.filedaufilebuiepTO,T...fUeFlLEHAMESThrou,houtthis.anu.lTlIfeTence!.relIl.detotilcnaaes.Th
RadkISl'l8Ct__&III1 r...pa:dodof904qJm-dIIodacefIf1111.., 10~ttwdacClmpUle1laNwu.d.cn"-lt.-...boIrr-(telmdeho:tI:litrNl*'blCld_t~.
craatadbyanOPENnat..antthenthatpas.word.u.tal..ay,baprovidedtOT'ub:lltlC{ulIntdiskoperation',Withoutth.prop.rp...ordafilII••ynotb.T••d,co
'pICIaadLtQO~WTl~.pro~lc~ld.ThA~drl••viiib.~••d.lO1l_ylui"etwofU.."hh~b...aaae...lOI:ll..._panof~.fill~(~...iOD.ordrlv.auaber)di.~IQ.
NIl'llDIUCQteWoIDSTh.OPENco...nd.unb.u.1I.db.lo!'eanydiskT".lU01'wTit".fo1'datafile.;tAl.datedOlllQotapplytoprOtT"l
OPE1rI"0",1,"'OUTPUT"OPEN"I",l."IJfPlfr'OPEl."..",3."FILl!:1nOPEJrlDS,X,liSIntb.fourtbnUip
thisls.at't~tlld).MERCE- TheMliRCEco_andco.binesaresidentprolr..withonelocatedon di.!lk.TheincolllinaPToir..overlaystheresidentprOaTUIandrepillce
Ex-.ple:SAV!"PRGRM20. AP1'olr~lived1.nASCIIwilltr.D.fer11I01'.,lowlyth.nfil...toTedint.henoraalbinaryfo-raat..~•ThiscO"'Ddloa
SEQU"EHTIALDtS[DATAFILESSequentialiaputandoutputisthesL.pl.stfoTaofdi.kdata.tor...Thast.t_auarl!"1!:"7.iailartooneusedfortapastore...
Exaap10:PRINTll,USLHG""S"I."";121.1211w111prut-1121.13tothed.hkf11e.INPUT'. Usedtoreadback.~ueatlaJdatawritte'"
Anotlardiffer.nceisthatPRINT',Ute_ntsneednotCOTTe,pogdexactlytotheINPUT''tatl!!JlllntJ.WithupeoperatlOllS,aPRlNT'-l,A,B,Crequiresa
Thefollowin,pro,r..willnadhulfoffofdisk.ndlistiUdfonthe.onitorscreen.10CLEAR50020OPEH"I",l,"PROG"30FORI-nOS40LIPreINPUT'l,A$5
THINGSYOUSHOULDD/OW1.TRSOOSandDISK !lASICrequire10KofRAMcollectively.2.AfteranINPUT'isporfoTJiledfrollcaslette,,ub,equentREAD,tatelllentswillautc
FiluareautOlllaticallyanocatedIlrKIfIaCIre,pac_uused,anotherlitItisallocatedetc.TherefoTe.the.in1JaUJIspaceallocatedfOT afileis1280bytesandfile.always
RAHDONFIL£SRando.file.offertwodi.tlnetadvantalesover.equentialfil••.Sequential.eees.a.nquiraraeoTdbyT.eorddatasaaTch.wh.reRando.ace•••••proTideb••diat
tb&computeTUtnfoDldofthlfOT:lllatofthodAta.OPEN"Jl,",2,"MAlL"FIELO'2,20ASHS,2SASADS,ISASCT$, 2ASS1$ThisJ'ItLDstltc:J
Allvlrubl"inthebufferIrl.toredI'.trinls.ThlrllIreepllcillco~endeinDISlBASICtoconvertintellrs,eillileprecision,anddoublepreci.ionnu.ber5t.oIt
CRfATIHGRAHDONFILESOMors~FU•••recreaud.hypllcil1'the.ppropri.tedauilltheblllferand.then..torin,theCOl1tiRUofthebufferonthedlskasarecord.Sillcedeb
JeneralfOfSl;tfortbfieldUat.genth:FIELD'file~uaber.fieldsiteASbufferstrin,y.ri.bl••...•fhldsheASbuffer.td.ll,-nrhbleApoundIt'll[f}isOptiOlle
poddoDofthe.triD,willbllost.Ifthlstdn,iss••llerthllltnlallottedfilld,itis"p.dded"withblanksonthed,ht.Ad,htjustifild.uin,isjusttheopposite.Th
nuswouldCODveTttileconuntsofth.intereTvlTiableAIto•twObytestT1n!.ndfielditinHIS.TheintegeTvaluemustbeintileTlnleof-3216&to·32161.EitlleTLSET01&apo
PUTfileftuaber,record-nuaberThefileftuaberID.cllc.te~thefil'"hic.h",e"openedtocontainthedataaMt.h.recordlumberistheuuaberullipedto
RETRIEVINGPATAFROHAIWlDONFJLEGettiDadatabackfroaarandalld.aufilei.very5ill11artothelIethodlll..Ied fOT.torin,it.However.theproce'li,:rever,ed.FtE
b)So..t1.ae,aIpac.ilrequlraclinIIASICHU..tlllt.Alltb.foll_u.,linesaraillcorrectJFD<OD-OFJ!Ul'I,20ASC$TIt.charactor!"OD"repruantIdoub
andyouneededonlytheLD.mJMBER(1DS)youcoulddothisbyfieldinaMSandssSasone!tt'in"theDUddinaIDS,thenPHS.TDSwouldtheDbefieldeda.s aseparatenlUlber
PUT/CDTDIACRAMDiskFileRecord1Bufhrfo;fiht2Record 1,V,Record,PUT1,_Record-CET1,4Il.ecoTd 5Record,Record1•••
UTRtBVTWGOATAnOMnlEIlUFP'nRSTIUHGS •Stt>ln,scanb.readfro.thebufferli~lybyreferelleu,the.ariab1eoftheappropriatlfield.Foru-.;ple:fftheItrinl&qu
v.illbeianoredre.ultin.inaunprllldic:~.bleyalue1ft 'OJIacu.,.ill·ThitfURedonwillCOIl.YIIlTta41byu,Uin.In~oitsaquJyalent,in..leprechionvalueandTlt
SUB-R£CORDUSENo...h..tdoa'onedoabout...ll5teddi,k'pace?Refeninlbacktothe..111n,listprohla.theTIIwllre194byte,un\1.!led.Sinceonly62byte
AfullwQrld.Jl.prO'T"for.U1ipuhtb!.,the-...iBn,listUhIU.ILi.li.tedbelow.1"Q.:1..CLSCLOSEllG~JHT:IHPUT"T'l'l"E:1TOWRI
NotothatthllFIELDstltllllonthuboonplacodiDa.ubroutll1.(.liDo'500-530).Glnllthe10Ciealreeordnu.bllT(LR).theproluaealeulatOJwhiebpt!1siealrecord(PR
DISIEUOlSDiskIASICupandsLEV'!LII'sZleuereTTOr_'''IulatafUll,",rob. .u N 0ElIDa"oee-..aIClSS1NCOPERAND£AJtOJt,e"
ElROIKESSAGES"".."57.."616l"..os.."EJUlDRNF.5SAGiOFJELDOYDfLOlfIHTlJUIAL OVDlFLOI'lADPlLJ!~ElPIL!NOTPOUNDlADPILEKID
TRSDOSOPERATINGSYSTEMUTrLITrESnooperatinlIyst_hIncontrol"hentheaessaleDOSREADYis.u.sphyedOQtheSCTeen.Thi,aodebhzltJatedauto_tieaUyonpowerupand&qu
LEVELtrDIStBASICandTRSDOSGENERALINTRODUCTIONWit.htheaddit.ionofyourTRS-IODiskOp..rUina:5yst...(c;all..dT1tSDOS) ,younowhavet.hrelldhtlnc;tye-trlliate
BACllJPBackupcopiesoneduket.tet.o _blankdiskette.Thesourcedrivewillberequllst.ed.Replywitha nlJlllbcrfro.0to3(Drive0istheclosestdrivlItotllAexpansioni
5"\111.crund.bpl.yacid.(-.elMlryonly)Dhphyall.allUTY1nASCIIDhplay.11.'1I0ryHEXtncT•••nt..-orrdi.pl.y1blockLoad.n.!JurpdTwithnnMNo~)displ.y..
di,kclolnttothllex-plnsioninterface.Itrequeststhed.i,k,u.na.',replywithanyna.,upto8hUer,.ThilnUlewillbeprinted.-*,/DDrrt.Finallyinputthe."Ur
POWERUPAHQOPERATING»ODESTh'DhltOperatin,Sy.te.'DdDISI:IASICarestoredontheSyst••IUshtt..ThisdlsketteishtlelledTRSDOSandMlJSTdweysbeindriveo(t
into..-oTT.A.tthilti••youlIU.t.pecifYthe.uiJruanuab.roffil..t.hatw111b.open(inus.)atthe...t.t.e.DISIBASICask.:HOWNA1ffFILES'a.spondwitbthe~nu-be
DISlETTECAREANDHANDLINGDiskettesaresimplysh.etsof.alneticrecordinilIaterial,peciallypTeparedfeTuseintheCOlIPuter'y,tell.Di,ketteaTeparticularlyvu
MEMORYSIZETRSDOSDlSIIASICfil..•.nlAM5.1lIAIoIAZ56bytebufferaostbere5lTTe4for15cbfUI,ud5_IUtrloYert!llc15paciforatotalofaboutZIObTtl5plrfile.1
Comments to this Manuals