beautypg.com

Avery Dennison 6035 Programmer Manual Rev.A 7/98 User Manual

Page 49

background image

7/9/98

Using ROM-DOS 6.22 2-37

V D I S K

Purpose

Allows you to use memory as a disk.

Syntax

device = VDISK [size [secs[dirs]]] [/E]

Remarks

VDISK allows you to partition some of your computer’s memory as a
disk. This disk, called a RAM disk or Virtual Disk, is much faster than
either a floppy or hard disk. The RAM drive can use either standard
DOS program memory or extended memory (above 1 Megabyte) for the
disk.

Any data on the VDISK is lost when the system power is turned off.

size specifies the size of the VDISK in kilobytes. The default is 64K
bytes. The memory selected is allocated from the DOS memory pool,
decreasing the amount of memory available for programs, unless the
extended memory switch is used.

secs specifies the sector size in bytes. The default is 512 bytes per
sector. This value must be 128, 256, 512 or 1024. All other values
are not valid and the default of 512 bytes are used.

dirs specifies the number of root directory entries. The default is 64
directory entries. There may be any number of root directory entries
between 2 and 1024. If an odd number is given, it rounds up to the
nearest multiple of 16, in order to fill the entire sector.

/E causes VDISK to use extended memory (memory above the 1
Megabyte boundary) instead of DOS program memory for the disk.

Interrupts are turned off during the transfer of data from

extended memory to conventional memory.

The VDISK increases the resident size of DOS.