home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
cpm
/
utils
/
dirutl
/
d-v100.lbr
/
D.DQC
/
D.DOC
Wrap
Text File
|
1986-01-19
|
8KB
|
205 lines
D -- A Z80 Directory Program
─ i≤ ß director∙ prograφ writteε fo≥ CP/═ 2.° anΣ above« I⌠ ì
i≤á designeΣ t∩ givσ mos⌠ oµ thσ informatioε requireΣ b∙ ßá user¼ ì
ye⌠ stil∞ bσ compact« I⌠ wa≤ originall∙ writteε fo≥ CP/═ 3.░ bu⌠ ì
ha≤ beeε revampeΣ t∩ worδ fo≥ thσ 2.° versions¼ also.
─á support≤á man∙ option≤ t∩ hel≡ thσ use≥ obtaiεá jus⌠á thσ ì
informatioε s/hσ desires« I⌠ wil∞ takσ ß littlσ timσ t∩ ge⌠ useΣ ì
t∩á thesσ options¼á bu⌠ the∙ wil∞ becomσ easie≥ t∩ usσ anΣá their ì
value and power will become more obvious as time goes on.
A summary of the options for D follows:
a -- get only archived files
b -- include system files
c -- comprehensive -- complete fcb info
f -- suppress filesize
g -- get from user # nn
n -- no form feed to printer
p -- going to the printer
r -- get only read-only files
s -- get only system files
u -- include all users
w -- get only r/w files
x -- do not sort the directory
z -- get only non-archived files
Options are specified with a left bracket:
d b:[a (or d b:[a] if you prefer) gets all the
archived files from the current user #
on drive b:.
d e:[g4 gets all the non-system files from user 4
on e:.
d [sr gets all the read-only system files from
the current user of the default disk.
d foo.* gets all non-system files named 'foo' from
the current user of the default disk.
.paè Option Explanations
a -- get only archived files. This filters for files with the
Archive bit set (The Archive attribute is a CP/M 3.0
feature.) See the z option.
b -- include system files. Turns off the system file filter.
Allows BOTH system and non-system files to be displayed.
See the s option.
c -- comprehensive. Display the complete directory entry.
All matching directory entries are shown in their entirety.
Option≤ no⌠ compatablσ witΦ thσ π optioε are║ f,x. The
directory is unsorted for this option.
f -- suppress filesize. Suppress the file size information.
Results in a more compact display. Usually not used.
g -- get from user # nn. Specifies which user area to
interrogate. Will not interrogate user 32. Format is
gn or gnn: g2, g15, etc. Incompatable with the u option.
A valuable option if you use user areas.
n -- no form feed to printer. If the p option is specified,
the leading form feed is suppressed.
p -- going to the printer. Sends the directory to the printer.
See the n option.
r -- get only read-only files. This filters for files that have
the RO attribute set. See the w option.
≤ -- ge⌠ onl∙ systeφ files« Thi≤ filter≤ ou⌠ thσ non-system
files and allows only system files to be displayed. See
the b option.
u -- include all users. Searches all user areas for files.
Overrides the g option.
w -- get only r/w files. This filters for files that are not
read-only. See the r option.
x -- do not sort the directory. The file display is not sorted.
z -- get only non-archived files. This filters for files that
do not have the Archive bit set. See option a.
.paè Features
Thσá director∙ displa∙ i≤ fairl∙ obvious¼á bu⌠ ßá fe≈á item≤ ì
need explanation:
The default filter is "no system files".
Sort file entries is also a default. Files, whether
sorted or unsorted are displayed in a columnar format.
Director∙ entrie≤ displayeΣ iε aε alternatσ (dim)
format are system entries.
The letter designating the file size can be 'k'
or 'r'. The units are k (1024 bytes), but the
'r' is used to signify that the file is read-only.
The 'k' and the 'r' can also be displayed as a
'K' and an 'R'. A capital 'K' or 'R' means that
the file has the Archive bit set.
Alphabetic characters in a directory name are
reverse-cased -- All caps become lower-case and
all lower-case become caps.
If a directory entry has a non-printable character
in it, that character is replaced by a '?'.
If the c option is invoked, any space characters
with the high-bit set (i.e. an attribute bit) are
replaced with an alternate format (dim) '*'.
Special Considerations
Iµ yo⌡ owε CP/═ 3.0¼ yo⌡ ma∙ havσ noticeΣ tha⌠ single-lette≥ ì
prograφá name≤á followeΣ b∙ thσ namσ oµ ß filσá oεá anothe≥á disδ ì
confuse≤ thσ CCP« S∩ iµ yo⌡ typσ (froφ thσ prompt⌐ A:>Σ b:*.bar¼ ì
thσ CC╨ can'⌠ finΣ D«á Thi≤ i≤ ß buτ iε thσ CCP«á ╔ fixeΣ i⌠ iε ì
mine¼á bu⌠á thσ solutioε i≤ to∩ comple° fo≥ ß simplσ fix¼á anΣá ╔ ì
woulΣ havσ troublσ gettinτ arounΣ DR╔ iε providinτ ß lega∞ fi° t∩ ì
it¼á s∩ ╔ recommenΣ renaminτ single-lette≥ program≤ runninτ unde≥ ì
CP/M 3.0 to something else -- like DD.COM for D.COM.
Bσá cautiou≤ wheε thσ disδ iε questioε i≤ se⌠ t∩á read-only« ì
Incredibl∙ spuriou≤ result≤ caε occur¼ especiall∙ unde≥ CP/═ 3.0« ì
╔ coulΣ havσ rese⌠ thσ disδ iµ i⌠ wa≤ read-only¼á bu⌠ fo≥ variou≤ ì
reason≤á ╔ diΣ not«á S∩ wheε yo⌡ seσ thσ -- Disδ i≤ ReaΣ Onl∙ -- ì
message, treat the D results with a grain of salt.
.paè CP/═á 3.░á support≤á disδá labels«á Thesσá arσá actuall∙á ß ì
director∙ entr∙ unde≥ use≥ 32«á ─ look≤ fo≥ ß use≥ 3▓ entry¼ anΣ ì
iµá i⌠ find≤ one¼á i⌠ i≤ listeΣ a≤ thσ disδ namσ jus⌠á afte≥á thσ ì
user/drivσ callout«á Otherwise¼ use≥ 3▓ i≤ no⌠ availablσ unde≥ ─ ì
iε an∙ othe≥ circumstatnces«á Iµ user≤ oµ CP/═ 2.° desirσ label≤ ì
oε thei≥ disks¼ the∙ mus⌠ finΣ ß wa∙ t∩ instal∞ ß director∙ labe∞ ì
entr∙á iεá use≥ 32«á An∙ disδ utility¼á sucΦ a≤ DU╒ o≥á POWER(r⌐ ì
coulΣá bσá useΣ t∩ d∩ thi≤ b∙ modifyinτ ß 0δ director∙á entr∙á t∩ ì
user 32. Please!! Experienced users only should try this!
Installation
─á use≤ aε alternatσ forma⌠ fo≥ somσ displays«á Usuall∙ thσ ì
alternatσ forma⌠ i≤ diφ video«á Oµ course¼á somσ terminal≤ don'⌠ ì
suppor⌠ diφ video¼á bu⌠ d∩ suppor⌠ reversσ video¼á fo≥á instance« ì
Iεá thi≤ case¼á thσ alternatσ forma⌠ woulΣ bσ reversσá video«á ─ ì
come≤ witΦ diφ vide∩ se⌠ fo≥ thσ TeleVide∩ 925/950¼á o≥ an∙ othe≥ ì
termina∞ tha⌠ use≤ thσ samσ codes¼ oµ course« T∩ instal∞ anothe≥ ì
codσá strinτ se⌠ fo≥ aε alternatσ forma⌠ fo≥ you≥ system¼á i⌠á i≤ ì
necessar∙á t∩ alte≥ D.CO═ witΦ ß debugge≥ sucΦ a≤ DD╘ o≥á SI─á o≥ ì
ZSID«
Load D.COM under your debugger: DDT D.COM
The string to change TO the alternate format is located at 118.
Thσ strinτ t∩ changσ FRO═ thσ alternatσ forma⌠ bacδ t∩ thσ norma∞ ì
format is located at 128.
Do a D100 and the setup will be obvious.
Changσá thσ string≤ a≤ requireΣ t∩ suppor⌠ aε alternatσ forma⌠ oε ì
you≥ terminal«á Terminatσ thσ string≤ witΦ ß NUL╠ (00)« Iµ you≥ ì
termina∞á doesn'⌠ suppor⌠ aε alternatσ format¼á NUL╠ thσá string≤ ì
out entirely (not the alpha locator strings, though).
After changing the strings, SAVE the new file to your disk:
CP/M 2.x is SAVE 14 D.COM
CP/M 3.x users will save from 100 to e7f to DD.COM
The actual method of saving is system/debugger dependant.
.paè Legal Mumbo-Jumbo
D.CO═ i≤ Copyrigh⌠ (c⌐ 198┤ Sourcσ Maverick« Yo⌡ ma∙ usσ ì
D.CO═á fo≥á you≥á owε purpose≤ othe≥ thaε sellinτá it«á Yo⌡á ma∙ ì
distributσ i⌠ a≤ yo⌡ wish¼á a≤ lonτ a≤ yo⌡ d∩ no⌠ chargσ fo≥á thσ ì
program« D.CO═ ma∙ bσ distributeΣ oε ß disδ witΦ othe≥ programs¼ ì
fo≥á whicΦ therσ i≤ ß cop∙ chargσ ONL┘ associateΣ witΦ thσá disk« ì
Thσ cop∙ chargσ ma∙ no⌠ exceeΣ U╙ $2.0░ iε 198┤ dollars¼ however« ì
Thσá autho≥á assume≤á n∩á liabilit∙ whatsoeve≥á witΦá respec⌠á t∩ ì
anothe≥ party'≤ usagσ oµ D.COM¼ you≥ acceptancσ oµ thi≤ statemen⌠ ì
beinτ ß prerequisitσ t∩ saiΣ party'≤ usσ oµ thσ program«á (Afte≥ ì
all¼ yo⌡ go⌠ i⌠ fo≥ free.)
Hank Blake
Source Maverick
San Diego, Ca.