home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
CMDS
/
dmode_25.lhz
/
Dmode.doc
< prev
next >
Wrap
Text File
|
2005-10-13
|
3KB
|
60 lines
DMODE - Manipulate RBF device parameters on the options area of a
device descriptor.
Syntax : dmode <RBF descriptor> [<RBF parameter list>]
Function : Change RBF device parameters in a descriptor
The device is detached, changed, and re-attached
If it isn't in use this should re-initialise it.
Parameters:
drv = Drive number stp = Step rate
typ(hex) = Device type dns(hex) = Media density
cyl = Number of cylinders sid = Number of sides
vfy(hex) = Verify disk writes sct = Sectors per track
tos = Sectors on track 0 sas = Segment allocation
ilv = Interleave factor tof = Track base offset
sof = Sector base offset siz = Sector size (bytes)
ctl(hex) = Control word try = Retry count
prk = Hard disk park cyl lsn = Logical sector offset
tot = Total cylinders rts(hex) = Rpm, xfr rate
xfr = Maximum transfer
Execution:
This program has no options. It is the RBF equivalent of XMODE for SCF
devices. If it is run with just a device name specified it will report
the current parameter settings in the descriptor:
dmode /dd
Parameters which assign specific meanings to particular bits or values
are reported in hex and the meaning of the current setting is displayed.
Parameters in an RBF descriptor may be reset by specifying them on the
command line in the form key=n, key=0xh or key=$h. NOTE: if you're using
the EFFO shell you'll need to escape the dollar sign, so a hex parameter
should be input as key=0xhh or key=\$hh. Parameters shown in decimal
must be set in decimal; those shown in hex (and flagged (hex) in a help
display) must be set in hex:
dmode /d1 stp=3 vfy=$01
sets the step rate to 3 and turns disk verify after write off. See the
OS9 technical manual for the meanings of any parameters you don't
understand.
When parameters are set the descriptor's module CRC is reset. dmode is
an easy way to create new descriptors from an existing one provided that
the new descriptor is to use the original device driver and RBF file
manager. It is intended to ease the task of reading an unknown disk
format, especially in conjunction with LABEL, which can report the
options with which a disk was formatted provided that LSN 0 can be read
with an existing descriptor.
Dmode detaches the device once, modifies it, and re-attaches it. If
the device is not already in use this will force it to be
re-initialised. The effect is similar to the command sequence:
deiniz /dev; moded dev; load dev; iniz /dev
except that the changes are only applied to the copy of the descriptor
that is RAM resident.