home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Shareware Masterblend
/
cdsharewaremasterblend.iso
/
utils
/
adj-ramd
/
adjram.doc
next >
Wrap
Text File
|
1987-05-01
|
41KB
|
846 lines
ADJRAM -- Adjustable RAM Disk
by Gary Cramblitt
Version 3.0
(c) Copyright 1986 by Gary Cramblitt. All rights reserved.
Permission is granted to copy and use this software for
non-commercial purposes only.
NOTICE: This program is provided on an "as is" basis
without warranty of any kind, expressed or implied,
including but not limited to the implied warranties of
mercantability and fitness for a particular purpose. The
entire risk as to quality and performance of this program is
with you, the user. Should the program prove defective, you
assume the entire cost of all necessary repair, servicing,
or correction. In no event will the author be liable to you
for any damages, including any lost profits, lost savings,
or other incidental or consequential damages arising out of
the use or inability to use this program.
This program, although copyrighted, may be freely copied and
used, so long as it is not used for commercial purposes. It is
NOT shareware or user-supported software. You are not expected
to make a donation to the author for using this program. Enjoy
-- and try to do the same for others some day.
What Is ADJRAM?
---------------
ADJRAM is a RAM disk program. Sometimes, RAM disks are called
"virtual disks" like the VDISK supplied with PC-DOS. Sometimes
they are called "memory disks" like MEMBRAIN. Whatever you call
it, a RAM disk is a program that makes a section of the Random
Access Memory (RAM) of your computer look like a floppy disk
drive to DOS. The advantage is that RAM is many hundreds of
times faster than a floppy disk -- even faster than a hard disk.
Why use ADJRAM, when you already have VDISK or MEMBRAIN or some
other RAM disk? Because ADJRAM allows you to vary the size of
the RAM disk without rebooting, and without loss of existing
data stored in the RAM disk. For example, you can start out
with 64K of your memory allocated for the RAM disk, expand it
later to 320K, copy a document file of 60K to the RAM disk, and
still later reduce the RAM disk capacity back down to 128K --
without losing your document file.
ADJRAM is ideal for those who do not have a hard disk.
Requirements
------------
ADJRAM is designed to run under MS-DOS version 2 or greater. It
has been tested on the following machines:
1. Zenith Z100 under MS-DOS version 2.21
2. Zenith Z171 (an IBM PC compatible) under MS-DOS version
2.11
3. KayPro 16 also under MS-DOS 2.11
4. Zenith Z158 (another IBM PC compatible) under MS-DOS
3.1 with a 2 Mbyte JRAM 3 card
It is the author's belief that it will run under PC-DOS version
2 or higher, but this has not been tested. It requires
approximately 10K bytes of disk space. Memory usage is, of
course, a function of the RAM disk's size, but it requires a
minimum of 65K free RAM.
Installation
------------
Note: If you have a computer with LOTUS/INTEL/Microsoft Expanded
Memory and you want ADJRAM to use the Expanded Memory,
please read the section below entitled "Expanded Memory
Support" before you install ADJRAM.
Copy the following files to your boot disk:
AMDISK.DVD
ADJRAM.EXE
Edit your CONFIG.SYS file and place the following line in it:
device = amdisk.dvd
Reboot your computer. If all goes well, you should see the
following message appear near the beginning of your boot
sequence:
AMDISK v3.0 (c) Copyright 1986 by Gary Cramblitt--
Initialized as disk C:
The disk drive letter will vary according to your system
configuration. Remember that drive letter, since it is that
disk which is your RAM disk.
If you use any memory resident programs, such as Sidekick (a
trademark of Borland International), load them before attempting
to change the size of the RAM disk (as explained in the next
section).
Using the RAM Disk
------------------
The RAM disk is used just like any floppy disk drive. You can
copy files to or from it, create directories on it, erase files,
etc. You may NOT do the following things with the RAM disk:
1. You may not FORMAT the RAM disk.
2. You may not DISKCOPY from or to the RAM disk.
3. You may not run SYS against the RAM disk.
4. You may not boot from the RAM disk.
5. You may not use any program on the RAM disk that
accesses the disk controller circuitry directly. Some
anti-copy protection programs fall into this category.
6. You may not use any program that depends upon IBM
standard disk media codes. One such program is CHKDSK.
My version of CHKDSK will report that my RAM disk is a
non-standard format and ask me if I wish to continue.
If I say yes, everything works normally thereafter.
Restrictions 1 through 5 are generally true of any RAM disk.
Restriction 6 is unique to the Adjustable RAM Disk because it
uses a non-standard disk media code. This shouldn't cause great
hardship though.
Also, keep in mind that anything stored in the RAM disk can
potentially be lost. For example, should your power fail and
you don't have an Uninterruptible Power Source (UPS), then
everything in the RAM disk will be lost. If you reboot (by
pressing CTRL-ALT-DEL for example), the contents of the RAM disk
are lost. It is a good idea to periodically copy important
files to a more permanent medium, such as floppy disk.
The RAM disk defaults to a size of 64K bytes when you first boot
the system. The ADJRAM program is used to change this size.
For example, to increase the size of the RAM disk by 64K bytes,
enter the following command to the DOS prompt:
ADJRAM C: +64
The spaces after "ADJRAM" and after "C:" are required. The
drive letter (C:) will vary according to your system's
configuration. Use whatever letter was displayed by AMDISK when
you booted the system.
When ADJRAM is run, you should see something like this displayed
on your screen:
Adjust Memory Disk (c) Copyright 1986 by Gary Cramblitt
Drive C: Total Size: 64K Free Space: 61K
Desired Size: 128K Desired Change: 64K
Allocating new 32K memory block #1
Allocating new 32K memory block #2
Memory Block Table
Block # Paragraph Size(sectors)
-------- --------- -------------
0 604 128
1 26A9 64
2 2EAA 64
The drive letter displayed will vary, as I've already explained.
The exact paragraph numbers will also vary according to your
system configuration and whatever other software is loaded.
ADJRAM always increments its size in 32K junks, called "memory
blocks". The change you specify is always rounded up to the
next closest multiple of 32. In the example above, two new 32K
memory blocks are created for th