SHORTIES\NVR.DOC ·
DOC ·
2 KB ·
1988-10-31 ·
from PCPlus_Issue-33_Jun-1989_FluxEngine-360Kb
If you've ever had your batteries go flat on you, or you want to make sure that
those vital key translations stored in non-volatile RAM which someone else set
up for you survive the next change of batteries, the following small programs
should be of use to you...
NVRSAVE.COM creates a small file NVRDATA.SAV in the default directory on the
current drive, overwriting any existing file of the same name. Into this file
is written all the contents of the Amstrad non-volatile RAM except for the time
of day, the HD146818 control bytes and the time last used.
To save the current NVR contents, just enter NVRSAVE at the A> prompt.
NVRREST.COM reads the NVRDATA.SAV file written by NVRSAVE and copies the
contents back into the non-volatile RAM. If the NVRDATA.SAV file cannot be
located (it should be in the default directory of the current drive) the
contents of the non-volatile RAM are not altered.
To restore the saved NVR contents, just enter NVRREST at the A> prompt.
NOTE: These programs are for use with Amstrad PC1512 or PC1640 only (any type
monitor is OK). Use or attempted use on any other type of computer system may
have (probably catastrophic) consequences for which the author disclaims all
liability.
NOTE: The filename NVRDATA.SAV is specially chosen to be untypeable at the
keyboard. It occupies only a few bytes. If you really MUST delete it, or move
it somewhere else, either (a) use a utility such as PC-TOOLS which will enable
you to pick the file without having to enter it at the keyboard, or (b) use the
wild card operator * to specify the file, having previously moved everything
else which you wish to keep to some safe place.
These programs were created using V4.00 of the Microsoft Symbolic Debug Utility
(SYMDEB).
The Author welcomes constructive criticism of these programs, suggestions for
new utilities and cash commissions.
Brian Beesley
12 Downview Park
Greenisland
Carrickfergus
Co. Antrim BT38 8RY
Northern Ireland