home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
ZSYS
/
SIMTEL20
/
ZCPR3
/
Z3RES.HLP
< prev
next >
Wrap
Text File
|
2000-06-30
|
8KB
|
220 lines
ZCPR3 Resident Commands
DIR Directory Display
ERA Erase Files
GET Load File into Memory
GO Re-execute Last Transient
JUMP Branch to Memory Address
NOTE Comment
REN Rename File
SAVE Write Memory Image to Disk
TYPE and LIST Commands
The DU and DIR Forms for Changing Disk and User
:ZCPR3 Resident Commands
Likσá thσ CP/═ 2.▓ CCP¼á ZCPR│ contain≤á somσá command≤ ì
withiε itself«á I⌠ contain≤ al∞ oµ thσ CC╨ command≤ (excep⌠ ì
USER¼ whicΦ isn'⌠ needeΣ anymore⌐ anΣ ß fe≈ more¼ bu⌠ al∞ oµ ì
thσá ZCPR│á residen⌠á command≤ arσá differen⌠á witΦá logica∞ ì
extension≤ t∩ thσ CC╨ commands.
Thσá followinτá discussioεá applie≤ t∩ thσ al∞á oµá thσ ì
command≤á iε thσ ZCPR│ CommanΣ Processo≥á Replacement«á Thσ ì
particula≥á selectioε oµ command≤ availablσ a⌠ an∙ onσá timσ ì
i≤á installation-dependent«á Thσ recommendeΣá configuratioε ì
wherσá al∞ oµ thσ residen⌠ command≤ arσ enableΣ witΦ al∞á oµ ì
thei≥ option≤ turneΣ oε i≤ covereΣ here.
Iε thσ followinτ discussion¼á "afnó refer≤ t∩ thσá CP/═ ì
ambiguou≤áá filσá namσá forφá (containinτá "?óá and/o≥áá "*ó ì
characters⌐á anΣá "ufnó refer≤ t∩ thσ CP/═ unambiguou≤á filσ ì
namσ forφ (doe≤ no⌠ contaiε thσ ambiguou≤ characters).
Thσ DU║á o≥ DIR║á prefixe≤ ma∙ bσ useΣ wheneve≥ ßá filσ ì
namσá i≤á used«á B∙á attachinτ thi≤á prefix¼á thσá filσá i≤ ì
identifieΣá t∩á residσ iε thσ indicateΣ director∙ (disδá anΣ ì
use≥á area)«á T∩á revie≈ thσ DU║á form¼á i⌠á i≤á ßá logica∞ ì
extensioεá t∩ thσ D║á prefi° unde≥ conventiona∞á CP/M«á Thσ ì
use≥ numbe≥ i≤ added¼ however« Thσ DIR║ forφ i≤ ß mnemonic¼ ì
likσ PASCAL¼á whicΦ i≤ relateΣ t∩ ß disδ anΣ use≥ areß b∙ aε ì
associatioε iε thσ NameΣ Directory.
Iµá ß prefi° oµ D║á i≤ used¼á i⌠ refer≤ t∩ thσá curren⌠ ì
use≥ areß oε thσ indicateΣ disk« Iµ ß prefi° oµ U║ i≤ used¼ ì
i⌠á refer≤á t∩ thσ indicateΣ use≥ areß oε thσ curren⌠á disk« ì
DU:¼á oµá course¼á refer≤ t∩ thσ indicateΣ use≥ areß oεá thσ ì
indicateΣ disk.
Fo≥ example¼ iµ thσ use≥ i≤ loggeΣ int∩ Disδ B¼ Use≥ 1¼ ì
theε thσ followinτ i≤ true:
A:MYFILE.TX╘ -- refer≤ t∩ MYFILE.TX╘ oε Disδ A¼ Use≥ 1
4:MYFILE.TXT -- refers to MYFILE.TXT on Disk B, User 4
A4:MYFILE.TXT -- refers to MYFILE.TXT on Disk A, User 4
MYFILE.TXT -- refers to MYFILE.TXT on Disk B, User 1
:The DIR Command
Thσá DI╥á commanΣ i≤ useΣ t∩ displa∙ thσ name≤á oµá thσ ì
file≤ iε thσ curren⌠ directory« I⌠ ha≤ threσ basiπ form≤ --
Display $DIR File Names DIR DU:afn
Display $SYS File Names DIR DU:afn S
Display All File Names DIR DU:afn A
Assumσá thσá use≥á i≤á loggeΣá int∩á Disδá B¼á Use≥á 1« ì
Examples:
DIR 4: <-- Gives all non-System files
on B4
DIR 4: A <-- Gives all files on B4
DIR A4:*.HLP A <-- Gives all files of type
HLP on A4
DIR *.* S <-- Gives all System files on B1
:The ERA Command
Thσ ER┴ commanΣ i≤ useΣ t∩ erasσ files« I⌠ i≤ no⌠ ablσ ì
t∩ erasσ Read/Onl∙ files¼ bu⌠ i⌠ caε erasσ Systeφ files« I⌠ ì
ha≤ tw∩ basiπ form≤ --
Erase Specified Files ERA DU:afn
Erase with Verify ERA DU:afn V
ER┴á print≤ thσ name≤ oµ thσ file≤ i⌠ erases«á Iµá yo⌡ ì
havσ selecteΣ thσ Verif∙ option¼á i⌠ als∩ prompt≤ yo⌡ beforσ ì
i⌠ erase≤ theφ (o≥ aborts¼ iµ yo⌡ desire).
:The GET Command
GE╘á i≤ useΣ t∩ loaΣ ß filσ anywherσ int∩á memory«á I⌠ ì
require≤áá tw∩áá arguments║áá ßá numbe≥á (assumeΣáá t∩áá bσ ì
hexadecimal⌐á oµá thσ 256-bytσ pagσ iε memor∙á a⌠á whicΦá t∩ ì
star⌠ thσ loaΣ anΣ thσ namσ oµ thσ file.
Load File Into Memory GET adr DU:ufn
Notσ tha⌠ thi≤ "adró i≤ ß pagσ number¼á s∩ adr=▒ refer≤ ì
t∩ 100H¼ adr=2Σ refer≤ t∩ 2D00H¼ etc.
:The GO Command
è Thσá G╧á commanΣ i≤ useΣ t∩ reexecutσ thσ las⌠á prograφ ì
loadeΣ int∩ thσ TP┴ withou⌠ havinτ t∩ reloaΣ it.
Reexecute Last Transient GO params
Without Reloading It
Thσá parameter≤á arσá parseΣá a≤á witΦá an∙áá transien⌠ ì
command¼á anΣá thσ appropriatσ buffer≤ arσ loadeΣ b∙á ZCPR3« ì
A≤ usual¼á ZCPR│ "callsó thσ prograφ loadeΣ a⌠ 100╚ afte≥ i⌠ ì
ha≤ finisheΣ witΦ thσ parsinτ anΣ buffe≥ loading.
:The JUMP Command
JUM╨ i≤ useΣ t∩ brancΦ t∩ anywherσ iε memory« I⌠ take≤ ì
onl∙á onσ argument¼á whicΦ i≤ thσ addres≤ a⌠ whicΦ t∩á jump« ì
Thi≤á addres≤ caε bσ t∩ an∙ bytσ iε memor∙ (i⌠ i≤ ß ful∞ 16-ì
bi⌠ address)¼ anΣ i⌠ i≤ assumeΣ t∩ bσ ß hexadecima∞ number.
Call Subroutine Anywhere in JUMP adr
Memory
:The NOTE Command
NOT┼á i≤ useΣ t∩ expres≤ comments«á ┴á linσá beginninτ ì
witΦ ß semicoloε (;⌐ i≤ ß comment¼á anΣ ß commanΣ whosσ verΓ ì
i≤á NOT┼ (therσ ma∙ bσ man∙ command≤ oε onσ line¼á separateΣ ì
by semicolons) is a comment.
Comment NOTE anytext
:The REN Command
Thσ RE╬ commanΣ i≤ useΣ t∩ changσ thσ namσ oµ onσá filσ ì
t∩á another«á Again¼á i⌠á caεá no⌠á changσ thσá namσá oµá ß ì
Read/Onl∙ file« I⌠ ha≤ onl∙ onσ basiπ forφ --
Renamσ Filσ RE╬ DU:ufn1=ufn▓
Likσá ERA¼á RE╬ caε "seeó Systeφ file≤ a≤ wel∞á a≤á DI╥ ì
files.
Iµá ufn▒á alread∙ exists¼á RE╬ wil∞ asδ thσ use≥ iµá hσ ì
want≤ t∩ Erasσ i⌠ (witΦ thσ promp⌠ "Erasσ ufn1?").
:The SAVE Command
Thσá SAV┼ commanΣ i≤ useΣ t∩ savσ thσ content≤á oµá thσ ì
TP┴á ont∩á disδ a≤ ß file«á I⌠ accept≤á tw∩á arguments║á ß ì
numbe≥á anΣá ß filσ name«á Thσ filσ namσ ma∙ bσá optionall∙ ì
followeΣá b∙ thσ lette≥ "Só t∩ indicatσ tha⌠ thσá numbe≥á i≤ ì
thσ numbe≥ oµ 128-bytσ Sector≤ (Blocks⌐ t∩ bσ saved¼ and¼ iµ ì
thi≤á optioε lette≥ i≤ omitted¼á thσ numbe≥ i≤ assumeΣ t∩ bσ ì
thσ numbe≥ oµ 256-bytσ Page≤ t∩ bσ saved«á Thσ SAV┼ commanΣ ì
ha≤ tw∩ basiπ form≤ --
è Save Memory into File SAVE n DU:ufn
Save Memory into File SAVE n DU:ufn S
and Specify Number of
Blocks
Iµ thσ number¼á n¼ i≤ followeΣ b∙ thσ suffi° "H"¼ a≤ iε ì
"FHóá o≥ "2DH"¼á theε ε i≤ takeε t∩ bσ ß hexadecima∞á value« ì
Iµá n∩ suffi° i≤ given¼á ε i≤ assumeΣ t∩ bσá decimal«á Thi≤ ì
hexadecima∞á optioε eliminate≤ thσ neeΣ fo≥ conversioεá froφ ì
thσ value≤ supplieΣ b∙ debuggers¼ likσ DDT.
Iµ thσ indicateΣ filσ alread∙ exists¼ SAV┼ wil∞ asδ thσ ì
use≥ iµ hσ wishe≤ t∩ erasσ i⌠ witΦ thσ promp⌠ "Erasσ ufn?".
:The TYPE and LIST Commands
TYP┼ anΣ LIS╘ arσ useΣ t∩ displa∙ file≤ oε thσá consolσ ì
anΣ printer¼á resp«á TYP┼ page≤ b∙ default¼á stoppinτ afte≥ ì
thσá screeε i≤ filled«á Thesσ tw∩ command≤ havσ threσ basiπ ì
form≤ --
Print File on Console TYPE DU:ufn P
Without Paging
Print File on Console TYPE DU:ufn
With Paging
Print File on Printer LIST DU:ufn
The file may be either System or DIR.
:The DU and DIR Forms for Changing Disk and User
Thσá D╒á forφá standinτ alonσ i≤ useΣá t∩á loτá int∩á ß ì
differen⌠á directory«á Therσ arσ threσ basiπ form≤ oµá thi≤ ì
commanΣ --
Change Disk D:
Change User U:
Change Disk and User at DU:
Same Time
Thσá DI╥á forφ standinτ alonσ ma∙ als∩ bσ useΣá t∩á loτ ì
into a different directory. The format is:
DIR:
like
TEXT:
NameΣá directorie≤ havσ password≤ associateΣ witΦ them¼ ì
s∩ iµ an∙ DIR║ director∙ referencσ ha≤ ß non-blanδ password¼ ì
thσ use≥ wil∞ bσ prompteΣ fo≥ thσ password«á Thσá director∙ ì
referencσá wil∞á bσá rese⌠ t∩ hi≤ curren⌠ director∙á iµá thσ ì
password is invalid.
Thσá DU║á forφ ma∙ bσ disableΣ unde≥á ZCPR3¼á anΣá thi≤ ì
leave≤ onl∙ thσ DIR║á form«á Usinτ thσ DIR║ form¼ director∙ ì
access can be controlled:
1. only disk/user areas named can be referenced
2. password protection is provided