home *** CD-ROM | disk | FTP | other *** search
- ..Doc. file for SPACE Z-systems RCP implant.
- ..3-24-86 by Carson Wilson
- .po 8
-
- Morσ Banτ fo≥ You≥ Buck
-
- A≤ ß flopp∙ disδ user¼ i⌠ seemeΣ sill∙ t∩ mσ tha⌠ thσ ámos⌠ ì
- frequentl∙ áuseΣ áutilit∙ áwa≤ lef⌠ ou⌠ áoµ á┌-systemsº ábuil⌠-iε ì
- functions« áTherefore¼ ╔ wrotσ thi≤ routinσ t∩ bσ implanteΣ áint∩ ì
- m∙ áRCP« áNow¼ áwheneve≥ á╔ áente≥ á"S<RETURN>"¼ á╔ áreceivσ ááaε ì
- instantaneou≤ árepor⌠ áoε thσ freσ spacσ oε whicheve≥ disδ á╔ áaφ ì
- currentl∙ áloggeΣ to« Iµ ╔ ente≥ "╙ D:<RETURN>ó (wherσ "Dó ái≤ áß ì
- lega∞ ádrivσ áletter)¼ á╔ receivσ ß repor⌠ oε thσ áspacσ áoε áthσ ì
- specifieΣ drive«
-
- Thesσ áreport≤ áarσ ásimila≥ t∩ thosσ ágenerateΣ áb∙ áCP/M'≤ ì
- transien⌠ á"STATó command« Iµ thσ drivσ querieΣ ha≤ no⌠ áye⌠ áno⌠ ì
- ye⌠ ábeeε used¼ thσ routinσ firs⌠ select≤ tha⌠ drivσ áanΣ ácheck≤ ì
- disδ áspacσ physically« Iµ thσ drivσ querieΣ ha≤ ábeeε áselected¼ ì
- theε thσ prograφ assume≤ tha⌠ thσ disδ iε tha⌠ drivσ ha≤ NO╘ beeε ì
- changeΣ sincσ thσ las⌠ warφ boot« Iµ i⌠ ha≤ beeε changeΣ áwithou⌠ ì
- ß áwarφ boot¼ thσ repor⌠ oµ disδ spacσ wil∞ bσ tha⌠ oµ áthσ álas⌠ ì
- disδ whicΦ wa≤ warφ booteΣ iε thσ selecteΣ drive.
-
- Sincσ á╔ als∩ implementeΣ ┌-systemsº residen⌠ filσ cop∙ áanΣ ì
- filσ áerasσ routine≤ iε m∙ RCP¼ ╔ addeΣ codσ t∩ makσ átheφ á"worδ ì
- harderó áb∙ displayinτ thσ remaininτ freσ spacσ oε áthσ áselecteΣ ì
- disδ áafte≥ eacΦ filσ cop∙ grou≡ oµ erasure≤ usinτ áthσ ábuil⌠-iε ì
- commands«
- Thσ ácodσ áconsist≤ áoµ 1⌐ ß shor⌠ áprocedurσ árigh⌠ ábeforσ ì
- "SPACEó á("crSPACE"⌐ t∩ executσ ß carriagσ returε anΣ álinσ áfeeΣ ì
- (thi≤ ácodσ ái≤ includeΣ iε thσ filσ RCPSPACE.AZM)╗ á2⌐ áß áshor⌠ ì
- procedurσ á("spaEXIT"⌐ righ⌠ beforσ m∙ RCP'≤ "EXITó procedurσ át∩ ì
- cal∞ m∙ SPAC┼ routinσ beforσ returninτ t∩ ZCPR╗ anΣ 3⌐ onσ changσ ì
- eacΦ áiε m∙ RCP'≤ "COPYó anΣ "ERASEó routines« Thσ codσ áfo≥ á(2⌐ ì
- anΣ (3⌐ appear≤ below.
-
-
- Herσ i≤ thσ routinσ ╔ includeΣ beforσ thσ EXI╘ procedure:
- ;
- spaEXIT║ ╗ m∙ routine
- call crSPACE ; show disk space first,
- ;
- ╗ origina∞ codσ begin≤ (includeΣ fo≥ clarity):
- ; EXIT TO ZCPR│
- ;
- EXIT:
- Z3RET EQU $+1 ; POINTER TO IN-THE-CODE MODIFICATION
- LD HL,0 ; RETURN ADDRESS
- JP (HL) ; GOTO ZCPR3
- ;
-
-
- .pa
- èHerσ i≤ thσ modificatioε t∩ thσ COP┘ procedurσ (origina∞ codσ ì
- includeΣ fo≥ clarity):
- ;
- COPY6:
- CALL LOGOLD ;GET USER
- LD DE,OLDFCB ;PT TO FCB
- LD C,16 ;CLOSE FILE
- CALL BDOS
- CALL LOGNEW ;GET USER
- LD DE,FCB1 ;PT TO FCB
- LD C,16 ;CLOSE FILE
- CALL BDOS
- CALL PRINT
- DB ' Don',('e'+80H)
- JP spaEXI╘ ╗ wa≤ "J╨ EXITó
- ╗ |
- |
- Thi≤ i≤ wherσ ╔ substituteΣ ß jum≡ t∩ spaEXI╘ iε thσ COP┘ ì
- procedure.
-
-
-
-
- Herσ i≤ thσ modificatioε t∩ thσ ER┴ procedurσ (origina∞ codσ ì
- includeΣ fo≥ clarity):
- ;
- ERA3:
- LD HL,(NXTFILE) ;HL PTS TO NEXT FILE
- LD A,(HL) ;GET CHAR
- OR A ;DONE?
- JP Z,spaEXI╘ ╗ wa≤ "J╨ EXIT"
- CALL CRLF ;NEW LINE
- BR ERA1
- ;
- ENDIF ;ERAON
- ;