R P L -- Replace Copy Version 1.0 RPÌ - Replacå Copù Versioî 1.° Holmeó Compleaô Computing Richarä A® Holmes 484µ Saî Sebastiaî Avenue Laó Vegas¬ NÖ 8912± Februarù 12¬ 1987 Thió prograí ió iî thå publiã domain®  Permissioî ió herebù granteä foò thå non-commerciaì uså oæ thió program® Nï guaranteå oæ suitabilitù ió made. Introduction ------------ RPÌ  ió á Z8° CP/Í 2.² prograí useä tï copù disë files®  Iô caî perforí thå basiã functioî oæ PIP® Therå arå howeveò severaì differences®  Iî additioî tï noô acceptinç PIP'ó switches¬ theså majoò differenceó exist: a® Iæ thå destinatioî filå alreadù exists¬ iô ió overwritteî iî place®  Thå filå ió noô firsô copieä anä theî renamed® Iæ thå ne÷ versioî oæ thå filå ió longeò thaî thå olä one¬ morå spacå ió allocateä  anä thå wholå filå ió copied®  Iæ thå ne÷ versioî  oæ thå filå ió shorteò thaî thå olä one¬  thå extrá disë sectoró arå noô deallocated®  Theù exisô aó unuseä sectoró oî thå enä oæ thå file. b®  Beforå  RPÌ allocateó ne÷ spacå oî thå  disk¬  iô  firsô createó á temporarù filå oæ (nominally© 4K® Thió spacå presumablù ió  nexô tï thå directory®  Theî thå ne÷ spacå ió allocateä  foò thå  filå copù anä thå temporarù filå ió deleted®  Thus¬  iæ thå spacå nexô tï thå directorù ió noô allocateä beforå thå copù  waó performed¬ iô remainó unallocateä afteò thå copy. c®  RPÌ caî handlå useò numberó oæ thå forí duº  wherå "d¢ ió  aî  optionaì  disë  namå anä "u¢ ió  thå  useò  number®  Foò example¬  anù  oæ thå followinç arå acceptablå aó parô oæ  eitheò thå sourcå oò thå destinatioî filå specification. A0º 3Bº E14º 5º C: Whù Uså It? ----------- Therå  arå severaì caseó wherå RPÌ ió preferablå  oveò  PIP® Thå firsô ió wheî thå destinatioî disë doeó noô havå spacå foò aî extrá  copù oæ thå file®  Normallù yoõ woulä havå tï deletå  thå filå  froí thå disë beforå copyinç iô witè PIP®  RPÌ wilì simplù overwritå thå filå sï therå ió nï neeä tï deletå iô first. Š 1 R P L -- Replace Copy Version 1.0 Thå seconä caså ió wherå yoõ wanô tï uså useò numberó oî thå sourcå anä thå destinatioî filå specifications®  RPÌ caî copù tï oò froí anù useò number. Thå  maiî  reasoî É wrotå iô follows®  Iô haó tï  dï  witè runninç  ofæ oæ floppieó anä keepinç spacå opeî aô thå  beginninç oæ thå Drivå Á disë foò SUBMIT'ó $$$.SUÂ file® Leô må explain. É  ruî  oî  IMSAI'ó witè Z8°  cpus¬  floppieó  anä  ramdisk® Wheneveò possible¬  É loaä uð ramdisë (drivå E:© anä makå iô  thå defaulô drive®  É stilì warí booô froí thå floppy® É alsï writå thå  SUBMIÔ workinç filå tï drivå A®  É trù tï carefullù laù ouô thå systeí floppù disë iî Aº tï optimizå filå access® Thaô is¬ É keeð somå spacå freå nexô tï thå directorù (foò $$$.SUB© anä theî comå thå systeí utilities¬  witè thå mosô frequentlù useä nearesô thå directory. Wheneveò É wanô tï updatå á filå oî thió systeí disk¬  É  dï noô  wanô thå spacå nexô tï thå directorù tï bå  allocated®  Thå fileó  oî  thió  disë arå usuallù invarianô iî  size®  Theù  arå usuallù  replaceä  bù  á  differenô  configuratioî  oæ  thå  samå program®  Usuallù  sucè  fileó  wilì fiô exactlù  oveò  thå  olä version®  Wheî  thå ne÷ versioî oæ thå filå ió larger¬  É  don'ô wanô  thå  extrá  spacå tï bå allocateä nexô  tï  thå  directory® Thereforå  RPÌ createó á temporarù filå whicè "covers¢ thió spacå oî  disk®  Iô theî copieó thå ne÷ sectoró tï thå  disë  (fartheò awaù froí thå directory© anä appendó theí tï thå olä file®  Theî thå  temporarù  filå  ió deleted¬  makinç thå spacå nexô  tï  thå directorù availablå again. Usage ------ RPÌ  ió executeä witè á commanä thaô lookó likå á simplå PIÐ command® A¾ RPÌ out=in wherå "out¢ ió thå destinatioî filå specificatoî anä "in¢ ió  thå sourcå filå specification® Thå filå specificationó maù includå á drive¬ useò number,filenamå anä extension® Foò example, A¾ RPÌ XYZ.ABC=A7:FOO wilì  copù  FOÏ froí useò · oî drivå Á tï XYZ.ABÃ iî thå  currenô useò  areá oî thå defaulô drive®  Iæ thå filenamå anä  extensioî arå omitteä froí thå destinatioî filespec¬  theî thå filenamå anä extensioî froí thå sourcå filespeã arå used® Foò example, A¾ RPÌ E:=B:FOO.BAZ copieó FOO.BAÚ froí drivå Bº tï E:. Wildcarä  characteró  (ª anä ?© arå alloweä  iî  thå  sourcå filenamå  and/oò  extensioî  witè  thå  expecteä  results®   Foò Š 2 R P L -- Replace Copy Version 1.0 example, A¾ RPÌ B:=E:*.COM copieó thå .COÍ fileó froí Eº tï B:. Followinç  thå filå specó maù bå á specificatioî oæ ho÷ mucè spacå tï reservå beforå allocatinç spacå tï thå copieä file® Thå forí ió A¾ RPÌ out=iî $nnk wherå "nn¢ ió á onå oò twï digiô decimaì numbeò iî thå rangå ° tï 32® Foò example, A¾ RPÌ FOO=BAÚ $8K specifieó  reservinç 8Ë oæ disë spacå beforå allocatinç ne÷  sec- toró tï FOO® Bù default¬ 4Ë ió reserved. Installatioî Procedures ----------------------- Thió prograí ió distributeä iî RPL.LBR® Thå fileó includeä are: RPL.BLË F8° Commoî blocë declarations RPL.DCÌ F8° declarationó foò RPL.BLK RPL.DOÃ Thió documentatioî iî printablå form RPL.FOÒ F8° subroutines RPL.OBÊ RPL.COM RPL.REÌ Microsofô REÌ filå foò RPL.FOR RPL.SUÂ SUBMIÔ filå foò workinç witè RPL.FOR RPL.WÓ Thió documentatioî iî WordStaò format RS.SUÂ SUBMIÔ filå foò workinç witè RPLSUBS.MAC RPLSUBS.MAÃ M8° subroutineó anä maiî program RPLSUBS.REÌ Microsofô REÌ filå foò RPLSUBS.MAC Iæ yoõ recompile/assemble¬ bå carefuì oæ thå loaä order® Seå thå .SUÂ fileó foò thå propeò sequence. Notå  thaô thå prograí ió 8Ë long¬  buô expectó therå tï  bå contiguouó memorù uð tï abouô 30K®  Iô doeó noô checë foò  this¬ jusô useó it. Therå  arå  somå  LDIÒ instructionó anä  relativå  jumpó  iî RPLSUBS.MAC®  Thió  meanó  yoõ musô bå runninç á Z8° machinå  oò changå thå sourcå code® If you find the program useful, feel free to send $5.00 to Richard A. Holmes 4845 San Sebastian Avenue Las Vegas, NV 89121 3