home *** CD-ROM | disk | FTP | other *** search
- PURGE.DOC
-
- John S. Wilson
- Synapse Associates, Inc.,
- P.O. Box 410,
- Solomons, Maryland 20688
- (310) 326-4751
-
- Command Syntax
-
- PURGE d:filename.typ
-
-
- Background
-
- ╔ wrotσ PURG┼ a≤ ß utilit∙ fo≥ usσ witΦ Pascal/┌ anΣ othe≥ ì
- compilers« I⌠ wil∞ erasσ thσ numerou≤ file≤ whicΦ arσ n∩ longe≥ ì
- needeΣ afte≥ ß successfu∞ compilation« PURG┼ takes¼ a≤ aε ì
- argument¼ ß filσ namσ froφ thσ CP/═ commanΣ linσ anΣ attempt≤ t∩ ì
- deletσ certaiε pre-designateΣ file≤ whicΦ havσ thσ samσ roo⌠ namσ ì
- a≤ thσ argumen⌠ file« PURG┼ check≤ t∩ seσ tha⌠ thσ argumen⌠ filσ ì
- exist≤ oε thσ nameΣ o≥ defaul⌠ disδ anΣ terminate≤ witΦ aε erro≥ ì
- messagσ bu⌠ n∩ othe≥ actioε iµ thi≤ filσ i≤ no⌠ found« A≤ ì
- implieΣ b∙ thσ foregoing¼ ß drivσ designatioε i≤ optiona∞ bu⌠ i≤ ì
- accepteΣ anΣ honoreΣ iµ i⌠ supplied« PURG┼ neve≥ erase≤ thσ CO═ ì
- filσ no≥ thσ PA╙ filσ containinτ thσ sourcσ code« However¼ ì
- unles≤ instructeΣ no⌠ to¼ i⌠ wil∞ erasσ thσ SR├ file«
-
-
- Files Erased
-
- A. File Extension Types Always Erased
-
- .HEX
- .BAK
- .TYP
- .REL
- .SYM
- .CRF
- .PRN
- .LST
-
- B. File Extension Types Erased Conditionally
-
- .SRC
-
- C. File Extension Types Always Saved
-
- .PAS
- .FOR
- .ASM
- .MAC
- .COM
- .COB
- etc.,è
- Iε actuality¼ al∞ filσ extensioε type≤ no⌠ nameΣ iε eithe≥ ì
- A« o≥ B« arσ neve≥ erased.
-
-
- Erasing (and not erasing) .SRC files.
-
- ┴ filσ oµ typσ .SR├ ma∙ bσ saveΣ b∙ enterinτ .SR├ a≤ thσ ì
- file type iε thσ filσ namσ supplieΣ a≤ aε argumen⌠ t∩ thσ ì
- program« Iµ thσ argumen⌠ filσ namσ doe≤ no⌠ havσ .SR├ a≤ it≤ ì
- typσ anΣ ß .SR├ filσ i≤ founΣ witΦ thσ samσ roo⌠ name¼ thσ .SR├ ì
- filσ wil∞ bσ deleted.
-
- For example
-
- PURGE NERD.SRC
-
- will NOT erase the file NERD.SRC but
-
- PURGE NERD.PAS
-
- will erase NERD.SRC.
-
-
- Versions
-
- Thσ sourcσ codσ anΣ .CO═ filσ supplieΣ t∩ thσ Pascal/┌ ì
- User'≤ Grou≡ i≤ conditioneΣ t∩ ruε oε ß Heath-1╣ termina∞ anΣ t∩ ì
- d∩ ß warφ boo⌠ oε exi⌠ froφ thσ program« Equatinτ (EQU⌐ thσ ì
- constan⌠ SETH1╣ t∩ ░ iε thσ sourcσ filσ anΣ reassemblinτ wil∞ ì
- forcσ ß conditiona∞ assembl∙ withou⌠ thσ specia∞ codσ fo≥ thσ ì
- HeatΦ terminal« User≤ witΦ terminal≤ othe≥ thaε thσ H/Z19(89,90⌐ ì
- ma∙ codσ thei≥ terminal≤' screeε clear¼ reversσ vide∩ oε anΣ ofµ ì
- sequence≤ iε thσ threσ message≤ WIPEM¼ RVONM¼ anΣ RVOFF═ whicΦ ì
- arσ t∩ bσ founΣ nea≥ thσ enΣ oµ thσ sourcσ file«
-
- Similarly¼ settinτ thσ constan⌠ SETWB╘ t∩ ░ anΣ reassemblinτ ì
- wil∞ forcσ thσ prograφ t∩ exi⌠ withou⌠ doinτ ß warφ boot« Thσ ì
- warφ boo⌠ oε exi⌠ wa≤ includeΣ t∩ forcσ Intersystem≤ Cachσ Bio≤ ì
- t∩ writσ thσ tracδ buffe≥ bacδ t∩ disk«
-
-
- Assembler
-
- PURG┼ wa≤ assembleΣ witΦ Microsoft'≤ Macro-8░ anΣ linkeΣ ì
- witΦ Link-8░ bu⌠ sincσ i⌠ contain≤ n∩ macro≤ o≥ othe≥ specializeΣ ì
- code¼ i⌠ ma∙ bσ assembleΣ witΦ an∙ assemble≥ capablσ oµ handlinτ ì
- Ziloτ Z8░ mnemonics« I⌠ wa≤ no⌠ writteε iε 808░ mnemonic≤ oε thσ ì
- assumptioε tha⌠ user≤ oµ Pascal/· arσ goinτ t∩ havσ ß Z8░ CP╒ ì
- machine«
-
-
- Operationa∞ Example
-
- Yo⌡ havσ successfull∙ compileΣ anΣ linkeΣ ß Pascal/┌ prograφ ìènameΣ FARKLE.PAS« Thi≤ mean≤ that¼ a⌠ minimuφ yo⌡ havσ thσ ì
- followinτ file≤ oε ß disk:
-
- FARKLE.PAS
- FARKLE.SRC
- FARKLE.REL
- FARKLE.COM
-
- most likely also
-
- FARKLE.BAK
-
- anΣ possibl∙ also
-
- FARKLE.TYP
- FARKLE.SYM
-
- Entering
-
- PURGE FARKLE.PAS
-
- will delete all of the above except FARKLE.PAS and FARKLE.COM.
-
- Iµ yo⌡ arσ workinτ witΦ Intersystem≤ ASMB╠ t∩ develo≡ anì
- externa∞ routine fo≥ usσ witΦ Pascal/┌ anΣ thu≤ havσ a file typeΣ ì
- SR├ whicΦ yo⌡ wisΦ t∩ save¼ typσ iε
-
- PURGE SPARKLE.SRC
-
- after you have loaded the relocatable into your private library.
-
-
- Ambiguous File Names
-
- ╔ haΣ no⌠ reall∙ planneΣ oε PURG┼ dealinτ witΦ ambiguou≤ ì
- filσ name≤ anΣ s∩ ╔ didn'⌠ makσ i⌠ smar⌠ enougΦ t∩ handlσ thi≤ ì
- situation« PURG┼ wil∞ usuall∙ worδ properl∙ oε thσ filσ type≤ ì
- fo≥ onσ oµ thσ matchinτ filσ name≤ bu⌠ no⌠ ac⌠ oε an∙ othe≥ ì
- matchinτ file« ì
-
- Thσ prograφ doe≤ handlσ ambiguou≤ filσ extension≤ properl∙ ì
- so that a user may enter
-
- PURGE FARKLE.*
- instead of
-
- PURGE FARKLE.PAS
-
- and get the same results.
-
-
- Erro≥ Recovery
-
- Oµ course¼ onσ caε alway≤ usσ thσ prograφ UNER┴, whicΦ i≤ ì
- submitteΣ t∩ thσ user'≤ grou≡ alonτ witΦ PURGE¼ t∩ recove≥ (un-ìèdelete⌐ an∙ file≤ whicΦ arσ PURGE'eΣ iε error.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-