home *** CD-ROM | disk | FTP | other *** search
- Resident Write Protector
- by Randy Hall
- (C)1990
-
- -------------------------------- Intro: --------------------------------------
-
- I've been spending most of my free time with computers since I got interested
- in them several years ago. One thing that I have always wanted to learn is
- assembly language. I first tried it on the Apple ][, however, I didn't have
- an assembler and trying to write anything by looking up OP codes from a chart
- is enough to drive anyone crazy. My next attempt was with my Model 100
- portable computer from Radio Shack. I shelled out the 49.95 for the program
- but never could find time to sit down and learn it. That was a few years back
- and I just figured I would never learn assembler unless I took a class. Well,
- my prayers were answered. One of the class I am taking for my computer
- science degree at Old Dominion University was a microprocessor class. By
- another stroke of luck, since there was no macro assembler installed on the
- 680x0 based Sun workstations, we had to learn 80x86 assembler on ATs. I
- was ammazed at how fast I picked up the language. My first assignment was
- to multiply two six digit numbers using unpacked BCD numbers. The next
- program from this class follows.
-
- ------------------------- Overview of program: -------------------------------
-
- This program, once installed from the DOS prompt, will allow the user to
- select the protection status of any disk drive on the system. Just by calling
- up a pop-up menu, any drive can be write protected, format protected, or left
- as is.
-
- ---------------------------- Installaion: -----------------------------------
-
- To install RWP, type "RWP" at the DOS prompt. RWP will not allow itself to be
- install twice.
-
- RWP defaults to no protection on the floppy drives and format protection on
- the hard drives
-
- ----------------------------- Activation: -----------------------------------
-
- To activate RWP, press the left shift key and the Alt key at the same time.
- The following menu will appear on the screen
-
- ############################################################
- # -=«< Resident Write Protector (C)1990 by Randy Hall >»=- #
- ############################################################
- # PROTECTION SELECTIONS | Protection Levels: #
- #-----------------------------+----------------------------#
- # Floppy: Drive A: (00h) 0 | 0: None (normal operation) #
- # Drive B: (01h) 0 | 1: Format protected #
- # Hard: Drive C: (80h) 1 | 2: Write protected & #
- # Drive D: (81h) 1 | Format protected #
- #=============================+============================#
- # Use ^ and v to select between drives #
- # Use < and > to select protection level #
- ############################################################
- # PRESS ESC TO RESUME PROGRAM ALREADY IN PROGRESS #
- ############################################################
-
- Using the up and down arrows, you can move to the drive you want to change
- the protection of. Once on the drive you want to change, the left arrow will
- decrement the protection level of that drive and the right arrow will increment
- the protection level.
-
- +-------+-------------------------------------------------------+
- | LEVEL | DESCRIPTION |
- |-------+-------------------------------------------------------+
- | 0 | Normal disk operation on that drive |
- | 1 | Format requests and writes to the boot sector are |
- | | interrupted. |
- | 2 | The disk appears to the computer as having a write |
- | | protect tab on it. |
- +-------+-------------------------------------------------------+
-
- Remember, this is more of a programing excercise than a real protection
- utility. There are many virues out there that are clever enough to bypass
- this program all together.
-
- Once the protection levels are set to your liking, pressing ESC will return
- the program that was interrupted by the <Left Shift><Alt>.
-
- ------------------------- Technical notes: ---------------------------------
-
- DO NOT ACTIVATE THIS PROGRAM IN GRAPHICS MODE. It is safest to change
- protection when the computer is at DOS but go ahead and experiment. The worst
- that can happen is you have to reboot.
-
- This program is written for the most common base of computers. If you have
- a strange configuration where more that two floppy drives are lettered
- before the hard disks, then those drives may behave strangely. If your
- first two hard disks are something other than C: and D:, this program may
- still protect them. Just think of the first drive as C: and the second as
- D:. This configuration can only occour if the jumpers on the motherboard of
- an PC or XT are set funny. ATs need not worry about it. Just experiment and
- have fun with the program. This program will also have no effect on networked
- drives. If your feeling adventuous, play around with the souce code. Feel
- free to send me feedback through e-mail or regular mail. I can't say that
- I will upgrade this program, but you never know. If it gets better, I will
- try and post the source on the internet.
-
- Have Fun!!! (I did)
- Randy Hall
-
- internet address: hall@cs.odu.edu postal address: 3806 Pecan Street
- Portsmouth, VA 23703
-