home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
MM1
/
UTIL
/
rsdsk.lzh
/
RSDSK
/
DOCS
/
rsdsk.doc
Wrap
Text File
|
1997-03-06
|
4KB
|
108 lines
RSDSK
copyright (c) 1997 by Bob Devries
may be freely distributed
RSDSK is to Jeff Vavasour's emulator .DSK files, what
RSDOS is to Disk Extended Basic disks in an OS-9 drive,
except there's no options to delete files or copy files TO
the emulator .DSK file.
So what does it do?
RSDSK -h
RSDSK -?
RSDSK -help
All these produce a cryptic help display.
RSDSK -dir filename
This produces a directory of the .DSK files just as if
you did DIR from DECB. 'filename' is the pathname of the
emulator .DSK file WITH the .DSK extenion.
RSDSK -get filename emulator_file os9_file
This copie the file 'emulator_file' from the emulator
.DSK file 'filename' to the file 'os9_file'. The
'emulator_file' must be the complete filename on the
emulator .DSK file, with two exceptions;:
1. It does NOT have to be capitalised, and
2. the spaces between the end of the filename and
the extension don't have to be inserted. However, if there
are spaces inside the filename, they must be typed, and, to
stop OS-9 from eing confused, quote are used around the
name. For example, the entry:
LEVEL 1 BIN 2 B 10
would be entered as:
"level 1.bin"
on the above command line. The OS-9 filename may be
any valid OS-9 pathname.
Now here's a difference from RSDOS:
RSDSK -proc filename
This will produce a procedure file (to stdout, so it may
be re-directed, or piped) to copy ALL the files from the
emulator .DSK file to the OS-9 path. The output looks like
this (for OS-9/68000):
-nx
-np
tmode -w=1 nopause
load rsdsk
rsdsk -get /h0/dsk/caves.dsk "3DVIEW.BIN" 3DVIEW.BIN
rsdsk -get /h0/dsk/caves.dsk "CHAR.DAT" CHAR.DAT
rsdsk -get /h0/dsk/caves.dsk "CHARGEN.BAS" CHARGEN.BAS
rsdsk -get /h0/dsk/caves.dsk "DRAGON.BIN" DRAGON.BIN
unlink rsdsk
tmode -w=1 pause
-p
-x
So you can output this to a file for editing purposes,
like this:
RSDSK -proc filename.dsk >procedure.file
Or you can pipe to the shell, like this:
RSDSK -proc filename.dsk ! shell
This way all the files on the emulator .DSK file will be
copied to your current directory.
___________________________________
This is the first 'cut' of this programme, so it may
still have some bugs. If so, please let me know. At this
stage, I have only tested this on an MM/1 computer, and
only (so far) with one .DSK file. It should compile on a
COCO, but it would require Carl Kreider's C library for
some of the OSK functions I used.
I am reachable by email a: bdevries@gil.com.au
or by regular mail at:
Bob Devries
21 Virgo Street
INALA, Qld, 4077
AUSTRALIA
PH: +61 7 32787209
Date: Thursday, March 6th, 1997.